/* Internal app layout */
body { background: var(--almost-white); }
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--night-violet); color: var(--almost-white); padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.side .logo { height: 26px; margin: 4px 10px 6px; display: block; }
.side .product { font-size: 12px; color: var(--purple); margin: 0 10px 22px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.side a { display: flex; align-items: center; gap: 10px; color: rgba(249, 249, 246, .82); text-decoration: none; padding: 10px 12px; border-radius: 12px; font-weight: 500; font-size: 14px; }
.side a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side a.active { background: var(--purple); color: var(--night-violet); font-weight: 600; }
.side a svg { width: 18px; height: 18px; flex: none; }
.side .badge { margin-left: auto; background: var(--orange); color: var(--night-violet); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.side .spacer { flex: 1; }
.side .me { border-top: 1px solid rgba(255, 255, 255, .12); padding: 14px 10px 0; font-size: 13px; }
.side .me b { display: block; font-weight: 600; }
.side .me .role { color: var(--purple); font-size: 12px; text-transform: capitalize; }
.side .me button { margin-top: 10px; color: var(--almost-white); border-color: rgba(255,255,255,.3); }
.side .me button:hover { background: rgba(255,255,255,.08); }

.main { padding: 28px 36px 60px; min-width: 0; max-width: 1360px; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.topbar .crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.topbar .crumbs a { text-decoration: none; }
.topbar .crumbs a:hover { text-decoration: underline; }
.topbar .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card { background: var(--card); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card > h3:first-child, .card > .card-head:first-child { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }

.kpi { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi .value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; line-height: 1.1; }
.kpi .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.accent { background: var(--night-violet); color: var(--almost-white); }
.kpi.accent .label, .kpi.accent .sub { color: var(--purple); }
.kpi.lav { background: var(--lavender); }
.good { color: var(--good); } .bad { color: var(--bad); } .mid { color: #8A6D00; }
.kpi.accent .good { color: #8EF0B5; } .kpi.accent .bad { color: #FFB17A; } .kpi.accent .mid { color: #FFE08A; }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #FAF8FF; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.bar { height: 8px; background: var(--offwhite); border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar > div { height: 100%; background: var(--purple); border-radius: 99px; }
.bars .b { display: grid; grid-template-columns: minmax(80px, 220px) 1fr 70px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 7px; }
.bars .b .bar { height: 14px; }
.bars .b .n { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.npsbar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--offwhite); }
.npsbar > .d { background: var(--orange); } .npsbar > .p { background: var(--sand); } .npsbar > .pr { background: var(--purple); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs a.active { color: var(--night-violet); border-color: var(--purple); }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.notice { background: var(--offwhite); border-radius: 14px; padding: 12px 14px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.notice.warn { background: #FFF1E3; }
.notice.info { background: #EEF7FE; }
.notice.lav { background: #F3EDFF; }
.hiddenbox { background: repeating-linear-gradient(-45deg, #F6F4F9, #F6F4F9 8px, #EFECF4 8px, #EFECF4 16px); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* Two-column work layouts */
.split { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.split-side { position: sticky; top: 16px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .split-side { position: static; } }

/* Survey cards on home */
.survey-list .tbl td:nth-child(2) { font-weight: 600; }
.survey-no { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; font-size: 13px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters select, .filters input { width: auto; min-width: 160px; padding: 8px 12px; font-size: 14px; border-radius: 999px; }
.pill-toggle { display: inline-flex; background: var(--offwhite); border-radius: 999px; padding: 3px; }
.pill-toggle button { border: 0; background: transparent; padding: 7px 14px; border-radius: 999px; font: 600 13px var(--font); cursor: pointer; color: var(--muted); }
.pill-toggle button.on { background: var(--white); color: var(--night-violet); box-shadow: var(--shadow); }

/* Builder */
.qcard { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; background: var(--white); }
.qcard.locked { background: #FBFAF6; }
.qcard .qhead { display: flex; gap: 10px; align-items: center; }
.qcard .qnum { width: 28px; height: 28px; border-radius: 50%; background: var(--lavender); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.qcard .qtitle { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.qcard .qbody { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.lang-grid { display: grid; gap: 8px; grid-template-columns: 44px 1fr; align-items: center; margin-bottom: 8px; }
.lang-grid .lc { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.opt-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 8px; padding: 8px; border-radius: 12px; background: var(--almost-white); }
.logo-preview { max-height: 44px; max-width: 160px; border: 1px solid var(--line); border-radius: 8px; padding: 4px; background: #fff; }

/* Distribution */
.linkbox { display: flex; gap: 8px; align-items: center; background: var(--almost-white); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.linkbox span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr { background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--line); display: inline-block; line-height: 0; }

/* Call centre */
.script-note { background: #FFF6DB; border-left: 4px solid var(--sand); border-radius: 8px; padding: 8px 12px; font-size: 13px; margin-bottom: 12px; }
.script-box { background: var(--night-violet); color: var(--almost-white); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 18px; }
.script-box .small { color: var(--purple); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.kbd { font-family: ui-monospace, monospace; font-size: 11px; background: var(--offwhite); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; }
.q.active { outline: 2px solid var(--purple); outline-offset: 10px; border-radius: 6px; }
.interview .q { padding: 4px 0; }
.status-select { padding: 6px 10px; border-radius: 999px; font-size: 13px; width: auto; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

/* AI themes */
.theme { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.theme .row { margin-bottom: 4px; }
.quote { font-size: 13px; color: var(--muted); border-left: 3px solid var(--lavender); padding-left: 10px; margin-top: 6px; font-style: italic; }
.sent-positive { background: #DDF3E4; color: #17603A; } .sent-negative { background: #FFE6D1; color: #8A4100; } .sent-mixed { background: #F1EDD3; } .sent-neutral { background: var(--offwhite); }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
.cal .dow { background: var(--offwhite); font-size: 12px; font-weight: 700; padding: 8px; color: var(--muted); }
.cal .day { background: var(--white); min-height: 104px; padding: 6px; font-size: 12px; }
.cal .day.other { background: #FCFBF8; color: #B8B2C2; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--purple); }
.cal .day .d { font-weight: 700; margin-bottom: 4px; }
.cal .ev { display: block; border-radius: 6px; padding: 2px 6px; margin-bottom: 3px; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.cal .ev.partners { background: var(--lavender); } .cal .ev.employees { background: #DCEFFC; } .cal .ev.customers { background: #F1EDD3; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: var(--night-violet); color: var(--almost-white); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .art::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: var(--purple); right: -180px; bottom: -200px; opacity: .9; }
.login .art::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--lavender); right: 180px; bottom: 120px; }
.login .art h1 { font-size: 44px; max-width: 420px; position: relative; z-index: 1; }
.login .form { padding: 48px; display: flex; flex-direction: column; justify-content: center; max-width: 520px; }
.userpick { display: grid; gap: 8px; }
.userpick button { text-align: left; display: flex; justify-content: space-between; align-items: center; }

/* Modal & toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(32, 9, 58, .38); display: grid; place-items: center; z-index: 100; padding: 20px; }
.modal { background: var(--white); border-radius: 24px; width: min(560px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(32, 9, 58, .3); }
.modal.wide { width: min(900px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 8px; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 8px 24px 16px; overflow-y: auto; }
.modal-foot { padding: 14px 24px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }
#toasts { position: fixed; bottom: 22px; right: 22px; display: grid; gap: 8px; z-index: 200; }
.toast { background: var(--night-violet); color: var(--almost-white); padding: 12px 18px; border-radius: 14px; font-size: 14px; box-shadow: 0 8px 24px rgba(32, 9, 58, .25); transition: opacity .3s, transform .3s; max-width: 420px; }
.toast.err { background: var(--bad); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* Charts */
svg.chart text { font: 500 11px var(--font); fill: var(--muted); }
.spark { display: block; }

/* Print (PDF report) */
@media print {
  .side, .topbar .actions, .no-print, .tabs, .filters .btn, #toasts { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .card, .kpi { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
  body { background: #fff; }
  .print-head { display: flex !important; }
}
.print-head { display: none; align-items: center; justify-content: space-between; margin-bottom: 16px; }

@media (max-width: 1100px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 10px; }
  .side .product, .side .spacer { display: none; }
  .side { align-items: center; gap: 2px; }
  .side .logo { height: 20px; margin: 4px 10px; }
  .side a { padding: 8px 10px; }
  .side .me { border: 0; padding: 0 6px; margin-left: auto; }
  .side .me b, .side .me .role, .side .me br { display: none; }
  .side .me button { margin-top: 0; }
  .main { padding: 18px 14px 40px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; } .login .art { min-height: 220px; }
}
.survey-list .tbl td:nth-child(2) { min-width: 220px; }

/* Create-new-survey dialog */
.modal.cn { width: min(980px, 100%); min-height: min(520px, 90vh); border-radius: 28px; }
.cn-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; }
.cn-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 30px 34px 10px; }
.cn-head h2 { font-size: 24px; margin: 0 0 4px; font-weight: 600; }
.cn-head p { margin: 0; font-size: 14px; }
.cn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 34px; margin: auto 0; }
.cn-tile { appearance: none; background: var(--white); border: 1.5px solid var(--line); border-radius: 20px; padding: 38px 24px; min-height: 210px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; cursor: pointer;
  font: inherit; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s, background .15s; }
.cn-tile:hover, .cn-tile:focus-visible { border-color: var(--purple); background: #FCFAFF; box-shadow: 0 8px 24px rgba(32, 9, 58, .08); transform: translateY(-2px); outline: none; }
.cn-tile b { font-size: 17px; font-weight: 600; margin-top: 6px; }
.cn-tile .muted { font-size: 14px; }
.cn-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--lavender); color: var(--night-violet); display: grid; place-items: center; transition: background .15s; }
.cn-tile:hover .cn-icon { background: var(--purple); }
.cn-body { padding: 18px 34px; overflow-y: auto; flex: 1; }
.cn-body.narrow { max-width: 640px; }
.cn-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 34px 26px; border-top: 1px solid var(--line); }
.cn-tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cn-tpl { appearance: none; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; cursor: pointer; font: inherit; color: var(--text); }
.cn-tpl:hover, .cn-tpl:focus-visible { border-color: var(--purple); background: #FCFAFF; outline: none; }
.cn-preview { background: var(--almost-white); border-radius: 16px; padding: 14px; max-height: 420px; overflow-y: auto; }
.cn-q { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.cn-q b { font-weight: 600; }
.cn-ex { cursor: pointer; border: 0; font-family: inherit; }
.cn-ex:hover { background: var(--lavender); }
.cn-back { padding: 6px; margin-top: 2px; }
@media (max-width: 900px) { .cn-tpls { grid-template-columns: 1fr 1fr; } .cn-grid { grid-template-columns: 1fr; } .cn-tile { display: grid; grid-template-columns: 60px 1fr; column-gap: 16px; row-gap: 2px; text-align: left; align-items: center; min-height: 0 !important; padding: 18px 20px !important; } .cn-tile .cn-icon { grid-row: span 2; } .cn-tile b { margin-top: 0; align-self: end; } .cn-tile .muted { align-self: start; } .cn-tile { min-height: 170px; padding: 24px 16px; } }
@media (max-width: 540px) { .cn-grid, .cn-tpls { grid-template-columns: 1fr; } .cn-tile { min-height: 130px; } .cn-head, .cn-body, .cn-grid, .cn-foot { padding-left: 18px; padding-right: 18px; } }

/* Builder — first question picker */
.first-q { text-align: center; padding: 18px 0 6px; }
.first-q h3 { margin-bottom: 2px; }
.type-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; text-align: left; }
.type-card { appearance: none; text-align: left; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.type-card:hover, .type-card:focus-visible { border-color: var(--purple); background: #FCFAFF; transform: translateY(-1px); outline: none; }
.type-card b { margin-top: 8px; font-weight: 600; }
.tc-demo { height: 26px; display: flex; align-items: center; }
.tc-scale { display: flex; gap: 3px; }
.tc-scale i { font-style: normal; font-size: 10px; font-weight: 700; width: 18px; height: 22px; border-radius: 5px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.tc-scale i.on { background: var(--night-violet); border-color: var(--night-violet); color: #fff; }
.tc-opts { display: flex; gap: 6px; }
.tc-opts i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--night-violet); display: grid; place-items: center; }
.tc-opts.sq i { border-radius: 4px; }
.tc-opts i.on::after { content: ""; width: 8px; height: 8px; border-radius: inherit; background: var(--night-violet); }
.tc-text { width: 100%; height: 22px; border: 1.5px solid var(--line); border-radius: 6px; background: repeating-linear-gradient(90deg, transparent 0 8px, transparent 8px), var(--almost-white); }
@media (max-width: 1100px) { .type-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .type-cards { grid-template-columns: 1fr; } }
.cn-hint { font-size: 13px; color: var(--muted); background: var(--almost-white); border-radius: 10px; padding: 8px 12px; margin-top: 8px; }
.cn-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 2px dashed var(--line); border-radius: 16px; padding: 34px 16px; cursor: pointer; background: var(--almost-white); transition: border-color .15s, background .15s; font-weight: 400; }
.cn-drop:hover, .cn-drop.over { border-color: var(--purple); background: #FCFAFF; }
.cn-drop b { font-size: 15px; }
.cn-q.off { opacity: .45; }
.cn-q.off b { text-decoration: line-through; }
.cn-warn { color: #8A4100; background: #FFF1E3; border-radius: 8px; padding: 4px 8px; margin-top: 6px; }

/* =================== Builder (full-screen) =================== */
body.builder-mode .side { display: none; }
body.builder-mode .shell { grid-template-columns: 1fr; }
body.builder-mode .main { padding: 0; max-width: none; }
.bx { display: grid; grid-template-rows: auto auto 1fr; height: 100vh; background: var(--almost-white); }
.bx-top { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
.bx-icon-btn { appearance: none; border: 0; background: transparent; color: var(--text); width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; text-decoration: none; flex: none; }
.bx-icon-btn:hover { background: var(--offwhite); }
.bx-icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.bx-icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.bx-title { min-width: 0; }
.bx-title .small { line-height: 1.1; }
.bx-title input { border: 0 !important; background: transparent; font: 700 17px var(--font); color: var(--text); padding: 2px 6px; margin-left: -6px; border-radius: 8px; width: min(420px, 40vw); box-shadow: none; }
.bx-title input:hover { background: var(--offwhite); }
.bx-title input:focus { background: var(--white); box-shadow: 0 0 0 2px var(--purple); }
.bx-save { white-space: nowrap; }
.bx-save-err { color: var(--bad); font-weight: 600; }
.bx-top-actions { display: flex; gap: 8px; }
.bx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 18px 10px; background: var(--white); border-bottom: 1px solid var(--line); }
.bx-steps a { text-decoration: none; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.bx-steps a i { display: block; height: 4px; border-radius: 4px; background: var(--offwhite); }
.bx-steps a.on { color: var(--text); font-weight: 600; }
.bx-steps a.on i { background: var(--purple); }
.bx-steps a svg { vertical-align: -2px; margin-right: 4px; }
.bx-steps a:hover i { background: var(--lavender); }
.bx-steps a.on:hover i { background: var(--purple); }
.bx-body { display: grid; grid-template-columns: 84px minmax(380px, 470px) 1fr; min-height: 0; }
.bx-body > * { min-width: 0; }
.bx-rail { background: var(--night-violet); display: flex; flex-direction: column; gap: 4px; padding: 12px 8px; }
.bx-rail button { appearance: none; border: 0; background: transparent; color: rgba(249,249,246,.75); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 500 11.5px var(--font); cursor: pointer; }
.bx-rail button:hover { background: rgba(255,255,255,.07); color: #fff; }
.bx-rail button.on { background: var(--purple); color: var(--night-violet); font-weight: 600; }
.bx-panel { overflow-y: auto; padding: 18px 18px 40px; background: var(--almost-white); border-right: 1px solid var(--line); }
.bx-phead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.bx-phead h2 { margin: 0; font-size: 19px; }
.bx-h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 6px; }
.pill-toggle.sm button { padding: 5px 11px; font-size: 12px; }
.bx-link { appearance: none; border: 0; background: none; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 3px; font: 500 13px var(--font); cursor: pointer; }
.bx-link:hover { color: #6b4fd8; }
.bx-qlist { display: flex; flex-direction: column; gap: 8px; }
.bx-q { background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.bx-q:hover { border-color: #cfc6e0; }
.bx-q.open { border-color: var(--purple); box-shadow: 0 6px 20px rgba(32, 9, 58, .08); }
.bx-qhead { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 12px; cursor: pointer; }
.bx-qtitle { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; }
.bx-qtitle span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bx-q.open .bx-qtitle span { white-space: normal; }
.bx-tbadge { display: inline-flex; align-items: center; gap: 5px; background: var(--lavender); color: var(--night-violet); border-radius: 9px; padding: 5px 8px; font-size: 13px; flex: none; }
.bx-tbadge b { font-weight: 700; font-variant-numeric: tabular-nums; }
.bx-tbadge.t-nps, .bx-tbadge.t-rating, .bx-tbadge.t-stars, .bx-tbadge.t-ces { background: #EDE5FF; }
.bx-tbadge.t-single, .bx-tbadge.t-multi { background: #DCEFFC; }
.bx-tbadge.t-text, .bx-tbadge.t-longtext { background: #F1EDD3; }
.bx-flags { display: flex; gap: 4px; align-items: center; color: var(--muted); }
.bx-flag { display: inline-grid; place-items: center; min-width: 18px; font-weight: 700; color: var(--orange); }
.bx-flag svg { color: var(--muted); }
.bx-missing { font-size: 10.5px; font-weight: 700; color: #8A4100; background: #FFE6D1; border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.bx-qtabs { display: flex; gap: 2px; margin: 0 10px; padding: 4px; background: var(--almost-white); border-radius: 12px; overflow-x: auto; }
.bx-qtabs button { appearance: none; border: 0; background: transparent; border-radius: 9px; padding: 7px 10px; font: 500 13px var(--font); color: var(--muted); display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.bx-qtabs button.on { background: var(--white); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }
.bx-qbody { padding: 14px 14px 16px; }
.bx-field { margin-bottom: 14px; }
.bx-field label { display: flex; align-items: center; gap: 8px; }
.bx-ta { position: relative; }
.bx-ta textarea, .bx-ta input { padding-right: 64px; }
.bx-ta textarea { min-height: 64px; }
.bx-count { position: absolute; right: 10px; bottom: 7px; font-size: 11px; color: var(--muted); pointer-events: none; }
.bx-select { appearance: none; width: 100%; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 12px 7px 7px; font: 500 14px var(--font); color: var(--text); cursor: pointer; text-align: left; }
.bx-select:hover:not(:disabled) { border-color: var(--purple); }
.bx-select:disabled { cursor: default; opacity: .75; }
.bx-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.bx-opt { display: flex; align-items: center; gap: 8px; }
.bx-opt input { padding: 8px 10px; }
.bx-optmark { width: 16px; height: 16px; border: 2px solid var(--muted); border-radius: 50%; flex: none; }
.bx-optmark.multi { border-radius: 4px; }
.bx-scale-prev { background: var(--almost-white); border-radius: 12px; padding: 10px 12px; }
.bx-scale { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.bx-scale i { font-style: normal; min-width: 26px; height: 26px; border-radius: 7px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.bx-scale i.star { border: 0; background: none; color: var(--night-violet); }
.bx-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--almost-white); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.bx-rule select { width: auto; max-width: 220px; padding: 6px 8px; font-size: 13px; }
.bx-group { border: 1.5px dashed #c9bdf0; border-radius: 18px; padding: 8px; background: #FBF9FF; display: flex; flex-direction: column; gap: 8px; }
.bx-ghead { display: flex; align-items: center; gap: 8px; color: #6b4fd8; padding: 2px 4px 0 8px; }
.bx-ginput { border: 0 !important; background: transparent !important; padding: 6px 8px !important; font: 600 13px var(--font) !important; box-shadow: none; flex: 1; }
.bx-ginput:focus { background: var(--white); }
.bx-gbody { display: flex; flex-direction: column; gap: 8px; }
.bx-gadd { appearance: none; border: 0; background: transparent; color: #6b4fd8; font: 600 13px var(--font); padding: 6px 10px; text-align: left; cursor: pointer; border-radius: 10px; display: flex; align-items: center; gap: 6px; }
.bx-gadd:hover { background: var(--lavender); }
.bx-addrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.bx-addrow .btn { justify-content: center; }
.bx-empty { background: var(--white); border: 1.5px dashed var(--line); border-radius: 18px; padding: 22px 16px; text-align: center; }
.bx-empty h3 { margin-bottom: 2px; }
.bx-typegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; text-align: left; }
.bx-typecard { appearance: none; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; cursor: pointer; font: inherit; color: var(--text); text-align: left; }
.bx-typecard .bx-tbadge { grid-row: span 2; }
.bx-typecard b { font-size: 13.5px; font-weight: 600; }
.bx-typecard:hover { border-color: var(--purple); background: #FCFAFF; }
.bx-menu { position: fixed; z-index: 300; background: var(--white); border-radius: 14px; box-shadow: 0 12px 40px rgba(32, 9, 58, .2); padding: 6px; min-width: 220px; max-width: 320px; max-height: 70vh; overflow-y: auto; }
.bx-menu-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 10px 4px; }
.bx-menu button { appearance: none; border: 0; background: transparent; width: 100%; text-align: left; padding: 8px 10px; border-radius: 9px; font: 500 14px var(--font); color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.bx-menu button:hover:not(:disabled) { background: var(--offwhite); }
.bx-menu button.danger { color: var(--bad); }
.bx-menu button:disabled { opacity: .4; cursor: not-allowed; }
.bx-menu button .small { font-weight: 400; }
.bx-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bx-row b { font-weight: 600; font-size: 14px; }
.bx-row > div:first-child { min-width: 0; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; margin: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #D8D3E0; border-radius: 99px; transition: background .15s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--purple); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid var(--lavender); }
.switch input:disabled + span { opacity: .5; cursor: not-allowed; }
.bx-color { display: flex; align-items: center; gap: 6px; }
.bx-color input[type=color] { width: 38px; height: 34px; padding: 2px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.bx-color input[type=text] { width: 96px; padding: 7px 9px; font-family: ui-monospace, monospace; font-size: 13px; }
.bx-swatches { display: flex; gap: 6px; padding: 0 0 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bx-swatches button { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(32,9,58,.15); cursor: pointer; padding: 0; }
.bx-swatches button.on { outline: 2px solid var(--purple); outline-offset: 2px; }
.bx-img { display: flex; align-items: center; gap: 10px; flex: none; }
.bx-img img { max-height: 34px; max-width: 110px; border: 1px solid var(--line); border-radius: 8px; padding: 3px; background: #fff; object-fit: contain; }
.bx-img label { margin: 0; cursor: pointer; }
.bx-seglogos { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.bx-seglogo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.bx-seglogo:last-child { border-bottom: 0; }
.bx-formats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 8px; }
.bx-format { appearance: none; background: var(--white); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.bx-format b { font-size: 14px; }
.bx-format.on { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(170, 147, 255, .25); }
.bx-fart { height: 96px; border-radius: 10px; background: var(--almost-white); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 18px; margin-bottom: 4px; }
.bx-fart i { display: block; height: 7px; border-radius: 4px; background: #cfc6e0; width: 70%; }
.bx-fart i.b { height: 12px; width: 100%; background: var(--lavender); }
.bx-fart i.btn { width: 34%; height: 10px; background: var(--night-violet); align-self: flex-end; }
.bx-fart.one { justify-content: center; }
.bx-fart.all i { height: 5px; } .bx-fart.all i.b { height: 9px; }
.bx-chipcheck { margin: 0; cursor: pointer; }
.bx-chipcheck input { display: none; }
.bx-chipcheck span { display: inline-block; padding: 5px 10px; border-radius: 99px; border: 1.5px solid var(--line); font-size: 12px; font-weight: 700; background: var(--white); }
.bx-chipcheck input:checked + span { background: var(--night-violet); border-color: var(--night-violet); color: #fff; }
/* preview */
.bx-preview { position: relative; display: flex; flex-direction: column; min-width: 0; background: radial-gradient(circle at 85% 110%, rgba(170,147,255,.28), transparent 45%), radial-gradient(circle at 10% -10%, rgba(227,210,255,.6), transparent 40%), #EFEAF7; }
.bx-ptools { display: flex; gap: 8px; padding: 12px 14px; align-items: center; }
.bx-tool-group { display: flex; background: var(--white); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); }
.bx-tool-group button { appearance: none; border: 0; background: transparent; width: 34px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.bx-tool-group button.on, .bx-tool-group button:hover { background: var(--lavender); color: var(--night-violet); }
.bx-tool-select { width: auto; padding: 6px 10px; border-radius: 12px; font-size: 13px; box-shadow: var(--shadow); border-color: transparent; }
.bx-stage { flex: 1; min-height: 0; display: flex; justify-content: center; padding: 0 18px 18px; }
.bx-device { width: 100%; height: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(32, 9, 58, .12); transition: width .2s; }
.bx-stage.mobile .bx-device { width: 390px; max-width: 100%; border: 10px solid var(--night-violet); border-radius: 34px; }
.bx-device iframe { width: 100%; height: 100%; border: 0; display: block; }
.bx-stage.email { align-items: flex-start; overflow-y: auto; }
.bx-mail { width: 100%; max-width: 760px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(32, 9, 58, .12); margin-top: 10px; }
.bx-stage.mobile .bx-mail { max-width: 390px; }
.bx-mail-bar { display: flex; gap: 6px; align-items: center; background: var(--night-violet); padding: 10px 14px; }
.bx-mail-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.bx-mail-bar span { flex: 1; height: 12px; margin-left: 10px; border-radius: 6px; background: rgba(255,255,255,.12); }
.bx-mail-row { display: flex; gap: 10px; align-items: center; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.bx-mail-row b { font-size: 12px; color: var(--muted); width: 70px; font-weight: 600; }
.bx-mail-row span { height: 8px; border-radius: 4px; background: var(--offwhite); }
.bx-mail-body { padding: 8px 0 16px; }
.bx.full .bx-rail, .bx.full .bx-panel { display: none; }
.bx.full .bx-body { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .bx-body { grid-template-columns: 72px minmax(340px, 1fr) minmax(320px, 1fr); } .bx-save { display: none; } }
@media (max-width: 860px) {
  .bx { height: auto; min-height: 100vh; }
  .bx-body { grid-template-columns: 1fr; }
  .bx-rail { flex-direction: row; overflow-x: auto; position: sticky; top: 0; z-index: 5; }
  .bx-rail button { min-width: 72px; }
  .bx-preview { min-height: 640px; }
  .bx-title input { width: 52vw; }
  .bx-top { flex-wrap: wrap; }
  .bx-top .chip { display: none; }
}

/* =================== Distribute (builder layout) =================== */
.bx-title-text { font: 700 17px var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.dx-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.dx-summary > div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.dx-summary b { display: block; font-size: 20px; font-weight: 800; }
.dx-summary span { font-size: 12px; color: var(--muted); }
.dx-list { display: flex; flex-direction: column; gap: 6px; }
.dx-item { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 12px; cursor: pointer; transition: border-color .15s; }
.dx-item:hover { border-color: #cfc6e0; }
.dx-item.on { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(170, 147, 255, .18); }
.dx-item.compact { cursor: default; }
.dx-item-main { flex: 1; min-width: 0; }
.dx-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.dx-item-actions { display: flex; gap: 2px; }
.dx-name { border: 0 !important; background: transparent !important; padding: 2px 4px !important; margin-left: -4px; font: 600 14px var(--font) !important; box-shadow: none !important; width: 100%; }
.dx-name:focus { background: var(--almost-white) !important; box-shadow: 0 0 0 2px var(--purple) !important; }
.dx-exp { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 400; }
.dx-exp input { width: 58px; padding: 3px 6px; font-size: 12px; border-radius: 7px; }
.dx-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dx-status { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.dx-status button { appearance: none; border: 1.5px solid var(--line); background: var(--white); border-radius: 99px; padding: 5px 10px; font: 500 12.5px var(--font); color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dx-status button b { margin-left: 4px; }
.dx-status button.on { border-color: var(--purple); background: #F5F0FF; }
.dx-statuscard { background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; }
.dx-statuscard.live { border-color: #9BD8B0; background: #F4FBF6; }
.dx-statuscard.pending { border-color: #FFC48F; }
.dx-timeline { display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap; }
.dx-timeline > div { display: flex; flex-direction: column; }
.dx-check > div { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; padding: 6px 0; color: var(--muted); }
.dx-check > div span { width: 18px; height: 18px; border-radius: 50%; background: var(--offwhite); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; margin-top: 1px; }
.dx-check > div.ok { color: var(--text); }
.dx-check > div.ok span { background: #DDF3E4; color: #17603A; }
.dx-qrcard { background: #fff; border-radius: 22px; padding: 24px; width: 100%; max-width: 360px; text-align: center; box-shadow: 0 10px 40px rgba(32, 9, 58, .12); margin: 10px auto; }
.dx-qrcard.big { max-width: 420px; }
.dx-qrlogo { height: 24px; margin-bottom: 14px; }
.dx-qrtitle { font: 700 20px var(--font); color: var(--night-violet); line-height: 1.25; }
.dx-qrseg { display: inline-block; margin-top: 8px; background: var(--lavender); color: var(--night-violet); border-radius: 99px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
.dx-qrimg { width: 100%; max-width: 260px; aspect-ratio: 1; display: block; margin: 16px auto 10px; }
.dx-qrcta { font-weight: 600; font-size: 14px; color: var(--night-violet); }
.dx-qrurl { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--muted); margin-top: 6px; word-break: break-all; }
.dx-site { width: 100%; max-width: 900px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 40px rgba(32, 9, 58, .12); margin-top: 10px; }
.bx-stage.mobile .dx-site { max-width: 390px; }
.dx-site-head { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.dx-site-head span { width: 54px; height: 8px; border-radius: 4px; background: var(--offwhite); }
.dx-site-head b { margin-right: auto; font-size: 14px; }
.dx-site-body { padding: 18px 22px; }
.dx-site-text i { display: block; height: 9px; border-radius: 5px; background: var(--offwhite); margin-bottom: 8px; width: 100%; }
.dx-embed { margin: 14px 0; max-width: 720px; }
.bx-device.flat { border-radius: 10px; box-shadow: none; border: 1px dashed #cfc6e0; }
.dx-panelcard { background: #fff; border-radius: 18px; padding: 20px; width: 100%; max-width: 560px; box-shadow: 0 10px 40px rgba(32, 9, 58, .12); margin: 10px auto; }
.dx-stack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--offwhite); margin: 12px 0 6px; }
.dx-empty-stage { margin: auto; text-align: center; color: var(--muted); }

/* =================== Launch (summary) =================== */
.bx-steps.four { grid-template-columns: repeat(4, 1fr); }
.bx-body.lx { grid-template-columns: 84px minmax(460px, 620px) 1fr; }
.lx-panel { padding-bottom: 0; display: flex; flex-direction: column; }
.lx-hero { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.lx-hero h2 { font-size: 18px; margin: 0 0 4px; }
.lx-hero p { font-size: 13.5px; color: var(--muted); margin: 0 0 10px; }
.lx-hero p:last-child { margin: 0; }
.lx-hero-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--lavender); color: var(--night-violet); display: grid; place-items: center; flex: none; }
.lx-hero.live { background: #F2FBF5; border-color: #9BD8B0; }
.lx-hero.live .lx-hero-icon { background: #CDEFD9; color: #17603A; }
.lx-hero.pending { border-color: #FFC48F; background: #FFF8F1; }
.lx-hero.closed .lx-hero-icon { background: var(--offwhite); }
.lx-block { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; scroll-margin-top: 12px; }
.lx-bhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.lx-bhead h3 { margin: 0; font-size: 15px; }
.lx-row { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; align-items: start; }
.lx-row:last-child { border-bottom: 0; }
.lx-row > span { color: var(--muted); }
.lx-quote { font-style: italic; }
.lx-on { color: #17603A; font-weight: 600; }
.lx-off { color: var(--muted); }
.lx-swatch { display: inline-block; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(32,9,58,.15); margin-right: 6px; vertical-align: middle; }
.lx-thumb { max-height: 34px; max-width: 120px; border: 1px solid var(--line); border-radius: 6px; padding: 2px; background: #fff; }
.lx-mono { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.lx-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.lx-q { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lx-q:last-child { border-bottom: 0; }
.lx-qbody { flex: 1; min-width: 0; }
.lx-qtext { font-weight: 600; font-size: 14px; }
.lx-qmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--muted); margin-top: 2px; align-items: center; }
.lx-notes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lx-notes span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--almost-white); border-radius: 8px; padding: 3px 8px; }
.lx-group { border: 1.5px dashed #c9bdf0; border-radius: 14px; padding: 4px 10px; margin: 8px 0; background: #FBF9FF; }
.lx-gtitle { font-size: 12.5px; font-weight: 600; color: #6b4fd8; padding: 6px 0 2px; display: flex; align-items: center; gap: 6px; }
.lx-check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.lx-check:last-child { border-bottom: 0; }
.lx-check > div { flex: 1; }
.lx-check > span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.lx-check.ok > span { background: #DDF3E4; color: #17603A; }
.lx-check.warn > span { background: #FFE6D1; color: #8A4100; }
.lx-check.bad > span { background: #FADADD; color: var(--bad); }
.lx-check.bad { color: var(--bad); }
.lx-footer { position: sticky; bottom: 0; margin: auto -18px 0; padding: 14px 18px; background: rgba(249, 249, 246, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lx-activate { background: var(--purple); border-color: var(--purple); color: var(--night-violet); }
.lx-activate:hover:not(:disabled) { background: #9a80f5; }
@media (max-width: 1100px) { .bx-body.lx { grid-template-columns: 72px minmax(380px, 1fr) minmax(300px, 1fr); } .lx-row { grid-template-columns: 130px 1fr; } }
@media (max-width: 860px) { .bx-body.lx { grid-template-columns: 1fr; } }
.lx-q .bx-tbadge { align-self: flex-start; }

/* =================== Results (builder layout) =================== */
.bx-body.rx { grid-template-columns: 84px minmax(320px, 380px) 1fr; }
.bx-steps a.disabled { pointer-events: none; opacity: .45; }
.rx-filters { flex-wrap: wrap; row-gap: 6px; }
.rx-filters input[type=date].bx-tool-select { padding: 5px 8px; width: 140px; }
.rx-stage-wrap { overflow: hidden; }
.rx-stage { flex: 1; min-height: 0; overflow-y: auto; padding: 0 18px 24px; }
.rx-card { background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 6px 24px rgba(32, 9, 58, .08); margin-bottom: 14px; break-inside: avoid; }
.rx-chead { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.rx-chead h3 { margin: 0; font-size: 15px; }
.rx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.rx-grid .rx-card { margin: 0; }
.rx-cols { columns: 2 380px; column-gap: 14px; }
.rx-big { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin-right: 6px; }
.rx-avg { color: var(--text); font-size: 15px; }
.rx-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rx-kpis.row4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rx-kpi { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.rx-kpi span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rx-kpi b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rx-kpi b i { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 600; }
.rx-kpi small { font-size: 12px; color: var(--muted); }
.rx-kpi .npsbar { margin-top: 6px; height: 8px; }
.rx-kpi.accent { background: var(--night-violet); border-color: var(--night-violet); color: var(--almost-white); }
.rx-kpi.accent span, .rx-kpi.accent small { color: var(--purple); }
.rx-kpi.lav { background: var(--lavender); border-color: var(--lavender); }
.rx-qline { font-size: 13.5px; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rx-pscore { font-weight: 800; font-size: 16px; min-width: 42px; text-align: right; }
.rx-emptycard { text-align: center; padding: 40px 20px; color: var(--muted); }
.rx-emptycard h3 { color: var(--text); margin: 10px 0 4px; }
.rx-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.rx-col { background: rgba(255, 255, 255, .55); border-radius: 16px; padding: 10px; min-height: 160px; }
.rx-colhead { font-weight: 700; font-size: 13px; padding: 4px 6px 10px; }
.rx-task { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); margin-bottom: 8px; font-size: 14px; }
.rx-col[data-col=done] .rx-task b { text-decoration: line-through; opacity: .65; }
.rx-none { padding: 8px 6px; }
.rx-users { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rx-frame { height: 100%; min-height: 560px; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 40px rgba(32, 9, 58, .12); }
.rx-frame iframe { width: 100%; height: 100%; min-height: 560px; border: 0; display: block; }
@media (max-width: 1100px) { .bx-body.rx { grid-template-columns: 72px minmax(280px, 340px) 1fr; } .rx-kanban { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .bx-body.rx { grid-template-columns: 1fr; } .rx-stage { overflow: visible; } }

/* =================== Projects =================== */
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pj-card { background: var(--white); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; border: 1.5px solid transparent; transition: border-color .15s, transform .15s; }
.pj-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.pj-card h3 { margin: 6px 0 0; font-size: 18px; }
.pj-desc { min-height: 36px; margin: 0; }
.pj-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--lavender); display: grid; place-items: center; color: var(--night-violet); }
.pj-spark { margin: 4px -6px 0; }
.pj-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.pj-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.pj-meta b { font-size: 18px; font-weight: 800; }
.pj-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }
.pj-delta.up { background: #DDF3E4; color: #17603A; }
.pj-delta.down { background: #FFE6D1; color: #8A4100; }
.pj-delta.flat { background: var(--offwhite); color: var(--muted); }
.pj-tag { display: inline-block; background: var(--lavender); color: var(--night-violet); border-radius: 99px; padding: 0 8px; font-size: 11px; font-weight: 600; }
.pj-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.bx-body.pj { grid-template-columns: 84px minmax(320px, 380px) 1fr; }
.pj-stacked { display: flex; flex-direction: column; gap: 8px; }
.pj-srow { display: grid; grid-template-columns: 70px 1fr 56px; gap: 10px; align-items: center; }
.pj-sbar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; background: var(--offwhite); }
.pj-sbar span { display: block; height: 100%; }
.pj-sbar em { padding: 2px 8px; }
.pj-heat td.pj-cell { text-align: center; border-radius: 0; min-width: 72px; }
.pj-heat td.pj-cell b { display: block; font-size: 14px; }
.pj-heat td.pj-cell small { font-size: 10.5px; color: var(--muted); }
.pj-heat td.pj-cell.hidden, .pj-heat td.pj-cell.empty { color: var(--muted); background: repeating-linear-gradient(-45deg, #F8F6FA, #F8F6FA 6px, #F1EEF5 6px, #F1EEF5 12px); }
.pj-heat tr.pj-total td { border-top: 2px solid var(--line); }
.pj-timeline { position: relative; padding-left: 26px; }
.pj-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #d6cdea; }
.pj-tl { position: relative; margin-bottom: 14px; }
.pj-tl-dot { position: absolute; left: -24px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); border: 3px solid #EFEAF7; }
.pj-tl-dot.live { background: var(--good); }
.pj-tl-dot.draft { background: #cfc6e0; }
.pj-tl-kpis { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-top: 6px; font-weight: 600; }
.pj-option { display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%; appearance: none; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; font: inherit; color: var(--text); cursor: pointer; }
.pj-option:not(.static):hover { border-color: var(--purple); background: #FCFAFF; }
.pj-option.static { cursor: default; }
.pj-pick { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; margin-top: 8px; }
.pj-meta > div:first-child { white-space: nowrap; } .pj-meta .pj-delta { margin-left: 2px; vertical-align: 3px; }

/* Survey list: individual / grouped-by-project toggle */
.view-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--almost-white); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.view-toggle > span.on { color: var(--night-violet); }
.view-toggle .switch { width: 38px; height: 22px; }
.view-toggle .switch span::after { width: 16px; height: 16px; }
.view-toggle .switch input:checked + span::after { transform: translateX(16px); }
.tbl tr.grp-row td { background: #F6F2FF; border-bottom: 1px solid #E5DCFA; padding: 8px 10px; cursor: pointer; }
.tbl tr.grp-row:hover td { background: #EFE8FF; }
.grp-head { display: flex; align-items: center; gap: 10px; }
.grp-head b { font-size: 14.5px; }
.grp-toggle { appearance: none; width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid #cfc2f2; background: var(--white); color: var(--night-violet); font: 700 16px/1 var(--font); cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.grp-toggle:hover { border-color: var(--purple); }
.grp-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--lavender); color: var(--night-violet); display: grid; place-items: center; flex: none; }
.grp-icon.none { background: var(--offwhite); color: var(--muted); }
.tbl tr.grp-item td:first-child { position: relative; }
.tbl tr.grp-item td:nth-child(2) { padding-left: 18px; }
.cal-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-year { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cal-month { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-height: 170px; border: 1.5px solid transparent; }
.cal-month.now { border-color: var(--purple); }
.cal-month-head { appearance: none; border: 0; background: var(--offwhite); display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; font: inherit; color: var(--text); cursor: pointer; text-align: left; }
.cal-month-head:hover { background: var(--lavender); }
.cal-count { background: var(--night-violet); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.cal-month-body { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.cal-month-body .ev { display: block; border-radius: 6px; padding: 3px 7px; font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--night-violet); }
.cal-month-body .ev.partners { background: var(--lavender); } .cal-month-body .ev.employees { background: #DCEFFC; } .cal-month-body .ev.customers { background: #F1EDD3; }
.ev-day { display: inline-block; min-width: 18px; font-weight: 800; margin-right: 4px; opacity: .7; }
@media (max-width: 1100px) { .cal-year { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cal-year { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dx-choice { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.dx-opt { appearance: none; display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; color: var(--text); cursor: pointer; }
.dx-opt:hover:not(:disabled) { border-color: #cfc6e0; }
.dx-opt.on { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(170, 147, 255, .2); background: #FCFAFF; }
.dx-opt > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.dx-opt b { font-size: 14px; }
.dx-opt-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--lavender); display: grid; place-items: center; flex: none; color: var(--night-violet); }
.dx-opt.on .dx-opt-icon { background: var(--purple); }

.side .logo { height: 40px; width: auto; align-self: flex-start; margin: 4px 8px 4px; }
