.capsolve-vf{
  --bg:#ffffff; --fg:#0f172a; --muted:#64748b; --line:#e2e8f0;
  --soft:#f8fafc; --soft2:#f1f5f9; --accent:#045CB4; --accent-d:#034a92;
  --chip:#eef2ff; --chip-fg:#3730a3; --radius:12px;
  --cap-blue:#045CB4; --cap-blue-d:#034a92;
  --pub-feat:#16a34a; --pub-pub:#045CB4; --pub-rot:#7c3aed;
  --shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--fg); line-height:1.45; max-width:1080px; margin:0 auto; box-sizing:border-box; padding-left:10px; padding-right:10px;
}
.capsolve-vf *{box-sizing:border-box}
.capsolve-vf h2.vf-title{font-size:1.35rem; margin:0 0 4px; font-weight:700; color:var(--fg)}
.capsolve-vf .vf-sub{color:var(--muted); font-size:.9rem; margin:0 0 18px}
.capsolve-vf .vf-controls{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media(max-width:640px){.capsolve-vf .vf-controls{grid-template-columns:1fr}}
.capsolve-vf .vf-controls.one{grid-template-columns:1fr}
.capsolve-vf .vf-field label{display:block; font-size:.8rem; font-weight:600; margin-bottom:6px; color:#334155}
.capsolve-vf .vf-field label .req{color:var(--accent); font-weight:700}

.capsolve-vf .ms{position:relative}
.capsolve-vf .ms-box{
  border:1px solid var(--line); border-radius:var(--radius); background:var(--bg);
  min-height:46px; padding:6px 38px 6px 10px; cursor:text; display:flex;
  flex-wrap:wrap; gap:6px; align-items:center; transition:border-color .15s,box-shadow .15s;
}
.capsolve-vf .ms-box:focus-within{border-color:var(--accent); box-shadow:0 0 0 3px rgba(4,92,180,.12)}
.capsolve-vf .ms-box::after{
  content:""; position:absolute; right:14px; top:50%; width:9px; height:9px;
  border-right:2px solid var(--muted); border-bottom:2px solid var(--muted);
  transform:translateY(-70%) rotate(45deg); pointer-events:none;
}
.capsolve-vf .ms-ph{color:var(--muted); font-size:.92rem; padding:4px 2px}
.capsolve-vf .ms-chip{
  background:var(--chip); color:var(--chip-fg); border-radius:999px; font-size:.8rem;
  padding:3px 8px 3px 10px; display:inline-flex; align-items:center; gap:6px; max-width:100%;
}
.capsolve-vf .ms-chip span{overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.capsolve-vf .ms-chip b{cursor:pointer; font-weight:700; opacity:.7; font-size:.95rem; line-height:1}
.capsolve-vf .ms-chip b:hover{opacity:1}
.capsolve-vf .ms-input{border:0; outline:0; flex:1; min-width:80px; font-size:.92rem; padding:4px 2px; background:transparent; color:var(--fg)}

.capsolve-vf .ms-panel{
  position:absolute; z-index:30; left:0; right:0; top:calc(100% + 6px);
  background:var(--bg); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); max-height:300px; overflow:auto; display:none; padding:6px;
}
.capsolve-vf .ms.open .ms-panel{display:block}
.capsolve-vf .ms-actions{display:flex; justify-content:space-between; padding:4px 6px 8px; border-bottom:1px solid var(--line); margin-bottom:4px}
.capsolve-vf .ms-actions button{background:none; border:0; color:var(--accent); font-size:.8rem; font-weight:600; cursor:pointer; padding:2px 4px}
.capsolve-vf .ms-actions button:hover{text-decoration:underline}
.capsolve-vf .ms-actions button:disabled{color:var(--muted); cursor:default; text-decoration:none}
.capsolve-vf .vf-field label .vf-max{color:var(--muted); font-weight:400; font-size:.8rem}
.capsolve-vf .ms-note{padding:4px 8px 8px; color:var(--muted); font-size:.78rem}
.capsolve-vf .ms-opt.ms-disabled{opacity:.45; cursor:default}
.capsolve-vf .ms-opt.ms-disabled input{cursor:default}
.capsolve-vf .ms-opt{display:flex; align-items:center; gap:9px; padding:7px 9px; border-radius:8px; cursor:pointer; font-size:.9rem}
.capsolve-vf .ms-opt:hover{background:var(--soft2)}
.capsolve-vf .ms-opt input{width:16px; height:16px; accent-color:var(--accent); margin:0; cursor:pointer}
.capsolve-vf .ms-empty{padding:12px; color:var(--muted); font-size:.85rem; text-align:center}

.capsolve-vf .vf-locknote{font-size:.82rem; color:var(--muted); margin:2px 0 16px}
.capsolve-vf .vf-locknote .tag{display:inline-block; background:var(--soft2); color:#334155; border-radius:999px; padding:2px 9px; margin:0 4px 4px 0; font-weight:600}

.capsolve-vf .vf-bar{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:20px 0 10px; flex-wrap:wrap}
.capsolve-vf .vf-count{font-size:.9rem; color:var(--muted)}
.capsolve-vf .vf-count b{color:var(--fg)}
.capsolve-vf .vf-reset{background:var(--soft); border:1px solid var(--line); color:#334155; border-radius:8px; padding:7px 12px; font-size:.82rem; font-weight:600; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; min-height:50px}
.capsolve-vf .vf-reset:hover{background:var(--soft2)}
.capsolve-vf .vf-reset[hidden]{display:none}

.capsolve-vf .vf-tablewrap{border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff}
.capsolve-vf table{width:100%; border-collapse:collapse; font-size:.92rem}
.capsolve-vf thead th{
  text-align:left; background:var(--soft); color:#475569; font-weight:600; font-size:.78rem;
  text-transform:uppercase; letter-spacing:.03em; padding:11px 16px; border-bottom:1px solid var(--line); position:sticky; top:0;
}
.capsolve-vf tbody td{padding:11px 16px; border-bottom:1px solid var(--line); vertical-align:middle}
.capsolve-vf tbody tr:last-child td{border-bottom:0}
.capsolve-vf tbody tr:hover{background:var(--soft)}
.capsolve-vf .vf-name{font-weight:600}
.capsolve-vf .vf-link{color:var(--accent); text-decoration:none; word-break:break-word}
.capsolve-vf .vf-link:hover{text-decoration:underline; color:var(--accent-d)}
.capsolve-vf .vf-nolink{color:var(--muted)}
.capsolve-vf .vf-scroll{max-height:560px; overflow:auto}

.capsolve-vf .vf-state{padding:42px 20px; text-align:center; color:var(--muted); font-size:.95rem; border:1px dashed var(--line); border-radius:var(--radius); background:var(--soft)}
.capsolve-vf .vf-state svg{width:34px; height:34px; opacity:.4; margin-bottom:8px}
.capsolve-vf .vf-foot{margin-top:14px; font-size:.72rem; color:#94a3b8; text-align:right}

/* Pub Status grouping (List view): white rows with a colored LEFT accent border,
   mirroring the card's colored top border (Featured=green, Published=blue, Rotating=purple). */
.capsolve-vf tbody tr.vf-feat td{font-weight:700}
.capsolve-vf tbody tr.vf-feat td.vf-name{border-left:4px solid var(--pub-feat)}
.capsolve-vf tbody tr.vf-pub td.vf-name{border-left:4px solid var(--pub-pub)}
.capsolve-vf tbody tr.vf-rot td.vf-name{border-left:4px solid var(--pub-rot)}

/* Totals widgets (below filters, above list) */
.capsolve-vf .vf-stats{display:flex; flex-wrap:wrap; gap:12px; margin:18px 0 4px}
.capsolve-vf .vf-stat{
  flex:1 1 0; min-width:120px; background:var(--soft); border:1px solid var(--line);
  border-radius:var(--radius); padding:14px 16px; text-align:center;
}
.capsolve-vf .vf-stat-num{display:block; font-size:1.5rem; font-weight:700; color:var(--fg); line-height:1.1}
.capsolve-vf .vf-stat-label{display:block; margin-top:3px; font-size:.78rem; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.03em}
@media(max-width:480px){.capsolve-vf .vf-stat{flex-basis:100%}}

/* Connected-Solution enrichment in the Name cell.
   The flex layout lives on an inner wrapper (.vf-name-inner) so the <td> stays a
   real table-cell and both columns equalize to the taller row height. */
.capsolve-vf td.vf-name .vf-name-inner{display:flex; flex-wrap:wrap; align-items:center; gap:8px}
.capsolve-vf .vf-coname{font-weight:600}
.capsolve-vf .vf-logo{width:100px; height:50px; object-fit:contain; border:1px solid var(--line); border-radius:6px; background:#fff; padding:3px}
.capsolve-vf .vf-solname{color:var(--muted); font-weight:600; font-size:.9rem}
.capsolve-vf .vf-badges{display:inline-flex; align-items:center; gap:6px}
.capsolve-vf .vf-badge{
  display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px;
  border:1px solid var(--line); border-radius:7px; background:var(--soft); color:#475569;
  cursor:pointer; padding:0; transition:background .12s,border-color .12s,color .12s;
}
.capsolve-vf .vf-badge:hover{background:var(--soft2)}
.capsolve-vf .vf-badge-desc{color:#045CB4}
.capsolve-vf .vf-badge-desc:hover{border-color:#045CB4; background:#e8f1fb}
.capsolve-vf .vf-badge-review{color:#d4a017}
.capsolve-vf .vf-badge-review:hover{border-color:#e0b020; background:#fff8e6}
.capsolve-vf .vf-badge-flame{color:#e8590c}
.capsolve-vf .vf-badge-flame:hover{border-color:#f0791f; background:#fff1e8}

/* Unified action buttons: Website / Description / Perspective / Pricing.
   ~2x the prior badge size, Capsolve blue with white icons, all identical. */
.capsolve-vf .vf-btn{
  display:inline-flex; align-items:center; justify-content:center; width:46px; height:46px;
  border:0; border-radius:11px; background:var(--cap-blue); color:#fff; cursor:pointer;
  padding:0; text-decoration:none; transition:background .12s,transform .06s;
}
.capsolve-vf .vf-btn:hover{background:var(--cap-blue-d)}
.capsolve-vf .vf-btn:active{transform:translateY(1px)}
.capsolve-vf .vf-btn svg{width:24px; height:24px; display:block}
.capsolve-vf .vf-badges{display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap}

/* Hover tooltip (fixed-position, not clipped by the scroll container) */
.capsolve-vf .vf-tooltip{
  position:fixed; z-index:2147483000; max-width:min(760px,92vw); background:#e5e7eb; color:#000;
  padding:10px 12px; border-radius:8px; font-size:.82rem; line-height:1.45; font-weight:400;
  border:1px solid #c8ccd2; box-shadow:0 6px 24px rgba(15,23,42,.20); white-space:normal; pointer-events:none;
}
/* Rich content tooltips (Solution Description / Perspective) use a consistent wide
   width so every one spans the majority of the screen, whether the text is long or
   short. Centered in JS. */
.capsolve-vf .vf-tooltip-wide{width:min(860px,92vw); max-width:min(860px,92vw)}

/* Multiple solution blocks stack vertically under the company name */
.capsolve-vf td.vf-name .vf-name-inner{flex-direction:column; align-items:flex-start; gap:6px}
.capsolve-vf .vf-sol{display:flex; flex-wrap:wrap; align-items:center; gap:8px}

/* Top Vendor Badge (after all other solution info) */
.capsolve-vf .vf-topbadge-wrap{display:inline-flex; align-items:center; cursor:pointer}
.capsolve-vf .vf-topbadge{width:50px; height:50px; object-fit:contain}
.capsolve-vf .vf-tooltip strong{color:#000}

/* ---- Category match logic toggle (#3) ---- */
.capsolve-vf .vf-catlogic{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px}
.capsolve-vf .vf-logic-group{display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--bg)}
.capsolve-vf .vf-logic-btn{background:none; border:0; padding:6px 12px; font-size:.8rem; font-weight:600; color:var(--muted); cursor:pointer; display:inline-flex; align-items:center; justify-content:center; min-height:46px}
.capsolve-vf .vf-logic-btn+.vf-logic-btn{border-left:1px solid var(--line)}
.capsolve-vf .vf-logic-btn[aria-pressed="true"]{background:var(--accent); color:#fff}

/* ---- View toggle (List / Cards) top-right of the results bar (#2) ---- */
.capsolve-vf .vf-bar-actions{display:flex; align-items:center; gap:10px; margin-left:auto}
.capsolve-vf .vf-viewtoggle{display:inline-flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--bg)}
.capsolve-vf .vf-view-btn{display:inline-flex; align-items:center; justify-content:center; gap:5px; background:none; border:0; padding:7px 11px; font-size:.8rem; font-weight:600; color:var(--muted); cursor:pointer; min-height:49px}
.capsolve-vf .vf-view-btn+.vf-view-btn{border-left:1px solid var(--line)}
.capsolve-vf .vf-view-btn[aria-pressed="true"]{background:var(--accent); color:#fff}
.capsolve-vf .vf-view-btn svg{display:block}
@media(max-width:480px){.capsolve-vf .vf-view-btn span{display:none} .capsolve-vf .vf-view-btn{padding:8px 10px}}

/* ---- Card view (#2): responsive grid, auto-fit up to 4 across, ~2 rows/screen ---- */
.capsolve-vf .vf-cards-wrap{max-height:min(72vh,660px); overflow:auto; padding:2px}
.capsolve-vf .vf-cards-grid{
  display:grid; gap:14px; align-items:start;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
}
@media(min-width:1040px){.capsolve-vf .vf-cards-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.capsolve-vf .vf-card{
  min-width:0; position:relative; border:1px solid var(--line); border-top:4px solid var(--line);
  border-radius:var(--radius); background:#fff; box-shadow:var(--shadow); padding:18px 16px 16px;
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:9px;
}
.capsolve-vf .vf-card.vf-feat{border-top-color:var(--pub-feat)}
.capsolve-vf .vf-card.vf-pub{border-top-color:var(--pub-pub)}
.capsolve-vf .vf-card.vf-rot{border-top-color:var(--pub-rot)}
.capsolve-vf .vf-card-logo{min-height:64px; width:100%; padding:10px 16px; display:flex; align-items:center; justify-content:center}
.capsolve-vf .vf-card-logo img{max-width:100%; max-height:46px; object-fit:contain}
.capsolve-vf .vf-card-name{font-size:1.575rem; font-weight:700; color:var(--fg); line-height:1.25}
.capsolve-vf .vf-card-solname{color:var(--muted); font-weight:600; font-size:1.17rem}
.capsolve-vf .vf-card-meta{display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap}
.capsolve-vf .vf-card-badges{display:inline-flex; align-items:center; gap:6px}
.capsolve-vf .vf-card-actions{margin-top:auto; display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; padding-top:6px}
@media(max-width:480px){
  .capsolve-vf .vf-cards-wrap{max-height:none}
  .capsolve-vf .vf-card{padding:18px 14px}
}

/* ---- Info gate form (#4) ---- */
.capsolve-vf .vf-gate{display:flex; justify-content:center; padding:8px 0}
.capsolve-vf .vf-gate-card{width:100%; max-width:460px; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg); box-shadow:var(--shadow); padding:22px 22px}
.capsolve-vf .vf-gate-title{margin:0 0 4px; font-size:1.1rem; font-weight:700; color:var(--fg)}
.capsolve-vf .vf-gate-sub{margin:0 0 16px; color:var(--muted); font-size:.88rem}
.capsolve-vf .vf-gate-grid{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media(max-width:420px){.capsolve-vf .vf-gate-grid{grid-template-columns:1fr}}
.capsolve-vf .vf-gf{display:flex; flex-direction:column; font-size:.8rem; font-weight:600; color:#334155; gap:5px; margin-bottom:12px}
.capsolve-vf .vf-gf input{border:1px solid var(--line); border-radius:8px; padding:9px 10px; font-size:.92rem; color:var(--fg); background:var(--bg)}
.capsolve-vf .vf-gf input:focus{outline:0; border-color:var(--accent); box-shadow:0 0 0 3px rgba(4,92,180,.12)}
.capsolve-vf .vf-gate-grid .vf-gf{margin-bottom:0}
.capsolve-vf .vf-check{display:flex; align-items:flex-start; gap:9px; font-size:.85rem; color:#334155; margin:10px 0; cursor:pointer; line-height:1.35}
.capsolve-vf .vf-check input{width:17px; height:17px; margin:1px 0 0; accent-color:var(--accent); cursor:pointer; flex:0 0 auto}
.capsolve-vf .vf-gate-err{color:#b91c1c; font-size:.82rem; margin:6px 0 2px}
.capsolve-vf .vf-gate-submit{width:100%; margin-top:10px; background:var(--accent); color:#fff; border:0; border-radius:8px; padding:11px 14px; font-size:.92rem; font-weight:700; cursor:pointer}
.capsolve-vf .vf-gate-submit:hover{background:var(--accent-d)}


/* Powered-by branding: top-right, just above the results area */
.capsolve-vf .vf-brandbar{display:flex; justify-content:flex-end; align-items:center; margin:2px 0 8px}
.capsolve-vf .vf-poweredby{display:inline-flex; align-items:center; gap:7px; font-size:.8rem; color:var(--muted); font-weight:500}
.capsolve-vf .vf-brand{display:inline-flex; align-items:center; gap:6px}
.capsolve-vf .vf-brand-mark{color:var(--cap-blue); display:block}
.capsolve-vf .vf-brand-name{font-weight:700; color:var(--cap-blue); font-size:1rem; letter-spacing:-.01em}

/* Green CTA buttons (Register / Custom Vendor List) centered above the list */
.capsolve-vf .vf-greenbtns{display:inline-flex; align-items:center; gap:12px}
.capsolve-vf .vf-gbtn{background:#00c7a7; color:#fff}
.capsolve-vf .vf-gbtn:hover{background:#00b295}

/* "Powered by" brand logo image */
.capsolve-vf .vf-brand-img{height:24px; width:auto; display:block}

/* Reset button in the Categories field head (right-aligned above the box) */
.capsolve-vf .vf-field-head{display:flex; align-items:flex-end; justify-content:space-between; gap:10px; margin-bottom:6px}
.capsolve-vf .vf-field-head label{margin-bottom:0}

/* List view action column: Website + Description/Perspective/Pricing buttons in a row */
.capsolve-vf td.vf-actcell{vertical-align:middle}
.capsolve-vf .vf-actions{display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap}

/* Subtle "showing the first 30" notice under a capped list/cards (#2) */
.capsolve-vf .vf-capnote{margin-top:10px;font-size:12px;line-height:1.5;color:#6b7280;text-align:center;font-style:italic;}

/* Trademark / legal notice under the vendor list */
.capsolve-vf .vf-legal{margin-top:16px;padding-top:10px;border-top:1px solid #e5e7eb;font-size:11px;line-height:1.5;color:#8a8f98;text-align:center;}
