@font-face { font-family: 'ES Cards Inter Tight'; src: url('fonts/InterTight.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-display: swap; }
.qc-library { margin: 22px 0; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.qc-head, .qc-summary, .qc-toolbar, .qc-editor-head, .qc-editor-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.qc-head h2 { margin: 5px 0 10px; color: var(--navy); font-size: 1.8rem; line-height: 1.15; }
.qc-head p { max-width: 800px; margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.qc-badge { display: inline-block; padding: 7px 10px; background: #edf6fb; color: #123b5d; border: 1px solid #d4e6ef; border-radius: 7px; font-size: .76rem; font-weight: 750; }
.qc-summary { margin: 22px 0 18px; padding: 13px 0; border-block: 1px solid var(--line); justify-content: flex-start; }
.qc-summary strong { color: var(--navy); }
.qc-summary span { font-size: .82rem; color: var(--muted); }
.qc-toolbar { justify-content: flex-start; align-items: flex-end; margin: 0 0 18px; }
.qc-library label, .qc-editor label { display: grid; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--navy); }
.qc-toolbar label { flex: 1 1 190px; }
.qc-library select, .qc-library input, .qc-editor select, .qc-editor input { width: 100%; min-height: 42px; min-width: 0; padding: 9px 11px; border: 1px solid #b8ceda; border-radius: 7px; color: #163d56; background: white; }
.qc-result { margin: 0 0 14px; font-size: .84rem; color: var(--muted); }
.qc-status { display: block; color: #355164; font-size: .86rem; line-height: 1.4; }
.qc-status[data-error="true"] { color: #9d352d; }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 26px 20px; }
.qc-item { min-width: 0; display: flex; flex-direction: column; container-type: inline-size; }
.qc-item-meta { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; font-size: .75rem; color: #5f7480; }
.qc-item-meta span:first-child { font-weight: 750; }
.qc-preview { container-type: inline-size; display: flex; flex-direction: column; min-width: 0; flex: 1; min-height: max(560px, 165cqw); height: auto; border: 2px solid #00bdf2; border-radius: 16px; overflow: hidden; background: #052b52; color: white; font-family: 'ES Cards Inter Tight', Inter, Arial, sans-serif; }
.qc-preview-inner { flex: 1; padding: 28px 24px 32px; }
.qc-eyebrow { display: block; padding-bottom: 11px; border-bottom: 1px solid #4b7393; color: #00d4fc; font-size: 12px; font-weight: 750; letter-spacing: .065em; line-height: 1.35; text-transform: uppercase; overflow-wrap: anywhere; }
.qc-preview h3 { margin: 19px 0 30px; color: #fff; font-size: clamp(24px, 9.5cqw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.qc-preview p { margin: 0; color: #fff; font-size: clamp(16px, 5.3cqw, 24px); line-height: 1.55; font-weight: 400; overflow-wrap: anywhere; }
.qc-phone { display: block; margin-top: 20px; padding-top: 18px; border-top: 1px solid #4b7393; color: white; font-size: clamp(16px, 6.8cqw, 26px); font-weight: 750; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.qc-cta { display: flex; gap: 14px; align-items: center; justify-content: space-between; min-height: 65px; padding: 17px 22px; color: #052b52; background: #fff; text-decoration: none; font-size: clamp(15px, 5.4cqw, 21px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.qc-cta:hover { background: #eef9ff; }
.qc-cta img { display: block; width: 23px; height: 23px; flex: 0 0 23px; }
.qc-item-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.qc-item-controls button, .qc-editor button, .qc-toolbar button { min-height: 42px; padding: 10px 13px; border: 1px solid #b8ceda; border-radius: 8px; background: white; color: #052b52; font-weight: 700; font-size: .8rem; cursor: pointer; }
.qc-item-controls button:hover, .qc-editor button:hover, .qc-toolbar button:hover { background: #edf6fb; }
.qc-item-controls small { color: var(--muted); font-size: .72rem; }
.qc-empty { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.qc-editor { width: min(1180px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 1px solid #aec7d6; border-radius: 18px; color: #153b54; background: #fff; }
.qc-editor::backdrop { background: rgba(0, 23, 46, .62); }
.qc-editor-head { padding: 21px 25px; border-bottom: 1px solid var(--line); }
.qc-editor-head h2 { max-width: 800px; margin: 6px 0 0; color: #052b52; font-size: 1.5rem; line-height: 1.18; }
.qc-editor-body { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 26px; padding: 25px; }
.qc-editor-preview { container-type: inline-size; }
.qc-editor-preview .qc-preview { min-height: max(560px, 165cqw); }
.qc-editor-note { margin: 15px 0; padding: 12px; border-left: 3px solid #00bdf2; background: #edf8fd; font-size: .84rem; line-height: 1.5; }
.qc-editor-info { margin: 14px 0; font-size: .84rem; line-height: 1.5; }
.qc-editor-info summary { cursor: pointer; font-weight: 750; }
.qc-editor-info a { overflow-wrap: anywhere; color: #0a537c; }
.qc-editor-info ul { padding-left: 20px; }
.qc-editor-info li { margin: 10px 0; }
.qc-placement { margin: 0 0 16px; padding: 17px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.qc-placement legend { padding: 0 5px; font-weight: 750; font-size: .86rem; }
.qc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qc-fields .qc-wide { grid-column: 1 / -1; }
.qc-field-help { display: block; font-size: .74rem; font-weight: 400; line-height: 1.4; color: var(--muted); }
.qc-sequence { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 13px 0; list-style: none; font-size: .68rem; }
.qc-sequence li { padding: 8px 9px; border: 1px solid #c9dce8; background: #f1f6f9; border-radius: 5px; }
.qc-sequence .qc-slot { color: #fff; border-color: #00bdf2; background: #052b52; font-weight: 750; }
.qc-editor-actions { position: sticky; bottom: 0; padding: 17px 25px; border-top: 1px solid var(--line); background: #fff; z-index: 1; }
.qc-editor-actions > div { display: flex; flex-wrap: wrap; gap: 10px; }
.qc-editor button.qc-primary { background: #052b52; color: #fff; border-color: #052b52; }
.qc-editor button:disabled { opacity: .5; cursor: default; }
.qc-editor form { margin: 0; }
.qc-editor small { font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) {
  .qc-library { padding: 18px 14px; }
  .qc-editor-body { grid-template-columns: 1fr; padding: 17px; }
  .qc-editor-preview { max-width: 340px; width: 100%; margin: auto; }
  .qc-editor-head, .qc-editor-actions { padding: 16px; }
  .qc-fields { grid-template-columns: 1fr; }
  .qc-summary { gap: 10px; }
  .qc-editor-actions { align-items: start; }
  .qc-grid { gap: 26px; }
}
@media (min-width: 1000px) { .qc-grid[data-general="true"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .qc-library { scroll-behavior: auto; } }

.espf-track .qc-preview{min-height:560px;height:auto;max-height:none}.espf-track .qc-cta{font:inherit;cursor:pointer;width:calc(100% - 32px)}

/* Central support-card readability and optional saved width. */
.qc-preview .qc-body p + p { margin-top: .95em; }
.qc-preview .qc-highlight { color: #00d4fc; font-weight: 650; }
.qc-preview .qc-body-links a { display: block; color: #00d4fc; text-decoration: underline; text-underline-offset: .2em; }
.qc-preview .qc-body-links a + a { margin-top: .6em; }
.qc-preview[data-card-width="narrow"] { width: min(100%, 280px); max-width: 280px; min-width: 0; margin-inline: auto; flex: 0 0 auto; }
.qc-width-field { margin-bottom: 22px; }
.qc-preview .qc-cta { flex: 0 0 auto; }
.qc-preview a:focus-visible, .qc-preview button:focus-visible { outline: 3px solid #00d4fc; outline-offset: -5px; }

.espf-track .qc-preview[data-card-width="narrow"] { flex: 0 0 min(var(--es-card-width, 280px), 280px); width: min(var(--es-card-width, 280px), 280px); min-width: 0; margin-inline: 0; }
