/* «Отзывы и рассылки» — страница модулей для заведений. Палитра и элементы — из styles.css */
html, body.biz-body { height: auto; min-height: 100%; overflow: auto; }
body.biz-body { background: var(--bg-2); }

.biz-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--divider); }
.biz-top .icon-btn svg { width: 22px; height: 22px; }
.biz-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.25; }
.biz-sub { font-size: 13px; color: var(--text-2); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-queue { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.biz-queue .pill { padding: 5px 10px; border-radius: 14px; background: var(--bg-2); white-space: nowrap; }
.biz-queue .pill.paused { background: rgba(230, 162, 60, .16); color: #b7791f; }

.biz-nav { max-width: 1000px; margin: 14px auto 0; padding: 0 16px; }
.biz-nav .seg { margin-bottom: 0; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.biz-nav .seg::-webkit-scrollbar { display: none; }
.biz-nav .seg button { white-space: nowrap; }
.biz-queue .pill-short { display: none; }
.biz-main { max-width: 1000px; margin: 0 auto; padding: 14px 16px 60px; }

.card { background: var(--bg); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16, 35, 47, .08); }
.card > h3 { font-size: 16px; font-weight: 500; margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card > .lead { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }
.card .sub-h { font-size: 14px; font-weight: 500; margin: 16px 0 8px; }
.card .sub-h:first-child { margin-top: 0; }

.frow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.frow > .modal-field { flex: 1 1 200px; min-width: 0; margin-bottom: 12px; }
.frow > .modal-field.narrow { flex: 0 1 130px; }
.frow > .modal-field.mid { flex: 0 1 190px; }
.frow > .modal-field.wide { flex: 0 1 300px; }
.modal-inp.sm, .biz-body .modal-sel { padding: 9px 12px; font-size: 14px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.biz-body .modal-btn { text-transform: none; letter-spacing: 0; font-size: 14px; }
.modal-btn.ghost { background: var(--bg-2); color: var(--text); }
.modal-btn.ghost:hover { background: var(--hover); }
.modal-btn.danger { background: none; color: var(--danger); }
.modal-btn.danger:hover { background: rgba(229, 57, 53, .08); }
.modal-btn.small { padding: 7px 12px; font-size: 13px; }
.err { color: var(--danger); font-size: 13px; margin-top: 8px; line-height: 1.45; }
.dirty { font-size: 13px; color: #b7791f; }
.ok-text { color: var(--ok); }
.hint { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-top: 4px; }
.muted-line { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* Переключатель */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .tr { width: 38px; height: 22px; border-radius: 11px; background: var(--muted-badge); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .tr::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.switch input:checked + .tr { background: var(--primary); }
.switch input:checked + .tr::after { transform: translateX(16px); }
.switch input:focus-visible + .tr { box-shadow: 0 0 0 2px var(--primary-soft); }

/* Статус подключения */
.status-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 6px 0 12px; flex-wrap: wrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--text-3); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--danger); }
.dot.warn { background: var(--warn); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 1.5; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: rgba(79, 174, 78, .14); color: #3c8f3b; }
.badge.info { background: var(--primary-soft); color: var(--primary); }
.badge.warn { background: rgba(230, 162, 60, .16); color: #b7791f; }
.badge.bad { background: rgba(229, 57, 53, .12); color: var(--danger); }
:root[data-theme="dark"] .badge.ok { color: #7fd67e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.ok { color: #7fd67e; } }

.progress { height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; margin: 8px 0 4px; }
.progress > i { display: block; height: 100%; background: var(--primary); transition: width .4s; }
.progress.run > i { width: 40% !important; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Цифры */
.kpis.biz { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 12px 0; }
.kpi .kv small { font-size: 14px; color: var(--text-2); font-weight: 400; }
.stars { display: grid; grid-template-columns: 34px 1fr 44px; gap: 6px 10px; align-items: center; font-size: 13px; max-width: 460px; }
.stars .bar { height: 10px; background: var(--bg-2); border-radius: 5px; overflow: hidden; }
.stars .bar i { display: block; height: 100%; border-radius: 5px; background: var(--primary); }
.stars .bar i.r5, .stars .bar i.r4 { background: var(--ok); }
.stars .bar i.r1, .stars .bar i.r2 { background: var(--danger); }
.stars .bar i.r3 { background: var(--warn); }
.stars .n { color: var(--text-2); text-align: right; }

/* Каналы каскада */
.chans { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; }
.chan { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); font-size: 14px; }
.chan input { width: 18px; height: 18px; accent-color: var(--primary); }
.chan .k { width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chan .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chan .st { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.chan .st.on { color: var(--ok); }
.chan .mv { width: 28px; height: 28px; border: none; background: none; border-radius: 50%; cursor: pointer; color: var(--text-2); font-size: 14px; }
.chan .mv:hover { background: var(--hover); color: var(--text); }
.chan .mv:disabled { opacity: .3; cursor: default; }
.chan.off { opacity: .6; }

/* Тексты шаблонов */
.tpl { margin-bottom: 12px; }
.tpl .modal-label { display: flex; justify-content: space-between; gap: 8px; }
.tpl .modal-ta { min-height: 0; font-size: 14px; }
.vars { font-size: 12px; color: var(--text-2); line-height: 1.9; }
.vars code { background: var(--bg-2); border-radius: 6px; padding: 1px 6px; font-family: inherit; cursor: pointer; }
.vars code:hover { background: var(--primary-soft); color: var(--primary); }
details.more { margin-top: 10px; }
details.more > summary { cursor: pointer; color: var(--primary); font-size: 14px; list-style: none; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '▸ '; }
details.more[open] > summary::before { content: '▾ '; }

/* Таблицы */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
/* узкий экран: таблица прокручивается вбок, а не сжимает колонки в строку по слову */
.tbl-wrap > .tbl { min-width: 720px; }
.tbl th { text-align: left; color: var(--text-2); font-weight: 400; font-size: 12.5px; padding: 6px 8px; border-bottom: 1px solid var(--divider); white-space: nowrap; }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--divider); vertical-align: top; line-height: 1.4; }
.tbl tr:last-child td { border-bottom: none; }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl .who { font-weight: 500; }
.tbl .ph { color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.tbl .txt { max-width: 340px; color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.tbl .nowrap { white-space: nowrap; }
.tbl a { text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--hover); }
.empty { padding: 26px 0; text-align: center; color: var(--text-2); font-size: 14px; }
.rating { font-weight: 500; white-space: nowrap; }
.rating.good { color: var(--ok); }
.rating.mid { color: #b7791f; }
.rating.bad { color: var(--danger); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.filters .seg { margin-bottom: 0; }
.filters .seg button { padding: 6px 11px; font-size: 13px; }
.filters .search { flex: 1 1 180px; max-width: 280px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 14px; outline: none; }
.filters .search:focus { border-color: var(--primary); }

/* Кампании */
.camp { border: 1px solid var(--divider); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
.camp.on { border-color: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.camp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.camp-days { font-size: 15px; font-weight: 500; flex: 1; min-width: 160px; }
.camp-days small { font-weight: 400; color: var(--text-2); font-size: 13px; margin-left: 6px; }
.camp-stat { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin: 6px 0 2px; }
.camp-stat b { color: var(--text); font-weight: 500; }
.camp .modal-ta { min-height: 0; font-size: 14px; margin-top: 10px; }
.preview { background: var(--bg-2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px; line-height: 1.5; }
.preview .pv-row { display: flex; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--divider); }
.preview .pv-row:last-child { border-bottom: none; }
.bubble-sample { background: var(--bubble-out); color: var(--bubble-out-text); border-radius: 12px 12px 4px 12px; padding: 8px 11px; font-size: 14px; white-space: pre-wrap; line-height: 1.4; max-width: 440px; margin: 8px 0 0 auto; box-shadow: var(--bubble-shadow); }

/* Клиент — карточка */
.cust-box { max-width: 620px; }
.cust-sec { margin-top: 14px; }
.cust-sec h4 { font-size: 13px; color: var(--text-2); font-weight: 400; margin-bottom: 6px; }

.note-box { background: var(--note); border: 1px solid var(--note-border); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; margin-bottom: 12px; }

/* Мастер подключения */
.card.setup { border: 1px solid var(--primary-soft); }
.card.setup h3 .link-btn { font-size: 13px; font-weight: 400; }
.steps { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; }
.steps li.next { background: var(--primary-soft); }
.steps li.done { color: var(--text-2); }
.steps .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.steps li.done .mark { background: var(--ok); border-color: var(--ok); }
.steps li.next .mark { border-color: var(--primary); }
.steps .st-title { flex: 1; min-width: 0; line-height: 1.35; }
.steps .st-note { display: block; font-size: 12.5px; color: #b7791f; }
.steps .modal-btn { text-decoration: none; white-space: nowrap; }
.setup-mini { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; padding: 0 4px; }

/* Владельцу */
.rcp-row .modal-field { margin-bottom: 8px; }
.problem { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; }
.problem .dot { margin-top: 6px; }
.problem .muted { margin-left: 6px; font-size: 12.5px; }
.inline-num { width: 64px !important; display: inline-block; padding: 4px 8px !important; margin: 0 4px; }
.load-more { display: block; margin: 12px auto 0; }

@media (max-width: 640px) {
  .biz-top { padding: 6px 8px; }
  .biz-main { padding: 10px 8px 60px; }
  .biz-nav { padding: 0 8px; }
  .card { padding: 14px 12px; }
  .tbl-wrap { margin: 0 -12px; padding: 0 12px; }
  .biz-queue .pill-text, .biz-queue .pill-next { display: none; }
  .biz-queue .pill-short { display: inline; }
}

/* ─── Редизайн: шапка вкладки, блоки, переписка-образец, карточки кампаний, помощь ─── */
.card { border-radius: 16px; }
.hero { padding: 18px 20px; }
.hero-top { display: flex; align-items: flex-start; gap: 14px; }
.hero-ico { width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; background: var(--primary-soft); }
.tint-amber { background: rgba(255, 179, 0, .16); }
.tint-green { background: rgba(79, 174, 78, .16); }
.tint-blue { background: rgba(51, 144, 236, .14); }
.tint-violet { background: rgba(135, 116, 225, .16); }
.hero-main { flex: 1; min-width: 0; }
.hero-title { font-size: 21px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; line-height: 1.25; }
.hero-sub { color: var(--text-2); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.hero-sub b { color: var(--text); font-weight: 500; }
.hero-toggle { padding-top: 4px; }
.hero .note-box { margin: 14px 0 0; }
.hero > .muted-line { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { background: var(--bg-2); border-radius: 12px; padding: 9px 13px; min-width: 110px; }
.chip b { display: block; font-size: 19px; font-weight: 500; line-height: 1.2; }
.chip b small { font-size: 13px; color: var(--text-2); font-weight: 400; }
.chip span { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.chip.good b { color: var(--ok); }
.chip.bad b { color: var(--danger); }
.chip.clickable { cursor: pointer; transition: background .15s; }
.chip.clickable:hover { background: var(--hover); }
.chip.clickable.on { background: var(--primary-soft); box-shadow: inset 0 0 0 1.5px var(--primary); }
.chip.clickable.on b { color: var(--primary); }

.sec { padding: 16px 20px; }
.sec-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
details.sec > summary.sec-head { list-style: none; cursor: pointer; margin-bottom: 0; }
details.sec > summary.sec-head::-webkit-details-marker { display: none; }
details.sec[open] > summary.sec-head { margin-bottom: 14px; }
.sec-caret { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; }
.sec-caret::before { content: "▾"; font-size: 16px; transition: transform .15s; }
details.sec:not([open]) .sec-caret::before { transform: rotate(-90deg); }
.sec-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0; }
.sec-main { flex: 1; min-width: 0; }
.sec-title { font-size: 16px; font-weight: 500; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sec-sub { font-size: 13.5px; color: var(--text-2); line-height: 1.5; margin-top: 2px; }
.sec-right { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.sec-right .seg { margin-bottom: 0; }

.help-q { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg); color: var(--text-2); font-size: 12px; font-weight: 500; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0; vertical-align: middle; margin-left: 2px; }
.help-q:hover { border-color: var(--primary); color: var(--primary); }
.help-q.static { cursor: default; }
.modal-label { display: flex; align-items: center; gap: 4px; }

.save-bar { position: sticky; bottom: 12px; z-index: 15; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  background: var(--bg); border-radius: 14px; padding: 10px 14px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(16, 35, 47, .08); }
.save-bar.on { box-shadow: 0 6px 24px rgba(0, 0, 0, .16); outline: 1.5px solid var(--primary-soft); }
.save-bar .dirty { margin-right: auto; }
.sec .save-bar { box-shadow: none; padding: 12px 0 0; margin: 0; background: none; position: static; outline: none; }
.empty-mini { font-size: 13.5px; color: var(--text-2); padding: 6px 0; }

/* переписка-образец */
.chat-mock { background: var(--chat-bg); background-image: var(--chat-grad); border-radius: 14px; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.cm-row { display: flex; flex-direction: column; max-width: 82%; }
.cm-row.out { align-self: flex-end; align-items: flex-end; }
.cm-row.in { align-self: flex-start; align-items: flex-start; }
.cm-b { position: relative; padding: 8px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; box-shadow: var(--bubble-shadow); }
.cm-t, .report-bubble { white-space: pre-wrap; }
.cm-b.out { background: var(--bubble-out); color: var(--bubble-out-text); border-bottom-right-radius: 4px; }
.cm-b.in { background: var(--bubble-in); color: var(--text); border-bottom-left-radius: 4px; }
.cm-b.editing { width: min(560px, 82vw); white-space: normal; }
.cm-b.editing .cm-t { display: none; }
.cm-edit { display: block; margin: 6px 0 0 auto; background: rgba(0, 0, 0, .06); border: none; border-radius: 8px; padding: 3px 9px; font-size: 12.5px; cursor: pointer; color: inherit; opacity: .8; }
.cm-edit:hover { opacity: 1; background: rgba(0, 0, 0, .1); }
.cm-editor .modal-ta { background: var(--bg); color: var(--text); font-size: 14px; min-height: 0; }
.cm-editor .vars { margin-top: 6px; }
.cm-ed-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.cm-cap { font-size: 11.5px; color: var(--text-2); margin-top: 4px; padding: 0 5px; background: rgba(255, 255, 255, .6); border-radius: 6px; }
.cm-shot { display: inline-block; padding: 18px 26px; border-radius: 10px; background: var(--bg-2); color: var(--text-2); font-size: 13px; }
.cm-sys { align-self: center; background: var(--service-bg); color: #fff; font-size: 12.5px; padding: 4px 12px; border-radius: 12px; text-align: center; max-width: 92%; }
.cm-label { align-self: center; font-size: 12px; color: var(--text-2); background: rgba(255, 255, 255, .7); border-radius: 10px; padding: 2px 10px; margin-top: 6px; }
.cm-tabs { align-self: center; margin: 6px 0 2px; background: rgba(255, 255, 255, .75); }
:root[data-theme="dark"] .cm-cap, :root[data-theme="dark"] .cm-label, :root[data-theme="dark"] .cm-tabs { background: rgba(0, 0, 0, .4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cm-cap, :root:not([data-theme="light"]) .cm-label, :root:not([data-theme="light"]) .cm-tabs { background: rgba(0, 0, 0, .4); }
}
.cm-scn { display: flex; flex-direction: column; gap: 10px; }
.cm-scn[hidden], [data-reward-box][hidden] { display: none !important; }
[data-reward-box] { display: flex; flex-direction: column; gap: 10px; }
.report-bubble { max-width: 520px; margin-top: 10px; }

/* карточки кампаний */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cg-card { border: 1px solid var(--divider); border-radius: 14px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.cg-card.on { border-color: rgba(79, 174, 78, .5); box-shadow: inset 3px 0 0 var(--ok); }
.cg-head { display: flex; align-items: center; gap: 10px; }
.cg-days { width: 50px; height: 50px; border-radius: 14px; background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1.05; }
.cg-days b { font-size: 18px; font-weight: 500; }
.cg-days span { font-size: 11px; color: var(--text-2); }
.cg-card.on .cg-days { background: rgba(79, 174, 78, .14); }
.cg-title { flex: 1; min-width: 0; font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.cg-sub { font-weight: 400; font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.cg-head .switch span:last-child { font-size: 12.5px; color: var(--text-2); }
.cg-bubble { background: var(--chat-bg); background-image: var(--chat-grad); border-radius: 12px; padding: 10px; display: flex; justify-content: flex-end; }
.cg-bubble .cm-b { font-size: 13.5px; max-width: 100%; }
.cg-bubble .cm-t.muted { font-style: italic; }
.cg-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); }
.cg-foot b { color: var(--text); font-weight: 500; }
.cg-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cg-editor { border-top: 1px dashed var(--divider); padding-top: 10px; }
.bc-form { margin-bottom: 14px; }
.bc-form .sub-h { font-size: 13.5px; color: var(--text-2); font-weight: 500; }

/* помощь */
.faq-search { width: 100%; max-width: none; margin-top: 14px; padding: 11px 14px; font-size: 15px; }
.faq-topic .sec-head { margin-bottom: 6px; }
.faq-item { border-top: 1px solid var(--divider); }
.faq-item:first-of-type { border-top: none; }
.faq-item > summary { list-style: none; cursor: pointer; padding: 11px 28px 11px 0; font-size: 14.5px; position: relative; line-height: 1.4; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; position: absolute; right: 4px; top: 9px; font-size: 18px; color: var(--text-2); }
.faq-item[open] > summary::after { content: "−"; }
.faq-item[open] > summary { font-weight: 500; }
.faq-a { font-size: 14px; color: var(--text-2); line-height: 1.6; padding: 0 0 12px; }
.faq-a p + p { margin-top: 8px; }
.faq-item.flash > summary { animation: flash 1.6s ease-out; border-radius: 8px; }
@keyframes flash { 0%, 30% { background: var(--primary-soft); } 100% { background: transparent; } }

/* мастер подключения */
.card.setup { padding: 18px 20px; border: 1px solid var(--primary-soft); }
.card.setup .hero-top > .link-btn { font-size: 13px; padding-top: 4px; }
.setup-count { font-size: 14px; font-weight: 500; color: var(--primary); background: var(--primary-soft); border-radius: 10px; padding: 2px 9px; }
.card.setup .progress { margin: 14px 0 6px; }
.steps .mark { color: var(--text-2); font-size: 12px; font-weight: 500; }
.steps li.done .mark { color: #fff; }
.steps li.next .mark { color: var(--primary); }

@media (max-width: 640px) {
  .hero, .sec, .card.setup { padding: 14px 12px; }
  .hero-ico { width: 44px; height: 44px; font-size: 22px; border-radius: 13px; }
  .hero-title { font-size: 18px; }
  .hero-top { flex-wrap: wrap; }
  .hero-toggle { width: 100%; padding-left: 58px; }
  .chip { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); }
  .sec-head { flex-wrap: wrap; }
  .sec-right { width: 100%; padding-left: 50px; }
  .cm-row { max-width: 94%; }
  .camp-grid { grid-template-columns: 1fr; }
  .save-bar { bottom: 8px; }
}

/* Витрина (демо для заведений): плашка над вкладками */
.showcase-bar { max-width: 1000px; margin: 12px auto 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: 14px; line-height: 1.4; }
.showcase-bar a { color: var(--link); font-weight: 600; white-space: nowrap; }
@media (max-width: 1032px) { .showcase-bar { margin: 12px 16px 0; } }

/* точки iiko: сколько заказов видно у каждой */
.chan .store-n { margin-left: auto; color: var(--text-2); font-size: 13px; white-space: nowrap; padding-left: 12px; }

/* номер только для рассылок: галочка у канала и текст ответа под ней */
.only-row { display: grid; gap: 6px; margin-bottom: 8px; }
.only-row .chan { cursor: pointer; }
.only-text { padding: 2px 0 4px 38px; }
@media (max-width: 600px) { .only-text { padding-left: 0; } }
