/* Crea con BitPull: connectors, one list per account (connectors.js). */
.cx-sheet { display: flex; flex-direction: column; }
.cx-sheet > * { flex-shrink: 0; }
@media (min-width: 700px) { .sheet.full.cx-sheet { width: 720px; } }
.cx-project { display: flex; align-items: center; gap: 10px; width: 100%; margin: 6px 0 2px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); color: var(--ink); text-align: start; }
.cx-project > span { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-project small { color: var(--accent2); font-weight: 600; }
.cx-project svg.ic { width: 18px; height: 18px; color: var(--accent2); }
.cx-crumb { display: flex; align-items: center; gap: 2px; margin: 10px 4px 4px; font-size: 13.5px; color: var(--muted); }
.cx-crumb b { color: var(--ink); }
.cx-crumb .linkish { border: 0; background: none; padding: 0; color: var(--accent2); font: inherit; cursor: pointer; }
.cx-search { margin: 6px 0; }
.cx-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tab { flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.cx-tab[aria-selected="true"] { background: var(--tint2); color: var(--accent2); border-color: transparent; }
.cx-body { padding-bottom: 12px; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cx-card { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: start; transition: background 150ms, border-color 150ms; }
.cx-card:hover { background: var(--surface2); border-color: var(--line2); }
.cx-card.builtin { background: var(--tint); border-color: transparent; }
.cx-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cx-text b { font-weight: 600; }
.cx-text small { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-mark { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-weight: 800; font-size: 18px; box-shadow: inset 0 0 0 1px #ffffff22; }
.cx-mark.big { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; }
.cx-mark.bp { background: var(--grad); color: #fff; }
.cx-mark.bp svg.ic { width: 20px; height: 20px; }
.cx-mark.big.bp svg.ic { width: 26px; height: 26px; }
.cx-badge { position: absolute; right: -5px; bottom: -5px; width: 18px !important; height: 18px !important; padding: 3px; border-radius: 50%; background: var(--surface); color: var(--accent2); box-shadow: 0 0 0 1px var(--line); }
.cx-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.cx-dot.warn { background: #d97706; box-shadow: 0 0 0 3px #d9770622; }
.cx-hero { display: flex; align-items: center; gap: 14px; margin: 12px 0 6px; }
.cx-hero > div { display: flex; flex-direction: column; gap: 2px; }
.cx-hero b { font-size: 20px; }
.cx-hero small { color: var(--muted); }
.cx-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ok); }
.cx-state.missing { color: #d97706; }
.cx-state.pending { color: var(--accent2); }
.cx-desc { margin: 8px 4px; }
.cx-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cx-form { display: flex; flex-direction: column; gap: 10px; }
.cx-field { display: flex; flex-direction: column; gap: 6px; }
.cx-field > span:first-child { font-size: 13.5px; color: var(--muted); }
.cx-field code { font-size: 13px; color: var(--ink); background: var(--surface2); padding: 2px 6px; border-radius: 6px; }
.cx-ok { color: var(--ok); }
.cx-row { display: flex; align-items: center; gap: 6px; }
.cx-input, .cx-input-name, .cx-pname, .cx-pvalue, .cx-num { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: inherit; }
.cx-num { flex: 0 1 140px; }
.cx-eur { color: var(--muted); }
.cx-pairs { display: flex; flex-direction: column; gap: 8px; }
.cx-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-pname { text-transform: uppercase; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.cx-add { margin-top: 16px; }
.cx-danger { color: var(--bad) !important; }
.cx-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px; border-radius: 16px; background: var(--tint); }
.cx-note svg.ic { flex: none; color: var(--accent2); }
.cx-note p { margin: 0; }
.cx-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; padding: 12px 14px; border-radius: 16px; background: var(--surface2); }
.cx-switch > span { display: flex; flex-direction: column; }
.cx-switch small { color: var(--muted); }
.cx-switch input { width: 22px; height: 22px; }
.cx-seg { display: grid; grid-template-columns: 1fr 1fr; }
.cx-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: start; }
.cx-seg small { color: var(--muted); font-size: 12.5px; }
.cx-usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.cx-usage > span { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; background: var(--surface2); }
.cx-usage b { font-size: 18px; }
.cx-usage small { color: var(--muted); font-size: 12.5px; }
.cx-entry > svg.ic:first-child { background: var(--grad); color: #fff; }
/* One list per account (2026-12-05): search on top, sort, chips, status, chat cards. */
.cx-top { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0 2px; background: var(--surface); }
.cx-search-big { flex: 1 1 260px; min-width: 0; margin: 0; }
.cx-search-big input { min-height: 48px; font-size: 16px; }
.cx-sortbox { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.cx-sort { min-height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; }
.cx-lead { margin: 4px 2px 2px; }
.cx-status { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cx-status li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; }
.cx-status li .cx-dot { margin-top: 5px; }
.cx-status li > span { display: flex; flex-direction: column; min-width: 0; }
.cx-status small { color: var(--muted); font-weight: 400; overflow-wrap: anywhere; }
.cx-dot.off { background: var(--line2); box-shadow: 0 0 0 3px var(--surface2); }
.cx-pub { color: var(--accent2); font-weight: 600; }
.cx-here { flex: none; }
.cx-card .cx-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-proj > span { min-width: 0; }
.cx-proj b { overflow-wrap: anywhere; }
.cx-adds { flex-wrap: wrap; margin-top: 16px; }
.cx-logo { overflow: hidden; }
.cx-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.cx-chatcard { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.cx-chatcard .btn { flex: none; }
.cx-chatcard.done { background: var(--tint); border-color: transparent; }
@media (max-width: 520px) { .cx-chatcard { flex-wrap: wrap; } .cx-chatcard .btn { width: 100%; justify-content: center; } }

/* Built-in cards: the "Incluso"/"Spento" tag goes under the name, so short names are not cut ("Datab…"). */
.cx-card.builtin { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; }
.cx-card.builtin .cx-mark { grid-row: 1 / span 2; }
.cx-card.builtin .cx-text { grid-column: 2; min-width: 0; }
.cx-card.builtin .tag { grid-column: 2; justify-self: start; }
