/* css/surveys.css -- contact surveys (js/market-research/surveys.js).
   The page shell reuses the website/flyer builder pieces from
   css/agent-website.css (.aw-card, .aw-head, .aw-steps, .aw-btn, .aw-inp). */

/* ---------- Market Research card (#sv-card) ---------- */
#sv-card { display: flex; flex-direction: column; gap: 12px; flex: 1; font-size: 14px; color: var(--ink); }
.sv-card-meta { display: flex; flex-direction: column; gap: 2px; }
.sv-card-meta b { font-size: 14px; }
.sv-card-meta span { font-size: 13.5px; color: var(--dim); }
.sv-card-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.sv-card-q { font-size: 13.5px; font-weight: 700; color: var(--dim); }
.sv-card-foot { margin-top: auto; font-size: 13px; color: #8b8b93; font-style: italic; }
#sv-card .sv-btn { font-size: 14px; padding: 6px 11px; }

/* ---------- shared bits ---------- */
.sv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sv-grow { flex: 1; min-width: 0; }
.sv-muted { color: var(--dim); margin: 0; }
.sv-small { font-size: 14px; }
.sv-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--coral-50); border: 1px solid var(--coral-200); font-size: 14px; color: var(--ink); }
.sv-note.sv-warn { background: #fff4e5; border-color: #f3c98b; }
.sv-h { margin: 0; font-size: 14px; color: var(--ink); }
.sv-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 13px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; }
.sv-btn:hover { background: #f6f6f8; }
.sv-btn.sv-primary { background: var(--coral-500); border-color: var(--coral-500); color: #fff; }
.sv-btn.sv-primary:hover { background: #c24f29; }
.sv-link { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: #b44a26; cursor: pointer; text-align: left; }
.sv-link:hover { text-decoration: underline; }
.sv-ic { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; flex: none; }
.sv-ic:hover:not(:disabled) { background: #f2f2f4; color: var(--ink); }
.sv-ic:disabled { opacity: .3; cursor: default; }
.sv-btn:focus-visible, .sv-link:focus-visible, .sv-ic:focus-visible, .sv-topic:focus-visible, .sv-seg:focus-within, .sv-person:focus-within { outline: 2px solid var(--coral-500); outline-offset: 2px; }
.sv-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.sv-pill.live { background: #e3f4ea; color: #1f7a4d; }
.sv-pill.draft { background: #ededf0; color: var(--dim); }
.sv-pill.closed { background: var(--coral-50); color: #9c3a1a; }
.sv-pill.warn { background: #fff3d6; color: #8a5a00; }
.sv-saved { font-size: 14px; color: var(--ink); opacity: .7; }

/* bars */
.sv-bars { display: flex; flex-direction: column; gap: 8px; }
.sv-bar { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 10px; align-items: end; font-size: 14px; }
.sv-bar-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sv-track { height: 8px; border-radius: 99px; background: var(--coral-50); overflow: hidden; }
.sv-fill { height: 100%; border-radius: 99px; background: var(--coral-500); }
.sv-fill.b { background: var(--coral-300); }
.sv-bar-v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- full page ---------- */
#sv-page .aw-head-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#sv-page .aw-head-right .aw-btn svg { margin-right: 2px; }
.sv-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
@media (max-width: 960px) { .sv-grid { grid-template-columns: 1fr; } }
.sv-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sv-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; position: sticky; top: 12px; }
.sv-panel { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; background: #fff; min-width: 0; }

/* topic step */
.sv-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .sv-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sv-topics { grid-template-columns: 1fr; } }
.sv-topic { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; cursor: pointer; }
.sv-topic:hover { border-color: var(--coral-300); }
.sv-topic.on { border-color: var(--coral-500); box-shadow: 0 0 0 3px var(--coral-100); }
.sv-topic-h { font-weight: 700; font-size: 14.5px; }
.sv-topic-who { font-size: 14px; font-weight: 600; color: #9c3a1a; }
.sv-topic-b { font-size: 14px; color: var(--dim); line-height: 1.45; }
.sv-topic-n { font-size: 13.5px; color: #8b8b93; margin-top: auto; }
.sv-topic-own { border-style: dashed; background: #fafafb; }

/* questions step */
.sv-meter { display: inline-flex; gap: 3px; }
.sv-meter i { width: 18px; height: 6px; border-radius: 3px; background: #e7e7ea; }
.sv-meter i.on { background: var(--coral-500); }
.sv-qs { display: flex; flex-direction: column; gap: 10px; }
.sv-q { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.sv-q.on { border-color: var(--coral-300); box-shadow: 0 0 0 3px var(--coral-50); }
.sv-q-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-num { width: 26px; height: 26px; border-radius: 8px; background: var(--coral-50); color: #9c3a1a; font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.sv-q-text { flex: 1 1 260px; min-width: 0; font-weight: 600; }
.sv-type { width: auto; flex: 0 0 auto; }
.sv-q-acts { display: inline-flex; gap: 2px; }
.sv-opts { display: flex; flex-direction: column; gap: 6px; padding-left: 34px; }
.sv-opt { display: flex; align-items: center; gap: 8px; }
.sv-opt .aw-inp { flex: 1; min-width: 0; }
.sv-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--border); flex: none; }
.sv-scale-ed { display: flex; gap: 12px; flex-wrap: wrap; padding-left: 34px; }
.sv-scale-ed label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dim); flex: 1 1 200px; }
.sv-scale-ed .aw-inp { flex: 1; min-width: 0; }
.sv-q > .sv-muted { padding-left: 34px; }

/* phone preview */
.sv-phone { border: 8px solid #1b1b1f; border-radius: 30px; background: #fff; width: 100%; max-width: 290px; margin: 0 auto; overflow: hidden; }
.sv-ph-top { background: var(--coral-50); padding: 12px 14px 10px; font-size: 13.5px; color: #9c3a1a; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.sv-ph-top span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sv-ph-top span:last-child { white-space: nowrap; flex: none; }
.sv-ph-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.sv-ph-prog { height: 4px; background: #ececef; border-radius: 4px; overflow: hidden; }
.sv-ph-prog i { display: block; height: 100%; background: var(--coral-500); }
.sv-ph-q { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); }
.sv-ph-o { border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; font-size: 14px; color: var(--ink); }
.sv-ph-o.on { border-color: var(--coral-500); background: var(--coral-50); font-weight: 600; }
.sv-ph-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sv-ph-scale span { border: 1px solid var(--border); border-radius: 8px; padding: 8px 0; text-align: center; font-size: 14px; font-weight: 600; }
.sv-ph-scale span.on { border-color: var(--coral-500); background: var(--coral-50); }
.sv-ph-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.sv-ph-text { border: 1px solid var(--border); border-radius: 10px; padding: 10px; min-height: 70px; font-size: 14px; color: #9a9aa2; }
.sv-ph-foot { font-size: 13px; color: #8b8b93; padding: 0 14px 14px; }

/* audience step */
.sv-segs { display: flex; flex-direction: column; gap: 8px; }
.sv-seg { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.sv-seg.on { border-color: var(--coral-300); background: var(--coral-50); }
.sv-seg.empty:not(.on) { opacity: .6; }
.sv-seg input { width: 16px; height: 16px; accent-color: var(--coral-500); margin: 0; }
.sv-seg b { display: block; font-size: 14.5px; color: var(--ink); }
.sv-seg small { display: block; font-size: 14px; color: var(--dim); }
.sv-seg-ct { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--ink); }
.sv-seg-ct small { font-weight: 500; font-size: 13.5px; color: #8b8b93; }
.sv-people { border: 1px solid var(--border); border-radius: 10px; max-height: 360px; overflow-y: auto; }
.sv-person { display: grid; grid-template-columns: 16px 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid #ededf0; cursor: pointer; }
.sv-person:first-child { border-top: 0; }
.sv-person.off { opacity: .55; cursor: default; }
.sv-person input { accent-color: var(--coral-500); margin: 0; }
.sv-av { width: 30px; height: 30px; border-radius: 50%; background: var(--coral-100); color: #9c3a1a; font-weight: 700; font-size: 13.5px; display: grid; place-items: center; }
.sv-person-t { min-width: 0; }
.sv-person-t b { display: block; font-size: 14px; color: var(--ink); }
.sv-person-t small { display: block; font-size: 13.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-sum { border: 1px solid var(--border); background: #fafafb; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sv-big { font-size: 28px; font-weight: 800; line-height: 1; color: #9c3a1a; font-variant-numeric: tabular-nums; }
.sv-sum ul { margin: 0; padding-left: 16px; color: var(--dim); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.sv-sum li.sv-bad { color: #a3341a; }
.sv-close { width: auto; display: inline-block; padding: 3px 8px; font-size: 14px; }
.sv-send { width: 100%; justify-content: center; }

/* results */
.sv-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.sv-kpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.sv-kpi b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; color: #9c3a1a; }
.sv-kpi span { font-size: 14px; color: var(--dim); }
.sv-taylor { display: flex; gap: 12px; align-items: flex-start; background: var(--coral-50); border: 1px solid var(--coral-100); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; color: var(--ink); flex-wrap: wrap; }
.sv-taylor p { margin: 4px 0 0; }
.sv-t { width: 28px; height: 28px; border-radius: 50%; background: var(--coral-500); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.sv-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .sv-results { grid-template-columns: 1fr; } }
.sv-comments { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.sv-comments li { font-size: 14px; background: #fafafb; border: 1px solid #ededf0; border-radius: 8px; padding: 8px 10px; }
.sv-comments small { display: block; margin-top: 3px; color: #8b8b93; font-size: 13.5px; }

/* tables (Listings-style) */
.sv-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; }
.sv-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.sv-table th { background: var(--coral-200); color: var(--ink); text-align: left; font-size: 13.5px; letter-spacing: .05em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap; }
.sv-table td { padding: 10px 12px; border-top: 1px solid #ededf0; vertical-align: middle; color: var(--ink); }
.sv-table tbody tr:nth-child(even) td { background: #fafafb; }
.sv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sv-table tr.sv-click { cursor: pointer; }
.sv-table tr.sv-click:hover td { background: var(--coral-50); }
.sv-sub { font-size: 13.5px; color: var(--dim); }
.sv-rate { display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.sv-rate .sv-track { width: 70px; height: 6px; }

/* While the Surveys page is open, svOpenPage marks every other Market Research
   block with data-sv-hid. The [hidden] attribute alone loses to their own
   display:grid/flex rules, so force them off here. */
#tab-agent-morgan > [data-sv-hid] { display: none !important; }

/* 'Pick any' questions (2026-10-09): square markers instead of round ones. */
.sv-dot.sq { border-radius: 4px; }
.sv-ph-o.sq { display: flex; align-items: center; gap: 8px; }
.sv-ph-o.sq:before { content: ""; width: 11px; height: 11px; flex: none; border: 1.5px solid var(--border); border-radius: 3px; background: #fff; }
.sv-ph-o.sq.on:before { border-color: var(--coral-500); background: var(--coral-500); }
.sv-ph-hint { font-size: 13.5px; color: var(--dim); margin: -2px 0 2px; }

/* ---------- Survey builder layout B (2026-10-09) ---------- */
/* Stage rail: connected steps with teal checks, like the Offers stage rail. */
.sv-stages { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; margin-bottom: 16px; }
.sv-stage { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--dim); background: none; border: 0; padding: 2px; cursor: pointer; border-radius: 8px; }
.sv-stage:disabled { cursor: default; opacity: .6; }
.sv-stage .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--dim); font-size: 13.5px; }
.sv-stage.done, .sv-stage.on { color: var(--ink); }
.sv-stage.done .n { background: var(--teal-500); color: #fff; }
.sv-stage.on .n { background: var(--coral-500); color: #fff; }
.sv-stage:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 2px; }
.sv-stage-line { width: 44px; height: 2px; background: var(--border); margin: 0 10px; }
.sv-stage-line.done { background: var(--teal-500); }
@media (max-width: 520px) { .sv-stage-line { width: 16px; margin: 0 6px; } }

/* Email card: subject and opening line side by side. */
.sv-email { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; }
.sv-email textarea { resize: vertical; }
@media (max-width: 700px) { .sv-email { grid-template-columns: 1fr; } }

/* Question cards: one open, the rest collapsed to a summary line. */
.sv-qc { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.sv-qc-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.sv-qc:not(.open) .sv-qc-h { cursor: pointer; }
.sv-qc:not(.open) .sv-qc-h:hover { background: #fafafb; }
.sv-qc-h:focus-visible { outline: 2px solid var(--coral-500); outline-offset: -2px; }
.sv-qc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sv-qc-t { font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.sv-qc-sum { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sv-mini { font-size: 13.5px; color: var(--dim); background: #f3f3f5; border-radius: 6px; padding: 2px 7px; }
.sv-mini-warn { background: var(--coral-50); color: #9c3a1a; }
.sv-qc.open { border-color: var(--coral-200); box-shadow: 0 0 0 3px var(--coral-50); }
.sv-qc.open .sv-qc-h { background: var(--coral-50); }
.sv-qc.open .sv-num { background: var(--coral-500); color: #fff; }
.sv-qc.open .sv-q-text { font-weight: 700; background: #fff; }
.sv-qc-b { padding: 14px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--coral-100); }
.sv-qc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid #ececef; padding-top: 10px; }
.sv-btn-sm { font-size: 14px; padding: 6px 11px; }
.sv-btn-quiet { color: #9c3a1a; }
.sv-btn:disabled { opacity: .45; cursor: default; }

/* Type pills (collapsed summary) */
.sv-pill-choice { background: #ebebee; color: var(--dim); }
.sv-pill-multi { background: var(--coral-50); color: #9c3a1a; }
.sv-pill-scale { background: #EEF4FE; color: #2F6FCC; }
.sv-pill-comment { background: var(--coral-200); color: #8a2f12; }

/* Answer type switch, same look as the Content calendar's Week/Month switch. */
.sv-typeseg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: #f3f3f5; border: 1px solid var(--border); border-radius: 9px; padding: 3px; align-self: flex-start; }
.sv-typeseg button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; color: var(--dim); background: none; border: 0; border-radius: 6px; padding: 6px 11px; cursor: pointer; }
.sv-typeseg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(17,17,20,.12); }
.sv-typeseg button:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 1px; }
.sv-mk { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; opacity: .7; }
.sv-mk.sq { border-radius: 3px; }

/* Answer chips: editable, sized to their text, wrapping. */
.sv-lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 4px 3px 12px; background: #fff; max-width: 100%; }
.sv-chip:focus-within { border-color: var(--coral-300); box-shadow: 0 0 0 3px var(--coral-50); }
.sv-chip input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); padding: 4px 0; min-width: 4ch; max-width: 100%; }
.sv-chip input::placeholder { color: #9a9aa2; font-weight: 500; }
.sv-chip-x { width: 24px; height: 24px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--dim); cursor: pointer; flex: none; }
.sv-chip-x svg { width: 13px; height: 13px; }
.sv-chip-x:hover { background: #f2f2f4; color: var(--ink); }
.sv-chip-x:focus-visible { outline: 2px solid var(--coral-500); }
.sv-chip.alone { border-color: var(--teal-500); background: var(--teal-100); }
.sv-alone { font-size: 13px; font-weight: 700; color: var(--teal-700); background: #fff; border-radius: 999px; padding: 2px 7px; white-space: nowrap; }
.sv-chip-add { gap: 6px; border-style: dashed; color: #b44a26; font: inherit; font-size: 14px; font-weight: 700; padding: 7px 13px; cursor: pointer; }
.sv-chip-add svg { width: 14px; height: 14px; }
.sv-chip-add:hover { background: var(--coral-50); }

/* Scale editor: ends with a 1-5 preview between them. */
.sv-scale-ed2 { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: end; }
.sv-scale-prev { display: flex; gap: 5px; padding-bottom: 4px; }
.sv-scale-prev span { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
@media (max-width: 640px) { .sv-scale-ed2 { grid-template-columns: 1fr; } }

/* Add tiles */
.sv-adds { display: flex; gap: 10px; flex-wrap: wrap; }
.sv-addq { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 700; color: var(--dim); background: #fff; border: 1.5px dashed var(--border); border-radius: 10px; padding: 11px 12px; cursor: pointer; text-align: left; }
.sv-addq span { margin-left: auto; font-size: 13.5px; font-weight: 500; color: #8a8a92; }
.sv-addq:hover { border-color: var(--coral-300); color: var(--ink); }
.sv-addq:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 2px; }
.sv-qc-main .sv-q-text { flex: none; width: 100%; }
.sv-email > .aw-stack { margin: 0; align-self: start; }

/* Compact answer list (2026-10-09, Mark: "more compressed, check boxes instead of pills").
   Two columns of slim rows, each with the radio/checkbox marker the recipient will see. */
.sv-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; }
@media (max-width: 640px) { .sv-chips { grid-template-columns: 1fr; } }
.sv-chip { display: flex; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid #ececef; border-radius: 0; padding: 2px 0; background: none; min-width: 0; }
.sv-chip:focus-within { border-color: var(--coral-300); box-shadow: none; }
.sv-chip .sv-mk { width: 14px; height: 14px; border: 1.5px solid #b9b9c0; opacity: 1; flex: none; }
.sv-chip input { flex: 1; min-width: 0; width: auto; font-size: 14px; font-weight: 500; padding: 6px 0; }
.sv-chip-x { width: 22px; height: 22px; opacity: .55; }
.sv-chip:hover .sv-chip-x, .sv-chip-x:focus-visible { opacity: 1; }
.sv-chip.alone { background: none; border-color: var(--teal-500); }
.sv-chip.alone .sv-mk { border-color: var(--teal-500); }
.sv-chip-add { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: #b44a26; font: inherit; font-size: 14px; font-weight: 700; padding: 6px 0; cursor: pointer; justify-self: start; }
.sv-chip-add svg { width: 13px; height: 13px; }
.sv-chip-add:hover { text-decoration: underline; background: none; }
.sv-chip-add:focus-visible { outline: 2px solid var(--coral-500); outline-offset: 2px; border-radius: 4px; }
/* Tighter open card */
.sv-qc-b { gap: 10px; padding: 12px 14px; }
.sv-typeseg button { padding: 5px 10px; font-size: 13.5px; }
.sv-qc-foot { padding-top: 8px; }
/* Email fields sit directly on the page, no card around them (Mark: too many borders). */
.sv-panel.sv-email { border: 0; border-radius: 0; padding: 0; background: none; }

/* No cards inside the page card (Mark, 2026-10-09: "too many borders").
   The surveys table runs edge to edge in the card; inner panels (audience,
   results) become a light fill with no border. */
.sv-table-wrap { border: 0; border-radius: 0 0 12px 12px; margin: -16px; }
.sv-table th { background: #f6f6f8; color: var(--dim); }
.sv-panel { border: 0; background: #f7f7f9; }

/* Accordion chevron + drag handle (2026-10-09). */
.sv-qc { position: relative; display: flex; align-items: stretch; }
.sv-qc > .sv-qc-h, .sv-qc > .sv-qc-b { flex: 1; min-width: 0; }
.sv-qc.open { flex-wrap: wrap; }
.sv-qc.open > .sv-grip { align-self: stretch; background: var(--coral-50); }
.sv-qc.open > .sv-qc-h { flex: 1 1 calc(100% - 26px); }
.sv-qc.open > .sv-qc-b { flex: 1 1 100%; }
.sv-grip { flex: none; width: 26px; display: grid; place-items: center; border: 0; background: none; color: #b9b9c0; cursor: grab; padding: 0 0 0 4px; }
.sv-grip svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.sv-grip:hover { color: var(--dim); }
.sv-grip:active { cursor: grabbing; }
.sv-grip:focus-visible { outline: 2px solid var(--coral-500); outline-offset: -2px; border-radius: 6px; color: var(--ink); }
.sv-grip.off { cursor: default; opacity: .35; }
.sv-qc-h { padding-left: 4px; }
.sv-qc-tog { color: var(--dim); }
.sv-qc.dragging { opacity: .45; }
.sv-qc.drop-before { box-shadow: 0 -3px 0 0 var(--coral-500); }
.sv-qc.drop-after { box-shadow: 0 3px 0 0 var(--coral-500); }
