:root {
  --ink:#202e29; --muted:#586962; --line:#dce3dc; --paper:#fff; --bg:#f5f7f3;
  --dark:#173a30; --brand:#24694d; --mint:#e1f3df; --focus:#147453;
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif; color:var(--ink); background:var(--bg);
  font-size:15px; line-height:1.45; font-synthesis:none;
}
* { box-sizing:border-box; }
body { margin:0; min-width:300px; }
button,input,select,textarea { font:inherit; color:inherit; }
button,a,summary,select { -webkit-tap-highlight-color:transparent; }
button,select,summary { cursor:pointer; }
button { background:none; border:none; }
button:disabled { cursor:default; opacity:.5; }
a { color:var(--brand); text-decoration:none; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { color:var(--ink); line-height:1.15; letter-spacing:-.04em; }
h1 { font-size:clamp(30px,3.4vw,49px); font-weight:670; }
h2 { font-size:23px; font-weight:650; }
h3 { font-size:17px; font-weight:650; }
b,strong { font-weight:630; }
p { line-height:1.55; }
small,.muted { color:var(--muted); }
small { display:block; font-size:12px; }
:focus-visible { outline:3px solid #6db593; outline-offset:3px; }
hr { border:0; border-top:1px solid var(--line); margin:12px 0; width:100%; }
.shell { display:grid; grid-template-columns:218px minmax(0,1fr); min-height:100vh; }
.sidebar { position:sticky; top:0; height:100vh; background:var(--dark); color:#ecf5ee; padding:31px 15px 20px; display:flex; flex-direction:column; gap:48px; }
.brand { display:flex; align-items:center; gap:10px; font-weight:650; font-size:21px; letter-spacing:-.045em; padding:0 8px; }
.sidebar .brand { padding:0 4px; font-size:18px; white-space:nowrap; }
.logomark { display:inline-flex; align-items:end; justify-content:center; gap:3px; width:31px; height:30px; padding:4px 1px; color:#beec91; flex-shrink:0; }
.logomark i { display:block; background:currentColor; width:6px; transform:skewY(-15deg); border-radius:2px; }
.logomark i:first-child { height:38%; } .logomark i:nth-child(2) { height:70%; } .logomark i:last-child { height:100%; }
.sidebar nav { display:flex; flex-direction:column; gap:7px; }
.nav-link { display:flex; align-items:center; gap:13px; width:100%; padding:12px 15px; text-align:left; border-radius:8px; font-size:14px; color:#cbdad2; font-weight:530; }
.nav-link:hover { background:#23483b; color:#fff; } .nav-link.current { background:#345744; color:#f5ffe9; box-shadow:inset 3px 0 #bce68a; }
.nav-icon { color:#b4d5b3; font-size:21px; line-height:20px; width:20px; }
.side-footer { margin-top:auto; border-top:1px solid #39574c; padding:18px 8px 0; color:#d3e2d3; font-size:12px; display:flex; gap:9px; align-items:center; }
.live-dot,.indicator { width:8px; height:8px; border-radius:50%; background:#9cd384; display:inline-block; flex-shrink:0; }
.workspace,.page-body,.main { min-width:0; }
.topbar { min-height:65px; display:flex; justify-content:space-between; align-items:center; gap:14px; background:#fff; border-bottom:1px solid var(--line); padding:12px clamp(22px,3.15vw,55px); }
.breadcrumb { display:flex; gap:12px; align-items:center; color:var(--muted); font-size:13px; }
.breadcrumb span { color:#95a198; }.breadcrumb b { color:var(--ink); }
.inline,.row,.actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.spread { justify-content:space-between; }
.main { max-width:1600px; margin:0 auto; padding:clamp(24px,3.3vw,54px) clamp(18px,3.15vw,55px) 65px; }
.page-heading { display:flex; align-items:center; gap:18px; justify-content:space-between; flex-wrap:wrap; margin-bottom:27px; }
.page-heading p { color:var(--muted); margin-top:7px; font-size:15px; }
.btn,.small-btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; white-space:nowrap; line-height:1.2; border:1px solid #cdd7cf; border-radius:8px; padding:10px 15px; background:#fff; font-size:13px; font-weight:600; color:#304b3e; min-height:39px; }
.btn:hover,.small-btn:hover { background:#f1f6ee; border-color:#8daa95; }
.btn.primary,.public-action { background:var(--brand); border-color:var(--brand); color:white; }
.btn.primary:hover,.public-action:hover { filter:brightness(.92); background:var(--brand); }
.small-btn { min-height:30px; padding:4px 9px; }
.text-btn,.name-btn { color:var(--brand); font-size:13px; font-weight:640; padding:5px 0; }
.text-btn:hover,.name-btn:hover { text-decoration:underline; }
.name-btn { text-align:left; color:var(--ink); padding:0; font-size:14px; }
.danger,.error,.no-match { color:#993d35; }.error { font-size:14px; }.error:empty { display:none; }
.kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; margin:0 0 25px; }
.kpi,.panel,.empty { border-radius:13px; background:var(--paper); border:1px solid var(--line); }
.kpi { min-height:122px; padding:20px; display:flex; flex-direction:column; justify-content:space-between; gap:12px; }
.kpi.featured { background:#e4f2dc; border-color:#c7ddba; }
.klabel { color:#46594d; font-size:13px; font-weight:600; display:flex; gap:8px; align-items:center; }
.indicator { background:#61a279; width:7px; height:7px; }.indicator.rate { background:#d1a04c; }.indicator.closed { background:#8895be; }.indicator.queue { background:#3c8858; }
.kpi strong { font-size:38px; font-weight:610; line-height:1; letter-spacing:-.055em; font-variant-numeric:tabular-nums; }
.panel { overflow:hidden; }
.panel-heading { display:flex; justify-content:space-between; align-items:center; gap:9px; padding:21px 23px 16px; }
.panel-heading h2 { font-size:21px; }
.data-panel { padding-bottom:5px; }
.tabs { display:flex; flex-wrap:wrap; gap:3px; margin:0 0 14px; }
.data-panel .tabs { margin:0 23px 0; border-bottom:1px solid var(--line); }
.tab { padding:9px 12px; color:var(--muted); background:transparent; border-bottom:2px solid transparent; font-size:13px; font-weight:590; }
.tab.active { border-color:var(--brand); color:var(--brand); }.tab:hover { background:#f0f5ee; }
.controls { display:flex; flex-wrap:wrap; align-items:end; gap:11px; padding:17px 23px 4px; }
.field { display:flex; flex-direction:column; gap:5px; min-width:0; color:#43554a; font-size:13px; font-weight:590; }
.controls .field { min-width:130px; }.controls .field:first-child { flex:1; }
input:not([type=checkbox]),select,textarea { background:#fff; border:1px solid #ccd6cf; border-radius:7px; padding:9px 11px; min-height:39px; min-width:0; font-size:14px; color:var(--ink); font-weight:430; }
textarea { resize:vertical; } input[type=color] { width:100%; } input[type=checkbox] { accent-color:var(--brand); width:16px; height:16px; flex-shrink:0; }
input::placeholder,textarea::placeholder { color:#78847d; }
.check { display:flex; align-items:center; gap:7px; font-size:14px; color:var(--ink); }
.more-filters { margin:5px 23px 15px; }.more-filters summary { color:var(--brand); font-size:12px; font-weight:600; width:fit-content; }.extended { padding:10px 0 0; }
.scroll-table { overflow-x:auto; }.data-panel .scroll-table { margin-top:5px; }
table { border-collapse:collapse; width:100%; text-align:left; white-space:nowrap; font-size:13px; }
th,td { padding:14px 12px; border-bottom:1px solid #e7ece6; } th:first-child,td:first-child { padding-left:23px; } th:last-child,td:last-child { padding-right:23px; }
th { background:#f4f7f2; color:#52635a; font-size:12px; font-weight:610; padding-top:11px; padding-bottom:11px; }
tbody tr:last-child td { border-bottom:0; } tbody tr:hover { background:#fafbf8; }
.person { display:flex; align-items:center; gap:10px; } .person small,td>small { margin-top:2px; }
.avatar { width:34px; height:34px; border-radius:50%; display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; font-size:12px; font-weight:700; background:#e0eadb; color:#3f624b; }
.hue1 { background:#f7ead7; color:#815527; }.hue2 { background:#e5e6f3; color:#5c5679; }.hue3 { background:#dcecf1; color:#35667b; }
.badge { display:inline-flex; align-items:center; width:fit-content; gap:5px; border:1px solid #dde4dc; color:#4a5c51; background:#f3f6f1; padding:3px 8px; font-size:11.5px; font-weight:620; border-radius:20px; white-space:nowrap; }
.badge.good { color:#2a6941; background:#e6f4e6; border-color:#cde8d2; }.badge.bad { color:#884b44; background:#f9ece7; border-color:#efd9d0; }.badge.demo { color:#5b673a; background:#f1f4e5; }
.stage { color:#354b40; }.stage::before { content:''; display:inline-block; height:6px; width:6px; border-radius:50%; margin-right:6px; background:#8b9a8b; }
.stage-novo::before { background:#d4a15c; }.stage-fechado::before { background:#4a9565; }.date { color:var(--muted); font-size:12px; }
.empty { padding:38px 22px; text-align:center; } .empty .btn,.empty p { margin-top:10px; }.empty p { color:var(--muted); }.panel .empty { border:0; }
.tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr)); gap:16px; }
.tile { padding:22px; display:flex; flex-direction:column; gap:14px; }.tile h2 { font-size:23px; }.tile .inline { margin-top:auto; }
.tile>.avatar,.tile .row>.avatar { width:44px; height:44px; font-size:15px; }
.path,.codebox { font-family:ui-monospace,Consolas,monospace; background:#f3f6f0; color:#425748; padding:9px 12px; border-radius:7px; overflow-wrap:anywhere; font-size:12px; }
.params { margin-top:19px; padding:19px 23px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:13px; }
.analytics-controls { padding:0 0 18px; }.analytics-controls .field:first-child { flex:0 1 auto; }
.rate-cell { display:flex; align-items:center; gap:8px; }progress { height:7px; width:75px; border:0; border-radius:9px; overflow:hidden; background:#e1eadf; }
progress::-webkit-progress-bar { background:#e1eadf; }progress::-webkit-progress-value { background:var(--brand); border-radius:8px; }progress::-moz-progress-bar { background:var(--brand); }
.editor-grid { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(220px,.8fr); gap:18px; align-items:start; }
.editor-panel,.stack,.question-box { display:flex; flex-direction:column; gap:14px; }
.editor-panel { padding:23px; }.editor-panel h2 { margin-bottom:3px; }.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.question-box { border:1px solid var(--line); border-radius:9px; padding:17px; }.option-edit { display:flex; gap:10px; align-items:end; }.option-edit .field { flex:1; }.option-edit .check { margin-bottom:7px; }
.actions { justify-content:flex-end; margin-top:15px; }.page-body>.error { margin-top:13px; }.preview { position:sticky; top:16px; }
.phone { margin:0 18px 18px; min-height:330px; border-radius:21px; border:1px solid #d8e2d7; background:#f5f8f0; display:flex; flex-direction:column; align-items:center; padding:14px 17px 25px; }
.phone-line { height:4px; width:43px; border-radius:5px; background:#bdc9bb; }.phone-content { display:grid; gap:13px; width:100%; margin:auto 0; }.phone h3 { font-size:25px; }.phone p { font-size:13px; color:var(--muted); }.mock-cta { background:var(--brand); color:#fff; padding:10px; border-radius:7px; text-align:center; }.mock-option { background:white; border:1px solid var(--line); padding:9px; border-radius:7px; font-size:13px; }
dialog { padding:0; width:min(530px,calc(100vw - 24px)); max-height:88vh; border:1px solid #c8d5c9; border-radius:14px; color:var(--ink); }
dialog::backdrop { background:#10251c66; }#modal-body { padding:24px; }.dialog-title { display:flex; justify-content:space-between; gap:13px; align-items:center; margin-bottom:19px; }
.answer { border-left:3px solid #b2ccaf; background:#f4f7f1; padding:10px 12px; border-radius:4px; display:grid; gap:4px; }
.match,.no-match { font-size:12px; }.match { color:var(--brand); } dl { display:grid; grid-template-columns:auto 1fr; gap:5px 16px; margin:0; font-size:13px; }dt { color:var(--muted); }dd { margin:0; overflow-wrap:anywhere; }
#toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%,12px); z-index:5; opacity:0; pointer-events:none; border-radius:8px; padding:11px 17px; color:white; background:#1b3d30; transition:opacity .16s,transform .16s; }#toast.visible { opacity:1; transform:translate(-50%,0); }
.loading,.login-wrap,.public-page { min-height:100svh; display:grid; place-items:center; padding:24px; }
.login-card,.public-card { width:min(100%,455px); padding:clamp(24px,5vw,42px); background:#fff; border:1px solid var(--line); border-radius:18px; display:grid; gap:17px; }
.login-card .brand { color:var(--dark); padding:0; }.dark-text .logomark,.public-mark .logomark { color:var(--brand); }
.login-card h1 { font-size:32px; }.public-page { background:radial-gradient(ellipse at 36% 12%,#e0edd9 0,transparent 42%),#f2f5ef; }
.public-card { width:min(100%,475px); box-shadow:0 16px 70px #1a3d2810; }.public-card h1 { font-size:clamp(27px,4vw,37px); }.public-mark { margin-bottom:3px; }
.public-intro { color:#516457; }.public-action { min-height:45px; justify-content:center; white-space:normal; }.form-count,.form-footer { text-align:center; }.form-footer { padding-top:12px; border-top:1px solid var(--line); }
.public-progress { width:100%; }.choices { display:grid; gap:9px; }
.choice { background:#f8faf6; padding:13px; border:1px solid #cbd8cb; text-align:left; border-radius:8px; font-size:15px; }
.choice:hover,.choice.picked { background:#edf4e9; border-color:var(--brand); }.choice.multi { display:flex; align-items:center; gap:8px; }.public-card .check { align-items:flex-start; }.public-card .check input { margin-top:3px; }
.complete-mark { display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:#dff2d8; color:#26744a; font-weight:700; font-size:23px; }
@media(max-width:1120px){.shell{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding-left:10px;padding-right:10px}.brand{font-size:19px}.main{padding-left:21px;padding-right:21px}.kpi{padding:16px}.topbar{padding-left:21px;padding-right:21px}}
@media(max-width:850px){.shell{display:block}.sidebar{position:static;height:auto;padding:13px 18px 8px;gap:10px}.sidebar nav{flex-direction:row;gap:4px;overflow-x:auto}.sidebar .side-footer{display:none}.nav-link{width:auto;flex:0 0 auto;padding:7px 12px;gap:7px;font-size:13px}.nav-link.current{box-shadow:inset 0 -2px #bce68a}.brand{padding:0}.nav-icon{font-size:16px;width:16px}.topbar{min-height:50px}.main{padding-top:23px}.editor-grid{grid-template-columns:1.4fr 1fr}}
@media(max-width:640px){.sidebar{padding:12px 11px 6px}.nav-link{padding:8px;font-size:12px}.nav-icon{display:none}.topbar{padding:9px 13px}.breadcrumb{gap:5px;font-size:11px}.breadcrumb b,.breadcrumb span{display:none}.topbar select{max-width:155px;font-size:12px}.main{padding:21px 12px 38px}.page-heading{gap:13px;margin-bottom:17px}.page-heading p{font-size:13px}.kpis{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:15px}.kpi{padding:12px;min-height:86px;gap:6px}.kpi strong{font-size:29px}.klabel{font-size:12px}.panel-heading,.controls{padding:14px 12px 7px}.data-panel .tabs,.more-filters{margin-left:12px;margin-right:12px}.tab{padding:7px 6px;font-size:12px}.controls .field{min-width:105px;flex:1 1 42%}.controls .field:first-child{flex:1 1 100%}.editor-grid{display:block}.preview{margin-top:14px;position:static}.phone{min-height:240px}.editor-panel{padding:14px}.grid2{grid-template-columns:1fr}.option-edit{flex-wrap:wrap}.option-edit .field{min-width:100px}.public-page,.login-wrap{padding:14px}.public-card{padding:25px 20px}.params{padding:15px}.actions{justify-content:stretch}.actions .btn{flex:1}.sidebar .brand{margin-left:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.public-page { grid-template-columns:minmax(0,1fr); }
.journey { width:min(100%,460px); min-width:0; display:grid; gap:24px; overflow-wrap:anywhere; }
.journey .public-card { width:100%; min-width:0; }
.journey .back { justify-self:start; }
.journey .form-footer { padding:0 8px; border:0; }
.step-status { display:grid; gap:8px; }
.step-status small { text-transform:uppercase; letter-spacing:.06em; font-size:11px; font-weight:700; }
.single { display:flex; gap:12px; align-items:center; width:100%; min-height:60px; font-weight:650; }
.option-label { flex:1; }
.option-arrow,.option-emoji { display:grid; place-items:center; flex-shrink:0; }
.option-arrow { border-radius:50%; height:24px; width:24px; background:var(--brand); color:white; font-size:18px; }
.option-emoji { width:40px; height:40px; border-radius:50%; font-size:22px; }
.field-group { min-width:0; border:1px solid var(--line); border-radius:14px; padding:15px; }
.field-group h3 { font-size:15px; letter-spacing:0; }
.field-group input,.field-group select,.field-group textarea { width:100%; }
.field-group input[type=checkbox] { width:16px; }
.confirmation { text-align:center; }
.confirmation .step-status { text-align:left; }
.confirmation .complete-mark { margin:8px auto; background:#18834b; color:white; height:60px; width:60px; font-size:30px; }
.btn.whatsapp-action { color:white; background:#198349; border-color:#198349; min-height:46px; }
.confirmation .whatsapp-action { min-height:56px; text-transform:uppercase; }
.public-page:has(.journey.rose) { background:#FBF3F8; padding:32px 16px; align-items:start; }
.rose { --ink:#4B2354; --muted:#75677c; --line:#ede3ed; color:var(--ink); }
.public-page > .journey.rose { width:min(100%,520px); }
.public-page:has(.journey.rose) { align-items:center; }
.rose .public-card { container-type:inline-size; }
@container (min-width:420px) {
  .rose .contact-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
}
.rose .public-card { border:0; padding:22px 18px; border-radius:22px; gap:21px; box-shadow:0 12px 35px #4b235410; }
.rose .journey-header { text-align:center; display:grid; justify-items:center; gap:12px; padding:0 12px; }
.rose .journey-header small { color:#ac286d; font-weight:750; letter-spacing:.085em; text-transform:uppercase; }
.rose .journey-header h1 { font-size:clamp(25px,4vw,34px); max-width:20ch; font-weight:760; text-wrap:balance; }
.rose .journey-header p { max-width:32ch; text-wrap:balance; }
.rose .journey-header p,.rose .public-intro,.rose .confirmation p { color:var(--muted); }
.rose .public-progress,.rose progress::-webkit-progress-bar { background:#f0e9f2; }
.rose .choice { border:1px solid #edcce0; background:#fff; border-radius:14px; box-shadow:0 3px 8px #45214409; }
.rose .single { padding:14px; min-height:72px; }
.rose .option-emoji { background:#fcf0f7; }
.rose .single:nth-child(even) { border-color:#cae4d6; }
.rose .single:nth-child(even) .option-arrow { background:#198349; }
.rose .single:nth-child(even) .option-emoji { background:#edf8f2; }
.rose .choice:hover,.rose .choice.picked { border-color:#c63882; background:#fcf1f7; }
.rose .field-group .single { min-height:48px; }
.rose .field-group:has(.single:nth-child(2):last-child) .choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
.rose .field-group .single { flex-wrap:wrap; }
.option-indicator { width:1em; color:#8d2861; font-weight:700; }
.rose .field-group .option-emoji { width:30px; height:30px; font-size:17px; }
.rose .field-group .option-arrow { width:18px; height:18px; font-size:14px; }
.rose input:not([type=checkbox]),.rose textarea,.rose select { font-size:16px; padding:12px; border-color:var(--line); border-radius:10px; background:#fcf9fc; }
.rose input.valid-date { border-color:#229457; background:#f0faf4; }
.phone-field { min-width:0; }
.phone-field small:not(:empty) { display:block; margin-top:5px; }
.phone-ok { color:#187042; }
.rose .field,.rose .check { color:#64556b; }
.rose .public-action { background:#8d2861; border-color:#8d2861; }
.rose .contact-fields ~ .btn.public-action { min-height:54px; background:#198349; border-color:#198349; }
.public-card .btn.callback-submit { min-height:54px; background:#198349; border-color:#198349; color:white; }
@media(min-width:641px) {
  .public-page .rose .public-card { padding:26px 24px; }
  .public-page .rose .single { min-height:80px; }
  .public-page .rose .field-group .single { min-height:48px; }
}
.phone .journey { width:100%; gap:14px; }
.phone .public-card { padding:15px; gap:12px; }
.rose-phone { background:#FBF3F8; border-color:#efdfeb; }
.phone .journey-header h1,.phone .public-card h2 { font-size:21px; }
.option-edit { display:grid; grid-template-columns:minmax(0,2fr) minmax(58px,.65fr); border-top:1px solid var(--line); padding-top:10px; }
.option-edit .field { min-width:0; }
