/* captain-faqs.css — the Captain ("Assist") FAQs page (captain-faqs.js). It is
   drawn in the overview's shell (.cpo) with the kit's parts
   (captain-kit.css); these are the FAQ-only pieces. Light first; the
   platform's lime replaces blue in the dark. */

/* ------------------------------------------------------ points + usage */
.cfq-use { padding: 18px 22px; }
.cfq-use h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.cpo-card.cfq-points { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.cfq-use-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 40px; align-items: center; gap: 14px; }
.cfq-use-row + .cfq-use-row { margin-top: 12px; }
.cfq-use-ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--c-line); background: var(--c-card); font-size: 16px; }
.cfq-use-mid span { display: block; margin-bottom: 8px; font-size: 12.5px; }
.cfq-use-row b { text-align: end; font-size: 13px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ tips */
.cfq-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.cfq-tip { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 18px 40px 18px 16px; border: 1px solid; border-radius: 8px; }
.cpo[dir="rtl"] .cfq-tip { padding: 18px 16px 18px 40px; }
.cfq-tip.is-blue { background: var(--crm-tint); border-color: var(--crm-tint); --tip-ic: var(--crm-ink); --tip-tile: var(--crm-tint); }
.cfq-tip.is-green { background: #f2fbf3; border-color: #d8efdc; --tip-ic: #12a150; --tip-tile: #dcf5e2; }
.cfq-tip.is-purple { background: #f7f3ff; border-color: #e6dcfb; --tip-ic: #7a3cf0; --tip-tile: #ece2fe; }
.dark .cfq-tip.is-blue { background: #1c2230; border-color: #283248; --tip-ic: #d4fb08; --tip-tile: #26304a; }
.dark .cfq-tip.is-green { background: #18251c; border-color: #24382a; --tip-ic: #3ecf7a; --tip-tile: #1f3a28; }
.dark .cfq-tip.is-purple { background: #221c30; border-color: #332948; --tip-ic: #b793ff; --tip-tile: #2f2545; }
.cfq-tip-ic { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 8px; background: var(--tip-tile); color: var(--tip-ic); font-size: 23px; }
.cfq-tip-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 3px; }
.cfq-tip-copy strong { font-size: 14px; font-weight: 700; }
.cfq-tip-copy span { color: var(--c-muted); font-size: 12.5px; line-height: 1.5; }
.cpo .cfq-tip-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: var(--c-muted); cursor: pointer; font-size: 14px; }
.cpo .cfq-tip-x:hover { background: rgba(0, 0, 0, .06); color: var(--c-ink); }

/* ------------------------------------------------------------ tabs bar */
.cfq-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); }
.cpo .cfq-tab { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--c-muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.cpo .cfq-tab:hover { color: var(--c-ink); background: var(--c-soft); }
.cpo .cfq-tab.is-on { color: var(--c-ink); background: var(--c-card); box-shadow: inset 0 0 0 1px var(--c-line); }
.cfq-tab-n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 8px; background: var(--c-lime); color: var(--c-lime-ink); font-size: 11px; line-height: 20px; text-align: center; }
.cpo .cfq-chip-filter { display: inline-flex; align-items: center; gap: 7px; height: 32px; max-width: 320px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-soft); color: var(--c-ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.cfq-chip-filter span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfq-pickall { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); font-size: 13px; cursor: pointer; }
.cpo .cfq-check { flex: none; width: 16px !important; height: 16px; margin: 0 !important; accent-color: #9bc400; cursor: pointer; }
.cpo .cpo-btn.is-danger-soft { height: 34px; color: var(--c-red); border-color: color-mix(in srgb, var(--c-red) 35%, var(--c-line)); }

/* ----------------------------------------------------------------- rows */
.cpo-card.cfq-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) 38px; align-items: start; gap: 16px; padding: 16px 18px; border-radius: 8px; }
.cpo-card.cfq-row.is-picked { border-color: color-mix(in srgb, var(--c-lime) 70%, var(--c-line)); background: color-mix(in srgb, var(--c-lime) 6%, var(--c-card)); }
.cfq-row .cfq-check { margin-top: 3px !important; }
.cfq-row-mid { min-width: 0; }
.cfq-row-q { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; unicode-bidi: plaintext; }
.cfq-row-a {
  margin: 6px 0 0; color: var(--c-muted); font-size: 13.5px; line-height: 1.6; unicode-bidi: plaintext;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cfq-row-a b { color: var(--c-ink); font-weight: 600; }
.cfq-row-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px; color: var(--c-muted); font-size: 12.5px; }
.cfq-row-meta > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
.cfq-row-meta > span > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfq-row-meta .fi { font-size: 12.5px; }

.cpo-card.cfq-sugg { grid-template-columns: 40px minmax(0, 1fr) auto; }
.cfq-sugg-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in srgb, var(--c-lime) 25%, var(--c-card)); color: var(--c-lime-ink); font-size: 18px; }
.dark .cfq-sugg-ic { background: rgba(212, 251, 8, .12); color: #d4fb08; }
.cfq-sugg-acts { display: flex; align-items: center; gap: 8px; }
.cfq-sugg-acts .cpo-btn { height: 36px; }

/* ----------------------------------------------------------------- empty */
.cpo-card.cfq-empty { display: flex; flex-direction: column; align-items: center; padding: 34px 24px 36px; margin-bottom: 14px; text-align: center; }
.cfq-art svg { display: block; width: 170px; height: 150px; }
.cfq-art-spark path { fill: none; stroke: #9bd41f; stroke-width: 3; stroke-linecap: round; }
.cfq-art-back { fill: #e9ecf1; }
.cfq-art-mid { fill: #f2f4f7; stroke: #e3e7ed; }
.cfq-art-front { fill: #ffffff; stroke: #e3e7ed; filter: drop-shadow(0 6px 10px rgba(16, 24, 40, .08)); }
.cfq-art-rule { stroke: #b7e36a; stroke-width: 2; }
.cfq-art-bubble { fill: #4cc760; }
.cfq-art-dot { fill: #ffffff; }
.cfq-art-q { fill: #d4fb08; }
.cfq-art-qt { font: 700 28px/1 system-ui, sans-serif; fill: #111; }
.dark .cfq-art-back { fill: #262a31; }
.dark .cfq-art-mid { fill: #2c3138; stroke: #353b44; }
.dark .cfq-art-front { fill: #23272d; stroke: #353b44; }
.cfq-empty h2 { margin: 18px 0 10px; font-size: 22px; font-weight: 700; }
.cfq-empty p { margin: 0 0 24px; max-width: 470px; color: var(--c-muted); font-size: 14.5px; line-height: 1.65; }
.cfq-empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cpo .cpo-btn.is-lg { height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------------------------------------------------------------- topics */
.cpo-card.cfq-topics { display: flex; align-items: flex-start; gap: 20px; padding: 18px 20px; }
.cfq-topics-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: var(--c-soft); font-size: 20px; }
.cfq-topics-body { flex: 1; min-width: 0; }
.cfq-topics-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cfq-topics-top strong { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 700; }
.cfq-topics-top span { color: var(--c-muted); font-size: 12.5px; }
.cpo .cfq-link { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; color: var(--c-blue); font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cpo .cfq-link:hover { text-decoration: underline; }
.cpo .cfq-link:disabled { opacity: .6; cursor: default; text-decoration: none; }
.cfq-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cpo .cfq-chip { height: 34px; padding: 0 13px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-card); color: var(--c-ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.cpo .cfq-chip:hover { border-color: var(--c-muted); background: var(--c-soft); }

/* ----------------------------------------------------------------- width */
@media (max-width: 1100px) {
  .cfq-tips { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .cpo-card.cfq-sugg { grid-template-columns: minmax(0, 1fr); }
  .cfq-sugg-ic { display: none; }
  .cpo-card.cfq-topics, .cfq-topics-top { flex-direction: column; }
}
