/* Credence Intel widgets. Uses the theme's colour tokens, with fallbacks. */
.ci-good { color: var(--green-700, #0b8a4f); font-weight: 700; }

/* Toolbar + pills */
.ci-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin: 0 0 1.3rem; padding: .8rem; background: #fff; border: 1px solid var(--line, #dbe4f3); border-radius: 16px; box-shadow: var(--shadow-sm); }
.ci-toolbar-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.ci-toolbar-label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted, #5d6987); margin-right: .2rem; }
.ci-pill { font: 700 .86rem/1 var(--font, sans-serif); padding: .58rem .9rem; border-radius: 999px; border: 1.5px solid var(--line-2, #c7d4ea); background: #fff; color: var(--ink, #0b1533); cursor: pointer; transition: all .15s; }
.ci-pill:hover { border-color: var(--blue, #2563ff); color: var(--blue, #2563ff); }
.ci-pill.is-on, .ci-pill[aria-pressed="true"] { background: var(--blue, #2563ff); border-color: var(--blue, #2563ff); color: #fff; }
.ci-select { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 700; color: var(--muted, #5d6987); }
.ci-select select { font: 650 .88rem var(--font, sans-serif); color: var(--ink, #0b1533); padding: .55rem 2rem .55rem .8rem; border-radius: 999px; border: 1.5px solid var(--line-2, #c7d4ea); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right .7rem center / 14px no-repeat; appearance: none; -webkit-appearance: none; cursor: pointer; }
.ci-tools-note { margin-top: 1rem; }

/* Tool cards */
.ci-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.ci-tool { position: relative; display: flex; flex-direction: column; gap: .85rem; background: #fff; border: 1px solid var(--line, #dbe4f3); border-radius: 22px; padding: 1.4rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; scroll-margin-top: 100px; }
.ci-tool:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-100, #dbe7ff); }
.ci-tool:target { border-color: var(--sun, #ffc53d); box-shadow: 0 0 0 4px rgba(255, 197, 61, .35), var(--shadow); }
.ci-tool-head { display: flex; gap: .9rem; align-items: flex-start; }
.ci-logo { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: #fff; border: 1px solid var(--line, #dbe4f3); padding: 6px; flex: none; }
.ci-tool-head h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.ci-tool-head p { margin: 0; font-size: .9rem; color: var(--muted, #5d6987); line-height: 1.45; }
.ci-tool-price { display: flex; flex-direction: column; background: linear-gradient(135deg, var(--blue-50, #eef4ff), #fff); border: 1px solid var(--blue-100, #dbe7ff); border-radius: 14px; padding: .8rem 1rem; }
.ci-price-from { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted, #5d6987); }
.ci-price-amt { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--blue, #2563ff); line-height: 1.1; }
.ci-price-custom { font-size: 1.4rem; }
.ci-price-unit { font-size: .95rem; font-weight: 700; color: var(--ink-2, #33405f); margin-left: .15rem; }
.ci-tool-price small { color: var(--muted, #5d6987); font-weight: 600; }
.ci-tool-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.ci-tool-free, .ci-tool-best { font-size: .9rem; margin: 0; color: var(--ink-2, #33405f); line-height: 1.5; }
.ci-tool-more { border-top: 1px dashed var(--line, #dbe4f3); padding-top: .7rem; }
.ci-tool-more summary { cursor: pointer; font-weight: 750; font-size: .9rem; color: var(--blue, #2563ff); list-style: none; display: flex; align-items: center; gap: .4rem; }
.ci-tool-more summary::-webkit-details-marker { display: none; }
.ci-tool-more summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50, #eef4ff); font-weight: 800; }
.ci-tool-more[open] summary::before { content: "–"; }
.ci-tool-more .ci-table-wrap { margin: .8rem 0; box-shadow: none; }
.ci-tool-more table { font-size: .84rem; }
.ci-tool-more th, .ci-tool-more td { padding: .55rem .65rem; }
.ci-facts { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .86rem; color: var(--ink-2, #33405f); }
.ci-facts li { margin-bottom: .3rem; }
.ci-tool-foot { margin-top: auto; display: grid; gap: .7rem; }
.ci-tool-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .8rem; }
.ci-compare-check { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink-2, #33405f); cursor: pointer; }
.ci-compare-check input { width: 17px; height: 17px; accent-color: var(--blue, #2563ff); }
.ci-tools-empty { padding: 2rem; text-align: center; background: var(--sky, #f4f8ff); border-radius: 16px; font-weight: 600; }

/* Summary table */
.ci-cell-tool { display: flex; align-items: center; gap: .6rem; font-weight: 750; }
.ci-cell-tool img { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line, #dbe4f3); padding: 2px; background: #fff; }
.ci-summary-table td, .ci-summary-table th { vertical-align: middle; }

/* CTA box */
.ci-cta-box { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem 1.4rem; align-items: center; margin: 2rem 0; padding: 1.3rem 1.4rem; border-radius: 20px; background: linear-gradient(135deg, #fff 0%, var(--blue-50, #eef4ff) 100%); border: 1.5px solid var(--blue-100, #dbe7ff); box-shadow: var(--shadow-sm); max-width: none !important; }
.ci-cta-box .ci-logo { width: 56px; height: 56px; }
.ci-cta-box h4 { margin: 0 0 .2rem; font-size: 1.15rem; }
.ci-cta-box p { margin: 0 0 .5rem; color: var(--muted, #5d6987); font-size: .92rem; }
.ci-cta-side { display: grid; gap: .5rem; justify-items: end; text-align: right; }
.ci-cta-price small { font-weight: 700; color: var(--muted, #5d6987); }
.ci-cta-price .ci-price-amt { font-size: 1.6rem; }
@media (max-width: 680px) { .ci-cta-box { grid-template-columns: auto 1fr; } .ci-cta-side { grid-column: 1 / -1; justify-items: stretch; text-align: left; } }

/* Compare bar + modal */
.ci-compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(11, 21, 51, .96); color: #fff; padding: .8rem 0; box-shadow: 0 -10px 30px rgba(11, 21, 51, .25); backdrop-filter: blur(8px); }
.ci-compare-bar .ci-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ci-compare-items { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ci-compare-chip { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255,255,255,.12); padding: .35rem .5rem .35rem .4rem; border-radius: 999px; font-weight: 700; font-size: .88rem; }
.ci-compare-chip img { width: 24px; height: 24px; border-radius: 6px; background: #fff; }
.ci-compare-chip button { background: none; border: 0; color: #fff; font-size: 1.1rem; cursor: pointer; padding: 0 .2rem; opacity: .7; }
.ci-compare-hint { font-size: .85rem; color: #b9c5e2; }
.ci-compare-actions { display: flex; gap: .5rem; }
.ci-compare-actions .ci-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.ci-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.ci-modal { border: 0; padding: 0; border-radius: 24px; width: min(1000px, calc(100vw - 24px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-lg); }
.ci-modal::backdrop { background: rgba(11, 21, 51, .55); backdrop-filter: blur(3px); }
.ci-modal-inner header { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line, #dbe4f3); position: sticky; top: 0; background: #fff; z-index: 2; }
.ci-modal-inner h2 { margin: 0; font-size: 1.3rem; }
.ci-modal-close { background: var(--sky, #f4f8ff); border: 0; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.ci-modal-close svg { width: 18px; height: 18px; }
.ci-modal-body { padding: 1.2rem 1.4rem 1.4rem; }
.ci-mtable th { width: 140px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted, #5d6987); background: var(--sky, #f4f8ff); }
.ci-mtable td { min-width: 200px; }
.ci-mtable img { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line, #dbe4f3); padding: 4px; margin-bottom: .4rem; }
.ci-mname { font-size: 1.1rem; }
.ci-mprice { font-size: 1.5rem; color: var(--blue, #2563ff); }
.ci-mplan { display: flex; justify-content: space-between; gap: .6rem; font-size: .84rem; padding: .25rem 0; border-bottom: 1px dotted var(--line, #dbe4f3); }
.ci-mplan span { color: var(--muted, #5d6987); text-align: right; }

/* Team cost calculator */
.ci-calc { background: #fff; border: 1.5px solid var(--blue-100, #dbe7ff); border-radius: 24px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); margin: 2rem 0; }
.ci-calc-head { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; align-items: flex-start; }
.ci-calc-head h3 { margin: 0 0 .3rem; }
.ci-calc-head p { margin: 0; color: var(--muted, #5d6987); font-size: .92rem; max-width: 34em; }
.ci-seg { display: inline-flex; background: var(--sky, #f4f8ff); border-radius: 999px; padding: 4px; border: 1px solid var(--line, #dbe4f3); }
.ci-seg button { font: 700 .85rem var(--font, sans-serif); border: 0; background: none; padding: .55rem .95rem; border-radius: 999px; cursor: pointer; color: var(--ink-2, #33405f); }
.ci-seg button[aria-pressed="true"] { background: var(--blue, #2563ff); color: #fff; box-shadow: 0 4px 10px -4px rgba(37, 99, 255, .7); }
.ci-calc-seats { margin: 1.4rem 0 .6rem; }
.ci-calc-seats label { font-weight: 800; display: flex; align-items: baseline; gap: .6rem; }
.ci-calc-seats output { font-size: 2rem; color: var(--coral, #ff5a5f); font-variant-numeric: tabular-nums; }
.ci-calc input[type=range] { width: 100%; accent-color: var(--blue, #2563ff); height: 6px; }
.ci-calc-plans { font-size: .88rem; font-weight: 600; color: var(--ink-2, #33405f); margin-bottom: 1rem; }
.ci-calc-plans input { accent-color: var(--blue, #2563ff); }
.ci-bars { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .55rem; }
.ci-bar { display: grid; grid-template-columns: minmax(170px, 1.2fr) 2fr auto 34px; gap: .8rem; align-items: center; padding: .55rem .7rem; border-radius: 14px; background: var(--sky, #f4f8ff); transition: background .2s; }
.ci-bar.is-best { background: var(--green-50, #e8f8f0); }
.ci-bar-label { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.ci-bar-label img { width: 26px; height: 26px; border-radius: 7px; background: #fff; padding: 2px; }
.ci-bar-label span { line-height: 1.25; font-size: .9rem; }
.ci-bar-label small { display: block; color: var(--muted, #5d6987); font-size: .76rem; }
.ci-bar-track { height: 12px; background: #fff; border-radius: 99px; overflow: hidden; }
.ci-bar-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue, #2563ff), #6f9bff); transition: width .35s ease; }
.ci-bar.is-best .ci-bar-track span { background: linear-gradient(90deg, var(--green, #12b76a), #5fd59c); }
.ci-bar-total { text-align: right; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ci-bar-total strong { font-size: 1.05rem; }
.ci-bar-total small { display: block; color: var(--muted, #5d6987); font-size: .74rem; }
.ci-bar-go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral, #ff5a5f); color: #fff !important; text-decoration: none; font-weight: 800; }
.ci-bar-go:hover { background: var(--coral-700, #e3393f); }
@media (max-width: 640px) { .ci-bar { grid-template-columns: 1fr auto 34px; } .ci-bar-track { grid-column: 1 / -1; grid-row: 2; } }

/* Finder */
.ci-finder { background: #fff; border-radius: 26px; border: 1.5px solid var(--blue-100, #dbe7ff); box-shadow: var(--shadow-lg); padding: clamp(1.3rem, 3.5vw, 2.4rem); position: relative; overflow: hidden; scroll-margin-top: 100px; }
.ci-finder-progress { height: 6px; background: var(--sky, #f4f8ff); border-radius: 99px; margin-bottom: 1.6rem; overflow: hidden; }
.ci-finder-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue, #2563ff), var(--coral, #ff5a5f)); transition: width .35s ease; }
.ci-step { display: none; }
.ci-step.is-active { display: block; animation: ciIn .3s ease; }
@keyframes ciIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ci-step-n { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral, #ff5a5f); margin: 0 0 .3rem; }
.ci-step h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 1.1rem; }
.ci-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; }
.ci-opts--img { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ci-opt { display: flex; align-items: center; gap: .8rem; text-align: left; font: inherit; color: var(--ink, #0b1533); background: var(--sky, #f4f8ff); border: 2px solid transparent; border-radius: 16px; padding: .8rem .9rem; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ci-opt:hover, .ci-opt:focus-visible { border-color: var(--blue, #2563ff); background: #fff; transform: translateY(-2px); }
.ci-opt img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; flex: none; }
.ci-opt strong { display: block; font-size: 1rem; }
.ci-opt small { display: block; color: var(--muted, #5d6987); font-size: .82rem; line-height: 1.35; }
.ci-opt--text { justify-content: center; text-align: center; min-height: 74px; }
.ci-back { margin-top: 1rem; background: none; border: 0; color: var(--muted, #5d6987); font: 700 .9rem var(--font, sans-serif); cursor: pointer; padding: .4rem 0; }
.ci-back:hover { color: var(--blue, #2563ff); }
.ci-finder-result h3 { margin-bottom: .3rem; }
.ci-finder-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.ci-fcard { position: relative; border: 1.5px solid var(--line, #dbe4f3); border-radius: 18px; padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; background: #fff; }
.ci-fcard.is-top { border-color: var(--green, #12b76a); box-shadow: 0 0 0 4px var(--green-50, #e8f8f0); }
.ci-fcard header { display: flex; gap: .7rem; align-items: center; }
.ci-fcard header img { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line, #dbe4f3); padding: 4px; }
.ci-fcard h4 { margin: 0; }
.ci-fcard header p { margin: 0; font-size: .82rem; color: var(--muted, #5d6987); line-height: 1.35; }
.ci-fcard ul { margin: 0; padding-left: 1.1rem; font-size: .86rem; color: var(--ink-2, #33405f); }
.ci-fcard-foot { margin-top: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.ci-fcard .ci-badge--ink { align-self: flex-start; }
.ci-restart { margin-top: .5rem; }

/* Search results category icon */
.ci-search-cat { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--blue-50, #eef4ff); color: var(--blue, #2563ff); font-size: .9rem; flex: none; }

/* Free plans table */
.ci-freeplans td, .ci-freeplans th { vertical-align: middle; }
.ci-freeplans th small { display: block; font-weight: 600; margin-left: 2.3rem; }

/* Consent banner */
.ci-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line, #dbe4f3); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.ci-consent[hidden] { display: none; }
.ci-consent p { margin: 0; flex: 1 1 260px; }
.ci-consent div { display: flex; gap: .5rem; }

/* Let grid/flex children shrink so wide plan tables scroll inside their card instead of widening the page. */
.ci-tools-grid > *, .ci-tool, .ci-tool-more, .ci-finder-cards > *, .ci-prose { min-width: 0; }
@media (max-width: 400px) { .ci-tools-grid { grid-template-columns: minmax(0, 1fr); } }

/* Under-review notice */
.ci-review-note { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .65rem .8rem; border-radius: 12px; background: var(--coral-50, #fff0f0); border: 1px solid #ffd0d1; color: #8a1f23; font-size: .84rem; line-height: 1.45; }
.ci-review-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.ci-review-inline { display: block; color: var(--coral-700, #e3393f); font-weight: 700; font-size: .76rem; }

/* Price updates feed */
.ci-feed { list-style: none; padding: 0 !important; margin: 0 0 2rem; display: grid; gap: .9rem; }
.ci-feed-item { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line, #dbe4f3); border-radius: 18px; padding: 1rem 1.1rem; margin: 0 !important; }
.ci-feed-item > img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line, #dbe4f3); padding: 3px; flex: none; }
.ci-feed-item h4 { margin: .3rem 0 .2rem; }
.ci-feed-item p, .ci-feed-item ul { margin: 0 0 .4rem; font-size: .9rem; }
.ci-feed-meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--muted, #5d6987); font-weight: 600; }
