/* =========================================================
   FormYar — publishing settings + public landing/chat/kiosk
   ========================================================= */

/* ==================== admin: publish page ==================== */
.publish-content { padding-bottom: 96px; }
.pub-form-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.pfp-main { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1; }
.pfp-icon { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(4, 120, 87, .11); color: var(--accent); }
.pfp-icon .icon { width: 18px; height: 18px; }
.pfp-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pfp-copy > span { font-size: 9px; color: var(--muted-2); font-weight: 700; }
.pfp-copy select { border: 0; background: transparent; color: var(--text); font-family: inherit; font-size: 12px; font-weight: 800; padding: 0; max-width: 360px; }
.pfp-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.publish-layout { display: grid; grid-template-columns: minmax(0, 1fr) 358px; gap: 16px; align-items: start; }
.publish-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pub-section { padding: 18px 20px; }
.pub-section-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.psh-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.psh-icon.small { width: 29px; height: 29px; border-radius: 8px; }
.psh-icon .icon { width: 16px; height: 16px; }
.pub-section-head > div:nth-child(2) { flex: 1; min-width: 0; }
.pub-section-head h3 { font-size: 13.5px; }
.pub-section-head p { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; line-height: 1.7; }

.mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mode-card { position: relative; border: 1px solid var(--line); border-radius: 13px; padding: 13px 12px; background: var(--surface-2); cursor: pointer; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: .16s; }
.mode-card:hover { border-color: var(--accent-line, var(--line)); }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft, rgba(4, 120, 87, .07)); box-shadow: inset 0 0 0 1px var(--accent); }
.mc-visual { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--muted); }
.mc-visual .icon { width: 17px; height: 17px; }
.mode-card:has(input:checked) .mc-visual { color: var(--accent); background: var(--surface); }
.mc-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mc-copy b { font-size: 11.5px; }
.mc-copy small { font-size: 9.5px; color: var(--muted-2); line-height: 1.8; }
.mc-check { position: absolute; top: 9px; inset-inline-end: 9px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: transparent; background: var(--surface); }
.mc-check .icon { width: 11px; height: 11px; }
.mode-card:has(input:checked) .mc-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.pub-note { display: flex; align-items: flex-start; gap: 6px; margin-top: 11px; font-size: 9.5px; color: var(--muted-2); line-height: 1.9; background: var(--surface-2); border-radius: 9px; padding: 8px 10px; }
.pub-note .icon { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--accent); }

.domain-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.domain-input-wrap { display: flex; align-items: center; gap: 0; flex: 1; min-width: 220px; height: 40px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding-inline: 10px; }
.domain-input-wrap > span { color: var(--muted-2); font-size: 10px; direction: ltr; }
.domain-input-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-family: inherit; font-size: 11.5px; height: 100%; outline: none; direction: ltr; text-align: left; padding: 0 5px; }
.domain-help { margin-top: 10px; border: 1px dashed var(--line); border-radius: 10px; padding: 9px 11px; }
.dh-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dh-key { font-size: 9px; font-weight: 800; background: var(--surface-2); color: var(--muted); border-radius: 5px; padding: 2px 6px; }
.domain-help code { font-size: 10px; color: var(--text); direction: ltr; background: var(--surface-2); border-radius: 5px; padding: 3px 7px; }
.domain-help p { font-size: 9.5px; color: var(--muted-2); line-height: 1.9; margin-top: 6px; }
.domain-status { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--mint-line, rgba(32, 180, 134, .25)); background: var(--mint-soft, #ecfdf5); border-radius: 11px; }
.ds-icon { width: 31px; height: 31px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #15803d; }
.ds-icon .icon { width: 16px; height: 16px; }
.domain-status > div:not(.ds-actions) { flex: 1; min-width: 0; }
.ds-actions { display: flex; align-items: center; gap: 5px; flex: none; }
.domain-status b { display: block; font-size: 11px; }
.domain-status small { display: block; font-size: 9.5px; color: var(--muted-2); direction: ltr; text-align: left; overflow: hidden; text-overflow: ellipsis; }

.integration-select { height: 40px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 0 10px; font-family: inherit; font-size: 10.5px; outline: none; cursor: pointer; }
.integration-select:focus { border-color: var(--accent); }
.dh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dh-head b { font-size: 10.5px; }
.dh-head > span { font-size: 9px; color: var(--accent); background: var(--accent-soft, rgba(4,120,87,.08)); border-radius: 20px; padding: 3px 8px; }
.dns-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.dns-record { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 8px; }
.dr-key { font-size: 8.5px; font-weight: 800; color: var(--accent); background: var(--surface-2); border-radius: 5px; padding: 3px 6px; white-space: nowrap; direction: ltr; }
.dr-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dr-body b { font-size: 9.5px; color: var(--text); direction: ltr; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-body code { font-size: 9.5px; color: var(--accent); direction: ltr; text-align: left; white-space: nowrap; overflow-x: auto; background: transparent; padding: 0; }
.dr-body small { font-size: 8.8px; color: var(--muted-2); line-height: 1.7; }

.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.integration-grid .field { margin: 0; }
.integration-grid .field > span { font-size: 9.5px; }
.integration-grid .field > input { height: 38px; font-size: 11px; }
.integration-grid .field.span-2 { grid-column: 1 / -1; }
.sms-key-wrap { display: flex; align-items: center; gap: 5px; }
.sms-key-wrap input { flex: 1; min-width: 0; height: 38px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-family: inherit; font-size: 11px; direction: ltr; text-align: left; }
.sms-key-wrap input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent); }
.sms-events { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sms-events .switch-row { white-space: normal; }
.sms-reply-field { margin-top: 10px; }
.sms-reply-field > span { font-size: 9.5px; }
.sms-reply-field textarea { font-size: 11px; min-height: 58px; }
.sms-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sms-feedback { font-size: 9.5px; color: var(--muted-2); line-height: 1.8; }
.sms-feedback.is-error { color: #dc2626; }
[data-theme="dark"] .sms-feedback.is-error { color: #fca5a5; }
.sms-api-example { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sae-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 9px; background: var(--surface-2); }
.sae-head b { font-size: 10px; }
.sms-api-example pre { margin: 0; padding: 10px; background: #08231c; color: #d1fae5; font-size: 9.5px; line-height: 1.8; overflow: auto; direction: ltr; text-align: left; max-height: 190px; white-space: pre; }
.sms-api-example p { margin: 0; padding: 8px 10px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--muted-2); line-height: 1.9; }
.sms-log-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.sms-log-head b { font-size: 10.5px; }
.sms-log { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.sms-log-empty { border: 1px dashed var(--line); border-radius: 9px; padding: 10px; font-size: 9.5px; color: var(--muted-2); line-height: 1.9; }
.sms-log-row { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px; padding: 7px 8px; }
.slr-icon { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft, rgba(4,120,87,.08)); color: var(--accent); }
.slr-icon .icon { width: 13px; height: 13px; }
.slr-copy { flex: 1; min-width: 0; }
.slr-copy b { display: block; font-size: 9.5px; }
.slr-copy small { display: block; font-size: 9px; color: var(--muted-2); direction: ltr; text-align: left; }
.slr-copy p { font-size: 9px; color: var(--muted-2); line-height: 1.8; margin-top: 2px; }
.slr-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.slr-meta small { font-size: 8px; color: var(--muted-2); white-space: nowrap; }

.brand-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logo-preview { width: 74px; height: 74px; flex: none; border-radius: 16px; border: 1px dashed var(--line); background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.logo-preview img { max-width: 65%; max-height: 65%; object-fit: contain; }
.logo-preview.is-custom img { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: cover; }
.brand-copy { flex: 1; min-width: 200px; }
.brand-copy b { font-size: 11.5px; }
.brand-copy p { font-size: 9.5px; color: var(--muted-2); line-height: 1.9; margin: 2px 0 8px; }
.brand-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.switch-row { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.switch-row.compact { margin-inline-start: auto; }
.switch-row .switch { width: 34px; height: 19px; border-radius: 20px; border: 0; background: var(--line-2); position: relative; cursor: pointer; transition: .18s; }
.switch-row .switch::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: #fff; top: 3px; right: 3px; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch-row .switch.on { background: var(--accent); }
.switch-row .switch.on::after { right: 18px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field-grid .field { margin: 0; }
.field-grid .field > span { font-size: 9.5px; }
.field-grid input { height: 36px; font-size: 11px; }
.theme-picker { margin-top: 16px; }
.tp-head { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 8px; }
.tp-head b { font-size: 11px; }
.tp-head small { font-size: 9.5px; color: var(--muted-2); }
.theme-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.theme-card { position: relative; display: flex; flex-direction: column; gap: 5px; text-align: start; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 7px; cursor: pointer; font-family: inherit; color: var(--text); min-width: 0; }
.theme-card:hover { border-color: var(--accent-line, var(--line)); }
.theme-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.tc-swatch { height: 25px; border-radius: 6px; border: 1px solid rgba(0,0,0,.05); }
.tc-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tc-copy b { font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-copy small { font-size: 8px; color: var(--muted-2); line-height: 1.5; display: none; }
.tc-check { position: absolute; top: 4px; inset-inline-end: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; display: none; place-items: center; }
.tc-check .icon { width: 9px; height: 9px; }
.theme-card.active .tc-check { display: grid; }
.theme-grid .theme-card:nth-child(n+4) .tc-copy small { display: none; }

.video-block { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.vb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vb-head > div:nth-child(2) { flex: 1; min-width: 180px; }
.vb-head b { font-size: 11px; }
.vb-head small { display: block; font-size: 9.5px; color: var(--muted-2); margin-top: 1px; }
.video-preview { margin-top: 9px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 11px; padding: 8px; flex-wrap: wrap; }
.video-preview video { width: 150px; height: 84px; border-radius: 8px; background: #000; object-fit: cover; }
.vp-meta { flex: 1; min-width: 120px; }
.vp-meta b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-meta small { font-size: 9px; color: var(--muted-2); }
.video-empty { margin-top: 9px; display: flex; align-items: center; gap: 9px; border: 1px dashed var(--line); border-radius: 11px; padding: 12px; color: var(--muted-2); }
.video-empty > .icon { width: 22px; height: 22px; color: var(--accent); }
.video-empty b { display: block; font-size: 10.5px; color: var(--text); }
.video-empty small { font-size: 9.5px; }

.css-helper { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 9px; }
.ch-list { display: flex; flex-direction: column; gap: 3px; font-size: 9.5px; color: var(--muted-2); line-height: 1.8; }
.ch-list b { font-size: 10px; color: var(--text); }
.ch-list code { background: var(--surface-2); border-radius: 4px; padding: 1px 4px; direction: ltr; display: inline-block; color: var(--text); font-size: 9px; }
.ch-snippets { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 20px; font-family: inherit; font-size: 9px; padding: 4px 8px; cursor: pointer; }
.chip-btn:hover { border-color: var(--accent-line, var(--line)); color: var(--text); }
.css-editor { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #0b1a16; }
.ce-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: #102821; color: #b7e8d8; font-size: 9px; }
.ce-head span { display: inline-flex; align-items: center; gap: 4px; }
.ce-head .icon { width: 11px; height: 11px; }
.ce-hint { opacity: .65; }
.css-editor textarea { width: 100%; min-height: 130px; resize: vertical; border: 0; background: #0b1a16; color: #d1fae5; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10.5px; line-height: 1.8; padding: 10px 12px; outline: none; direction: ltr; text-align: left; }

.publish-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 78px; }
.pub-preview { padding: 13px; }
.pub-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pub-preview-head h3 { font-size: 11.5px; }
.landing-mini { position: relative; border-radius: 13px; overflow: hidden; min-height: 238px; background: linear-gradient(135deg, #ecfdf5, #f0fdfa 55%, #ecfeff); color: #0c1f19; padding: 14px; display: flex; align-items: flex-end; isolation: isolate; }
.lm-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 80% 10%, rgba(16, 185, 129, .35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(14, 165, 164, .25), transparent 45%); }
.lm-inner { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.lm-brand { display: flex; align-items: center; gap: 5px; font-size: 9px; font-weight: 800; margin-bottom: 4px; }
.lm-brand img { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; background: rgba(255,255,255,.7); padding: 2px; }
.lm-chip { font-size: 7.5px; background: rgba(255,255,255,.78); border-radius: 20px; padding: 2px 6px; font-weight: 700; }
.landing-mini h4 { font-size: 17px; line-height: 1.4; margin-top: 4px; letter-spacing: -.3px; }
.landing-mini p { font-size: 8.5px; line-height: 1.8; opacity: .75; max-width: 90%; }
.lm-cta { margin-top: 6px; background: #0c1f19; color: #fff; border-radius: 7px; font-size: 8.5px; font-weight: 700; padding: 5px 10px; }
.lm-video { position: absolute; top: 13px; inset-inline-end: 13px; background: rgba(17, 21, 44, .72); color: #fff; border-radius: 7px; padding: 4px 7px; display: flex; align-items: center; gap: 4px; font-size: 7.5px; }
.lm-video .icon { width: 10px; height: 10px; }
.landing-mini.theme-minimal { background: #fff; border: 1px solid #e7e7e7; }
.landing-mini.theme-glass { background: linear-gradient(135deg, #ccfbf1, #a7f3d0 55%, #99f6e4); }
.landing-mini.theme-editorial { background: #faf7f2; }
.landing-mini.theme-neon { background: #071713; color: #f4f8ff; }
.landing-mini.theme-neon .lm-cta { background: #34d399; color: #06111f; }
.landing-mini.theme-neon .lm-chip { background: rgba(52, 211, 153, .18); color: #a7f3d0; }
.pub-preview-links { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.pub-preview-links .btn { flex: 1; justify-content: center; }
.pub-preview-foot { font-size: 8.5px; color: var(--muted-2); line-height: 1.8; margin-top: 6px; }

.pub-links .panel-head { padding-bottom: 8px; }
.pub-link-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); }
.pub-link-row:first-of-type { border-top: 0; }
.pl-icon { width: 27px; height: 27px; flex: none; display: grid; place-items: center; background: var(--surface-2); border-radius: 8px; color: var(--accent); }
.pl-icon .icon { width: 13px; height: 13px; }
.pub-link-row > div { flex: 1; min-width: 0; }
.pub-link-row b { display: block; font-size: 10px; }
.pub-link-row small { display: block; font-size: 8.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: left; }
.pub-link-row.landing { background: var(--surface-2); }

.pub-checklist .panel-head { padding-bottom: 8px; }
.pub-checklist ul { list-style: none; margin: 0; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.pub-checklist li { display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--muted-2); }
.pub-checklist li.ok { color: var(--text); }
.pcl-check { width: 17px; height: 17px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted-2); }
.pub-checklist li.ok .pcl-check { background: var(--mint-soft, #e8f8f0); color: #15803d; }
.pcl-check .icon { width: 10px; height: 10px; }

.pub-publish-box { padding: 16px; text-align: center; }
.ppb-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft, rgba(4, 120, 87,.1)); color: var(--accent); display: grid; place-items: center; margin: 0 auto 8px; }
.ppb-icon .icon { width: 19px; height: 19px; }
.pub-publish-box h3 { font-size: 12px; }
.pub-publish-box p { font-size: 9.5px; color: var(--muted-2); line-height: 1.9; margin: 4px 0 10px; }
.pub-publish-box .btn { margin-top: 5px; }

.publish-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px -18px rgba(18, 23, 48, .28);
}
.psb-copy { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.psb-copy b { font-size: 10.5px; }
.psb-copy small { font-size: 8.5px; color: var(--muted-2); }
.psb-dot { width: 7px; height: 7px; border-radius: 50%; background: #20b486; flex: none; }
.publish-savebar.is-dirty .psb-dot { background: #e1903d; box-shadow: 0 0 0 3px rgba(225,144,61,.16); }
.psb-actions { display: flex; align-items: center; gap: 6px; }
[hidden] { display: none !important; }

/* ==================== shared public brand ==================== */
.fy-pub-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; color: inherit; text-decoration: none; flex: none; }
.fy-pub-brand-mark { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.fy-pub-brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.pub-nav .fy-pub-brand { font-size: 16px; }
.fy-landing .fy-pub-brand { font-size: 16px; }

/* theme overrides for form renderer */
.fy-theme-minimal .fy-public { --fy-bg: #f7f7f5; --fy-card: #fff; --fa-accent: #111827; --fy-shadow: 0 18px 60px -30px rgba(0,0,0,.22); }
.fy-theme-glass .fy-public { --fy-bg: linear-gradient(135deg, #ecfdf5, #ccfbf1 55%, #ecfeff); --fy-card: rgba(255,255,255,.78); --fa-accent: #047857; }
.fy-theme-editorial .fy-public { --fy-bg: #faf7f2; --fy-card: #fffdf9; --fa-accent: #111827; }
.fy-theme-neon .fy-public { --fy-bg: #06110f; --fy-card: #0e211d; --fy-card-2: #122a24; --fy-ink: #ecfdf5; --fy-ink-2: #cfeee3; --fy-muted: #9bb9b0; --fy-muted-2: #78948b; --fy-line: #1d3a32; --fy-line-2: #294c42; --fy-soft: #112c26; --fa-accent: #34d399; --fy-shadow: 0 30px 80px -32px rgba(0,0,0,.7); }

/* ==================== public landing ==================== */
.landing-body { margin: 0; background: #f2faf6; }
.fy-landing {
  --fl-bg: #f0fdfa;
  --fl-card: #fff;
  --fl-ink: #0c1f19;
  --fl-muted: #5b746d;
  --fl-line: rgba(12, 31, 25, .1);
  --fl-accent: #047857;
  --fl-accent-2: #10b981;
  --fl-soft: rgba(255,255,255,.72);
  --fl-radius: 22px;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--fl-bg);
  color: var(--fl-ink);
  font-family: var(--font);
  isolation: isolate;
}
.fy-landing.theme-minimal { --fl-bg: #f7f7f4; --fl-card: #fff; --fl-accent: #111827; --fl-accent-2: #374151; --fl-radius: 6px; --fl-line: rgba(17,24,39,.14); }
.fy-landing.theme-glass { --fl-bg: linear-gradient(135deg, #ecfdf5, #ccfbf1 55%, #e5fbff); --fl-card: rgba(255,255,255,.66); --fl-soft: rgba(255,255,255,.55); --fl-accent: #047857; --fl-radius: 26px; }
.fy-landing.theme-editorial { --fl-bg: #faf7f2; --fl-card: #fffdf9; --fl-ink: #17130d; --fl-muted: #6b6254; --fl-accent: #17130d; --fl-accent-2: #8a5a2b; --fl-radius: 4px; --fl-line: rgba(23,19,13,.14); }
.fy-landing.theme-neon { --fl-bg: #06110f; --fl-card: rgba(14,33,29,.82); --fl-ink: #eefdf7; --fl-muted: #9bb9b0; --fl-line: rgba(255,255,255,.12); --fl-accent: #34d399; --fl-accent-2: #5eead4; --fl-soft: rgba(255,255,255,.05); --fl-radius: 20px; }
.fy-landing-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.fy-landing-bg .orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: .62; }
.fy-landing-bg .orb.a { width: 52vw; height: 52vw; max-width: 680px; max-height: 680px; top: -23vw; left: -12vw; background: radial-gradient(circle, rgba(16, 185, 129,.35), transparent 65%); }
.fy-landing-bg .orb.b { width: 45vw; height: 45vw; max-width: 580px; max-height: 580px; bottom: -20vw; right: -10vw; background: radial-gradient(circle, rgba(52, 211, 153,.25), transparent 65%); }
.fy-landing-bg .grid { position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(var(--fl-line) 1px, transparent 1px), linear-gradient(90deg, var(--fl-line) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 60%); }
.fy-landing.theme-neon .fy-landing-bg .orb.a { background: radial-gradient(circle, rgba(52, 211, 153,.26), transparent 65%); }
.fy-landing.theme-neon .fy-landing-bg .orb.b { background: radial-gradient(circle, rgba(45, 212, 191,.28), transparent 65%); }

.fy-landing-nav { display: flex; align-items: center; gap: 12px; max-width: 1180px; margin-inline: auto; padding: 18px clamp(16px, 4vw, 34px); position: relative; z-index: 3; }
.fy-landing-nav-right { margin-inline-start: auto; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.fy-landing-domain { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--fl-muted); background: var(--fl-soft); border: 1px solid var(--fl-line); border-radius: 20px; padding: 4px 9px; margin-inline-end: 3px; }
.fy-landing-domain .dot { width: 6px; height: 6px; border-radius: 50%; background: #20b486; }
.fy-landing-domain.demo .dot { background: #e1903d; }
.fln-link { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--fl-muted); border-radius: 8px; padding: 6px 8px; }
.fln-link:hover { background: var(--fl-soft); color: var(--fl-ink); }
.fln-link.active { color: var(--fl-accent); background: var(--fl-soft); }
.fln-link .icon { width: 13px; height: 13px; }
.fln-share { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--fl-line); background: var(--fl-soft); color: var(--fl-ink); display: grid; place-items: center; cursor: pointer; }
.fln-share .icon { width: 14px; height: 14px; }

.fy-landing-main { max-width: 1180px; margin-inline: auto; padding: 12px clamp(16px, 4vw, 34px) 34px; }
.fy-landing-hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(24px, 5vw, 58px); align-items: center; min-height: min(760px, calc(100vh - 140px)); padding: 24px 0 36px; }
.fy-landing-copy { min-width: 0; }
.fy-landing-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .3px; color: var(--fl-accent); background: var(--fl-soft); border: 1px solid var(--fl-line); border-radius: 20px; padding: 5px 10px; }
.fy-landing-kicker i { width: 6px; height: 6px; border-radius: 50%; background: var(--fl-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fl-accent) 15%, transparent); }
.fy-landing-title { font-size: clamp(31px, 5.4vw, 61px); line-height: 1.16; letter-spacing: -1.6px; margin: 15px 0 12px; font-weight: 900; }
.fy-landing-sub { font-size: clamp(12px, 1.4vw, 15px); line-height: 2; color: var(--fl-muted); max-width: 560px; }
.fy-landing-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.fy-landing-cta { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--fl-accent); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--fl-accent) 64%, transparent); transition: transform .16s, box-shadow .16s; }
.fy-landing-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--fl-accent) 72%, transparent); }
.fy-landing-cta .icon { width: 16px; height: 16px; }
.fy-landing.theme-neon .fy-landing-cta { color: #06111f; }
.fy-landing-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--fl-line); background: var(--fl-soft); color: var(--fl-ink); font-size: 11px; font-weight: 700; }
.fy-landing-secondary .icon { width: 14px; height: 14px; }
.fy-landing-secondary:hover { border-color: var(--fl-accent); color: var(--fl-accent); }
.fy-landing-stats { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; margin-top: 28px; border: 1px solid var(--fl-line); border-radius: 14px; background: var(--fl-soft); overflow: hidden; width: fit-content; max-width: 100%; }
.fy-landing-stats > div { padding: 11px 16px; border-inline-end: 1px solid var(--fl-line); min-width: 96px; }
.fy-landing-stats > div:last-child { border-inline-end: 0; }
.fy-landing-stats b { display: block; font-size: 18px; line-height: 1.2; }
.fy-landing-stats span { display: block; font-size: 8.5px; color: var(--fl-muted); margin-top: 2px; }
.fy-landing-trust { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 15px; font-size: 9.5px; color: var(--fl-muted); }
.fy-landing-trust span { display: inline-flex; align-items: center; gap: 4px; }
.fy-landing-trust .icon { width: 12px; height: 12px; color: var(--fl-accent); }

.fy-landing-media { position: relative; min-width: 0; }
.fy-landing-video-card { position: relative; border: 1px solid var(--fl-line); border-radius: var(--fl-radius); overflow: hidden; background: var(--fl-card); box-shadow: 0 30px 70px -32px rgba(6,26,20,.35); aspect-ratio: 4 / 3.15; display: flex; align-items: flex-end; }
.fy-landing.theme-neon .fy-landing-video-card { box-shadow: 0 30px 90px -30px rgba(0,0,0,.7); }
.fy-landing-video-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.fy-landing-video-card.has-video { background: #04130f; }
.fy-landing-video-card .flv-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flv-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,18,14,.78), rgba(4,18,14,.08) 60%); }
.flv-brand { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; align-items: center; gap: 6px; color: #fff; font-size: 10px; font-weight: 800; background: rgba(4,18,14,.44); backdrop-filter: blur(8px); border-radius: 20px; padding: 4px 8px; }
.flv-brand img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; }
.flv-play { position: absolute; z-index: 3; top: 50%; inset-inline-start: 50%; transform: translate(50%, -50%); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #0c1f19; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.flv-play .icon { width: 22px; height: 22px; margin-inline-start: 2px; }
.fy-landing-video-card.no-video .flv-play { animation: flvPulse 2.4s infinite; }
@keyframes flvPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); } 50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.flv-caption { position: absolute; z-index: 3; inset-inline: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 9px; font-weight: 600; background: rgba(4,18,14,.42); backdrop-filter: blur(8px); border-radius: 20px; padding: 4px 8px; width: fit-content; }
.flv-dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.flv-loading, .flv-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #fff; background: #071713; z-index: 1; text-align: center; padding: 16px; }
.flv-loading b { font-size: 10px; font-weight: 600; color: #d1fae5; }
.flv-pulse { width: 23px; height: 23px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #34d399; animation: spin 0.9s linear infinite; }
.flv-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.flv-fallback .flv-play { position: static; transform: none; margin-bottom: 4px; }
.flv-fallback div { position: relative; z-index: 1; }
.flv-fallback b { display: block; font-size: 11px; }
.flv-fallback small { font-size: 9px; color: #b7e8d8; }
.fy-landing-float { position: absolute; z-index: 4; inset-inline-start: -18px; bottom: -20px; display: flex; align-items: center; gap: 8px; background: var(--fl-card); border: 1px solid var(--fl-line); border-radius: 14px; padding: 9px 12px; box-shadow: 0 18px 40px -20px rgba(6,26,20,.35); max-width: 270px; }
.flf-icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--fl-accent) 12%, transparent); color: var(--fl-accent); }
.flf-icon .icon { width: 15px; height: 15px; }
.fy-landing-float b { display: block; font-size: 10px; }
.fy-landing-float small { display: block; font-size: 8px; color: var(--fl-muted); line-height: 1.6; }

.fy-landing-info { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; margin-top: 28px; }
.fy-landing-about { border: 1px solid var(--fl-line); background: var(--fl-card); border-radius: var(--fl-radius); padding: clamp(18px, 3vw, 30px); }
.fla-label { font-size: 9px; font-weight: 800; letter-spacing: .5px; color: var(--fl-accent); }
.fy-landing-about h2 { font-size: clamp(20px, 3vw, 30px); letter-spacing: -.6px; margin: 6px 0 7px; }
.fy-landing-about > p { font-size: 11.5px; line-height: 2; color: var(--fl-muted); }
.fy-landing-question-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.fy-landing-question-list span { display: inline-flex; align-items: center; gap: 4px; font-size: 9.5px; border: 1px solid var(--fl-line); background: var(--fl-soft); border-radius: 20px; padding: 4px 8px; color: var(--fl-muted); }
.fy-landing-question-list span .icon { width: 11px; height: 11px; color: var(--fl-accent); }
.fy-landing-question-list span.more { color: var(--fl-accent); font-weight: 700; }
.fy-landing-features { display: grid; grid-template-columns: 1fr; gap: 9px; }
.fy-landing-features article { border: 1px solid var(--fl-line); background: var(--fl-card); border-radius: calc(var(--fl-radius) * .75); padding: 13px 15px; display: grid; grid-template-columns: 32px 1fr; column-gap: 9px; align-items: center; }
.fy-landing-features article > span { grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--fl-accent) 10%, transparent); color: var(--fl-accent); }
.fy-landing-features article > span .icon { width: 15px; height: 15px; }
.fy-landing-features b { font-size: 11px; }
.fy-landing-features p { font-size: 9.5px; color: var(--fl-muted); line-height: 1.8; }

.fy-landing-cta-band { margin-top: 20px; border-radius: var(--fl-radius); padding: clamp(20px, 4vw, 36px); background: linear-gradient(120deg, var(--fl-accent), var(--fl-accent-2)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.fy-landing.theme-neon .fy-landing-cta-band { color: #06111f; }
.fy-landing-cta-band::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); top: -100px; inset-inline-end: -40px; }
.flc-kicker { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; font-weight: 800; opacity: .86; }
.flc-kicker .icon { width: 12px; height: 12px; }
.fy-landing-cta-band h2 { font-size: clamp(19px, 3vw, 28px); margin: 3px 0; letter-spacing: -.5px; }
.fy-landing-cta-band p { font-size: 10.5px; opacity: .82; max-width: 560px; line-height: 1.9; }
.fy-landing-cta-band .fy-landing-cta { background: #fff; color: #0c1f19; box-shadow: 0 14px 30px -16px rgba(0,0,0,.34); position: relative; z-index: 1; }
.fy-landing-foot { max-width: 1180px; margin-inline: auto; padding: 22px clamp(16px, 4vw, 34px) 30px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--fl-muted); font-size: 9.5px; border-top: 1px solid var(--fl-line); }
.fy-landing-foot span { display: inline-flex; align-items: center; gap: 4px; }
.fy-landing-foot .icon { width: 12px; height: 12px; color: var(--fl-accent); }
.fy-landing-missing { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f0fdfa; }
.flm-card { max-width: 400px; width: 100%; text-align: center; background: #fff; border: 1px solid #dfeee8; border-radius: 20px; padding: 30px; }
.flm-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: #fff7e8; color: #b45309; margin: 0 auto 10px; }
.flm-icon .icon { width: 24px; height: 24px; }
.flm-card h1 { font-size: 18px; margin-bottom: 5px; }
.flm-card p { font-size: 11px; color: #5b746d; line-height: 1.9; margin-bottom: 14px; }

/* ==================== public chat form ==================== */
.chat-body { margin: 0; background: #eef8f4; overflow: hidden; }
.fy-chat {
  --chat-accent: var(--brand, #047857);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse 60% 40% at 85% 0%, rgba(4, 120, 87,.1), transparent 65%), radial-gradient(ellipse 50% 35% at 10% 5%, rgba(16,185,129,.07), transparent 65%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
}
.fy-chat-nav { height: 62px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 clamp(14px, 3vw, 30px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(14px); }
.fy-chat-nav-center { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; justify-content: center; }
.fy-chat-nav-center b { font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-live { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: #15803d; background: rgba(32,180,134,.11); border-radius: 20px; padding: 3px 7px; white-space: nowrap; }
.chat-live i { width: 5px; height: 5px; border-radius: 50%; background: #20b486; box-shadow: 0 0 0 3px rgba(32,180,134,.15); }
.fy-chat-nav-right { display: flex; align-items: center; gap: 2px; }
.chat-body .fln-link { color: var(--muted-2); }
.chat-body .fln-link .icon { width: 13px; height: 13px; }
.fy-chat-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 278px minmax(0, 1fr); gap: 14px; width: 100%; max-width: 1180px; margin-inline: auto; padding: 14px; overflow: hidden; }
.fy-chat-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px; }
.chat-side-head { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; padding: 10px; }
.chat-side-logo { width: 35px; height: 35px; flex: none; border-radius: 9px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.chat-side-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.chat-side-head > div { min-width: 0; }
.chat-side-head b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-side-head small { display: block; font-size: 8.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-progress-card { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 11px; }
.cpc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--muted-2); }
.cpc-head b { color: var(--accent); font-size: 11px; }
.chat-progress-track { height: 6px; border-radius: 20px; background: var(--surface-2); overflow: hidden; margin: 7px 0 4px; }
.chat-progress-track span { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--accent), #20b486); transition: width .35s; }
.chat-progress-card > small { font-size: 8.5px; color: var(--muted-2); }
.chat-field-list { display: flex; flex-direction: column; gap: 3px; }
.chat-field-item { display: flex; align-items: center; gap: 7px; text-align: start; border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 7px 7px; color: var(--text); cursor: default; font-family: inherit; min-width: 0; }
.chat-field-item:hover { background: var(--surface-2); }
.chat-field-item.done { background: var(--surface); border-color: var(--line); }
.chat-field-item.current { border-color: var(--accent-line, var(--line)); background: var(--accent-soft, rgba(4, 120, 87,.07)); }
.chat-field-item.hidden { opacity: .35; }
.cfi-check { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted-2); }
.cfi-check .icon { width: 11px; height: 11px; }
.chat-field-item.done .cfi-check { background: rgba(32,180,134,.12); color: #15803d; }
.chat-field-item.current .cfi-check { background: var(--accent); color: #fff; }
.chat-field-item > span:last-child { min-width: 0; }
.chat-field-item b { display: block; font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-field-item small { display: block; font-size: 8px; color: var(--muted-2); }
.chat-side-note { margin-top: auto; display: flex; align-items: flex-start; gap: 5px; font-size: 8.5px; color: var(--muted-2); line-height: 1.8; padding: 8px 4px; }
.chat-side-note .icon { width: 12px; height: 12px; flex: none; margin-top: 2px; color: #20b486; }

.fy-chat-window { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: 0 26px 70px -40px rgba(18,23,48,.3); }
.fy-chat-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-bot-avatar { position: relative; width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.chat-bot-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.chat-bot-avatar i.online { position: absolute; bottom: -1px; left: -1px; width: 9px; height: 9px; border-radius: 50%; background: #20b486; border: 2px solid var(--surface); }
.fbh-copy { flex: 1; min-width: 0; }
.fbh-copy b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fbh-copy small { display: flex; align-items: center; gap: 4px; font-size: 8.5px; color: var(--muted-2); }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #20b486; }
.fbh-progress { display: flex; flex-direction: column; align-items: center; gap: 0; background: var(--surface-2); border-radius: 8px; padding: 3px 8px; }
.fbh-progress span { font-size: 10.5px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.fbh-progress small { font-size: 7px; color: var(--muted-2); }
.fbh-menu { width: 28px; height: 28px; }

.fy-chat-log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 11px; scroll-behavior: smooth; }
.chat-msg { display: flex; align-items: flex-end; gap: 7px; max-width: 83%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; flex-direction: row; }
.chat-avatar { width: 27px; height: 27px; flex: none; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.chat-avatar.user { background: var(--surface-2); color: var(--muted); }
.chat-avatar.user .icon { width: 13px; height: 13px; }
.chat-bubble-wrap { min-width: 0; }
.chat-bubble { position: relative; background: var(--surface-2); border-radius: 13px 13px 13px 4px; padding: 9px 11px 15px; font-size: 11px; line-height: 1.9; color: var(--text); word-break: break-word; }
.chat-msg.user .chat-bubble { background: var(--accent); color: #fff; border-radius: 13px 13px 4px 13px; padding-bottom: 15px; }
.chat-bubble time { position: absolute; bottom: 4px; inset-inline-start: 9px; font-size: 7px; opacity: .55; }
.chat-msg.user .chat-bubble time { inset-inline-start: auto; inset-inline-end: 9px; }
.chat-q { min-width: 0; }
.chat-q p { font-size: 11.5px; font-weight: 700; line-height: 1.8; margin: 2px 0; }
.chat-q small { display: block; font-size: 9.5px; color: var(--muted-2); line-height: 1.8; }
.chat-req, .chat-opt { display: inline-block; font-size: 7px; font-weight: 700; border-radius: 20px; padding: 1px 6px; margin-bottom: 2px; }
.chat-req { background: rgba(217,83,79,.11); color: #c93737; }
.chat-opt { background: var(--surface); color: var(--muted-2); }
.chat-q-meta { display: flex; align-items: center; gap: 4px; font-size: 9px; color: var(--accent); background: var(--surface); border-radius: 6px; padding: 3px 6px; margin-top: 4px; }
.chat-q-meta .icon { width: 11px; height: 11px; }
.chat-error { color: #c93737; font-size: 10px; display: flex; align-items: center; gap: 4px; }
.chat-error .icon { width: 12px; height: 12px; }
.chat-welcome { display: flex; gap: 8px; align-items: flex-start; }
.chat-wave { font-size: 19px; line-height: 1; }
.chat-welcome b { font-size: 11.5px; }
.chat-welcome p { font-size: 10px; line-height: 1.9; color: var(--muted); margin: 2px 0; }
.chat-welcome small { font-size: 8.5px; color: var(--muted-2); }
.chat-success { text-align: center; padding: 4px 6px; }
.chat-success-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(32,180,134,.12); color: #15803d; margin: 0 auto 5px; }
.chat-success-icon .icon { width: 21px; height: 21px; }
.chat-success h3 { font-size: 13px; }
.chat-success p { font-size: 10px; color: var(--muted); line-height: 1.9; margin: 2px 0 6px; }
.chat-score { display: inline-flex; align-items: center; gap: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 4px 10px; font-size: 9.5px; }
.chat-score b { font-size: 15px; color: var(--accent); }
.chat-score span { color: var(--muted-2); }
.chat-score.passed b { color: #15803d; }
.chat-success-meta { display: flex; justify-content: center; gap: 11px; margin-top: 7px; font-size: 8px; color: var(--muted-2); }
.chat-success-meta span { display: inline-flex; align-items: center; gap: 3px; }
.chat-success-meta .icon { width: 10px; height: 10px; }
.chat-typing { flex: none; display: flex; align-items: flex-end; gap: 7px; padding: 0 14px 7px; }
.typing-bubble { display: flex; align-items: center; gap: 3px; background: var(--surface-2); border-radius: 12px 12px 12px 4px; padding: 8px 10px; }
.typing-bubble i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); animation: typing 1.1s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .15s; }
.typing-bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }

.fy-chat-composer { flex: none; padding: 7px 12px 2px; border-top: 1px solid var(--line); background: var(--surface); }
.fy-chat-composer.is-disabled { opacity: .55; pointer-events: none; }
.chat-text-form { display: flex; align-items: flex-end; gap: 6px; }
.chat-text-form input, .chat-text-form textarea { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 9px 11px; font-family: inherit; font-size: 11px; outline: none; resize: none; }
.chat-text-form input:focus, .chat-text-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent); }
.chat-send { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-send .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.chat-options { display: flex; flex-wrap: wrap; gap: 5px; }
.chat-option { display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); border-radius: 9px; padding: 8px 10px; font-family: inherit; font-size: 10.5px; cursor: pointer; min-width: 100px; }
.chat-option:hover { border-color: var(--accent); color: var(--accent); }
.chat-option .icon { width: 12px; height: 12px; opacity: .5; }
.chat-option.multi { justify-content: flex-start; }
.chat-option.multi.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--surface-2)); color: var(--accent); }
.chat-multi-check { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); display: grid; place-items: center; color: transparent; }
.chat-multi-check .icon { width: 9px; height: 9px; opacity: 1; }
.chat-option.multi.selected .chat-multi-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.chat-multi-actions { margin-top: 6px; display: flex; justify-content: flex-end; }
.chat-scale { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chat-star { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted-2); display: grid; place-items: center; cursor: pointer; }
.chat-star:hover { color: #e1903d; border-color: #e1903d; background: rgba(225,144,61,.08); }
.chat-star .icon { width: 17px; height: 17px; fill: currentColor; }
.chat-nps, .chat-likert { min-width: 28px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 10px; cursor: pointer; }
.chat-nps:hover, .chat-likert:hover { border-color: var(--accent); color: var(--accent); }
.chat-scale-labels { display: flex; justify-content: space-between; margin-top: 3px; font-size: 7.5px; color: var(--muted-2); }
.chat-file { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-file-label { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed var(--accent); background: rgba(4, 120, 87,.07); color: var(--accent); border-radius: 9px; padding: 7px 10px; font-size: 10px; cursor: pointer; }
.chat-file-label .icon { width: 13px; height: 13px; }
.chat-file > span { font-size: 9.5px; color: var(--muted-2); }
.chat-payment { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 9px 10px; }
.chat-payment b { display: block; font-size: 12px; }
.chat-payment small { display: block; font-size: 8.5px; color: var(--muted-2); }
.chat-signature { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 9px 10px; }
.chat-signature > span { width: 27px; height: 27px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; color: var(--accent); }
.chat-signature > span .icon { width: 14px; height: 14px; }
.chat-signature > div { flex: 1; }
.chat-signature b { display: block; font-size: 10px; }
.chat-signature small { display: block; font-size: 8.5px; color: var(--muted-2); }
.chat-matrix { display: flex; flex-direction: column; gap: 5px; margin-bottom: 7px; }
.chat-matrix label { display: flex; align-items: center; gap: 8px; justify-content: space-between; background: var(--surface-2); border-radius: 8px; padding: 5px 8px; }
.chat-matrix label span { font-size: 9.5px; }
.chat-matrix select { height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-family: inherit; font-size: 9px; padding: 0 5px; }
.chat-composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 3px 1px 5px; font-size: 7.5px; color: var(--muted-2); }
.chat-skip, .chat-restart-mini { border: 0; background: transparent; color: var(--muted-2); font-family: inherit; font-size: 8px; cursor: pointer; padding: 2px 4px; }
.chat-skip:hover, .chat-restart-mini:hover { color: var(--accent); }
.chat-waiting { padding: 8px 4px 10px; font-size: 9px; color: var(--muted-2); }
.chat-spinner { width: 11px; height: 11px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; }
.chat-finish-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 3px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.fy-chat-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 13px 6px; font-size: 7px; color: var(--muted-2); }
.fy-chat-foot span { display: inline-flex; align-items: center; gap: 3px; }
.fy-chat-foot .icon { width: 9px; height: 9px; }

/* ==================== kiosk ==================== */
.kiosk-body { margin: 0; overflow: hidden; background: #071713; }
.fy-kiosk { height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse 50% 45% at 50% 0%, rgba(4, 120, 87,.2), transparent 70%), #f3faf6; color: var(--text); font-family: var(--font); overflow: hidden; }
.fy-kiosk-nav { height: 58px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(12px); z-index: 5; }
.kiosk-mode { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; justify-content: center; font-size: 10px; color: var(--muted-2); }
.kiosk-mode > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kiosk-live { display: inline-flex; align-items: center; gap: 4px; color: #15803d; background: rgba(32,180,134,.1); border-radius: 20px; padding: 3px 7px; }
.kiosk-live i { width: 5px; height: 5px; border-radius: 50%; background: #20b486; }
.kiosk-nav-right { display: flex; align-items: center; gap: 2px; }
.fy-kiosk-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.fy-kiosk-attract { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; overflow: hidden; transition: opacity .25s, transform .25s; }
.fy-kiosk-attract.leaving { opacity: 0; transform: scale(1.02); }
.kiosk-attract-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(.78) brightness(.72); }
.kiosk-attract-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,20,15,.92), rgba(4,20,15,.68) 50%, rgba(4,20,15,.78)); }
.kiosk-attract-card { position: relative; z-index: 1; text-align: center; max-width: 620px; color: #fff; display: flex; flex-direction: column; align-items: center; }
.kac-logo { width: 76px; height: 76px; border-radius: 20px; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.3); margin-bottom: 12px; }
.kac-logo img { max-width: 70%; max-height: 70%; object-fit: contain; }
.kac-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 4px 9px; backdrop-filter: blur(8px); }
.kac-chip .icon { width: 11px; height: 11px; }
.kiosk-attract-card h1 { font-size: clamp(26px, 5vw, 50px); line-height: 1.2; letter-spacing: -1px; margin: 11px 0 6px; }
.kiosk-attract-card p { font-size: 12px; line-height: 2; color: rgba(255,255,255,.76); max-width: 490px; }
.kac-stats { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 14px 0 19px; }
.kac-stats span { font-size: 9px; color: rgba(255,255,255,.62); }
.kac-stats b { display: block; font-size: 20px; color: #fff; line-height: 1.2; }
.kiosk-start { border: 0; background: #fff; color: #0c1f19; border-radius: 14px; min-height: 54px; padding: 0 23px; display: inline-flex; align-items: center; gap: 10px; font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer; box-shadow: 0 18px 40px rgba(0,0,0,.28); transition: transform .16s; }
.kiosk-start:hover { transform: translateY(-2px); }
.ks-pulse { width: 29px; height: 29px; border-radius: 50%; background: #0c1f19; color: #fff; display: grid; place-items: center; animation: ksPulse 1.8s infinite; }
.ks-pulse .icon { width: 14px; height: 14px; }
@keyframes ksPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(16,21,45,.25); } 50% { box-shadow: 0 0 0 9px rgba(16,21,45,0); } }
.kac-note { display: inline-flex; align-items: center; gap: 4px; font-size: 8.5px; color: rgba(255,255,255,.55); margin-top: 13px; }
.kac-note .icon { width: 11px; height: 11px; }
.fy-kiosk-form { position: relative; height: 100%; overflow-y: auto; padding: 0 18px 34px; }
.kiosk-form-top { max-width: 720px; margin: 0 auto; padding: 10px 2px 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--muted-2); }
.kiosk-form-top span { display: inline-flex; align-items: center; gap: 4px; }
.kiosk-form-top .icon { width: 12px; height: 12px; }
.kiosk-form-top .btn .icon { width: 12px; height: 12px; }
.fy-kiosk-form .fy-public { min-height: 0; padding: 0; background: transparent; max-width: 720px; margin-inline: auto; }
.fy-kiosk-form .fy-public::before, .fy-kiosk-form .fy-form-hero { display: none; }
.fy-kiosk-form .fy-form-card { border-radius: 18px; border-top: 1px solid var(--fy-line); box-shadow: 0 22px 60px -28px rgba(16, 21, 50, .28); }
.fy-kiosk-form .fy-form { padding: 24px 24px 26px; }
.fy-kiosk-form .fy-form-shell { margin-top: 0; }
.fy-kiosk-form .fy-success-actions { display: none; }
.fy-kiosk-form .fy-public.is-success { min-height: calc(100dvh - 140px); display: flex; align-items: center; justify-content: center; }
.fy-kiosk-form .fy-public.is-success .fy-form-shell { width: 100%; }
.fy-kiosk-form .fy-public.is-success .fy-form-card { width: 100%; }
.kiosk-success-actions { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 14px; }
.ksa-countdown { font-size: 8.5px; color: var(--muted-2); }
.ksa-countdown b { color: var(--accent); font-size: 12px; }
.fy-kiosk-foot { flex: none; height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 20px; border-top: 1px solid var(--line); font-size: 7.5px; color: var(--muted-2); background: var(--surface); }
.fy-kiosk-foot span { display: inline-flex; align-items: center; gap: 3px; }
.fy-kiosk-foot .icon { width: 9px; height: 9px; }

/* ==================== responsive ==================== */
@media (max-width: 1150px) {
  .publish-layout { grid-template-columns: 1fr; }
  .publish-side { position: static; display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; }
  .pub-publish-box, .pub-checklist { display: none; }
  .fy-landing-hero { min-height: 0; }
}
@media (max-width: 900px) {
  .theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fy-landing-hero { grid-template-columns: 1fr; gap: 38px; padding-top: 14px; }
  .fy-landing-media { max-width: 560px; width: 100%; margin-inline: auto; }
  .fy-landing-float { inset-inline-start: 10px; }
  .fy-landing-info { grid-template-columns: 1fr; }
  .fy-chat-main { grid-template-columns: 1fr; padding: 10px; }
  .fy-chat-side { display: none; }
  .fy-chat-nav-center { display: none; }
  .fy-chat-nav-right .fln-link span { display: none; }
  .publish-side { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .publish-content { padding-bottom: 152px; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card { flex-direction: row; align-items: center; }
  .mc-copy small { display: none; }
  .mc-check { top: 50%; transform: translateY(-50%); inset-inline-end: 12px; }
  .mode-card { padding-inline-end: 38px; }
  .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-grid .field.span-2 { grid-column: auto; }
  .sms-events { flex-direction: column; align-items: flex-start; gap: 7px; }
  .pub-section { padding: 15px; }
  .pub-section-head { flex-wrap: wrap; }
  .pub-section-head > .badge, .pub-section-head > .switch-row { margin-inline-start: 0; }
  .brand-row { align-items: flex-start; }
  .switch-row { width: 100%; }
  .css-helper { flex-direction: column; }
  .pub-form-picker { align-items: flex-start; }
  .pfp-main { flex: 1 0 100%; flex-wrap: wrap; }
  .pfp-copy { flex: 1 1 180px; }
  .pfp-copy select { width: 100%; max-width: 100%; }
  .pfp-actions { width: 100%; }
  .pfp-actions .btn { flex: 1; justify-content: center; }
  .publish-savebar { position: fixed; bottom: calc(86px + env(safe-area-inset-bottom)); inset-inline: 12px; z-index: 40; }
  .psb-copy small { display: none; }
  .psb-actions .btn { flex: 1; justify-content: center; }
  .fy-landing-nav { flex-wrap: wrap; }
  .fy-landing-nav-right { width: 100%; margin-inline-start: 0; justify-content: flex-start; }
  .fy-landing-domain { order: 4; }
  .fy-landing-title { letter-spacing: -.8px; }
  .fy-landing-stats { width: 100%; }
  .fy-landing-stats > div { flex: 1; min-width: 0; padding: 9px 8px; }
  .fy-landing-stats b { font-size: 15px; }
  .fy-landing-float { position: static; margin-top: 9px; max-width: none; }
  .fy-landing-cta-band { padding: 20px; }
  .fy-landing-foot { flex-direction: column; align-items: flex-start; }
  .fy-chat-nav { padding: 0 10px; }
  .fy-chat-nav-right { display: none; }
  .fy-chat-main { padding: 6px; }
  .fy-chat-window { border-radius: 13px; }
  .fy-chat-log { padding: 13px 9px 6px; }
  .chat-msg { max-width: 92%; }
  .fy-chat-head { padding: 8px 9px; }
  .fbh-progress { display: none; }
  .fy-chat-composer { padding: 6px 8px 1px; }
  .fy-kiosk-nav { padding: 0 10px; }
  .kiosk-nav-right .fln-link span { display: none; }
  .kiosk-mode span:last-child { display: none; }
  .fy-kiosk-foot span:last-child { display: none; }
  .kiosk-attract-card h1 { font-size: 27px; }
}
@media (max-width: 480px) {
  .domain-status { flex-wrap: wrap; row-gap: 7px; }
  .domain-status > div:not(.ds-actions) { flex: 1 1 130px; }
  .ds-actions { width: 100%; }
  .ds-actions .btn { flex: 1; }
  .sms-log-row { flex-wrap: wrap; }
  .slr-meta { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; padding-inline-start: 34px; }
}
@media (max-width: 420px) {
  .pub-preview-links { flex-direction: column; }
  .pub-preview-links .btn { width: 100%; }
  .video-preview { align-items: flex-start; }
  .video-preview video { width: 100%; height: 150px; }
  .fy-landing-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .fy-landing-stats > div { border-bottom: 1px solid var(--fl-line); }
  .fy-landing-stats > div:nth-child(even) { border-inline-end: 0; }
  .fy-landing-actions { flex-direction: column; align-items: stretch; }
  .fy-landing-actions .fy-landing-cta, .fy-landing-actions .fy-landing-secondary { width: 100%; }
  .chat-option { flex: 1; }
}

[data-theme="dark"] .pfp-icon,
[data-theme="dark"] .ppb-icon { background: rgba(16, 185, 129,.16); }
[data-theme="dark"] .domain-status { background: rgba(32,180,134,.12); border-color: rgba(32,180,134,.24); }
[data-theme="dark"] .ds-icon { background: rgba(0,0,0,.22); color: #4ade80; }
[data-theme="dark"] .logo-preview { background: #102821; }
[data-theme="dark"] .landing-mini.theme-soft { color: #0c1f19; }
[data-theme="dark"] .pub-checklist li.ok .pcl-check { background: rgba(32,180,134,.15); }

/* theme variants for the simple public form */
.fy-theme-minimal .fy-public {
  --fy-bg: #f7f7f4;
  --fy-card: #ffffff;
  --fy-card-2: #fbfbf9;
  --fy-ink: #111827;
  --fy-ink-2: #28303e;
  --fy-muted: #6b7280;
  --fy-muted-2: #8b919b;
  --fy-line: #e5e7eb;
  --fy-line-2: #d6d9df;
  --fy-soft: #f2f3f5;
  --fa-accent: #111827 !important;
  --fa-radius: 6px !important;
}
.fy-theme-editorial .fy-public {
  --fy-bg: #faf7f2;
  --fy-card: #fffdf9;
  --fy-card-2: #fbf5eb;
  --fy-ink: #17130d;
  --fy-ink-2: #362e23;
  --fy-muted: #6b6254;
  --fy-muted-2: #8c8171;
  --fy-line: #e7ded1;
  --fy-line-2: #d8ccbb;
  --fy-soft: #f4ede2;
  --fa-accent: #111827 !important;
  --fa-radius: 4px !important;
}
.fy-theme-glass .fy-public {
  --fy-bg: linear-gradient(135deg, #ecfdf5, #ccfbf1 55%, #e5fbff);
  --fy-card: rgba(255, 255, 255, .72);
  --fy-card-2: rgba(255, 255, 255, .55);
  --fy-line: rgba(4, 120, 87, .16);
  --fy-line-2: rgba(4, 120, 87, .24);
  --fy-soft: rgba(255, 255, 255, .5);
  --fa-accent: #047857 !important;
  --fa-radius: 26px !important;
}
.fy-theme-glass .fy-form-card { backdrop-filter: blur(18px); }
.fy-theme-neon .fy-public {
  --fy-bg: #06110f;
  --fy-card: #0e211d;
  --fy-card-2: #122a24;
  --fy-ink: #ecfdf5;
  --fy-ink-2: #cfeee3;
  --fy-muted: #9bb9b0;
  --fy-muted-2: #78948b;
  --fy-line: #1d3a32;
  --fy-line-2: #294c42;
  --fy-soft: #112c26;
  --fa-accent: #34d399 !important;
  --fa-radius: 20px !important;
}
.fy-theme-neon.public-body { background: #06110f; }
.fy-theme-neon .pub-nav { background: #071713; border-color: #1d3a32; color: #ecfdf5; }
.fy-theme-neon .pub-nav a,
.fy-theme-neon .pub-foot { color: #cfeee3; }
.fy-theme-neon .pub-foot .pf-brand { color: #cfeee3; }
.fy-theme-neon .pub-foot .pf-brand .icon { color: #34d399; }

/* theme variants for chat + kiosk shells */
.fy-theme-minimal .fy-chat,
.fy-theme-minimal .fy-kiosk { --accent: #111827; --accent-soft: rgba(17,24,39,.08); --accent-line: rgba(17,24,39,.2); }
.fy-theme-editorial .fy-chat,
.fy-theme-editorial .fy-kiosk { --accent: #8a5a2b; --accent-soft: rgba(138,90,43,.1); --accent-line: rgba(138,90,43,.22); --bg: #faf7f2; }
.fy-theme-glass .fy-chat,
.fy-theme-glass .fy-kiosk { --accent: #047857; }
.fy-theme-neon .fy-chat,
.fy-theme-neon .fy-kiosk {
  --bg: #06110f;
  --surface: #0e211d;
  --surface-2: #122a24;
  --surface-3: #112c26;
  --text: #ecfdf5;
  --muted: #9bb9b0;
  --muted-2: #78948b;
  --line: #1d3a32;
  --line-2: #294c42;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153,.11);
  --accent-line: rgba(52, 211, 153,.28);
  --mint-soft: rgba(32,180,134,.14);
}
.fy-theme-neon .fy-chat { background: radial-gradient(ellipse 60% 40% at 85% 0%, rgba(52, 211, 153,.12), transparent 65%), radial-gradient(ellipse 50% 35% at 10% 5%, rgba(45, 212, 191,.1), transparent 65%), #06110f; }
.fy-theme-neon .fy-kiosk { background: radial-gradient(ellipse 50% 45% at 50% 0%, rgba(52, 211, 153,.14), transparent 70%), #06110f; }
.fy-theme-neon .chat-msg.user .chat-bubble { color: #06111f; }
.fy-theme-neon .chat-send { color: #06111f; }
.fy-theme-neon .chat-success-icon { background: rgba(74,222,128,.16); color: #4ade80; }

/* public pages do not load app.css; alias the app tokens to base tokens */
.fy-chat,
.fy-kiosk {
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --accent-line: color-mix(in srgb, var(--brand) 28%, transparent);
  --surface: var(--card);
  --surface-2: var(--bg-2);
  --surface-3: var(--card-2);
  --text: var(--ink);
}

/* embed snippet in publish links */
.pub-embed-box { border-top: 1px solid var(--line); padding: 10px 12px 12px; }
.peb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.peb-head > span { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 800; color: var(--muted); flex: 1; }
.peb-head .icon { width: 13px; height: 13px; color: var(--accent); }
.pub-embed-box textarea { width: 100%; resize: vertical; min-height: 66px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.6; padding: 8px; direction: ltr; text-align: left; }
.pub-embed-box small { display: block; font-size: 8.5px; line-height: 1.8; color: var(--muted-2); margin-top: 6px; }
