:root{--accent:#2864eb;--ink:#192230;--muted:#758091;--line:#e3e7ed;--bg:#fafbfc;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:16px;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{outline-offset:3px}
button,a.button{cursor:pointer;border:1px solid #dce1e8;border-radius:8px;background:#fff;padding:11px 17px;color:inherit;font-weight:550;display:inline-block;text-decoration:none;line-height:1.3}
button:hover,a.button:hover{background:#f1f5fa}
button.primary,a.button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}
button.primary:hover,a.button.primary:hover{filter:brightness(.92);background:var(--accent)}
button:disabled{opacity:.5;cursor:not-allowed}
button.danger-fill{background:#c23a45;color:#fff;border-color:#c23a45}
button.linkish{border:0;background:none;padding:8px 12px;color:var(--muted);text-align:left}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a.button:hover,a.card:hover,a.nav:hover{text-decoration:none}
h1{font-size:2rem;letter-spacing:-.04em;margin:0 0 12px;gap:12px}
h2{font-size:1.15rem;margin:0 0 16px}
h3{font-size:1rem;margin:24px 0 8px}
p{line-height:1.65}
code{background:#f1f3f7;padding:2px 6px;border-radius:4px;font-size:.85em}
.muted{color:var(--muted);font-size:.9rem}
.help{color:var(--muted);font-size:.82rem;margin:6px 0 0;line-height:1.5}
.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid #e5e8ed;padding:32px 18px;display:flex;flex-direction:column;gap:6px}
.brand{font-size:1.05rem;font-weight:750;letter-spacing:-.03em;padding:0 8px 32px;white-space:nowrap}
.brand span{background:#2864eb;color:#fff;padding:6px 9px;border-radius:7px;margin-right:8px}
.nav{display:block;padding:10px 12px;border-radius:8px;color:#647084;font-weight:550}
.nav span{display:inline-block;width:20px}
.nav.active{background:#edf3ff;color:#225bd9}
.sidebar .bottom{margin-top:auto;padding-top:20px;border-top:1px solid #eceff3;display:flex;flex-direction:column;gap:2px}
main{width:100%;max-width:1220px;padding:48px 56px;margin:auto}
.top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.top p{margin:0}
.top h1{display:flex;align-items:center}
.eyebrow{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:#7b8697;margin-bottom:10px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px}
.stat,.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px}
.stat strong{display:block;font-size:2rem;margin-top:10px;font-weight:600}
.card{margin-bottom:16px;display:block;color:inherit}
.card hr{border:0;border-top:1px solid #eef0f4;margin:20px 0}
.client-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}
.card.client{transition:border-color .15s,box-shadow .15s}
.card.client:hover{border-color:#b9cdf7;box-shadow:0 4px 18px #2864eb12}
.client-stats{display:flex;gap:16px;flex-wrap:wrap;margin:18px 0 14px;color:var(--muted);font-size:.875rem}
.client-stats strong{color:var(--ink)}
.avatar{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;color:#fff;font-weight:700;flex-shrink:0;font-size:1.05rem;letter-spacing:0}
.tags{gap:6px}
.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.between{justify-content:space-between}
.end{justify-content:flex-end;margin-top:20px}
.badge{font-size:.78rem;padding:5px 9px;border-radius:5px;background:#f0f2f5;color:#667180;white-space:nowrap}
.badge.live{background:#eaf7ef;color:#278048}
.badge.fail{background:#fdecee;color:#b32a3e}
.badge.blue{background:#edf3ff;color:#2864eb}
.funnel-title{margin:0 0 6px}
.empty{text-align:center;padding:56px 20px}
.empty p{color:var(--muted)}
label{display:block;font-size:.875rem;font-weight:550;margin:18px 0 7px}
input,textarea,select{width:100%;border:1px solid #dce1e8;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink)}
input[type=color]{padding:4px;height:46px}
textarea{min-height:110px;resize:vertical;line-height:1.5}
input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent);flex-shrink:0;margin:0}
label.check{display:flex;gap:10px;align-items:center;font-weight:500}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.tabs{display:flex;gap:6px;border-bottom:1px solid #e2e7ef;margin:20px 0 24px;padding-bottom:12px;flex-wrap:wrap}
.tabs button,.tabs a{border:0;background:transparent;color:#768193;padding:9px 14px;border-radius:8px;font-weight:550}
.tabs .active{background:#edf3ff;color:#2864eb}
.editor{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px}
.aside{align-self:start;position:sticky;top:24px}
.notice{background:#f0f5ff;border:1px solid #dbe7ff;color:#365b96;padding:13px 16px;border-radius:8px;font-size:.86rem;line-height:1.6;margin:8px 0 4px}
.notice.warn{background:#fff8eb;border-color:#f6e2b4;color:#7d5b12}
.danger{color:#b93b45}
.compact{padding:7px 11px;font-size:.85rem}
.question{border:1px solid var(--line);border-radius:10px;padding:20px;margin-top:16px;background:#fff}
.question:focus-within{border-color:#96b4f4}
.question h2{margin:0}
.dest.on{border-color:#a8c3f6;box-shadow:inset 3px 0 0 var(--accent)}
.dest .notice{margin:14px 0}
.num{display:inline-flex;width:26px;height:26px;border-radius:50%;background:#edf3ff;color:#2864eb;align-items:center;justify-content:center;font-size:.85rem;margin-right:6px}
.option{display:grid;grid-template-columns:1fr 200px auto;gap:8px;align-items:center;margin:8px 0}
.list-row{padding:14px 0;border-bottom:1px solid #edf0f4}
.list-row:last-child{border-bottom:0}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#172231;color:#fff;padding:14px 22px;border-radius:9px;z-index:100;box-shadow:0 6px 30px #0002;max-width:min(560px,90vw);line-height:1.5}
.toast.error{background:#9d2433}
dialog{border:0;border-radius:12px;padding:24px;max-width:460px;width:calc(100% - 32px);box-shadow:0 20px 60px #0003}
dialog::backdrop{background:#17223166}
dialog p{margin-top:0}
.auth{max-width:440px;padding-top:12vh}
.auth .brand{padding:0 0 36px}
.auth button{width:100%;margin-top:24px}
.guide ol,.checklist{padding-left:20px;line-height:1.7;margin:0}
.guide li{margin-bottom:12px}
.tablewrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:.875rem}
td,th{text-align:left;padding:13px 10px;border-bottom:1px solid #edf0f3;white-space:nowrap}
th{color:var(--muted);font-weight:500}
pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.82rem;background:#f6f8fb;padding:16px;border-radius:8px}
details>summary{cursor:pointer;padding:10px 0;color:#4d5868}
.savebar{position:sticky;bottom:0;padding:14px 0;background:#fafbfcf0;display:flex;justify-content:flex-end;align-items:center;gap:16px;border-top:1px solid #e4e8ee;margin-top:24px}
/* Editor de texto */
.rte{border:1px solid #dce1e8;border-radius:8px;background:#fff;overflow:hidden}
.rte:focus-within{border-color:#96b4f4}
.rte-bar{display:flex;flex-wrap:wrap;gap:2px;padding:6px;border-bottom:1px solid #edf0f4;background:#fafbfc}
.rte-bar button{border:0;background:transparent;padding:6px 9px;font-size:.82rem;font-weight:500;border-radius:5px;color:#3b4555}
.rte-bar button:hover{background:#e9eef6}
.rte-bar .sep{width:1px;background:#e1e5eb;margin:4px 4px}
.rte-link{display:flex;gap:6px;padding:8px;border-bottom:1px solid #edf0f4;background:#f5f8ff}
.rte-link[hidden]{display:none}
.rte-link input{padding:7px 10px}
.rte-body{min-height:110px;padding:12px 14px;line-height:1.6;outline:none}
.rte-body:empty::before{content:"Escreva aqui…";color:#a3abb7}
.rich p,.rte-body p{margin:0 0 .6em}
.rich ul,.rich ol,.rte-body ul,.rte-body ol{margin:.4em 0 .8em;padding-left:1.4em}
.rich a,.rte-body a{text-decoration:underline}
/* Formulário público */
.public{background:#fff;min-height:100vh;display:flex;align-items:center}
.public main{max-width:720px;padding:64px 28px}
.public h1{font-size:2rem;line-height:1.3;letter-spacing:-.03em}
.public .description{color:#5f6b7c;font-size:1.12rem;line-height:1.65}
.public .logo{max-height:48px;max-width:200px;display:block;margin-bottom:32px}
.public .big{margin-top:26px;min-width:190px;padding:15px 24px;font-size:1.02rem;text-align:center}
.public a.button.big{display:inline-block}
.public .choice{width:100%;text-align:left;font-weight:400;padding:17px;margin-top:12px;display:flex;gap:16px;align-items:center}
.public .choice.selected{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 7%,#fff)}
.req{color:#ef5364}
.key{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d8dde5;border-radius:6px;background:#f5f6f8;font-size:.875rem;flex-shrink:0}
.progress{position:fixed;top:0;height:4px;background:var(--accent);left:0;transition:width .2s}
.back{border:0;color:#7d8794;background:none;padding-left:0;margin-bottom:28px}
.public input:not([type=checkbox]){font-size:1.25rem;padding:14px 0;border-radius:0;border:0;border-bottom:2px solid #dce1e8}
.public input:not([type=checkbox]):focus{border-bottom-color:var(--accent);outline:none}
.public label.check{font-weight:400;line-height:1.5;align-items:flex-start}
.public label.check input{margin-top:3px}
.error{color:#b32a3e;font-size:.875rem;margin-top:12px}
.testbar{position:fixed;top:4px;left:0;right:0;background:#fff8e6;text-align:center;padding:9px;font-size:.8rem;color:#926e1c;z-index:5}
@media(max-width:1050px){main{padding:32px 26px}.editor{grid-template-columns:1fr}.aside{position:static}.shell{grid-template-columns:200px 1fr}}
@media(max-width:700px){
  .shell{display:block}
  .sidebar{height:auto;position:static;flex-direction:row;flex-wrap:wrap;padding:16px;border-right:0;border-bottom:1px solid #e5e8ed;gap:2px}
  .brand{width:100%;padding:0 0 12px}
  .sidebar .bottom{margin:0;border:0;padding:0;flex-direction:row;align-items:center}
  .sidebar .bottom .help{display:none}
  .nav{padding:8px 10px;font-size:.875rem}
  main{padding:24px 16px}
  .top{flex-direction:column;align-items:flex-start}
  .top h1{font-size:1.6rem}
  .cards{gap:8px}.stat{padding:14px 10px}.stat .muted{font-size:.72rem}.stat strong{font-size:1.4rem}
  .grid2{grid-template-columns:1fr}
  .card{padding:18px}
  .client-grid{grid-template-columns:1fr}
  .option{grid-template-columns:1fr auto}.option select{grid-column:1/-1;grid-row:2}
  .public h1{font-size:1.6rem}.public main{padding:56px 22px}
  .public .big{width:100%}
  .auth{padding-top:8vh}
}
