:root{
  --fb-green:#2ee000;--fb-black:#231f20;--bg:#f5f7f6;--panel:#fff;--text:#1f2421;--muted:#6d756f;--line:#dfe5e1;--danger:#b42318;--warning:#b54708;--success:#087443;--radius:14px;--shadow:0 12px 32px rgba(18,31,23,.08);--sidebar:250px;--topbar:68px
}
*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}body{margin:0}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}button{cursor:pointer}.muted{color:var(--muted)}.small{font-size:.84rem}.nowrap{white-space:nowrap}.stack{display:grid;gap:18px}.row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spacer{flex:1}.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}.eyebrow{font-size:.76rem;letter-spacing:.1em;text-transform:uppercase;font-weight:800;color:#478b38}.brand-logo{display:block;width:170px}.brand-logo--white{filter:none}

/* auth */
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,520px);background:var(--fb-black)}.auth-brand{padding:64px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 30% 20%,rgba(46,224,0,.22),transparent 35%),linear-gradient(145deg,#181516,#302c2e);color:#fff}.auth-brand img{width:min(420px,80%)}.auth-brand h1{font-size:clamp(38px,5vw,72px);line-height:1;max-width:760px;margin:30px 0 14px}.auth-brand p{max-width:680px;color:#d7d4d5;font-size:18px;line-height:1.6}.auth-panel{display:grid;place-items:center;background:#f7faf8;padding:28px}.auth-card{width:min(410px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px;box-shadow:var(--shadow)}.auth-card .brand-logo{margin-bottom:30px}.auth-card h2{font-size:30px;margin:0 0 8px}.password-wrap{position:relative}.password-wrap input{padding-right:72px}.password-wrap button{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:#eef2ef;border-radius:8px;padding:7px 9px;font-size:12px}

/* admin */
.admin-body{background:var(--bg)}.admin-shell{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:var(--fb-black);color:#fff;padding:24px 18px;display:flex;flex-direction:column;gap:28px;z-index:20}.sidebar .brand-logo{width:180px;margin:4px auto 10px}.tenant-chip{border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.06);padding:12px;border-radius:11px;font-size:13px}.tenant-chip strong{display:block;margin-top:3px}.nav{display:grid;gap:5px}.nav a{padding:11px 12px;border-radius:9px;color:#ddd;display:flex;gap:10px;align-items:center}.nav a:hover,.nav a.is-active{background:rgba(46,224,0,.14);color:#fff}.nav .nav-section{margin:16px 12px 5px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8f898c}.sidebar-footer{margin-top:auto;font-size:12px;color:#aaa}.main-area{min-width:0}.topbar{height:var(--topbar);position:sticky;top:0;z-index:10;background:rgba(255,255,255,.93);backdrop-filter:blur(8px);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:14px}.menu-toggle{display:none;border:0;background:#eef2ef;border-radius:9px;padding:9px}.topbar-user{margin-left:auto;text-align:right}.topbar-user strong{display:block;font-size:14px}.topbar-user small{color:var(--muted)}.logout-btn{border:1px solid var(--line);background:#fff;border-radius:8px;padding:8px 11px}.admin-main{padding:30px;max-width:1580px;margin:0 auto}.page-heading{display:flex;align-items:flex-start;gap:20px;justify-content:space-between;margin-bottom:24px}.page-heading h1{margin:4px 0 7px;font-size:clamp(28px,3vw,40px);letter-spacing:-.03em}.page-heading p{margin:0;color:var(--muted);max-width:800px}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.btn{border:1px solid transparent;border-radius:10px;padding:10px 14px;min-height:42px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn-primary{background:var(--fb-green);color:#173b12}.btn-dark{background:var(--fb-black);color:#fff}.btn-outline{background:#fff;border-color:var(--line);color:var(--text)}.btn-danger{background:#fff4f2;color:var(--danger);border-color:#fecdca}.btn-sm{min-height:34px;padding:6px 10px;font-size:13px}.btn:disabled{opacity:.5;cursor:not-allowed}.icon-btn{width:36px;height:36px;border-radius:9px;border:1px solid var(--line);background:#fff;display:inline-grid;place-items:center}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 2px 7px rgba(18,31,23,.025);padding:20px}.card h2,.card h3{margin-top:0}.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat-card{padding:18px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}.stat-card span{font-size:13px;color:var(--muted)}.stat-card strong{display:block;margin-top:8px;font-size:28px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.event-actions{display:flex;gap:8px;flex-wrap:wrap}.status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:750}.status.active,.status.open,.status.confirmed,.status.published{background:#e9f9e6;color:#21671c}.status.draft,.status.pending{background:#f1f3f2;color:#626967}.status.closed,.status.inactive,.status.cancelled,.status.disabled{background:#fceceb;color:#9b2c22}
.api-audit-summary{margin-bottom:16px}.api-audit-summary p{margin:8px 0;line-height:1.55}.api-audit-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.api-audit-stats .stat-card{min-width:0}.api-audit-stats .stat-card small{display:block;margin-top:6px;color:var(--muted);line-height:1.35}.api-audit-grid{align-items:start}.api-audit-grid .table-wrap table{min-width:0}.api-audit-grid .data-pair{grid-template-columns:minmax(0,1fr) auto}.api-audit-grid .data-pair strong{text-align:right}
.xlsx-import-layout{align-items:start}.xlsx-import-layout input[type="file"]{width:100%;padding:13px;border:1px dashed var(--line);border-radius:11px;background:#fafcfa}.xlsx-confirm{padding:13px;border:1px solid var(--line);border-radius:11px;background:#f7faf8}.xlsx-confirm>span{display:flex;align-items:flex-start;gap:9px;font-weight:700}.xlsx-confirm input{margin-top:3px}.xlsx-rules{display:grid;gap:10px;margin:0;padding-left:20px;line-height:1.45}.xlsx-result-heading{margin-top:28px}.xlsx-result-heading h2{margin-bottom:0}.xlsx-import-stats{grid-template-columns:repeat(5,minmax(0,1fr))}

/* forms */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:grid;gap:7px}.field.full{grid-column:1/-1}.field>span{font-size:13px;font-weight:750}.field small{color:var(--muted)}input,select,textarea{width:100%;border:1px solid #cfd7d2;background:#fff;border-radius:9px;padding:11px 12px;min-height:43px;color:var(--text)}textarea{min-height:112px;resize:vertical}input:focus,select:focus,textarea:focus{outline:3px solid rgba(46,224,0,.14);border-color:#59b848}.checkbox{display:flex;align-items:flex-start;gap:9px}.checkbox input{width:18px;min-height:18px;margin-top:2px}.form-section{margin-top:20px}.form-section__head{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:15px}.form-section__head h2{margin:0}.color-field{display:flex;gap:10px;align-items:center}.color-field input[type=color]{width:52px;padding:4px}

/* tables */
.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#667069;background:#fafcfa}td{font-size:14px}tr:last-child td{border-bottom:0}.table-actions{display:flex;gap:7px;flex-wrap:wrap}.table-empty{padding:35px;text-align:center;color:var(--muted)}.data-pair{display:grid;grid-template-columns:180px minmax(0,1fr);gap:14px;padding:11px 0;border-bottom:1px solid var(--line)}.data-pair:last-child{border-bottom:0}.data-pair dt{font-size:13px;color:var(--muted)}.data-pair dd{margin:0;font-weight:650;overflow-wrap:anywhere}.answers-list{display:grid;gap:12px}.answer{padding:12px;border-radius:10px;background:#f7f9f8}.answer strong{display:block;margin-bottom:5px}

/* builders */
.builder-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);gap:20px;align-items:start}.field-item,.screen-item{padding:14px;border:1px solid var(--line);border-radius:10px;background:#fff}.field-item+.field-item,.screen-item+.screen-item{margin-top:10px}.field-item__head,.screen-item__head{display:flex;justify-content:space-between;gap:12px}.pill{font-size:11px;background:#edf0ee;border-radius:999px;padding:4px 8px;color:#59615b}.option-preview{font-size:12px;color:var(--muted);margin-top:6px}.preview-card{position:sticky;top:calc(var(--topbar) + 18px)}.phone-preview{width:min(360px,100%);aspect-ratio:1200/1920;margin:auto;background:#fff;border:10px solid #222;border-radius:34px;padding:34px 22px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;box-shadow:0 20px 45px rgba(0,0,0,.14)}.phone-preview .preview-btn{margin-top:14px;background:var(--fb-green);border:0;border-radius:10px;padding:10px 18px;font-weight:800}.roulette-slices{display:flex;gap:8px;flex-wrap:wrap}.slice-chip{border-radius:999px;padding:7px 10px;border:1px solid var(--line);background:#fff}

/* public */
.public-body{background:#fff}.public-header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center}.public-header .container{display:flex;align-items:center;justify-content:space-between;gap:18px}.public-header .brand-logo{width:166px}.public-main{min-height:calc(100vh - 140px)}.hero{padding:70px 0;background:linear-gradient(135deg,#171516,#302c2e);color:#fff;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:400px;height:400px;border-radius:50%;right:-100px;bottom:-230px;background:var(--brand-primary,#2ee000);opacity:.22}.hero h1{font-size:clamp(38px,5vw,70px);line-height:1;letter-spacing:-.05em;margin:12px 0 16px;max-width:900px}.hero p{max-width:760px;color:#dad7d8;font-size:18px;line-height:1.6}.public-section{padding:44px 0}.event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.event-card{border:1px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}.event-card__body{padding:18px}.event-card h2{margin:7px 0 8px}.event-meta{display:grid;gap:5px;color:var(--muted);font-size:14px}.event-hero-img{aspect-ratio:16/8;object-fit:cover;width:100%;background:#e8ece9}.registration-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,.7fr);gap:30px;align-items:start}.event-copy{line-height:1.7}.public-form{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:var(--shadow)}.public-form .form-grid{gap:14px}.alert{border-radius:10px;padding:12px 14px;margin-bottom:18px;border:1px solid}.alert-success{background:#edfaeb;border-color:#b7e8ae;color:#21671c}.alert-error{background:#fff1f0;border-color:#fecdca;color:#912018}.alert-warning{background:#fff8e6;border-color:#f1d28a;color:#7a4b00}.footer{border-top:1px solid var(--line);padding:24px 0;color:var(--muted);font-size:13px}.app-public{min-height:100vh;background:var(--fb-black);display:grid;place-items:center;padding:20px}.kiosk{width:min(600px,100%);min-height:82vh;background:#fff;border-radius:28px;overflow:hidden;display:flex;flex-direction:column}.kiosk-head{padding:22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.kiosk-body{padding:28px;display:grid;gap:18px;flex:1}.kiosk-screen{border:1px solid var(--line);border-radius:14px;padding:20px}.kiosk-screen h2{margin-top:0}

@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.event-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-layout{grid-template-columns:1fr}.preview-card{position:static}.registration-layout{grid-template-columns:1fr}}
@media(max-width:1180px){.api-audit-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1180px){.xlsx-import-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.admin-shell{grid-template-columns:1fr}.sidebar{position:fixed;width:min(290px,86vw);left:-310px;transition:left .2s}.admin-shell.sidebar-open .sidebar{left:0}.menu-toggle{display:inline-grid}.topbar{padding-inline:18px}.admin-main{padding:22px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:1fr}.table-wrap{overflow:visible;border:0;background:transparent}table.responsive{min-width:0;display:block}table.responsive thead{display:none}table.responsive tbody{display:grid;gap:12px}table.responsive tr{display:grid;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px}table.responsive td{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px;border:0;padding:7px 4px;overflow-wrap:anywhere}table.responsive td:before{content:attr(data-label);font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:800}.table-actions{justify-content:flex-start}}
@media(max-width:680px){.container{width:min(100% - 28px,1180px)}.auth-page{grid-template-columns:1fr}.auth-brand{display:none}.auth-panel{padding:16px}.auth-card{padding:25px 20px}.admin-main{padding:18px 14px}.page-heading{display:grid}.page-heading .actions{width:100%}.page-heading .actions .btn{flex:1}.stats-grid,.grid-2,.form-grid,.event-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.stat-card strong{font-size:24px}.topbar-user{display:none}.data-pair{grid-template-columns:1fr;gap:3px}.actions.stack-mobile{display:grid}.actions.stack-mobile .btn{width:100%}table.responsive td{grid-template-columns:1fr;gap:3px}.hero{padding:52px 0}.public-form{padding:17px}.kiosk{border-radius:18px;min-height:90vh}}
@media(max-width:680px){.api-audit-stats{grid-template-columns:1fr 1fr}.api-audit-grid .data-pair{grid-template-columns:1fr;gap:4px}.api-audit-grid .data-pair strong{text-align:left}}
@media(max-width:680px){.xlsx-import-stats{grid-template-columns:1fr 1fr}.xlsx-import-layout .actions{display:grid}.xlsx-import-layout .actions .btn{width:100%}}
@media(max-width:430px){.actions{display:grid;grid-template-columns:1fr;width:100%}.actions .btn,.actions form,.actions form .btn{width:100%}.event-actions{display:grid;grid-template-columns:1fr}.phone-preview{border-width:7px;border-radius:25px}.admin-main{padding-inline:10px}.card{padding:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* ---------- Integration / registration source ---------- */
.is-hidden{display:none!important}
.status.error,.status.failed{background:#fceceb;color:#9b2c22}.status.partial{background:#fff4d8;color:#805a05}.status.success{background:#e9f9e6;color:#21671c}.status.stopped{background:#fceceb;color:#9b2c22}.sync-stop-notice{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;margin:-6px 0 16px;padding:12px 14px;border:1px solid #fecdca;background:#fff7f5;border-radius:10px;color:#7a271a;font-size:13px}.sync-stop-notice strong{white-space:nowrap}.sync-stop-notice span{color:#8a3b2d}
.integration-card{overflow:hidden}.integration-toggle{padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8faf8}.integration-toggle span{display:grid;gap:3px}.integration-toggle small{color:var(--muted);font-weight:400}.integration-fields,.integration-panel{margin-top:16px;padding:18px;border:1px solid var(--line);border-radius:12px;background:#f9fbf9}.integration-test-card{margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:20px}.integration-test-card h2{margin:2px 0 6px}
.integration-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}.integration-meta>div{padding:12px;border:1px solid var(--line);border-radius:9px;background:#fff;min-width:0}.integration-meta .full{grid-column:1/-1}.integration-meta span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.integration-meta strong{display:block;overflow-wrap:anywhere;font-size:13px}
.registration-source-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.source-option{display:flex;gap:12px;align-items:flex-start;padding:17px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;transition:.18s ease}.source-option:hover,.source-option.is-selected{border-color:#72c566;box-shadow:0 0 0 3px rgba(46,224,0,.08)}.source-option input{width:18px;min-height:18px;margin-top:2px}.source-option span{display:grid;gap:5px}.source-option small{color:var(--muted);line-height:1.45}.source-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;letter-spacing:.02em}.source-badge.sympla{background:#e9ebff;color:#434bb5}.source-badge.external-site{background:#e8f4ff;color:#1f5f99}.source-badge.system{background:#e9f9e6;color:#21671c}
.sympla-sync-card{border-color:#d9dcff}.imported-fields-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.public-source-note{display:block;margin-top:10px}.dashboard-integration-card{border-color:#d9dcff}
@media(max-width:1180px){.integration-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.imported-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.registration-source-options,.integration-meta,.imported-fields-grid{grid-template-columns:1fr}.integration-test-card{align-items:stretch;flex-direction:column}.integration-test-card form,.integration-test-card .btn{width:100%}}

/* ---------- Sympla Hub direto no App FrontBox ---------- */
.sympla-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.sympla-filterbar{display:grid;gap:14px}.connection-list{display:grid;gap:12px}.connection-card{border:1px solid var(--line);border-radius:12px;padding:15px;background:#fff}.connection-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.connection-card__head strong{display:block}.connection-card__head small{display:block;color:var(--muted);margin-top:4px}.connection-edit{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}.connection-edit summary{cursor:pointer;font-size:13px;font-weight:750}.compact-form{margin-top:12px}.integration-error{color:var(--danger);font-size:12px;line-height:1.45;overflow-wrap:anywhere}.sympla-search-field{flex:1;min-width:280px}.pagination{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px}.page-link{min-width:36px;height:36px;display:inline-grid;place-items:center;border:1px solid var(--line);background:#fff;border-radius:8px;font-size:13px}.page-link.is-current{font-weight:800;border-color:#72c566;box-shadow:0 0 0 3px rgba(46,224,0,.08)}.mapping-form{display:contents}.mapping-form select{min-width:250px}
@media(max-width:1180px){.sympla-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.sympla-stats,.sympla-connections-layout{grid-template-columns:1fr}.connection-card__head{display:grid}.sympla-search-field{min-width:0;width:100%}.mapping-form select{min-width:0}.pagination{justify-content:center}}
.mapping-row{flex-wrap:nowrap}.mapping-row select{min-width:250px;flex:1}@media(max-width:760px){.mapping-row{align-items:stretch;flex-direction:column}.mapping-row select{min-width:0}}

/* ---------- Event editor: UX/UI ---------- */
.event-editor-heading{margin-bottom:20px}
.event-editor-heading__meta{gap:8px;margin-bottom:4px}
.event-editor-heading__meta .eyebrow{margin-right:2px}
.event-editor-heading__actions{flex-shrink:0}
.event-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.event-editor-layout--single{grid-template-columns:minmax(0,1fr)}
.event-editor-main{min-width:0;display:grid;gap:20px}
.event-editor-form{display:grid;gap:16px;min-width:0}
.editor-card{padding:24px;border-radius:16px;box-shadow:0 1px 2px rgba(18,31,23,.025)}
.editor-card--source{border-color:#d7e5d8;background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%)}
.editor-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}
.editor-card__title{display:grid;grid-template-columns:36px minmax(0,1fr);gap:12px;align-items:start}
.editor-card__title--no-step{grid-template-columns:1fr}
.editor-card__title h2{margin:2px 0 5px;font-size:21px;letter-spacing:-.02em}
.editor-card__title p{margin:0;max-width:760px;line-height:1.5;font-size:13px}
.editor-step{width:36px;height:36px;border-radius:10px;background:#eff8ed;border:1px solid #d8ead4;color:#2d7024;display:grid;place-items:center;font-weight:850;font-size:13px}

.registration-source-options{gap:12px}
.source-option{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:start;padding:16px 17px;border-radius:13px;min-height:92px}
.source-option input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}
.source-option__indicator{width:20px;height:20px;border:2px solid #b9c4bc;border-radius:50%;margin-top:1px;background:#fff;box-shadow:inset 0 0 0 4px #fff;transition:.18s ease}
.source-option.is-selected{background:#f9fff7;border-color:#64bb57;box-shadow:0 0 0 3px rgba(46,224,0,.07)}
.source-option.is-selected .source-option__indicator{border-color:#35b526;background:var(--fb-green)}
.source-option:focus-within{outline:3px solid rgba(46,224,0,.14);outline-offset:2px}
.source-option__content{display:grid!important;gap:6px!important;min-width:0}
.source-option__topline{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.source-option__topline strong{font-size:14px}
.source-option__content small{font-size:12.5px;line-height:1.45}

.integration-panel--event{margin-top:14px;padding:16px;border-radius:13px;background:#f6f8ff;border-color:#dce0f5}
.integration-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.integration-panel__head strong{display:block;font-size:13px;margin-bottom:3px}
.integration-panel__head small{display:block;color:var(--muted);font-size:12px;line-height:1.4}

.event-editor-form .field>span{font-size:12.5px}
.event-editor-form input,.event-editor-form select,.event-editor-form textarea{border-color:#d5ddd8;border-radius:10px;background:#fff;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
.event-editor-form input:hover,.event-editor-form select:hover,.event-editor-form textarea:hover{border-color:#b9c6be}
.event-editor-form input:focus,.event-editor-form select:focus,.event-editor-form textarea:focus{background:#fff;border-color:#55ae48;box-shadow:0 0 0 3px rgba(46,224,0,.09);outline:0}
.event-editor-form .field small{font-size:11.5px;line-height:1.4}
.event-editor-form textarea{min-height:104px}
.event-editor-form .program-content-field{min-height:160px}
.event-datetime-grid{grid-template-columns:1.1fr .8fr .8fr}

.event-editor-savebar{position:sticky;bottom:16px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px 13px 17px;border:1px solid #d8e1db;border-radius:14px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);box-shadow:0 12px 32px rgba(18,31,23,.12)}
.event-editor-savebar__copy{display:grid;gap:2px}
.event-editor-savebar__copy strong{font-size:13px}
.event-editor-savebar__copy small{font-size:11.5px;color:var(--muted)}
.event-editor-savebar .btn{min-width:130px}

.event-editor-aside{position:sticky;top:calc(var(--topbar) + 18px);display:grid;gap:14px;align-self:start}
.event-side-card{padding:18px;border-radius:15px}
.event-side-card h3{margin:4px 0 14px;font-size:16px;line-height:1.35}
.event-side-card--summary h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.event-side-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:11px;overflow:hidden;background:#fafcfa}
.event-side-summary>div{padding:11px 12px;min-width:0}
.event-side-summary>div:nth-child(odd){border-right:1px solid var(--line)}
.event-side-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
.event-side-summary span,.event-side-sync-meta span{display:block;color:var(--muted);font-size:10.5px;text-transform:uppercase;letter-spacing:.045em;margin-bottom:4px;font-weight:750}
.event-side-summary strong{display:block;font-size:12.5px;overflow-wrap:anywhere}
.event-side-card--sympla{border-color:#dce0f5;background:linear-gradient(180deg,#fff 0%,#fbfbff 100%)}
.event-side-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.event-side-sync-meta{display:grid;gap:0;border-top:1px solid var(--line);margin-top:4px}
.event-side-sync-meta>div{padding:11px 0;border-bottom:1px solid var(--line)}
.event-side-sync-meta strong{display:block;font-size:12.5px;line-height:1.4;overflow-wrap:anywhere}
.event-side-sync-error strong{color:var(--danger)}
.event-side-actions{display:grid;gap:8px;margin-top:14px}
.event-side-actions form,.event-side-actions .btn{width:100%}
.btn-ghost{background:transparent;border-color:transparent;color:var(--muted);min-height:36px;padding:7px 10px;font-size:12px}
.btn-ghost:hover{background:#f1f4f2;color:var(--text)}

.imported-fields-card{margin-top:0}
.imported-field-item{background:#fbfcfb}
.empty-state{display:grid;place-items:center;text-align:center;gap:5px;border:1px dashed #ccd6cf;border-radius:12px;background:#fafcfa;color:var(--muted)}
.compact-empty-state{padding:30px 18px}
.compact-empty-state strong{color:var(--text);font-size:14px}
.compact-empty-state span{font-size:12px}
.event-builder-layout{margin-top:0}
.event-field-create-card{position:sticky;top:calc(var(--topbar) + 18px)}

@media(max-width:1280px){
  .event-editor-layout{grid-template-columns:minmax(0,1fr) 290px}
  .event-side-summary{grid-template-columns:1fr}
  .event-side-summary>div:nth-child(odd){border-right:0}
  .event-side-summary>div{border-bottom:1px solid var(--line)}
  .event-side-summary>div:last-child{border-bottom:0}
}
@media(max-width:1100px){
  .event-editor-layout{grid-template-columns:1fr}
  .event-editor-aside{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .event-side-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .event-side-summary>div:nth-child(odd){border-right:1px solid var(--line)}
  .event-side-summary>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .event-side-summary>div:nth-child(n+3){border-bottom:0}
  .event-datetime-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .event-editor-heading__actions{width:100%}
  .event-editor-heading__actions .btn{flex:1}
  .editor-card{padding:18px}
  .editor-card__title{grid-template-columns:32px minmax(0,1fr)}
  .editor-step{width:32px;height:32px}
  .registration-source-options{grid-template-columns:1fr}
  .event-datetime-grid{grid-template-columns:1fr 1fr}
  .event-datetime-grid .field:first-child,.event-datetime-grid .field:nth-child(4){grid-column:1/-1}
  .event-editor-aside{grid-template-columns:1fr}
  .event-editor-savebar{position:static}
  .event-side-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .event-editor-heading__meta{align-items:flex-start}
  .event-editor-heading__meta .status,.event-editor-heading__meta .source-badge{font-size:10px}
  .editor-card{padding:16px}
  .editor-card__title{grid-template-columns:1fr;gap:8px}
  .editor-step{width:30px;height:30px}
  .source-option{padding:14px;min-height:0}
  .source-option__topline{align-items:flex-start;flex-direction:column;gap:5px}
  .integration-panel--event{padding:13px}
  .integration-panel__head{display:grid}
  .event-datetime-grid{grid-template-columns:1fr}
  .event-datetime-grid .field:first-child,.event-datetime-grid .field:nth-child(4){grid-column:auto}
  .event-editor-savebar{display:grid}
  .event-editor-savebar .btn{width:100%}
  .event-side-summary{grid-template-columns:1fr}
  .event-side-summary>div:nth-child(odd){border-right:0}
  .event-side-summary>div{border-bottom:1px solid var(--line)!important}
  .event-side-summary>div:last-child{border-bottom:0!important}
}

/* ---------- Evento Sympla: criacao por vinculo ---------- */
.sympla-link-only-note{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:10px;margin:0 0 14px;padding:12px 14px;border:1px solid #dfe3f7;border-radius:11px;background:#fff;color:#343a58}
.sympla-link-only-note strong{font-size:11px;text-transform:uppercase;letter-spacing:.055em;color:#4d55a8;white-space:nowrap}
.sympla-link-only-note span{font-size:12px;line-height:1.5;color:#5f6675}
.event-editor-form.is-sympla-link-only .editor-card--source{border-color:#cfd5f4;background:linear-gradient(180deg,#fff 0%,#fafaff 100%)}
.event-editor-form.is-sympla-link-only .event-editor-savebar{border-color:#d7dcf3}
@media(max-width:760px){.sympla-link-only-note{grid-template-columns:1fr;gap:5px}.sympla-link-only-note strong{white-space:normal}}

/* =========================================================
   BOTOES COM ICONE + ROTULO
   Padrao global para controles de acao em todas as paginas.
   ========================================================= */
.ui-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  line-height:1.2;
}
.ui-action-icon{
  width:18px;
  height:18px;
  min-width:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  line-height:0;
}
.ui-action-icon svg{
  width:100%;
  height:100%;
  display:block;
  overflow:visible;
}
.ui-action-label{
  display:inline-block;
  min-width:0;
}
.btn.ui-action{
  transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease,border-color .15s ease;
}
.btn.ui-action:hover:not(:disabled){
  transform:translateY(-1px);
}
.btn.ui-action:focus-visible,
.logout-btn.ui-action:focus-visible,
.menu-toggle.ui-action:focus-visible,
.password-wrap button.ui-action:focus-visible,
.preview-btn.ui-action:focus-visible{
  outline:3px solid rgba(46,224,0,.24);
  outline-offset:2px;
}
.btn-sm .ui-action-icon{
  width:15px;
  height:15px;
  min-width:15px;
}
.logout-btn.ui-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-weight:700;
}
.logout-btn.ui-action .ui-action-icon{
  width:16px;
  height:16px;
  min-width:16px;
}
.menu-toggle.ui-action{
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:8px 11px;
  font-weight:750;
}
.menu-toggle.ui-action .ui-action-icon{
  width:18px;
  height:18px;
  min-width:18px;
}
.password-wrap input{
  padding-right:112px;
}
.password-wrap button.ui-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-width:88px;
  padding:7px 9px;
  font-weight:700;
}
.password-wrap button.ui-action .ui-action-icon{
  width:15px;
  height:15px;
  min-width:15px;
}
.preview-btn.ui-action{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
}
.preview-btn.ui-action .ui-action-icon{
  width:17px;
  height:17px;
  min-width:17px;
}
@media(max-width:980px){
  .menu-toggle.ui-action{display:inline-flex}
}
@media(max-width:430px){
  .ui-action{white-space:normal;text-align:center}
  .btn.ui-action .ui-action-icon{flex:0 0 auto}
}
/* Preserve a navegacao desktop: o botao Menu so aparece no breakpoint de sidebar recolhida. */
.menu-toggle.ui-action{display:none}
@media(max-width:980px){.menu-toggle.ui-action{display:inline-flex}}


/* =========================================================
   PADRAO GLOBAL DE FORMULARIOS E ALINHAMENTO
   ========================================================= */
.form-grid{align-items:start}
.form-grid>.field{min-width:0;align-content:start}
.form-grid>.field>span{display:flex;align-items:flex-end;min-height:34px;line-height:1.25}
form.card.row{align-items:flex-end}
form.card.row>.field{margin:0}
form.card.row>.btn,
form.card.row>button{align-self:flex-end;min-height:43px}
form.card>.row:has(>.field){align-items:flex-end}
form.card>.row:has(>.field)>.btn,
form.card>.row:has(>.field)>button{align-self:flex-end;min-height:43px}
.sympla-filterbar .form-grid{align-items:end}
.sympla-filterbar .actions{align-items:center;margin-top:14px}
.sympla-search-field{flex:1 1 420px;min-width:220px}
.mapping-row{align-items:center}
.mapping-row select,.mapping-row .btn{min-height:38px}
.field input,.field select,.field textarea{margin:0}
.actions>form,.table-actions>form{display:inline-flex;margin:0}
.connection-edit>summary.ui-action{justify-content:flex-start;cursor:pointer;font-weight:750;color:var(--text);padding:8px 0}
.connection-edit>summary.ui-action .ui-action-icon{width:16px;height:16px;min-width:16px}
@media(max-width:760px){
  .form-grid>.field>span{min-height:0}
  form.card.row{align-items:stretch}
  form.card.row>.field,form.card.row>.btn,form.card.row>button{width:100%;max-width:none}
  form.card>.row:has(>.field){align-items:stretch}
  form.card>.row:has(>.field)>.field,form.card>.row:has(>.field)>.btn,form.card>.row:has(>.field)>button{width:100%}
  .sympla-filterbar .actions{align-items:stretch}
}

/* =========================================================
   BARRAS DE BUSCA E FILTRO PADRONIZADAS
   Rótulos, controles e ação principal compartilham a mesma base visual.
   ========================================================= */
.form-toolbar{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
}
.form-toolbar>.field{margin:0;min-width:0}
.form-toolbar>.field-grow{flex:1 1 360px;min-width:220px}
.form-toolbar>.field-compact{flex:0 1 240px;min-width:200px}
.form-toolbar>.btn,
.form-toolbar>button{align-self:flex-end;min-height:43px}
.compact-select{width:auto;min-width:150px}
.btn{min-height:43px}
@media(max-width:760px){
  .form-toolbar{display:grid;grid-template-columns:1fr;align-items:stretch}
  .form-toolbar>.field-grow,.form-toolbar>.field-compact{min-width:0;width:100%}
  .form-toolbar>.btn,.form-toolbar>button{width:100%;max-width:none}
  .compact-select{width:100%;min-width:0}
}


/* =========================================================
   UI GLOBAL COMPACTA - 31/08/2026
   Menos texto, melhor densidade, alinhamento e responsividade.
   ========================================================= */
:root{
  --sidebar:224px;
  --topbar:60px;
  --radius:12px;
  --control-h:42px;
  --space-1:6px;
  --space-2:10px;
  --space-3:14px;
  --space-4:18px;
  --space-5:24px;
}
body{font-size:14px;line-height:1.45}
.admin-main{padding:24px;max-width:1460px}
.sidebar{padding:18px 14px;gap:20px}
.sidebar .brand-logo{width:164px;margin:2px auto 6px}
.tenant-chip{padding:10px 11px}
.nav{gap:3px}.nav a{padding:9px 10px;border-radius:8px}.nav .nav-section{margin:12px 10px 4px}
.topbar{padding:0 24px;gap:12px}
.page-heading{margin-bottom:16px;gap:16px;align-items:center}
.page-heading h1{font-size:clamp(26px,2.4vw,34px);margin:2px 0;line-height:1.1}
.page-heading p{font-size:13px;line-height:1.4;margin-top:5px;max-width:720px}
.page-heading>div>p:empty{display:none}
.eyebrow{font-size:.68rem;letter-spacing:.085em}
.actions{gap:8px}
.card{padding:18px;border-radius:12px;box-shadow:none}
.card h2{font-size:19px;margin-bottom:12px}.card h3{font-size:16px;margin-bottom:10px}
.card>p:first-of-type{margin-top:0}
.stack{gap:14px}.grid-2{gap:16px}.grid-3{gap:14px}
.stats-grid{gap:10px;margin-bottom:16px}.stat-card{padding:14px}.stat-card strong{font-size:25px;margin-top:4px}
.form-section{margin-top:16px}.form-section__head{margin-bottom:12px;align-items:center}
.form-section__head h2{font-size:19px}.form-section__head p{margin:3px 0 0;font-size:12px}

/* controles sempre alinhados */
.form-grid{gap:14px;align-items:start}
.field{gap:6px;align-content:start;min-width:0}
.field>span,.form-grid>.field>span{min-height:0;display:block;font-size:12px;line-height:1.25;font-weight:750}
.field small{font-size:11px;line-height:1.35;margin-top:-1px}
input,select,textarea{min-height:var(--control-h);padding:9px 11px;border-radius:8px}
textarea{min-height:96px}.program-content-field{min-height:130px!important}
select{padding-right:34px}
.checkbox{align-items:center}.checkbox input{min-height:18px}
.form-toolbar,.form-toolbar-auto{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.form-toolbar>.field,.form-toolbar-auto>.field{margin:0;flex:1 1 280px}
.form-toolbar>.btn,.form-toolbar>button,.form-toolbar-auto>.btn,.form-toolbar-auto>button{height:var(--control-h);min-height:var(--control-h);align-self:flex-end}
.form-toolbar-auto.stack{display:flex}
.compact-select{height:38px;min-height:38px}

/* botões */
.btn{min-height:38px;padding:8px 12px;border-radius:8px;font-size:13px;gap:7px}
.btn-sm{min-height:32px;padding:6px 9px;font-size:12px}
.btn-primary{box-shadow:none}.btn:hover:not(:disabled){filter:brightness(.985)}
.ui-action-icon{width:16px;height:16px;min-width:16px}.btn-sm .ui-action-icon{width:14px;height:14px;min-width:14px}
.logout-btn{min-height:36px;padding:7px 10px}

/* tabelas */
.table-wrap{border-radius:11px}.table-wrap table{min-width:720px}
th,td{padding:11px 12px;vertical-align:middle}th{font-size:10px}td{font-size:13px}
.table-actions,.event-actions{gap:6px}.table-empty{padding:26px}
.data-pair{grid-template-columns:150px minmax(0,1fr);padding:9px 0;gap:12px}
.answers-list{gap:8px}.answer{padding:10px}

/* editor do evento */
.event-editor-heading{margin-bottom:14px}.event-editor-layout{gap:16px}.event-editor-main{gap:14px}.event-editor-form{gap:14px}
.editor-card{padding:18px}.editor-card__head{margin-bottom:14px}.editor-card__title{grid-template-columns:30px minmax(0,1fr);gap:10px}
.editor-step{width:30px;height:30px;border-radius:8px;font-size:12px}.editor-card__title h2{font-size:19px;margin:1px 0}
.editor-card__title p{display:none}
.registration-source-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.source-option{min-height:64px;padding:12px 13px;align-items:center}.source-option__content{gap:3px!important}.source-option__content small{display:none}
.integration-panel--event{margin-top:10px;padding:13px}.integration-panel__head{margin-bottom:10px}.integration-panel__head small{display:none}
.event-editor-form .field small:empty{display:none}
.event-editor-savebar{bottom:10px;padding:10px 11px;border-radius:11px}.event-editor-savebar__copy small:empty{display:none}.event-editor-savebar__copy:has(small:empty) strong{margin:0}
.event-editor-savebar .btn{min-width:116px}
.event-editor-aside{top:calc(var(--topbar) + 14px);gap:12px}.event-side-card{padding:15px}.event-side-card h3{margin:3px 0 10px}
.event-side-summary>div{padding:9px 10px}.event-side-sync-meta>div{padding:9px 0}.event-side-actions{gap:6px;margin-top:10px}
.imported-fields-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.imported-field-item{padding:11px 12px}.imported-field-item .row{gap:5px;margin-top:5px}
.compact-empty-state{padding:22px 16px}
.builder-layout{gap:16px}.field-item,.screen-item{padding:12px}.field-item+.field-item,.screen-item+.screen-item{margin-top:8px}

/* Integração Sympla */
.sympla-stats{grid-template-columns:repeat(5,minmax(130px,1fr))}.sympla-filterbar{gap:10px}.connection-list{gap:10px}.connection-card{padding:13px}.compact-form{margin-top:10px}
.integration-meta{gap:8px}.mapping-row{gap:8px}.pagination{margin-top:14px}

/* remove espaçamento artificial gerado por quebras estruturais */
.admin-main>br,.card+br,.grid-2+br{display:none}
.alert{margin-bottom:14px}.alert-success.is-fading{opacity:0;transition:opacity .35s ease}

@media(max-width:1180px){
  .admin-main{padding:20px}
  .sympla-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .imported-fields-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .admin-main{padding:18px}
  .page-heading{align-items:flex-start}
}
@media(max-width:760px){
  .admin-main{padding:14px}
  .page-heading{display:grid;margin-bottom:14px}.page-heading .actions{width:100%}.page-heading .actions .btn{flex:1 1 auto}
  .page-heading h1{font-size:27px}
  .card{padding:15px}
  .grid-2,.grid-3,.form-grid,.registration-source-options,.sympla-stats,.imported-fields-grid{grid-template-columns:1fr}
  .form-toolbar,.form-toolbar-auto,.form-toolbar-auto.stack{display:grid;grid-template-columns:1fr;align-items:stretch}
  .form-toolbar>.field,.form-toolbar-auto>.field{min-width:0;width:100%}
  .form-toolbar>.btn,.form-toolbar>button,.form-toolbar-auto>.btn,.form-toolbar-auto>button{width:100%}
  table.responsive{min-width:0}
  .event-editor-savebar{position:static}
  .event-datetime-grid{grid-template-columns:1fr}
  .event-datetime-grid .field:first-child,.event-datetime-grid .field:nth-child(4){grid-column:auto}
  .data-pair{grid-template-columns:1fr;gap:2px}
}
@media(max-width:520px){
  .topbar{padding:0 12px}.topbar-user{display:none}
  .actions{width:100%}.actions .btn{flex:1 1 100%}
  .btn{white-space:normal}
  .editor-card__title{grid-template-columns:30px minmax(0,1fr)}
  .source-option__topline{flex-direction:row;align-items:center}
}

/* alinhamento consistente dos rótulos em grades */
@media(min-width:761px){
  .form-grid>.field>span{min-height:30px;display:flex;align-items:flex-end}
  .form-toolbar>.field>span{min-height:0;display:block}
}

/* Dashboard gerencial dinâmico */
.dashboard-heading{margin-bottom:18px}.dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.dashboard-section{margin-bottom:18px}.dashboard-section__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.dashboard-section__head h2{margin:2px 0 0}.dashboard-section__head p{margin:4px 0 0;color:var(--muted)}.dashboard-total-label{font-size:1.05rem}.participation-progress-list{display:grid;gap:16px}.participation-progress__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:7px}.participation-progress__track,.metric-bar-track{height:11px;border-radius:999px;background:#edf1ee;overflow:hidden}.participation-progress__track span,.metric-bar-track span{display:block;height:100%;border-radius:inherit;background:#2fad42}.participation-progress.is-neutral .participation-progress__track span{background:#9ba7a0}.participation-progress.is-alt .participation-progress__track span{background:#237fa3}.attendance-origin-grid{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:center;gap:40px}.css-donut{--donut-a:0%;width:210px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#2fad42 0 var(--donut-a),#237fa3 var(--donut-a) 100%);display:grid;place-items:center;position:relative;margin:auto}.css-donut:after{content:"";position:absolute;width:58%;aspect-ratio:1;background:#fff;border-radius:50%}.css-donut>div{position:relative;z-index:1;text-align:center;display:grid}.css-donut strong{font-size:2.15rem;line-height:1}.css-donut span{color:var(--muted);margin-top:5px}.donut-legend{display:grid;gap:20px}.donut-legend>div{display:flex;gap:12px;align-items:flex-start}.donut-legend>div>div{display:grid;gap:4px}.donut-legend span:not(.legend-dot){color:var(--muted)}.legend-dot{width:14px;height:14px;border-radius:4px;flex:0 0 14px;margin-top:3px}.legend-dot.is-primary{background:#2fad42}.legend-dot.is-secondary{background:#237fa3}.dashboard-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-chart-grid>.card{min-width:0}.metric-bars{display:grid;gap:15px}.metric-bar-row__label{display:flex;justify-content:space-between;gap:16px;margin-bottom:6px}.metric-bar-row__label strong{min-width:0}.metric-bar-row__label span{color:var(--muted);white-space:nowrap}.dashboard-survey-heading{margin:28px 0 14px}.dashboard-survey-heading h2{margin:3px 0}.dashboard-survey-heading p{margin:0;color:var(--muted)}.dashboard-survey-grid .survey-chart-card{margin-bottom:0}.nps-layout{display:grid;grid-template-columns:220px 1fr;gap:28px;align-items:center}.nps-score{border:1px solid var(--line);border-radius:16px;padding:20px;display:grid;gap:5px}.nps-score span,.nps-score small{color:var(--muted)}.nps-score strong{font-size:3rem;line-height:1}.nps-gauge__labels{display:flex;justify-content:space-between;color:var(--muted);font-size:.82rem;margin-bottom:7px}.nps-gauge__track{height:14px;border-radius:999px;background:linear-gradient(90deg,#fae9df 0 33%,#f4f1df 33% 66%,#dff1e2 66% 100%);position:relative}.nps-gauge__marker{position:absolute;top:50%;width:20px;height:20px;border-radius:50%;background:#2fad42;border:3px solid #fff;box-shadow:0 0 0 1px #2fad42;transform:translate(-50%,-50%)}.nps-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.nps-breakdown>div{border:1px solid var(--line);border-radius:14px;padding:16px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:4px 12px}.nps-breakdown>div span{grid-column:1/-1}.nps-breakdown strong{font-size:1.8rem}.nps-breakdown small{color:var(--muted)}.dashboard-comments{display:grid;gap:10px}.dashboard-comments blockquote{margin:0;border:1px solid var(--line);border-radius:12px;padding:14px 16px}.dashboard-comments blockquote span{font-size:.78rem;color:var(--fb-green);font-weight:700}.dashboard-comments blockquote p{margin:7px 0 0;line-height:1.5}.survey-responses-table th:nth-child(1){width:20%}.survey-responses-table th:nth-child(2){width:13%}.survey-responses-table th:nth-child(3){width:47%}.survey-responses-table th:nth-child(4){width:20%}.survey-suggestion-cell{white-space:normal;line-height:1.45}.survey-answer-details{position:relative}.survey-answer-details summary{list-style:none;cursor:pointer;width:max-content}.survey-answer-details summary::-webkit-details-marker{display:none}.survey-answer-popover{margin-top:10px;min-width:min(560px,70vw);display:grid;gap:0;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.08);padding:6px}.survey-answer-line{display:grid;grid-template-columns:minmax(160px,42%) 1fr;gap:14px;padding:10px;border-bottom:1px solid var(--line)}.survey-answer-line:last-child{border-bottom:0}.survey-answer-line span{white-space:normal}.nowrap{white-space:nowrap}

@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-chart-grid{grid-template-columns:1fr}.attendance-origin-grid{grid-template-columns:220px 1fr}.nps-layout{grid-template-columns:180px 1fr}}
@media(max-width:720px){.dashboard-kpis{grid-template-columns:1fr 1fr}.participation-progress__head,.metric-bar-row__label{align-items:flex-start}.attendance-origin-grid,.nps-layout{grid-template-columns:1fr}.css-donut{width:180px}.nps-breakdown{grid-template-columns:1fr}.survey-answer-popover{min-width:0;box-shadow:none}.survey-answer-line{grid-template-columns:1fr}.survey-responses-table th:nth-child(n){width:auto}}

/* Pesquisa de satisfação: escala semântica e identificação somente por CPF */
.survey-container{max-width:920px}
.survey-hero{padding:48px 0 24px;background:linear-gradient(180deg,color-mix(in srgb,var(--survey-page-bg,#f4f7f4) 30%,#fff) 0%,var(--survey-page-bg,#f4f7f4) 100%);color:var(--text)}
.survey-hero:after{display:none}
.survey-hero h1{max-width:820px;margin:8px 0 10px;font-size:clamp(34px,4.6vw,58px);line-height:1.02;color:var(--brand-secondary,#231f20)}
.survey-hero p{max-width:760px;margin:0;color:var(--muted);font-size:15px;line-height:1.5}
.survey-page{background:var(--survey-page-bg,#f4f7f4)}
.survey-section{padding:22px 0 56px;background:transparent}
.survey-form{padding:30px;border-radius:22px;background:#fff;border:1px solid rgba(27,47,33,.09);box-shadow:0 22px 60px rgba(28,48,34,.10)}
.survey-identification{padding:18px;border:1px solid #dce8dd;border-radius:13px;background:#f3f8f3}
.survey-identification .field>span{font-size:13px}
.survey-identification input{background:#fff}
.survey-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
.survey-question{display:grid;gap:9px;min-width:0;align-content:start}
.survey-question--full{grid-column:1/-1}
.survey-question--half{grid-column:auto}
.survey-question__label{font-size:13px;font-weight:800;line-height:1.4;color:var(--text);letter-spacing:-.01em}
.survey-rating{display:grid;gap:6px}
.survey-rating--scale{grid-template-columns:repeat(5,minmax(0,1fr))}
.survey-rating--nps{grid-template-columns:repeat(11,minmax(0,1fr))}
.survey-rating__option{position:relative;display:flex;min-width:0;cursor:pointer}
.survey-rating__option input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.survey-rating__option span{width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;padding:7px 8px;border:1px solid;border-radius:8px;font-size:12px;font-weight:800;line-height:1.2;text-align:center;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease,background .12s ease}
.survey-rating__option--negative span{background:#fff2e5;border-color:#f3a55b;color:#9b4b00}
.survey-rating__option--neutral span{background:#fff9db;border-color:#e4c84d;color:#725b00}
.survey-rating__option--positive span{background:#edf9ef;border-color:#83cc8c;color:#176b25}
.survey-rating__option--scale-1 span{background:#fff1e3;border-color:#f2a159;color:#9d4800}
.survey-rating__option--scale-2 span{background:#fff3e8;border-color:#efb16e;color:#9a5008}
.survey-rating__option--scale-3 span{background:#fff9dc;border-color:#dfc651;color:#735c00}
.survey-rating__option--scale-4 span{background:#eef9ef;border-color:#8ed097;color:#176c26}
.survey-rating__option--scale-5 span{background:#eaf8ec;border-color:#75c782;color:#0f6420}
.survey-rating__option:hover span{transform:translateY(-1px);box-shadow:0 3px 8px rgba(0,0,0,.06)}
.survey-rating__option input:focus-visible+span{outline:3px solid rgba(46,224,0,.2);outline-offset:2px}
.survey-rating__option input:checked+span{border-color:currentColor;box-shadow:inset 0 0 0 2px currentColor,0 3px 8px rgba(0,0,0,.07)}
.survey-choice-list{display:grid;gap:9px}
.survey-choice{display:flex;align-items:center;gap:10px;cursor:pointer;min-height:42px;padding:9px 11px;border:1px solid #dbe3de;border-radius:11px;background:#fff;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}
.survey-choice:hover{border-color:color-mix(in srgb,var(--brand-primary,#2ee000) 46%,#cfd8d2);background:color-mix(in srgb,var(--brand-primary,#2ee000) 4%,#fff);transform:translateY(-1px)}
.survey-choice.is-selected{border-color:color-mix(in srgb,var(--brand-primary,#2ee000) 66%,#5b8b62);background:color-mix(in srgb,var(--brand-primary,#2ee000) 8%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary,#2ee000) 10%,transparent)}
.survey-choice input{appearance:none;-webkit-appearance:none;box-sizing:border-box;width:20px;height:20px;min-width:20px;min-height:20px;max-width:20px;max-height:20px;flex:0 0 20px;margin:0;padding:0;border:1.6px solid #aeb9b2;background:#fff;display:grid;place-content:center;align-self:center;line-height:0;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.survey-choice input[type="radio"]{inline-size:20px;block-size:20px;min-inline-size:20px;min-block-size:20px;max-inline-size:20px;max-block-size:20px;aspect-ratio:1/1;border-radius:999px}
.survey-choice input[type="checkbox"]{border-radius:6px}
.survey-choice input:before{content:"";display:block;transform:scale(0);transition:transform .14s ease}
.survey-choice input[type="radio"]:before{width:8px;height:8px;border-radius:50%;background:#fff}
.survey-choice input[type="checkbox"]:before{width:9px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg) scale(0);margin-top:-1px}
.survey-choice input:checked{background:var(--brand-primary,#2ee000);border-color:var(--brand-primary,#2ee000);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-primary,#2ee000) 13%,transparent)}
.survey-choice input[type="radio"]:checked:before{transform:scale(1)}
.survey-choice input[type="checkbox"]:checked:before{transform:rotate(-45deg) scale(1)}
.survey-choice input:focus-visible{outline:3px solid color-mix(in srgb,var(--brand-primary,#2ee000) 24%,transparent);outline-offset:2px}
.survey-choice span{line-height:1.4;font-weight:600}
.survey-submit{width:100%;min-height:46px;font-size:14px;font-weight:800;position:relative;transition:opacity .15s ease,transform .15s ease}
.survey-submit.is-loading,.survey-submit:disabled{cursor:wait;opacity:.78}
.survey-form.is-submitting{pointer-events:none}
.survey-form.is-submitting .survey-submit{pointer-events:auto}
.survey-field-error{margin:0;color:#b42318;font-size:12px;font-weight:700;line-height:1.35}
.survey-field-error[hidden]{display:none!important}
.survey-validation-summary{display:grid;gap:3px;padding:12px 14px;border:1px solid #f0aaa4;border-radius:12px;background:#fff4f2;color:#8f1f17;font-size:13px;line-height:1.4}
.survey-validation-summary strong{font-size:13px}
.survey-validation-summary[hidden]{display:none!important}
[data-survey-validation-field]{scroll-margin-top:96px}
[data-survey-validation-field].is-invalid .survey-question__label,
.survey-identification.is-invalid .field>span{color:#a51f17}
[data-survey-validation-field].is-invalid>input:not([type="radio"]):not([type="checkbox"]),
[data-survey-validation-field].is-invalid>select,
[data-survey-validation-field].is-invalid>textarea,
.survey-identification.is-invalid input{border-color:#d92d20!important;box-shadow:0 0 0 3px rgba(217,45,32,.10)!important}
.survey-question.is-invalid .survey-rating,
.survey-question.is-invalid .survey-choice-list{border-radius:12px;outline:2px solid rgba(217,45,32,.26);outline-offset:3px}
.survey-question.is-invalid .survey-choice--acceptance{border-color:#e5a09a;background:#fff8f7}
.survey-question.is-invalid .survey-rating__option span{border-color:#dca29c}

@media(max-width:760px){
  .survey-hero{padding:34px 0 18px}
  .survey-hero h1{font-size:34px}
  .survey-section{padding:14px 0 34px}
  .survey-form{padding:18px;border-radius:18px}
  .survey-fields{grid-template-columns:1fr;gap:18px}
  .survey-question--full,.survey-question--half{grid-column:1}
  .survey-identification{padding:14px}
  /* Mobile: mantenha as escalas compactas na horizontal, como no layout de referência. */
  .survey-rating{gap:4px}
  .survey-rating--scale{grid-template-columns:repeat(5,minmax(0,1fr))}
  .survey-rating--nps{grid-template-columns:repeat(6,minmax(0,1fr))}
  .survey-rating__option span{min-height:40px;padding:6px 4px;font-size:11px}
}
@media(max-width:420px){
  .survey-form{padding:14px}
  .survey-rating{gap:4px}
  .survey-rating--scale{grid-template-columns:repeat(5,minmax(0,1fr))}
  .survey-rating--nps{grid-template-columns:repeat(6,minmax(0,1fr))}
  .survey-rating__option span{padding:6px 2px;font-size:10.5px}
}


/* Pesquisa pública: blocos HTML/texto informativo entre perguntas */
.survey-html-block{padding:16px 18px;border:1px solid #e0e9e2;border-radius:14px;background:#f8fbf8;color:var(--text);font-size:14px;line-height:1.6}
.survey-html-block>:first-child{margin-top:0}.survey-html-block>:last-child{margin-bottom:0}
.survey-html-block h1,.survey-html-block h2,.survey-html-block h3,.survey-html-block h4{margin:0 0 8px;line-height:1.2;color:var(--text)}
.survey-html-block p{margin:0 0 10px}.survey-html-block ul,.survey-html-block ol{margin:8px 0 10px;padding-left:22px}
.survey-html-block a{color:var(--brand-primary,#2ee000);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.survey-html-admin-preview{margin-top:9px;padding:9px 11px;border-radius:10px;background:#f8fbf8;border:1px solid #e0e9e2;color:var(--muted);font-size:.82rem;line-height:1.45;white-space:normal;overflow-wrap:anywhere}

/* Pesquisa: disposição configurável para escolha única e múltipla escolha */
.survey-layout-control{display:flex;align-items:end;gap:10px;margin-top:10px;max-width:440px}
.survey-layout-control .field{flex:1;margin:0}
.survey-choice-layout-field[hidden]{display:none!important}
.survey-choice-list--vertical{display:grid;gap:7px}
.survey-choice-list--horizontal{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}
.survey-choice-list--horizontal .survey-choice{width:auto;max-width:100%}
@media(max-width:720px){.survey-layout-control{align-items:stretch;flex-direction:column;max-width:none}.survey-layout-control .btn{width:100%}.survey-choice-list--horizontal{display:grid;grid-template-columns:1fr;gap:8px}.survey-choice-list--horizontal .survey-choice{width:100%}}

/* ---------- Lista de inscritos: colunas essenciais ---------- */
.registrations-table{table-layout:fixed;min-width:0}
.registrations-table th,.registrations-table td{vertical-align:middle}
.registrations-table th:nth-child(1),.registrations-table td:nth-child(1){width:9%}
.registrations-table th:nth-child(2),.registrations-table td:nth-child(2){width:43%}
.registrations-table th:nth-child(3),.registrations-table td:nth-child(3){width:20%}
.registrations-table th:nth-child(4),.registrations-table td:nth-child(4){width:18%}
.registrations-table th:nth-child(5),.registrations-table td:nth-child(5){width:10%;text-align:right}
.registration-date-mobile{display:none}
.registrations-table .registration-col-view .btn{white-space:nowrap}

@media(max-width:680px){
  .registrations-table-wrap{overflow:visible;border:1px solid var(--line);background:#fff}
  table.responsive.registrations-table{display:table;width:100%;table-layout:fixed;min-width:0}
  table.responsive.registrations-table thead{display:table-header-group}
  table.responsive.registrations-table tbody{display:table-row-group}
  table.responsive.registrations-table tr{display:table-row;background:transparent;border:0;border-radius:0;padding:0}
  table.responsive.registrations-table th,
  table.responsive.registrations-table td{display:table-cell;grid-template-columns:none;gap:0;padding:10px 7px;border-bottom:1px solid var(--line);font-size:12px;overflow-wrap:anywhere}
  table.responsive.registrations-table td:before{content:none}
  .registrations-table .registration-col-id{display:none!important}
  .registrations-table th:nth-child(2),.registrations-table td:nth-child(2){width:37%}
  .registrations-table th:nth-child(3),.registrations-table td:nth-child(3){width:22%}
  .registrations-table th:nth-child(4),.registrations-table td:nth-child(4){width:25%}
  .registrations-table th:nth-child(5),.registrations-table td:nth-child(5){width:16%;text-align:center}
  .registration-date-desktop{display:none}
  .registration-date-mobile{display:inline}
  .registrations-table .status{font-size:10px;padding:4px 6px;white-space:normal;text-align:center;line-height:1.15}
  .registrations-table .registration-col-view .btn{padding:7px 8px;font-size:11px;min-height:34px;justify-content:center}
}


/* Eventos Sympla: nome interno editável sem alterar a origem externa */
.sympla-internal-name-editor{margin-top:8px;max-width:360px}
.sympla-internal-name-editor summary{cursor:pointer;color:var(--text);font-size:12px;font-weight:750;list-style:none;display:inline-flex;align-items:center;gap:6px}
.sympla-internal-name-editor summary::-webkit-details-marker{display:none}
.sympla-internal-name-editor summary:before{content:'✎';font-size:13px;line-height:1}
.sympla-internal-name-form{display:grid;gap:8px;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fafcfa;min-width:280px}
.sympla-internal-name-form .field{margin:0}
.sympla-internal-name-form .field>span{font-size:11px}
.sympla-internal-name-form input{min-height:38px}
.sympla-internal-name-form .btn{width:max-content}
.sympla-internal-name-form>small{line-height:1.35}
@media(max-width:980px){.sympla-internal-name-editor{max-width:none}.sympla-internal-name-form{min-width:0;width:100%}.sympla-internal-name-form .btn{width:100%}}

/* Pesquisa de satisfação: configuração visual + imagem de destaque */
.survey-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.survey-admin-main{min-width:0}
.survey-config-card{padding:18px}
.survey-config-head{margin-bottom:16px}
.survey-config-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.65fr);gap:18px;align-items:start}
.survey-config-fields{min-width:0}
.survey-image-editor{border:1px solid var(--line);border-radius:14px;background:#f8faf8;padding:14px;display:grid;gap:12px}
.survey-image-editor__head h3{margin:2px 0 0;font-size:1rem}
.survey-image-preview{position:relative;aspect-ratio:16/9;border:1px dashed #cdd8d0;border-radius:12px;overflow:hidden;background:#fff;display:grid;place-items:center}
.survey-image-preview img{width:100%;height:100%;object-fit:cover;display:block}
.survey-image-preview.is-empty{background:linear-gradient(135deg,#f8faf8,#eef4ef)}
.survey-image-placeholder{display:grid;gap:4px;text-align:center;padding:18px;color:var(--muted)}
.survey-image-placeholder strong{color:var(--text);font-size:.94rem}
.survey-image-placeholder span{font-size:.78rem}
.survey-image-file input[type=file]{min-height:auto;padding:9px;background:#fff}
.survey-image-remove{margin:0}
.survey-config-actions{display:flex;justify-content:flex-end;border-top:1px solid var(--line);padding-top:14px;margin-top:16px}
.survey-add-question-card{position:sticky;top:calc(var(--topbar) + 16px)}
.survey-question-list{display:grid;gap:9px}
.survey-admin-question{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;margin:0!important}
.survey-admin-question__number{width:30px;height:30px;border-radius:9px;background:#edf6ee;color:#177426;display:grid;place-items:center;font-weight:800;font-size:.78rem}
.survey-admin-question__content{min-width:0}
.survey-question-meta{margin-top:6px;gap:5px;flex-wrap:wrap}
.survey-questions-card{padding:18px}

/* Imagem de destaque na página pública da pesquisa */
.survey-hero__layout{display:grid;grid-template-columns:1fr;gap:22px;align-items:center}
.survey-hero--with-image .survey-hero__layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)}
.survey-hero__content{min-width:0}
.survey-hero__media{margin:0;border-radius:18px;overflow:hidden;background:#fff;border:1px solid #e1e8e2;box-shadow:0 16px 36px rgba(31,48,35,.08);aspect-ratio:16/9}
.survey-hero__media img{width:100%;height:100%;display:block;object-fit:cover}

@media(max-width:1180px){
  .survey-admin-grid{grid-template-columns:1fr}
  .survey-add-question-card{position:static}
  .survey-config-layout{grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr)}
}
@media(max-width:860px){
  .survey-config-layout,.survey-hero--with-image .survey-hero__layout{grid-template-columns:1fr}
  .survey-hero__media{max-width:680px;width:100%}
}
@media(max-width:720px){
  .survey-config-card,.survey-questions-card{padding:14px}
  .survey-config-actions .btn{width:100%}
  .survey-admin-question{grid-template-columns:28px minmax(0,1fr)}
  .survey-admin-question__number{width:26px;height:26px;border-radius:8px}
  .survey-admin-question .field-item__head{align-items:flex-start}
  .survey-image-editor{padding:12px}
  .survey-hero__layout{gap:16px}
  .survey-hero__media{border-radius:13px}
}

/* =========================================================
   Pesquisa publica - tela de agradecimento
   ========================================================= */
.survey-thanks{
  min-height:calc(100vh - 152px);
  display:grid;
  place-items:center;
  padding:48px 0;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 50% 28%,color-mix(in srgb,var(--brand-primary,#2ee000) 10%,transparent) 0 18%,transparent 43%),
    linear-gradient(180deg,#fbfdfb 0%,#f3f7f4 100%);
}
.survey-thanks:before,
.survey-thanks:after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  filter:blur(1px);
}
.survey-thanks:before{
  width:360px;height:360px;
  top:-220px;right:-90px;
  background:color-mix(in srgb,var(--brand-primary,#2ee000) 9%,transparent);
}
.survey-thanks:after{
  width:300px;height:300px;
  bottom:-210px;left:-95px;
  background:color-mix(in srgb,var(--brand-secondary,#231f20) 5%,transparent);
}
.survey-thanks__container{position:relative;z-index:1;display:grid;place-items:center}
.survey-thanks__card{
  width:min(100%,680px);
  background:rgba(255,255,255,.96);
  border:1px solid #dfe8e1;
  border-radius:24px;
  box-shadow:0 24px 70px rgba(25,48,31,.12);
  padding:44px 46px 38px;
  text-align:center;
  display:grid;
  justify-items:center;
  gap:24px;
  transform:translateY(12px);
  opacity:0;
  transition:opacity .45s ease,transform .45s cubic-bezier(.22,1,.36,1);
}
.survey-thanks.is-ready .survey-thanks__card{opacity:1;transform:translateY(0)}
.survey-thanks__visual{
  width:116px;height:116px;
  position:relative;
  display:grid;
  place-items:center;
}
.survey-thanks__check{
  width:82px;height:82px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(145deg,var(--brand-primary,#2ee000),color-mix(in srgb,var(--brand-primary,#2ee000) 72%,#087443));
  color:#fff;
  box-shadow:0 14px 30px color-mix(in srgb,var(--brand-primary,#2ee000) 28%,transparent);
  position:relative;
  z-index:2;
  transform:scale(.78);
  transition:transform .55s .12s cubic-bezier(.2,1.45,.35,1);
}
.survey-thanks.is-ready .survey-thanks__check{transform:scale(1)}
.survey-thanks__check svg{width:42px;height:42px}
.survey-thanks__check path{
  stroke-dasharray:24;
  stroke-dashoffset:24;
  transition:stroke-dashoffset .5s .36s ease;
}
.survey-thanks.is-ready .survey-thanks__check path{stroke-dashoffset:0}
.survey-thanks__halo{
  position:absolute;
  inset:0;
  border:1px solid color-mix(in srgb,var(--brand-primary,#2ee000) 24%,transparent);
  border-radius:50%;
  opacity:0;
}
.survey-thanks.is-ready .survey-thanks__halo--one{animation:surveyThanksPulse 1.9s .45s ease-out infinite}
.survey-thanks.is-ready .survey-thanks__halo--two{animation:surveyThanksPulse 1.9s 1.05s ease-out infinite}
.survey-thanks__content{display:grid;justify-items:center;gap:8px;max-width:520px}
.survey-thanks__content .eyebrow{color:color-mix(in srgb,var(--brand-primary,#2ee000) 72%,#176b25);letter-spacing:.12em}
.survey-thanks__content h1{
  margin:0;
  color:var(--brand-secondary,#231f20);
  font-size:clamp(32px,4vw,46px);
  line-height:1.04;
  letter-spacing:-.035em;
}
.survey-thanks__message{
  margin:4px 0 0;
  color:#38433c;
  font-size:16px;
  line-height:1.6;
  font-weight:600;
}
.survey-thanks__support{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.survey-thanks__actions{width:min(100%,300px);display:grid}
.survey-thanks__finish{
  width:100%;
  min-height:48px;
  justify-content:center;
  font-weight:800;
  box-shadow:0 10px 22px color-mix(in srgb,var(--brand-primary,#2ee000) 18%,transparent);
}
.survey-thanks__particle{
  position:absolute;
  z-index:0;
  width:7px;height:7px;
  border-radius:2px;
  background:var(--brand-primary,#2ee000);
  opacity:0;
  pointer-events:none;
}
.survey-thanks.is-ready .survey-thanks__particle{animation:surveyThanksParticle 1.25s ease-out forwards}
@keyframes surveyThanksPulse{
  0%{transform:scale(.72);opacity:.65}
  75%,100%{transform:scale(1.18);opacity:0}
}
@keyframes surveyThanksParticle{
  0%{transform:translate3d(0,0,0) rotate(0);opacity:.85}
  100%{transform:translate3d(var(--tx),var(--ty),0) rotate(var(--rot));opacity:0}
}
@media(max-width:720px){
  .survey-thanks{min-height:calc(100vh - 132px);padding:28px 0 36px;align-items:center}
  .survey-thanks__card{border-radius:19px;padding:34px 20px 28px;gap:20px}
  .survey-thanks__visual{width:104px;height:104px}
  .survey-thanks__check{width:76px;height:76px}
  .survey-thanks__check svg{width:38px;height:38px}
  .survey-thanks__content h1{font-size:34px}
  .survey-thanks__message{font-size:15px}
  .survey-thanks__actions{width:100%}
}
@media(max-width:420px){
  .survey-thanks__card{padding-inline:16px}
  .survey-thanks__content h1{font-size:30px}
}
@media(prefers-reduced-motion:reduce){
  .survey-thanks__card,.survey-thanks__check,.survey-thanks__check path{transition:none}
  .survey-thanks__halo,.survey-thanks__particle{animation:none!important}
  .survey-thanks__card{opacity:1;transform:none}
  .survey-thanks__check{transform:none}
  .survey-thanks__check path{stroke-dashoffset:0}
}

/* Participação: configuração da base externa e conciliação por CPF */
.attendance-source-card{margin-bottom:16px}
.attendance-source-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.attendance-rule-note{margin:2px 0 0;line-height:1.5}
.attendance-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.attendance-ignored-note{margin-top:-4px}
@media(max-width:1180px){.attendance-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.attendance-source-grid,.attendance-stats{grid-template-columns:1fr}}


/* Banco externo por empresa */
.external-db-card,
.external-sql-event { overflow: hidden; }

.external-db-fixed-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.external-db-fixed-grid > div {
    border: 1px solid var(--border, #dde4df);
    background: #f7faf8;
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 0;
}
.external-db-fixed-grid span {
    display: block;
    font-size: .76rem;
    color: var(--muted, #6b746e);
    margin-bottom: 3px;
}
.external-db-fixed-grid strong {
    display: block;
    overflow-wrap: anywhere;
}
.external-db-password-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
    margin-top: 8px;
}
.external-db-meta,
.external-sql-event__footer,
.external-sql-event__head {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.external-db-meta { margin-top: 12px; }
.external-sql-section { margin-top: 18px; }
.external-sql-list { display: grid; gap: 14px; margin-top: 12px; }
.external-sql-event { scroll-margin-top: 18px; }
.external-sql-event__head { margin-bottom: 12px; }
.external-sql-event__head h3 { margin: 3px 0 0; }
.external-sql-editor {
    width: 100%;
    min-height: 240px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .82rem;
    line-height: 1.55;
    tab-size: 2;
    white-space: pre;
    overflow: auto;
}
.external-sql-event__footer { margin-top: 10px; align-items: end; }
.external-sql-remove { margin-top: 8px; }

@media (max-width: 980px) {
    .external-db-fixed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .external-db-fixed-grid { grid-template-columns: 1fr 1fr; }
    .external-db-password-form { grid-template-columns: 1fr; }
    .external-db-password-form .btn { width: 100%; }
    .external-sql-event__head,
    .external-sql-event__footer,
    .external-db-meta { align-items: stretch; flex-direction: column; }
    .external-sql-event__footer .actions,
    .external-sql-event__footer .btn { width: 100%; }
    .external-sql-editor { min-height: 300px; font-size: .78rem; }
}

/* Participação em tempo real */
.participation-heading-actions {
    align-items: center;
}
.participation-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 7px 11px;
    border: 1px solid var(--border, #dce4df);
    border-radius: 12px;
    background: #fff;
    white-space: nowrap;
}
.participation-live-indicator > span:last-child {
    display: grid;
    line-height: 1.15;
}
.participation-live-indicator strong {
    font-size: .82rem;
}
.participation-live-indicator small {
    margin-top: 3px;
    color: var(--muted, #6b746e);
    font-size: .68rem;
}
.participation-live-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #9aa39d;
    box-shadow: 0 0 0 4px rgba(154, 163, 157, .12);
}
.participation-live-indicator.is-online .participation-live-dot {
    background: #19a957;
    box-shadow: 0 0 0 4px rgba(25, 169, 87, .12);
    animation: participationLivePulse 1.8s ease-out infinite;
}
.participation-live-indicator.is-syncing .participation-live-dot {
    background: #e0a100;
    box-shadow: 0 0 0 4px rgba(224, 161, 0, .12);
    animation: participationLivePulse .9s ease-out infinite;
}
.participation-live-indicator.is-error .participation-live-dot {
    background: #d34d4d;
    box-shadow: 0 0 0 4px rgba(211, 77, 77, .12);
}
.participation-source-compact {
    padding-top: 14px;
    padding-bottom: 14px;
}
.participation-source-compact .form-section__head {
    margin-bottom: 4px;
}
.participation-live-table {
    transition: opacity .18s ease;
}
.participation-live-table.is-syncing {
    opacity: .66;
}
.participation-empty-row td {
    padding: 30px 16px !important;
    text-align: center;
    color: var(--muted, #6b746e);
}
.participation-live-error {
    margin-top: 12px;
}
@keyframes participationLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 169, 87, .28); }
    70% { box-shadow: 0 0 0 7px rgba(25, 169, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 169, 87, 0); }
}
@media (max-width: 680px) {
    .participation-heading-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .participation-heading-actions .btn,
    .participation-live-indicator {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .participation-live-dot,
    .participation-live-table {
        animation: none !important;
        transition: none !important;
    }
}


/* Pesquisa: participante responsável pela avaliação */
.survey-participant-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.survey-participant-link:hover,
.survey-participant-link:focus-visible {
    color: var(--primary, #2ee000);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Participação: sincronização externa robusta */
.participation-live-diagnostic{margin:8px 0 0}.participation-heading-actions [data-live-sync-now][disabled]{opacity:.62;cursor:wait}.participation-live-indicator.is-syncing{border-color:var(--line)}

/* Sincronização manual da participação */
.participation-manual-sync-form {
    margin: 0;
    display: inline-flex;
}
.participation-manual-sync-form .btn[aria-busy="true"] {
    cursor: wait;
    opacity: .72;
}
@media (max-width: 680px) {
    .participation-heading-actions,
    .participation-manual-sync-form,
    .participation-manual-sync-form .btn {
        width: 100%;
    }
}

/* Participacao: acao destrutiva controlada por tombstone de ingresso */
.participation-delete-btn{min-width:70px;justify-content:center}
.participation-live-table td[data-label="Ações"] form{margin:0}
@media(max-width:760px){.participation-delete-btn{width:100%}}


/* =========================================================
   MOBILE: CABECALHO COMPACTO, LOGOUT NO SIDEBAR E ACAO VER
   ========================================================= */
.sidebar-mobile-logout{display:none}
@media(max-width:680px){
  .topbar-context-label{display:none!important}
  .topbar-logout-form{display:none!important}
  .sidebar-mobile-logout{display:block;margin-top:auto}
  .sidebar-mobile-logout+.sidebar-footer{margin-top:0}
  .sidebar-mobile-logout .sidebar-logout-btn{width:100%;min-height:42px;justify-content:flex-start;border-color:rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff}
  .sidebar-mobile-logout .sidebar-logout-btn:hover{background:rgba(255,255,255,.12)}
  .sidebar-mobile-logout .sidebar-logout-btn .ui-action-icon{width:17px;height:17px;min-width:17px}
  .registrations-table .registration-col-view .registration-view-action{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center}
  .registrations-table .registration-view-action .ui-action-label{display:none!important}
  .registrations-table .registration-view-action .ui-action-icon{width:17px;height:17px;min-width:17px}
}

/* =========================================================
   MOBILE: ACOES COMPACTAS EM PARTICIPACAO + LOGIN ICON-ONLY
   ========================================================= */
/* Login: alternancia de senha somente por icone, com rotulo acessivel. */
.password-wrap input{padding-right:52px}
.password-wrap button.ui-action{
  width:36px;
  min-width:36px;
  height:34px;
  min-height:34px;
  padding:0;
  gap:0;
}
.password-wrap button.ui-action .ui-action-label{display:none!important}
.password-wrap button.ui-action .ui-action-icon{width:17px;height:17px;min-width:17px}

@media(max-width:680px){
  /* Participacao: acoes operacionais somente com icones. */
  .participation-heading-actions{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:7px;
    width:100%;
  }
  .participation-heading-actions .participation-icon-action,
  .participation-manual-sync-form .participation-icon-action,
  .participation-filter-btn,
  .participation-delete-btn{
    width:38px!important;
    min-width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    flex:0 0 38px!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }
  .participation-heading-actions .participation-manual-sync-form{
    width:auto!important;
    display:inline-flex;
    margin:0;
  }
  .participation-icon-action .ui-action-label,
  .participation-filter-btn .ui-action-label,
  .participation-delete-btn .ui-action-label{display:none!important}
  .participation-icon-action .ui-action-icon,
  .participation-filter-btn .ui-action-icon,
  .participation-delete-btn .ui-action-icon{width:17px;height:17px;min-width:17px}
  .participation-live-indicator{width:100%;margin-top:1px}
  .participation-live-table td[data-label="Ações"] form{display:flex;justify-content:flex-start}
  .participation-live-table td[data-label="Ações"]{padding-top:4px}

  /* Filtro continua responsivo; apenas o submit vira icon-only. */
  .participation-live-page .form-toolbar .participation-filter-btn{
    justify-self:start;
    width:38px!important;
  }
}


/* =========================================================
   MOBILE: PARTICIPACAO EM 2 COLUNAS + TABELA NOME/SITUACAO
   ========================================================= */
@media(max-width:680px){
  /* KPIs operacionais: dois cards por linha para reduzir rolagem. */
  .participation-live-page .participation-live-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px;
  }
  .participation-live-page .participation-live-stats .stat-card{
    min-width:0;
    padding:12px 11px;
  }
  .participation-live-page .participation-live-stats .stat-card span{
    font-size:11px;
    line-height:1.25;
  }
  .participation-live-page .participation-live-stats .stat-card strong{
    margin-top:5px;
    font-size:23px;
    line-height:1;
  }

  /* A listagem deixa de virar cards e assume tabela compacta de 2 colunas. */
  .participation-live-table{
    overflow-x:hidden;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fff;
  }
  table.responsive.participation-records-table{
    display:table;
    width:100%;
    min-width:0;
    table-layout:fixed;
    border-collapse:collapse;
  }
  table.responsive.participation-records-table thead{display:table-header-group}
  table.responsive.participation-records-table tbody{display:table-row-group}
  table.responsive.participation-records-table tr{
    display:table-row;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
  }
  table.responsive.participation-records-table th,
  table.responsive.participation-records-table td{
    display:table-cell;
    grid-template-columns:none;
    gap:0;
    padding:10px 11px;
    border-bottom:1px solid var(--line);
    vertical-align:middle;
    overflow-wrap:anywhere;
  }
  table.responsive.participation-records-table td:before{content:none!important}

  /* Mobile exibe somente NOME | SITUACAO. */
  table.responsive.participation-records-table th:not(:nth-child(1)):not(:nth-child(6)),
  table.responsive.participation-records-table td:not(:nth-child(1)):not(:nth-child(6)){
    display:none!important;
  }
  table.responsive.participation-records-table th:nth-child(1),
  table.responsive.participation-records-table td:nth-child(1){width:64%;text-align:left}
  table.responsive.participation-records-table th:nth-child(6),
  table.responsive.participation-records-table td:nth-child(6){width:36%;text-align:right}
  table.responsive.participation-records-table th{
    font-size:10px;
    letter-spacing:.06em;
    text-transform:uppercase;
  }
  table.responsive.participation-records-table td{
    font-size:12px;
  }
  table.responsive.participation-records-table td:nth-child(1) strong{
    display:block;
    font-size:12px;
    line-height:1.25;
  }
  table.responsive.participation-records-table td:nth-child(1) small{display:none!important}
  table.responsive.participation-records-table td:nth-child(6) .status{
    display:inline-flex;
    max-width:100%;
    justify-content:center;
    white-space:normal;
    text-align:center;
    line-height:1.15;
    font-size:10px;
    padding:5px 7px;
  }
  table.responsive.participation-records-table .participation-empty-row td{
    display:table-cell!important;
    width:auto!important;
    text-align:center!important;
    padding:22px 12px!important;
  }
}


/* =========================================================
   MOBILE: PARTICIPACAO COMPACTA PARA PERFIL DE CLIENTE
   - status de sincronizacao fica oculto no manager;
   - filtro usa duas linhas compactas e botao icon-only;
   - remove espacos verticais excessivos sem afetar desktop.
   ========================================================= */
@media(max-width:680px){
  .admin-body--participation .admin-main{
    padding:8px 10px 14px!important;
  }
  .admin-body--participation .participation-live-page{
    margin:0!important;
    padding:0!important;
  }
  .admin-body--participation .participation-live-page .page-heading{
    margin:0 0 8px!important;
    gap:6px!important;
  }
  .admin-body--participation .participation-live-page .page-heading>div:first-child{
    display:grid;
    gap:1px;
  }
  .admin-body--participation .participation-live-page .page-heading .muted.small{
    font-size:10px!important;
    line-height:1.1!important;
  }
  .admin-body--participation .participation-live-page .page-heading .eyebrow{
    font-size:9px!important;
    line-height:1.1!important;
  }
  .admin-body--participation .participation-live-page .page-heading h1{
    margin:2px 0 0!important;
    font-size:23px!important;
    line-height:1.06!important;
  }
  .admin-body--participation .participation-heading-actions{
    gap:6px!important;
    margin:0!important;
  }
  .admin-body--participation .participation-heading-actions .participation-icon-action,
  .admin-body--participation .participation-manual-sync-form .participation-icon-action{
    width:34px!important;
    min-width:34px!important;
    height:34px!important;
    min-height:34px!important;
    flex:0 0 34px!important;
  }
  .admin-body--participation .participation-heading-actions .ui-action-icon{
    width:15px!important;
    height:15px!important;
    min-width:15px!important;
  }
  .admin-body--participation .participation-live-stats{
    gap:6px!important;
    margin:0 0 8px!important;
  }
  .admin-body--participation .participation-live-stats .stat-card{
    padding:10px!important;
    border-radius:10px!important;
  }
  .admin-body--participation .participation-live-stats .stat-card span{
    font-size:9px!important;
    line-height:1.15!important;
  }
  .admin-body--participation .participation-live-stats .stat-card strong{
    margin-top:4px!important;
    font-size:22px!important;
  }
  .admin-body--participation .attendance-ignored-note,
  .admin-body--participation .participation-live-error{
    margin-bottom:8px!important;
    padding:9px 10px!important;
    font-size:11px!important;
  }
  .admin-body--participation .participation-filter-toolbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 34px!important;
    align-items:end!important;
    gap:6px!important;
    padding:9px!important;
    margin:0 0 8px!important;
    border-radius:10px!important;
  }
  .admin-body--participation .participation-filter-toolbar>.field{
    margin:0!important;
    min-width:0!important;
    gap:4px!important;
  }
  .admin-body--participation .participation-filter-toolbar>.field-grow{
    grid-column:1/-1!important;
  }
  .admin-body--participation .participation-filter-toolbar>.field-compact{
    grid-column:1!important;
  }
  .admin-body--participation .participation-filter-toolbar .field>span{
    font-size:10px!important;
    line-height:1.1!important;
  }
  .admin-body--participation .participation-filter-toolbar input,
  .admin-body--participation .participation-filter-toolbar select{
    min-height:36px!important;
    height:36px!important;
    padding:7px 9px!important;
    font-size:12px!important;
  }
  .admin-body--participation .participation-filter-toolbar .participation-filter-btn{
    grid-column:2!important;
    width:34px!important;
    min-width:34px!important;
    height:36px!important;
    min-height:36px!important;
    padding:0!important;
    margin:0!important;
    justify-self:end!important;
    font-size:0!important;
  }
  .admin-body--participation .participation-filter-toolbar .participation-filter-btn .ui-action-label{
    display:none!important;
  }
  .admin-body--participation .participation-filter-toolbar .participation-filter-btn .ui-action-icon{
    width:15px!important;
    height:15px!important;
    min-width:15px!important;
  }
  .admin-body--participation .participation-mobile-summary{
    margin-top:0!important;
  }
  .admin-body--participation .participation-pagination-wrap{
    margin-top:8px!important;
  }
}

/* =========================================================
   INSCRITOS MOBILE: EXPORTAR COMPACTO SOMENTE POR ICONE
   ========================================================= */
@media(max-width:680px){
  .page-heading .registrations-heading-actions{
    width:100%;
    display:flex!important;
    grid-template-columns:none!important;
    justify-content:flex-start;
    align-items:center;
  }
  .page-heading .registrations-heading-actions .registrations-export-action{
    flex:0 0 36px!important;
    width:36px!important;
    min-width:36px!important;
    height:36px;
    min-height:36px;
    padding:0!important;
    gap:0;
  }
  .registrations-export-action .ui-action-label{display:none!important}
  .registrations-export-action .ui-action-icon{width:17px;height:17px;min-width:17px}
}

/* Importacao manual de respostas da pesquisa - exclusivo do Administrador Master. */
.survey-manual-import-notice{margin-bottom:16px;border-left:4px solid var(--fb-green);background:#fbfefb}.survey-manual-import-notice strong{display:block;margin-bottom:5px}.survey-manual-import-notice p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.survey-manual-import-form{display:grid;gap:22px}.survey-manual-section+.survey-manual-section{border-top:1px solid var(--line);padding-top:20px}.survey-manual-section .form-section__head{margin-bottom:14px}.survey-manual-section .form-section__head h2{margin:3px 0 4px}.survey-manual-identification .field{max-width:420px}.survey-manual-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.survey-manual-question{min-width:0;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.survey-manual-question--full{grid-column:1/-1}.survey-manual-question__label{font-size:13px;font-weight:800;line-height:1.4;margin-bottom:10px}.survey-manual-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.survey-manual-options .checkbox{padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:#fafcfb;margin:0}.survey-manual-rating{display:flex;gap:7px;flex-wrap:wrap}.survey-manual-rating label{position:relative}.survey-manual-rating input{position:absolute;opacity:0;pointer-events:none}.survey-manual-rating span{min-width:42px;min-height:40px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#fff;display:grid;place-items:center;font-size:12px;font-weight:800;cursor:pointer}.survey-manual-rating input:checked+span{border-color:#52b44d;background:#eaf8e7;color:#21671c;box-shadow:0 0 0 2px rgba(46,224,0,.10)}.survey-manual-rating--scale span{min-width:92px}.survey-manual-acceptance{padding:10px;border:1px solid var(--line);border-radius:9px;background:#fafcfb;width:max-content;max-width:100%}.survey-manual-actions{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:18px}
@media(max-width:680px){.survey-manual-fields{grid-template-columns:1fr}.survey-manual-question--full{grid-column:auto}.survey-manual-options{grid-template-columns:1fr}.survey-manual-rating{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.survey-manual-rating--scale{grid-template-columns:repeat(2,minmax(0,1fr))}.survey-manual-rating span,.survey-manual-rating--scale span{width:100%;min-width:0}.survey-manual-actions{display:grid;grid-template-columns:1fr 1fr}.survey-manual-actions .btn{width:100%}}

/* Importacao em massa de respostas da pesquisa por XLSX */
.survey-xlsx-import-notice{margin-bottom:16px;border-left:4px solid var(--fb-green);background:#fbfefb}.survey-xlsx-import-notice strong{display:block;margin-bottom:5px}.survey-xlsx-import-notice p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.survey-xlsx-import-layout{align-items:stretch;margin-bottom:18px}.survey-xlsx-import-form,.survey-xlsx-import-format{min-width:0}.survey-xlsx-import-form .form-section__head,.survey-xlsx-issues-card .form-section__head{margin-bottom:14px}.survey-xlsx-import-form h2,.survey-xlsx-import-format h2,.survey-xlsx-question-map h2,.survey-xlsx-result-heading h2{margin:3px 0 5px}.survey-xlsx-import-actions{display:flex;justify-content:flex-end;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.survey-xlsx-columns{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}.survey-xlsx-columns code{font-family:inherit;font-size:11px;font-weight:800;padding:6px 9px;border-radius:999px;background:#eef7ef;color:#256f2c;border:1px solid #dcebdd}.survey-xlsx-format-note{line-height:1.55;margin:8px 0 0}.survey-xlsx-question-map{margin-bottom:20px}.survey-xlsx-question-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}.survey-xlsx-question-list>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;align-items:start;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fafcfb}.survey-xlsx-question-list strong{font-size:11px;color:var(--fb-green);text-transform:uppercase;letter-spacing:.04em}.survey-xlsx-question-list span{font-size:12px;line-height:1.45}.survey-xlsx-result-heading{margin:24px 0 12px}.survey-xlsx-result-heading p{margin:0}.survey-xlsx-import-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.survey-xlsx-stat--success{border-color:#cfe9d0;background:#f7fcf7}.survey-xlsx-stat--success strong{color:#247a31}.survey-xlsx-stat--not-imported{border-color:#ead8b4;background:#fffaf2}.survey-xlsx-stat--not-imported strong{color:#9b5c00}.survey-xlsx-stat--duplicate{border-color:#efe1b5;background:#fffdf5}.survey-xlsx-stat--duplicate strong{color:#8a6818}.survey-xlsx-stat--error{border-color:#f1d1cc;background:#fff9f8}.survey-xlsx-stat--error strong{color:#a74034}.survey-xlsx-breakdown{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin-bottom:18px;padding:0;overflow:hidden}.survey-xlsx-breakdown>div{padding:14px;border-right:1px solid var(--line)}.survey-xlsx-breakdown>div:last-child{border-right:0}.survey-xlsx-breakdown span{display:block;color:var(--muted);font-size:11px;line-height:1.35}.survey-xlsx-breakdown strong{display:block;margin-top:5px;font-size:21px}.survey-xlsx-issues-card{padding-bottom:12px}.survey-xlsx-issues-card .form-section__head{align-items:flex-start}.survey-xlsx-not-imported-count{white-space:nowrap;font-size:13px;color:#8b3f31;background:#fff3f0;border:1px solid #f1d1cc;border-radius:999px;padding:7px 10px}.survey-xlsx-issues-table{min-width:1060px}.survey-xlsx-issues-table th:nth-child(1){width:64px}.survey-xlsx-issues-table th:nth-child(2){width:92px}.survey-xlsx-issues-table th:nth-child(3){width:140px}.survey-xlsx-issues-table th:nth-child(4){width:20%}.survey-xlsx-issues-table th:nth-child(5){width:150px}.survey-xlsx-issues-table th:nth-child(6){width:180px}.survey-xlsx-issues-table td:last-child{white-space:normal;line-height:1.45;min-width:260px}.survey-xlsx-issue-badge{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:800;line-height:1.2;border:1px solid #e3e7e5;background:#f6f8f7;color:#4a5550}.survey-xlsx-issue-badge--invalid_cpf,.survey-xlsx-issue-badge--database_error{background:#fff3f0;border-color:#f0cec7;color:#963c31}.survey-xlsx-issue-badge--participant_not_found{background:#fff8eb;border-color:#efdfbd;color:#8a6416}.survey-xlsx-issue-badge--duplicate_existing,.survey-xlsx-issue-badge--duplicate_file{background:#f7f3ff;border-color:#ddd0f4;color:#6845a2}.survey-xlsx-issue-badge--invalid_answer{background:#fff7ed;border-color:#f2dac1;color:#9a5b1f}.survey-xlsx-result-time{margin-top:3px!important}.survey-xlsx-all-imported{border-left:4px solid var(--fb-green);background:#f8fcf8}.survey-xlsx-all-imported strong{display:block;margin-bottom:5px}.survey-xlsx-all-imported p{margin:0}.survey-xlsx-truncated{margin:12px 0 0}
@media(max-width:980px){.survey-xlsx-import-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.survey-xlsx-breakdown{grid-template-columns:repeat(3,minmax(0,1fr))}.survey-xlsx-breakdown>div:nth-child(3){border-right:0}.survey-xlsx-breakdown>div:nth-child(-n+3){border-bottom:1px solid var(--line)}}
@media(max-width:680px){.survey-xlsx-not-imported-count{font-size:11px;padding:6px 8px}.survey-xlsx-import-heading .actions{display:grid;grid-template-columns:1fr 1fr}.survey-xlsx-import-heading .actions .btn{width:100%}.survey-xlsx-import-layout{grid-template-columns:1fr}.survey-xlsx-question-list{grid-template-columns:1fr}.survey-xlsx-question-list>div{grid-template-columns:92px minmax(0,1fr)}.survey-xlsx-import-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.survey-xlsx-import-stats .stat-card{padding:12px}.survey-xlsx-import-stats .stat-card span{font-size:11px}.survey-xlsx-import-stats .stat-card strong{font-size:23px}.survey-xlsx-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.survey-xlsx-breakdown>div{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.survey-xlsx-breakdown>div:nth-child(2n){border-right:0}.survey-xlsx-breakdown>div:nth-last-child(-n+2){border-bottom:0}.survey-xlsx-import-actions .btn{width:100%}}

/* Edição do evento: configuração do banco externo de participação */
.event-attendance-config-card { margin-top: 18px; scroll-margin-top: 18px; }
.event-attendance-config-card .editor-card__head { align-items: flex-start; }
.event-attendance-config-card .editor-card__title p { margin: 5px 0 0; max-width: 760px; }
.event-attendance-db-meta { margin: 4px 0 14px; }
.event-attendance-db-meta .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.event-attendance-db-meta form { margin: 0; }
.event-attendance-query-block { border-top: 1px solid var(--border, #dde4df); margin-top: 16px; padding-top: 18px; }
.event-attendance-query-block .external-sql-editor { min-height: 330px; }
@media (max-width: 640px) {
    .event-attendance-db-meta .actions,
    .event-attendance-db-meta form,
    .event-attendance-db-meta .btn { width: 100%; }
    .event-attendance-query-block .external-sql-editor { min-height: 420px; }
}

/* Pesquisa independente: edição, ordem e regras de exibição */
.survey-question-head{gap:12px;align-items:flex-start}
.survey-question-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.survey-question-actions form{margin:0}
.survey-condition-summary{margin-top:10px;padding:9px 11px;border:1px solid #dfe8e1;border-radius:10px;background:#f8fbf8;font-size:.82rem;line-height:1.45;color:var(--muted)}
.survey-question-editor{margin-top:10px;border-top:1px solid var(--line);padding-top:10px}
.survey-question-editor>summary{cursor:pointer;font-weight:750;color:var(--text);font-size:.84rem;list-style:none;width:max-content}
.survey-question-editor>summary::-webkit-details-marker{display:none}
.survey-question-editor>summary:before{content:'✎';margin-right:6px}
.survey-question-edit-form{margin-top:12px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fbfcfb}
.survey-condition-editor{display:grid;gap:10px;padding:12px;border:1px solid #dfe8e1;border-radius:12px;background:#f7faf7}
.survey-condition-editor h3{font-size:.95rem;margin:2px 0 0}
.survey-condition-editor--compact{padding:10px}
.survey-draft-link-option{align-content:start}
.survey-draft-link-option .checkbox{margin:2px 0 0}
.survey-draft-link-option small{display:block;color:var(--muted);line-height:1.35;margin-top:4px}

/* Pesquisa pública: perguntas condicionais */
.survey-question[hidden]{display:none!important}

/* Pesquisa pública em rascunho */
.survey-construction{min-height:calc(100vh - 150px);display:grid;place-items:center;padding:48px 0;background:linear-gradient(180deg,#fbfdfb 0%,#f3f7f4 100%)}
.survey-construction__container{width:100%}
.survey-construction__card{width:min(100%,760px);margin:0 auto;background:#fff;border:1px solid #dfe8e1;border-radius:24px;box-shadow:0 24px 70px rgba(25,48,31,.10);overflow:hidden}
.survey-construction__media{margin:0;aspect-ratio:16/7;background:#f4f7f4;overflow:hidden}
.survey-construction__media img{width:100%;height:100%;object-fit:cover;display:block}
.survey-construction__content{padding:42px 46px;text-align:center;display:grid;justify-items:center;gap:14px}
.survey-construction__content h1{margin:0;font-size:clamp(1.8rem,4vw,2.6rem)}
.survey-construction__content p{margin:0;max-width:520px;color:var(--muted);font-size:1rem}
.survey-construction__status{display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;border-radius:999px;background:#edf6ee;color:#176f27;font-weight:800;font-size:.9rem}

@media(max-width:720px){
  .survey-question-actions{width:100%;justify-content:flex-start}
  .survey-question-head{flex-direction:column}
  .survey-question-edit-form{padding:10px}
  .survey-construction{padding:24px 0}
  .survey-construction__card{border-radius:16px}
  .survey-construction__content{padding:30px 22px}
}

.survey-background-color-field .color-field{display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px;align-items:center}.survey-background-color-field input[type=color]{width:58px;height:43px;padding:4px;border-radius:9px}.survey-background-color-field small{color:var(--muted);line-height:1.4}

/* Politica de Privacidade */
.privacy-hero{padding:58px 0 52px;background:linear-gradient(135deg,#151315 0%,#262226 72%,#1d2b1b 100%);color:#fff;position:relative;overflow:hidden}
.privacy-hero:after{content:"";position:absolute;right:-90px;bottom:-160px;width:360px;height:360px;border-radius:50%;background:var(--brand-primary,#2ee000);opacity:.18;filter:blur(2px)}
.privacy-hero__inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:end}
.privacy-hero h1{margin:8px 0 14px;font-size:clamp(40px,5vw,68px);line-height:1;letter-spacing:-.05em}
.privacy-hero p{margin:0;max-width:760px;color:#dedbdd;font-size:18px;line-height:1.65}
.privacy-hero__meta{min-width:250px;padding:18px 20px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.07);backdrop-filter:blur(8px);border-radius:16px;display:grid;gap:4px}
.privacy-hero__meta span,.privacy-hero__meta small{font-size:12px;color:#c9c5c8}
.privacy-hero__meta strong{font-size:16px;color:#fff}
.privacy-page{padding:42px 0 64px;background:#f5f7f5}
.privacy-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:26px;align-items:start}
.privacy-toc{position:sticky;top:24px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;display:grid;gap:3px;box-shadow:0 10px 28px rgba(27,31,28,.05);max-height:calc(100vh - 48px);overflow:auto}
.privacy-toc strong{font-size:13px;margin-bottom:7px;color:var(--text)}
.privacy-toc a{font-size:12px;line-height:1.35;color:var(--muted);padding:7px 8px;border-radius:8px}
.privacy-toc a:hover{background:#f0f5f0;color:var(--text)}
.privacy-content{display:grid;gap:16px;min-width:0}
.privacy-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px 30px;box-shadow:0 10px 30px rgba(25,30,26,.045);scroll-margin-top:24px}
.privacy-card h2{margin:0 0 15px;font-size:clamp(22px,2.2vw,30px);letter-spacing:-.025em;line-height:1.15}
.privacy-card p{margin:0 0 14px;line-height:1.75;color:#464247}
.privacy-card p:last-child{margin-bottom:0}
.privacy-card ul{margin:5px 0 0;padding-left:22px;display:grid;gap:9px;color:#464247;line-height:1.6}
.privacy-card strong{color:#201d20}
.privacy-card--intro{border-top:4px solid var(--brand-primary,#2ee000)}
.privacy-card--intro h2{font-size:clamp(28px,3vw,38px);max-width:720px}
.privacy-card--summary{background:linear-gradient(180deg,#ffffff,#fbfdfb)}
.privacy-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
.privacy-summary-grid>div{border:1px solid #e1e8e2;border-radius:14px;padding:16px;background:#fff;display:grid;gap:5px}
.privacy-summary-grid strong{font-size:14px}
.privacy-summary-grid span{font-size:13px;line-height:1.55;color:var(--muted)}
.privacy-definitions{margin:0;display:grid;gap:0}
.privacy-definitions>div{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;padding:13px 0;border-bottom:1px solid #edf0ed}
.privacy-definitions>div:last-child{border-bottom:0}
.privacy-definitions dt{font-weight:800;color:#201d20}
.privacy-definitions dd{margin:0;color:#565157;line-height:1.6}
.privacy-table-wrap{overflow-x:auto;margin:18px 0 20px;border:1px solid #e0e5e1;border-radius:14px}
.privacy-data-table{width:100%;border-collapse:collapse;min-width:760px;background:#fff}
.privacy-data-table th,.privacy-data-table td{padding:13px 15px;text-align:left;vertical-align:top;border-bottom:1px solid #e9ede9;font-size:13px;line-height:1.55}
.privacy-data-table th{background:#f4f7f4;color:#242124;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.privacy-data-table tr:last-child td{border-bottom:0}
.privacy-data-table td:first-child{font-weight:750;color:#2b272a;width:170px}
.privacy-card--contact{background:linear-gradient(135deg,#fff 0%,#f5fff2 100%);border-color:#d6ead2}
.privacy-card--contact a{font-weight:800;text-decoration:underline;text-underline-offset:3px}
.privacy-contact-note{font-size:13px;color:var(--muted)!important;border-top:1px solid #e0ebe0;padding-top:14px;margin-top:18px!important}
@media(max-width:980px){.privacy-hero__inner{grid-template-columns:1fr}.privacy-hero__meta{width:min(100%,420px)}.privacy-layout{grid-template-columns:1fr}.privacy-toc{position:static;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))}.privacy-toc strong{grid-column:1/-1}.privacy-summary-grid{grid-template-columns:1fr}.privacy-definitions>div{grid-template-columns:1fr;gap:5px}}
@media(max-width:680px){.privacy-hero{padding:44px 0 38px}.privacy-hero p{font-size:16px}.privacy-page{padding:22px 0 40px}.privacy-toc{display:none}.privacy-card{padding:22px 18px;border-radius:15px}.privacy-card h2{font-size:23px}.privacy-definitions>div{padding:12px 0}.privacy-table-wrap{margin-left:-2px;margin-right:-2px}}

/* =========================================================
   LANDING PAGE COMERCIAL - FRONTBOX
   Escopo da pagina publica /login; a raiz / redireciona para ela.
   ========================================================= */
.public-body--commercial{background:#fff;color:#191d1a}
.public-body--commercial .public-main{min-height:auto;overflow:hidden}
.public-header--commercial{height:78px;position:sticky;top:0;z-index:80;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(31,36,33,.08)}
.public-header--commercial .container{height:100%}
.public-header--commercial .brand-logo{width:144px}
.public-brand{display:inline-flex;align-items:center;flex:0 0 auto}
.commercial-nav{display:flex;align-items:center;gap:30px;margin-left:auto;margin-right:18px}
.commercial-nav a{position:relative;font-size:13px;font-weight:700;color:#4f5752;transition:color .18s ease}
.commercial-nav a:after{content:"";position:absolute;left:0;right:100%;bottom:-7px;height:2px;border-radius:99px;background:var(--fb-green);transition:right .18s ease}
.commercial-nav a:hover{color:#171b18}.commercial-nav a:hover:after{right:0}
.commercial-header-actions{display:flex;align-items:center;gap:9px}
.commercial-header-login,.commercial-header-cta{min-height:40px;padding:9px 14px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:800;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.commercial-header-login{border:1px solid #dce3de;background:#fff;color:#222824}
.commercial-header-cta{background:#202321;color:#fff;border:1px solid #202321}
.commercial-header-login:hover,.commercial-header-cta:hover{transform:translateY(-1px)}
.commercial-header-cta:hover{box-shadow:0 8px 20px rgba(18,24,20,.14)}

.commercial-hero{position:relative;padding:88px 0 92px;background:radial-gradient(circle at 78% 18%,rgba(46,224,0,.11),transparent 28%),linear-gradient(180deg,#fbfdfb 0%,#f4f8f5 100%);border-bottom:1px solid #e8ede9;overflow:hidden}
.commercial-hero:before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(22,28,24,.026) 1px,transparent 1px),linear-gradient(90deg,rgba(22,28,24,.026) 1px,transparent 1px);background-size:44px 44px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 88%);pointer-events:none}
.commercial-hero__grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.92fr) minmax(520px,1.08fr);gap:66px;align-items:center}
.commercial-hero__content{max-width:610px}
.commercial-kicker{display:inline-flex;align-items:center;gap:9px;color:#397d32;font-size:11px;letter-spacing:.105em;text-transform:uppercase;font-weight:900}
.commercial-kicker>span{width:18px;height:2px;border-radius:99px;background:var(--fb-green)}
.commercial-hero h1{margin:18px 0 20px;max-width:720px;color:#171a18;font-size:clamp(48px,5.35vw,76px);line-height:.98;letter-spacing:-.062em;font-weight:850}
.commercial-hero__lead{margin:0;max-width:650px;color:#59615c;font-size:18px;line-height:1.7}
.commercial-hero__actions{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-top:31px}
.commercial-btn{min-height:50px;padding:12px 18px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:13.5px;font-weight:850;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease,background .16s ease}
.commercial-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.commercial-btn:hover{transform:translateY(-2px)}
.commercial-btn--primary{background:var(--fb-green);color:#14320f;box-shadow:0 12px 28px rgba(46,224,0,.18)}
.commercial-btn--primary:hover{box-shadow:0 15px 34px rgba(46,224,0,.26)}
.commercial-btn--secondary{background:#fff;border:1px solid #dbe3dd;color:#252b27}
.commercial-btn--secondary:hover{border-color:#b9c6bd;box-shadow:0 8px 20px rgba(25,36,29,.07)}
.commercial-hero__checks{display:flex;align-items:center;gap:17px;flex-wrap:wrap;margin-top:25px;color:#616963;font-size:12px;font-weight:700}
.commercial-hero__checks span{display:inline-flex;align-items:center;gap:6px}
.commercial-hero__checks i{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#e6f8e4;color:#26801d;font-style:normal;font-size:11px;font-weight:900}

.commercial-product{position:relative;min-height:500px;display:flex;align-items:center;justify-content:center}
.commercial-product__glow{position:absolute;width:440px;height:440px;border-radius:50%;background:rgba(46,224,0,.12);filter:blur(58px)}
.commercial-browser{position:relative;z-index:2;width:min(650px,100%);border:1px solid #dbe2dd;border-radius:18px;background:#fff;box-shadow:0 32px 70px rgba(22,35,26,.15),0 3px 12px rgba(22,35,26,.05);overflow:hidden;transform:perspective(1200px) rotateY(-2deg) rotateX(1deg)}
.commercial-browser__top{height:42px;padding:0 13px;display:grid;grid-template-columns:88px 1fr 88px;align-items:center;border-bottom:1px solid #e6ebe7;background:#fbfcfb}
.commercial-browser__top>span{justify-self:center;width:min(280px,100%);padding:5px 13px;border-radius:999px;background:#f0f3f1;color:#7a827d;font-size:9px;text-align:center}
.commercial-browser__dots{display:flex;gap:5px}.commercial-browser__dots i{display:block;width:7px;height:7px;border-radius:50%;background:#d2d8d4}.commercial-browser__dots i:first-child{background:#8dda83}.commercial-browser__dots i:nth-child(2){background:#b9c9bb}
.commercial-dashboard{min-height:366px;display:grid;grid-template-columns:64px 1fr;background:#f6f8f7}
.commercial-dashboard__side{padding:16px 12px;background:#211f20;display:flex;flex-direction:column;align-items:center;gap:14px}
.commercial-dashboard__side img{width:39px;height:auto;margin-bottom:14px;object-fit:contain}
.commercial-dashboard__side span{width:28px;height:7px;border-radius:99px;background:rgba(255,255,255,.14)}
.commercial-dashboard__side span.is-active{background:var(--fb-green)}
.commercial-dashboard__main{padding:20px 19px 18px;min-width:0}
.commercial-dashboard__heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.commercial-dashboard__heading div{display:grid;gap:2px}.commercial-dashboard__heading small{font-size:7px;letter-spacing:.13em;color:#7d8680;font-weight:800}.commercial-dashboard__heading strong{font-size:15px;color:#252a27}.commercial-dashboard__heading em{font-style:normal;font-size:7px;color:#4c8550;padding:5px 8px;background:#ecf8eb;border-radius:99px}
.commercial-dashboard__cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.commercial-dashboard__cards article{padding:12px 11px;border:1px solid #e2e7e3;border-radius:9px;background:#fff;min-width:0}.commercial-dashboard__cards small{display:block;color:#7e8681;font-size:7.5px}.commercial-dashboard__cards strong{display:block;margin:4px 0 3px;font-size:20px;letter-spacing:-.04em}.commercial-dashboard__cards span{display:block;color:#849088;font-size:6.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.commercial-dashboard__charts{display:grid;grid-template-columns:1.55fr .8fr;gap:8px;margin-top:8px}
.commercial-chart{min-height:164px;padding:13px;border:1px solid #e2e7e3;border-radius:9px;background:#fff}.commercial-chart__title{display:flex;align-items:center;justify-content:space-between;gap:8px}.commercial-chart__title strong{font-size:8px}.commercial-chart__title span{font-size:6.5px;color:#8a928d}
.commercial-bars{height:115px;display:flex;align-items:flex-end;justify-content:space-between;gap:7px;padding-top:18px;border-bottom:1px solid #ebefec;background:linear-gradient(to bottom,transparent 32%,#f2f5f3 33%,transparent 34%,transparent 65%,#f2f5f3 66%,transparent 67%)}
.commercial-bars i{flex:1;height:var(--h);max-width:18px;background:linear-gradient(180deg,#50e42b,#2cb319);border-radius:4px 4px 1px 1px;box-shadow:0 4px 10px rgba(46,224,0,.12)}
.commercial-chart--donut{display:flex;flex-direction:column}.commercial-donut{width:88px;height:88px;margin:17px auto 9px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--fb-green) 0 68%,#252223 68% 87%,#dfe6e1 87%);position:relative}.commercial-donut:after{content:"";position:absolute;width:59px;height:59px;border-radius:50%;background:#fff}.commercial-donut span{position:relative;z-index:1;font-size:10px;font-weight:850}.commercial-donut__legend{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;color:#7b847e;font-size:5.8px}.commercial-donut__legend span{display:flex;align-items:center;gap:3px}.commercial-donut__legend i{width:5px;height:5px;border-radius:50%;background:var(--fb-green)}.commercial-donut__legend span:nth-child(2) i{background:#252223}
.commercial-floating-card{position:absolute;z-index:3;display:flex;align-items:center;gap:9px;min-width:158px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.96);border:1px solid #e0e6e2;box-shadow:0 16px 38px rgba(23,34,27,.12)}
.commercial-floating-card--top{top:48px;right:-18px}.commercial-floating-card--bottom{bottom:41px;left:-24px}
.commercial-floating-card__icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e5fae1;color:#287d22;font-size:12px;font-weight:900}.commercial-floating-card__icon--dark{background:#242223;color:#fff}.commercial-floating-card div{display:grid;gap:1px}.commercial-floating-card small{font-size:7px;color:#89918c}.commercial-floating-card strong{font-size:9.5px}

.commercial-proof{padding:25px 0;background:#fff;border-bottom:1px solid #edf1ee}
.commercial-proof__inner{display:flex;align-items:center;justify-content:space-between;gap:30px}
.commercial-proof p{margin:0;color:#747d76;font-size:12px;font-weight:700}
.commercial-proof__items{display:flex;align-items:center;justify-content:flex-end;gap:15px;flex-wrap:wrap;color:#393f3b;font-size:11px;font-weight:800}.commercial-proof__items i{width:4px;height:4px;border-radius:50%;background:var(--fb-green)}

.commercial-section{padding:96px 0;background:#fff}
.commercial-section__heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.56fr);gap:70px;align-items:end;margin-bottom:42px}
.commercial-section__heading h2{margin:13px 0 0;max-width:740px;font-size:clamp(36px,4.2vw,58px);line-height:1.04;letter-spacing:-.05em;color:#1b1f1c}
.commercial-section__heading>p{margin:0;color:#69716c;font-size:15px;line-height:1.7}
.commercial-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.commercial-feature{position:relative;min-height:292px;padding:24px;border:1px solid #e2e7e4;border-radius:18px;background:#fbfcfb;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.commercial-feature:hover{transform:translateY(-3px);border-color:#cbd7ce;box-shadow:0 18px 38px rgba(24,37,28,.07)}
.commercial-feature--large{grid-column:span 2;background:linear-gradient(135deg,#f7fbf7,#f2f8f3);padding-right:43%}
.commercial-feature__icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#e9f8e7;color:#287d24;margin-bottom:36px}.commercial-feature__icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.commercial-feature__tag{display:block;color:#66806a;font-size:9.5px;letter-spacing:.1em;text-transform:uppercase;font-weight:850}.commercial-feature h3{margin:7px 0 9px;max-width:420px;font-size:22px;line-height:1.18;letter-spacing:-.025em}.commercial-feature p{margin:0;max-width:430px;color:#707872;font-size:13px;line-height:1.65}.commercial-feature__mini-form{position:absolute;right:24px;bottom:24px;top:24px;width:34%;padding:24px 18px;border-radius:14px;background:#fff;border:1px solid #e1e7e2;box-shadow:0 15px 30px rgba(20,35,25,.07);display:flex;flex-direction:column;gap:12px}.commercial-feature__mini-form>span{height:32px;border:1px solid #e0e6e2;border-radius:7px;background:#fafcfa}.commercial-feature__mini-form>div{display:flex;gap:9px}.commercial-feature__mini-form>div i{flex:1;height:28px;border-radius:7px;background:#eff4f0}.commercial-feature__mini-form>b{height:34px;margin-top:auto;border-radius:7px;background:var(--fb-green)}
.commercial-feature--dark{background:#211f20;color:#fff;border-color:#211f20}.commercial-feature--dark:hover{border-color:#211f20;box-shadow:0 20px 42px rgba(19,17,18,.17)}.commercial-feature--dark .commercial-feature__icon{background:rgba(46,224,0,.12);color:#63eb46}.commercial-feature--dark .commercial-feature__tag{color:#8edb82}.commercial-feature--dark h3{color:#fff}.commercial-feature--dark p{color:#c9c6c8}.commercial-feature--dark a{position:absolute;left:24px;bottom:22px;color:#68e94d;font-size:12px;font-weight:850}.commercial-feature--dark a span{margin-left:5px}

.commercial-section--flow{background:#f5f7f5;border-block:1px solid #e8ede9}
.commercial-section__heading--center{grid-template-columns:1fr;text-align:center;max-width:840px;margin:0 auto 54px;gap:15px}.commercial-section__heading--center h2{margin-inline:auto}.commercial-section__heading--center>p{max-width:650px;margin-inline:auto}
.commercial-flow{display:grid;grid-template-columns:1fr 80px 1fr 80px 1fr;align-items:center}
.commercial-flow article{position:relative;min-height:270px;padding:27px 25px;border:1px solid #dfe6e1;border-radius:18px;background:#fff}.commercial-flow__number{position:absolute;right:20px;top:17px;color:#dce4de;font-size:26px;font-weight:900}.commercial-flow__icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#ecf8ea;color:#2f7f2a;margin-bottom:34px}.commercial-flow__icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.commercial-flow article>small{color:#5e9660;font-size:9px;letter-spacing:.13em;font-weight:900}.commercial-flow h3{margin:7px 0 10px;font-size:23px;letter-spacing:-.03em}.commercial-flow p{margin:0;color:#717a74;font-size:13px;line-height:1.65}.commercial-flow__connector{height:1px;background:#cfd9d1;position:relative}.commercial-flow__connector:after{content:"";position:absolute;right:-1px;top:50%;width:7px;height:7px;border-top:1px solid #9eaba1;border-right:1px solid #9eaba1;transform:translateY(-50%) rotate(45deg)}

.commercial-section--control{background:#fff}
.commercial-control{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(380px,.92fr);gap:82px;align-items:center}
.commercial-control__visual{padding:36px;border-radius:26px;background:linear-gradient(145deg,#eaf4ea,#f5f9f5);position:relative}.commercial-control__visual:after{content:"";position:absolute;width:180px;height:180px;right:-30px;bottom:-35px;border-radius:50%;background:rgba(46,224,0,.18);filter:blur(45px)}
.commercial-control__panel{position:relative;z-index:1;padding:22px;border:1px solid #dce4de;border-radius:18px;background:#fff;box-shadow:0 24px 50px rgba(23,38,28,.10)}.commercial-control__panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid #edf0ee;color:#323834;font-size:11px;font-weight:800}.commercial-control__panel-head b{font-size:8px;color:#2f8830;padding:5px 8px;border-radius:99px;background:#ebf8ea}.commercial-control__stats{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.commercial-control__stats article{padding:13px;border:1px solid #e5eae7;border-radius:11px}.commercial-control__stats small{display:block;color:#7e8781;font-size:8px}.commercial-control__stats strong{display:block;margin:3px 0;font-size:24px;letter-spacing:-.04em}.commercial-control__stats em{font-style:normal;color:#2d8d31;font-size:8px;font-weight:800}
.commercial-control__graph{height:175px;margin-top:13px;border:1px solid #e5eae7;border-radius:11px;background:linear-gradient(to bottom,#fff,#fbfcfb);position:relative;overflow:hidden}.commercial-control__graph:before{content:"";position:absolute;inset:20px 16px;background:repeating-linear-gradient(to bottom,#edf1ee 0,#edf1ee 1px,transparent 1px,transparent 34px)}.commercial-control__graph>span{position:absolute;left:var(--x);bottom:18px;width:7px;height:var(--h);border-radius:99px;background:#dff5da}.commercial-control__graph svg{position:absolute;left:17px;right:17px;top:27px;width:calc(100% - 34px);height:115px}.commercial-control__graph path{fill:none;stroke:#2dcc1b;stroke-width:4;stroke-linecap:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 5px 5px rgba(46,224,0,.18))}
.commercial-control__copy h2{margin:13px 0 18px;font-size:clamp(36px,4vw,54px);line-height:1.04;letter-spacing:-.05em}.commercial-control__copy>p{margin:0;color:#69726c;font-size:15px;line-height:1.75}.commercial-control__copy ul{list-style:none;padding:0;margin:28px 0 0;display:grid;gap:17px}.commercial-control__copy li{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start;color:#5f6862;font-size:13px;line-height:1.55}.commercial-control__copy li i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e8f8e6;color:#2e8b27;font-size:11px;font-style:normal;font-weight:900}.commercial-control__copy li strong{color:#202521}

.commercial-cta{padding:80px 0;background:#211f20;color:#fff;position:relative;overflow:hidden}.commercial-cta:before{content:"";position:absolute;width:420px;height:420px;right:-100px;top:-180px;border-radius:50%;background:rgba(46,224,0,.14);filter:blur(4px)}.commercial-cta__inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:72px;align-items:end}.commercial-kicker--light{color:#85e975}.commercial-cta h2{margin:13px 0 15px;max-width:800px;font-size:clamp(38px,4.6vw,62px);line-height:1;letter-spacing:-.05em}.commercial-cta p{margin:0;max-width:720px;color:#c9c5c7;font-size:16px;line-height:1.65}.commercial-cta__actions{display:grid;gap:10px;min-width:220px}.commercial-btn--on-dark{border:1px solid rgba(255,255,255,.18);color:#fff;background:rgba(255,255,255,.06)}.commercial-btn--on-dark:hover{background:rgba(255,255,255,.10)}

.commercial-footer{padding:50px 0 22px;background:#171516;color:#fff}.commercial-footer__grid{display:grid;grid-template-columns:minmax(0,1.8fr) 1fr 1fr;gap:70px;padding-bottom:38px}.commercial-footer__brand img{width:154px}.commercial-footer__brand p{max-width:330px;margin:16px 0 0;color:#9f9b9d;font-size:12px;line-height:1.7}.commercial-footer__links{display:grid;align-content:start;gap:9px}.commercial-footer__links strong{margin-bottom:4px;color:#fff;font-size:11px}.commercial-footer__links a{width:max-content;max-width:100%;color:#a9a5a7;font-size:11px;transition:color .15s ease}.commercial-footer__links a:hover{color:#fff}.commercial-footer__bottom{padding-top:20px;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:space-between;gap:20px;color:#777376;font-size:10px}

@media(max-width:1100px){
  .commercial-hero{padding:72px 0 76px}
  .commercial-hero__grid{grid-template-columns:1fr;gap:46px}
  .commercial-hero__content{max-width:760px}
  .commercial-product{width:min(760px,100%);margin-inline:auto}
  .commercial-floating-card--top{right:2px}.commercial-floating-card--bottom{left:2px}
  .commercial-section__heading{gap:40px}
  .commercial-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .commercial-feature--large{grid-column:span 2}
  .commercial-flow{grid-template-columns:1fr 44px 1fr 44px 1fr}
  .commercial-control{grid-template-columns:1fr;gap:48px}.commercial-control__visual{max-width:760px;width:100%;margin-inline:auto}.commercial-control__copy{max-width:760px}
  .commercial-cta__inner{grid-template-columns:1fr;gap:30px}.commercial-cta__actions{display:flex;flex-wrap:wrap;min-width:0}
}
@media(max-width:860px){
  .commercial-nav{display:none}
  .commercial-header-login{display:none}
  .commercial-proof__inner{display:grid;justify-items:center;text-align:center}.commercial-proof__items{justify-content:center}
  .commercial-section{padding:74px 0}
  .commercial-section__heading{grid-template-columns:1fr;gap:15px;margin-bottom:32px}
  .commercial-section__heading>p{max-width:680px}
  .commercial-flow{grid-template-columns:1fr;gap:13px}.commercial-flow__connector{width:1px;height:26px;margin-inline:auto}.commercial-flow__connector:after{right:auto;left:50%;top:auto;bottom:-1px;transform:translateX(-50%) rotate(135deg)}
  .commercial-flow article{min-height:0}
  .commercial-footer__grid{grid-template-columns:1.6fr 1fr 1fr;gap:35px}
}
@media(max-width:680px){
  .public-header--commercial{height:68px}.public-header--commercial .brand-logo{width:126px}.commercial-header-cta{min-height:38px;padding:8px 11px;font-size:11px}
  .commercial-hero{padding:58px 0 58px}.commercial-hero h1{font-size:clamp(42px,13vw,58px);letter-spacing:-.055em}.commercial-hero__lead{font-size:16px;line-height:1.62}.commercial-hero__actions{display:grid}.commercial-btn{width:100%}.commercial-hero__checks{gap:11px 14px}.commercial-product{min-height:390px;margin-top:3px}.commercial-browser{transform:none}.commercial-browser__top{grid-template-columns:60px 1fr 60px}.commercial-dashboard{grid-template-columns:44px 1fr;min-height:300px}.commercial-dashboard__side{padding:13px 8px}.commercial-dashboard__side img{width:29px}.commercial-dashboard__side span{width:20px}.commercial-dashboard__main{padding:14px 10px}.commercial-dashboard__cards article{padding:9px 7px}.commercial-dashboard__cards strong{font-size:16px}.commercial-dashboard__charts{grid-template-columns:1fr}.commercial-chart--donut{display:none}.commercial-chart{min-height:130px}.commercial-bars{height:85px}.commercial-floating-card{display:none}
  .commercial-proof{padding:21px 0}.commercial-proof__items{gap:9px 11px;font-size:9px}.commercial-proof__items i{width:3px;height:3px}
  .commercial-section{padding:61px 0}.commercial-section__heading h2,.commercial-control__copy h2{font-size:38px}.commercial-feature-grid{grid-template-columns:1fr}.commercial-feature--large{grid-column:auto;padding-right:24px;min-height:330px;padding-bottom:148px}.commercial-feature__mini-form{left:24px;right:24px;bottom:20px;top:auto;width:auto;height:112px;padding:12px}.commercial-feature__mini-form>span{height:22px}.commercial-feature__mini-form>div{display:none}.commercial-feature__mini-form>b{height:25px}.commercial-feature__icon{margin-bottom:28px}.commercial-feature--dark{min-height:300px}
  .commercial-control__visual{padding:17px;border-radius:19px}.commercial-control__panel{padding:14px}.commercial-control__stats strong{font-size:20px}.commercial-control__graph{height:145px}.commercial-control__graph svg{height:92px}.commercial-control__copy ul{gap:14px}
  .commercial-cta{padding:60px 0}.commercial-cta h2{font-size:41px}.commercial-cta p{font-size:14px}.commercial-cta__actions{display:grid;width:100%}
  .commercial-footer{padding-top:39px}.commercial-footer__grid{grid-template-columns:1fr 1fr;gap:30px}.commercial-footer__brand{grid-column:1/-1}.commercial-footer__bottom{align-items:flex-start;flex-direction:column;gap:5px}
}
@media(max-width:430px){
  .commercial-header-cta{padding-inline:9px}.commercial-hero__checks{display:grid;grid-template-columns:1fr 1fr}.commercial-hero__checks span:last-child{grid-column:1/-1}.commercial-dashboard__heading em{display:none}.commercial-dashboard__cards{grid-template-columns:1fr 1fr}.commercial-dashboard__cards article:last-child{display:none}.commercial-proof__items i{display:none}.commercial-proof__items{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:7px}.commercial-proof__items span{padding:8px 10px;background:#f7f9f7;border-radius:8px}.commercial-footer__grid{grid-template-columns:1fr}.commercial-footer__brand{grid-column:auto}
}

/* Login comercial - pagina publica /login */
.commercial-login-shell{width:min(520px,100%);justify-self:end;position:relative}
.commercial-login-shell:before{content:"";position:absolute;inset:-48px -54px -56px;border-radius:50%;background:rgba(46,224,0,.10);filter:blur(54px);pointer-events:none}
.commercial-login-card{position:relative;z-index:2;padding:34px;border:1px solid #dbe3dd;border-radius:22px;background:rgba(255,255,255,.98);box-shadow:0 30px 70px rgba(22,35,26,.14),0 4px 16px rgba(22,35,26,.05)}
.commercial-login-card__head{margin-bottom:24px}
.commercial-login-card__eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:10px;color:#367d30;font-size:10px;letter-spacing:.11em;text-transform:uppercase;font-weight:900}
.commercial-login-card__eyebrow:before{content:"";width:16px;height:2px;border-radius:99px;background:var(--fb-green)}
.commercial-login-card h2{margin:0 0 9px;font-size:32px;line-height:1.05;letter-spacing:-.045em;color:#171a18}
.commercial-login-card__head p{margin:0;color:#667069;font-size:13px;line-height:1.6}
.commercial-login-card__alert{margin:0 0 18px}
.commercial-login-form{display:grid;gap:16px}
.commercial-login-form>label{display:grid;gap:7px}
.commercial-login-form>label>span{font-size:11px;font-weight:850;color:#3b433e}
.commercial-login-form input{width:100%;height:48px;padding:0 14px;border:1px solid #d6ded8;border-radius:11px;background:#fbfcfb;color:#1e2420;font:inherit;font-size:13px;outline:none;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.commercial-login-form input::placeholder{color:#a3aaa5}
.commercial-login-form input:hover{border-color:#bec9c1;background:#fff}
.commercial-login-form input:focus{border-color:#77c66b;background:#fff;box-shadow:0 0 0 4px rgba(46,224,0,.11)}
.commercial-login-password{position:relative}
.commercial-login-password input{padding-right:112px}
.commercial-login-password [data-password-toggle]{position:absolute;right:7px;top:50%;transform:translateY(-50%);height:34px;padding:0 9px;border:0;border-radius:8px;background:#eff4f0;color:#4f5a53;font-size:10px;font-weight:800;cursor:pointer;transition:background .15s ease,color .15s ease}
.commercial-login-password [data-password-toggle]:hover{background:#e4ece6;color:#1f2721}
.commercial-login-submit{height:50px;margin-top:3px;padding:0 17px;border:0;border-radius:11px;background:#202321;color:#fff;display:flex;align-items:center;justify-content:center;gap:10px;font-size:13px;font-weight:850;cursor:pointer;box-shadow:0 10px 24px rgba(24,31,26,.13);transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.commercial-login-submit:hover{transform:translateY(-1px);background:#121512;box-shadow:0 13px 28px rgba(24,31,26,.18)}
.commercial-login-submit span{color:var(--fb-green);font-size:17px;line-height:1}
.commercial-login-card__foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:21px;padding-top:18px;border-top:1px solid #edf0ee;color:#89918c;font-size:10px;line-height:1.45}
.commercial-login-card__foot a{color:#4e5b52;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.commercial-login-trust{position:relative;z-index:2;margin:14px 5px 0;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;color:#69726c;font-size:10px;font-weight:750}
.commercial-login-trust span{display:inline-flex;align-items:center;gap:5px}
.commercial-login-trust i{width:16px;height:16px;border-radius:50%;display:grid;place-items:center;background:#e8f8e6;color:#2e8b27;font-size:9px;font-style:normal;font-weight:900}
@media(max-width:1100px){.commercial-login-shell{justify-self:center;width:min(620px,100%)}.commercial-login-card{padding:32px}}
@media(max-width:680px){.commercial-login-shell{width:100%;margin-top:5px}.commercial-login-shell:before{inset:-20px}.commercial-login-card{padding:25px 20px;border-radius:17px}.commercial-login-card h2{font-size:29px}.commercial-login-card__foot{align-items:flex-start;flex-direction:column;gap:7px}.commercial-login-trust{display:grid;grid-template-columns:1fr 1fr;justify-items:start}.commercial-login-trust span:last-child{grid-column:1/-1}.commercial-login-password input{padding-right:104px}}

/* Pesquisa independente: integração bidirecional com banco externo */
.survey-external-card{display:grid;gap:24px}
.survey-external-head{align-items:flex-start}.survey-external-head p{max-width:760px;margin:7px 0 0;line-height:1.55}
.survey-external-fixed-grid{margin-top:0}
.survey-external-meta{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.survey-external-section{padding-top:22px;border-top:1px solid #e8ece9;display:grid;gap:16px}
.survey-external-section__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.survey-external-section__head h3{margin:3px 0 4px;font-size:18px}.survey-external-section__head p{margin:0;max-width:760px}
.survey-external-directions{display:flex;gap:18px;flex-wrap:wrap;padding:2px 0}.survey-external-directions .checkbox{min-height:40px;padding:9px 12px;border:1px solid #e1e7e2;border-radius:10px;background:#fafcfa}
.survey-external-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.survey-external-mapping-wrap{margin:0;border:1px solid #e2e8e3;border-radius:12px;overflow:auto}.survey-external-mapping-table{width:100%;min-width:700px;border-collapse:collapse}.survey-external-mapping-table th,.survey-external-mapping-table td{padding:11px 13px;border-bottom:1px solid #edf0ee;text-align:left;vertical-align:middle}.survey-external-mapping-table th{background:#f8faf8;color:#687168;font-size:10px;text-transform:uppercase;letter-spacing:.05em}.survey-external-mapping-table td{font-size:12px}.survey-external-mapping-table tbody tr:last-child td{border-bottom:0}.survey-external-mapping-table select{width:100%;min-width:280px}
.survey-external-syncbar{padding:16px;border:1px solid #dfe6e1;border-radius:12px;background:#f8faf8;display:flex;align-items:center;justify-content:space-between;gap:20px}.survey-external-syncbar>div:first-child{display:grid;gap:4px}.survey-external-syncbar .actions{display:flex;gap:8px;flex-wrap:wrap}.survey-external-syncbar form{margin:0}.survey-external-syncbar small{display:block}
.text-danger{color:#b42318!important}
@media(max-width:760px){.survey-external-meta,.survey-external-actions,.survey-external-syncbar,.survey-external-section__head{align-items:stretch;flex-direction:column}.survey-external-syncbar .actions,.survey-external-syncbar .actions form,.survey-external-syncbar .btn{width:100%}.survey-external-directions{display:grid;grid-template-columns:1fr}.survey-external-mapping-wrap{margin-inline:-2px}}

/* Pesquisa independente: acompanhamento do banco externo */
.survey-response-sync-card{display:grid;gap:16px;margin-bottom:18px}
.survey-response-sync-card__content{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.survey-response-sync-card__content h2{margin:3px 0 5px}
.survey-response-sync-card__content p{margin:0}
.survey-response-sync-status{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.survey-response-sync-status span{min-width:92px;padding:10px 12px;border:1px solid var(--line,#e6e9e7);border-radius:12px;background:#fff;text-align:center}
.survey-response-sync-status strong{display:block;font-size:1.05rem;line-height:1.2}
.survey-response-sync-status small{display:block;margin-top:3px;color:var(--muted,#6b746f);font-size:.72rem}
.survey-response-sync-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.survey-response-sync-actions form{margin:0}
.survey-response-sync-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--line,#e6e9e7);color:var(--muted,#6b746f);font-size:.82rem}
.survey-response-sync-error{margin:0}
.survey-response-origin{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;font-size:.76rem;font-weight:700;white-space:nowrap;border:1px solid #dfe5e1;background:#f6f8f7}
.survey-response-origin.is-site{background:#eefbea;border-color:#ccefc4}
.survey-response-origin.is-external{background:#eef5ff;border-color:#d0e0f7}
@media (max-width:760px){.survey-response-sync-card__content{display:grid}.survey-response-sync-status{justify-content:flex-start}.survey-response-sync-status span{flex:1 1 90px}.survey-response-sync-actions{display:grid}.survey-response-sync-actions form,.survey-response-sync-actions .btn{width:100%}.survey-response-sync-actions button{width:100%}}

/* Pesquisa: campos contextuais do construtor devem respeitar o atributo hidden. */
[data-survey-html-field][hidden],
[data-survey-options-field][hidden],
[data-choice-layout-field][hidden],
[data-survey-acceptance-text-field][hidden],
[data-survey-acceptance-policy-field][hidden],
[data-condition-value-select][hidden],
[data-condition-value-input][hidden]{display:none!important}

/* Pesquisa: aceite com politica de privacidade. */
.survey-acceptance{display:grid;gap:9px}
.survey-choice--acceptance{align-items:flex-start;padding:12px 13px}
.survey-choice--acceptance span{font-weight:650;line-height:1.5}
.survey-policy-link{appearance:none;border:0;background:transparent;color:var(--brand-primary,#2ee000);font:inherit;font-size:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;padding:0;cursor:pointer}
.survey-policy-link--inline{display:inline;width:auto;max-width:none;vertical-align:baseline}
.survey-policy-link:hover{filter:brightness(.78)}
.survey-policy-link:focus-visible{outline:3px solid color-mix(in srgb,var(--brand-primary,#2ee000) 24%,transparent);outline-offset:4px;border-radius:4px}
.survey-policy-dialog{width:min(760px,calc(100% - 28px));max-height:min(82vh,820px);padding:0;border:0;border-radius:18px;background:#fff;color:var(--text);box-shadow:0 28px 80px rgba(0,0,0,.28);overflow:hidden}
.survey-policy-dialog::backdrop{background:rgba(15,20,17,.68);backdrop-filter:blur(3px)}
.survey-policy-dialog__panel{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:min(82vh,820px)}
.survey-policy-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e2e8e4;background:#fff}
.survey-policy-dialog__head strong{font-size:1.05rem}
.survey-policy-dialog__close{appearance:none;border:1px solid #dbe3de;background:#f7f9f7;border-radius:9px;width:36px;height:36px;display:grid;place-items:center;font-size:24px;line-height:1;cursor:pointer;color:#313a34}
.survey-policy-dialog__content{overflow:auto;padding:20px;font-size:.9rem;line-height:1.65;color:#37423b;overflow-wrap:anywhere}
.survey-policy-dialog__content b,.survey-policy-dialog__content strong{color:#1e2922}
.survey-policy-dialog__content p{margin:0 0 10px}.survey-policy-dialog__content p:last-child{margin-bottom:0}
.survey-policy-dialog__content a{color:var(--brand-primary,#2ee000);font-weight:700}
.survey-policy-dialog__actions{display:flex;justify-content:flex-end;padding:14px 20px;border-top:1px solid #e2e8e4;background:#fbfcfb}
.survey-policy-dialog__actions .btn{min-width:120px}
.survey-policy-dialog [data-survey-policy-close] .ui-action-icon{display:none!important}
.survey-policy-dialog [data-survey-policy-close] .ui-action-label{display:inline!important}
@media(max-width:680px){.survey-policy-dialog{width:calc(100% - 20px);max-height:88vh;border-radius:14px}.survey-policy-dialog__panel{max-height:88vh}.survey-policy-dialog__head,.survey-policy-dialog__content,.survey-policy-dialog__actions{padding-left:15px;padding-right:15px}.survey-policy-dialog__actions .btn{width:100%}}

/* Dashboard exclusivo de pesquisas independentes */
.survey-dashboard{display:grid;gap:20px;min-width:0}
.survey-dashboard-heading{margin-bottom:0}
.survey-dashboard-refreshbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff}
.survey-dashboard-refreshbar__meta{display:grid;gap:2px;min-width:0}
.survey-dashboard-refreshbar__meta>span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.survey-dashboard-refreshbar__meta>strong{font-size:14px;line-height:1.35;color:var(--text)}
.survey-dashboard-refreshbar__meta>small{color:var(--muted);font-size:10px;line-height:1.35}
.survey-dashboard-refreshbar__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.survey-dashboard-refreshbar__actions form{margin:0}
.survey-dashboard-refreshbar .btn{min-width:108px}
.survey-dashboard-sync{padding:20px;display:grid;gap:16px;border-radius:16px}
.survey-dashboard-sync__main{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.survey-dashboard-sync__main h2{margin:4px 0 6px;font-size:20px}
.survey-dashboard-sync__main p{margin:0;max-width:720px}
.survey-dashboard-sync__status{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.survey-dashboard-sync__status>span{display:grid;align-content:center;min-width:116px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fafcfb;text-align:center}
.survey-dashboard-sync__status>span:first-child{display:flex;align-items:center;justify-content:center;gap:7px;min-width:140px}
.survey-dashboard-sync__status i{width:8px;height:8px;border-radius:50%;background:#a9b3ad;box-shadow:0 0 0 4px rgba(169,179,173,.12)}
.survey-dashboard-sync__status .is-ok i{background:var(--fb-green);box-shadow:0 0 0 4px rgba(46,174,70,.12)}
.survey-dashboard-sync__status strong{font-size:13px;line-height:1.2}
.survey-dashboard-sync__status small{display:block;margin-top:2px;color:var(--muted);font-size:10px}
.survey-dashboard-sync__meta{display:flex;justify-content:space-between;gap:16px;padding:11px 13px;border-radius:10px;background:#f7faf8;color:var(--muted);font-size:11px;line-height:1.4}
.survey-dashboard-sync__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--line)}
.survey-dashboard-sync__actions form{margin:0}
.survey-dashboard-sync__error{margin:0}
.survey-dashboard-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-top:2px}
.survey-dashboard-section-heading h2{margin:3px 0 4px;font-size:22px}
.survey-dashboard-section-heading p{margin:0}

/* Grade equilibrada: 2 colunas no desktop comum e 3 em telas realmente largas. */
.survey-dashboard-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px;align-items:stretch;grid-auto-flow:row}
.survey-dashboard-question{grid-column:span 6;display:flex;flex-direction:column;min-width:0;height:100%;padding:18px;border-radius:16px;overflow:hidden}
.survey-dashboard-question--wide{grid-column:1/-1}
.survey-dashboard-question__head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;min-height:64px;margin-bottom:14px}
.survey-dashboard-question__head>div:first-child{min-width:0}
.survey-dashboard-question__head h3{margin:4px 0 0;font-size:15px;line-height:1.35;overflow-wrap:break-word}
.survey-dashboard-question__answered{flex:0 0 auto;min-width:82px;padding:8px 9px;border-radius:10px;background:#f5f8f6;text-align:right}
.survey-dashboard-question__answered strong{display:block;font-size:18px;line-height:1}
.survey-dashboard-question__answered span{display:block;margin-top:4px;color:var(--muted);font-size:9px;white-space:nowrap}
.survey-dashboard-bars{display:grid;align-content:center;gap:9px;min-height:170px;flex:1}
.survey-dashboard-bar{min-width:0}
.survey-dashboard-bar__head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:4px;font-size:10px;line-height:1.3}
.survey-dashboard-bar__head strong{min-width:0;font-weight:750;overflow-wrap:break-word}
.survey-dashboard-bar__head span{flex:0 0 auto;font-weight:800;white-space:nowrap}
.survey-dashboard-bar__head small{color:var(--muted);font-size:8px;font-weight:700}
.survey-dashboard-bar__track{height:7px;border-radius:999px;background:#edf2ee;overflow:hidden}
.survey-dashboard-bar__track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--fb-green),#6ec66b);transition:width .2s ease}
.survey-dashboard-comments{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;counter-reset:none}
.survey-dashboard-comment{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;min-width:0;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:#fafcfb}
.survey-dashboard-comment__number{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--fb-green);color:#fff;font-size:10px;font-weight:900;letter-spacing:.04em}
.survey-dashboard-comment p{margin:0;color:var(--text);font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.survey-dashboard-comments--empty{grid-template-columns:1fr;min-height:110px;place-items:center;padding:20px;border:1px dashed var(--line);border-radius:12px;background:#fafcfb;color:var(--muted);text-align:center}
.survey-dashboard-question--comments{grid-column:1/-1}
.survey-dashboard-question__note{margin:12px 0 0;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:9px;line-height:1.4}
.survey-dashboard-nps{display:grid;grid-template-columns:112px minmax(0,1fr);gap:14px;align-items:stretch;min-height:170px;flex:1}
.survey-dashboard-nps__score{display:grid;place-content:center;padding:12px;border-radius:13px;background:#f6faf6;text-align:center;border:1px solid #e1ebe2}
.survey-dashboard-nps__score span{font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.survey-dashboard-nps__score strong{display:block;margin:3px 0;font-size:34px;line-height:1;color:var(--text)}
.survey-dashboard-nps__score small{font-size:8px;color:var(--muted)}
.survey-dashboard-nps__chart{min-width:0;display:grid;align-content:center}

.survey-dashboard-chart-config{padding:20px;display:grid;gap:16px;border-radius:16px;scroll-margin-top:18px}
.survey-dashboard-chart-config[hidden]{display:none}
.survey-dashboard-chart-config__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.survey-dashboard-chart-config__head h2{margin:4px 0 5px;font-size:20px}
.survey-dashboard-chart-config__head p{margin:0}
.survey-dashboard-chart-config__count{flex:0 0 auto;padding:8px 11px;border:1px solid var(--line);border-radius:999px;background:#f7faf8;color:var(--muted);font-size:11px;font-weight:700;white-space:nowrap}
.survey-dashboard-chart-config__count strong{color:var(--text)}
.survey-dashboard-chart-config__tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.survey-dashboard-chart-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.survey-dashboard-chart-option{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fafcfb;cursor:pointer;transition:border-color .15s ease,background .15s ease}
.survey-dashboard-chart-option:has(input:checked){border-color:color-mix(in srgb,var(--fb-green) 55%,var(--line));background:color-mix(in srgb,var(--fb-green) 5%,#fff)}
.survey-dashboard-chart-option input{box-sizing:border-box;flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;padding:0;margin:1px 0 0;accent-color:var(--fb-green)}
.survey-dashboard-chart-option span{min-width:0}
.survey-dashboard-chart-option small{display:block;margin-bottom:3px;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.survey-dashboard-chart-option strong{display:block;font-size:11px;line-height:1.35;overflow-wrap:break-word}
.survey-dashboard-chart-config__actions{display:flex;justify-content:flex-end;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}

.survey-dashboard-donut-wrap{display:grid;grid-template-columns:minmax(118px,148px) minmax(0,1fr);gap:14px;align-items:center;align-content:center;min-height:170px;flex:1}
.survey-dashboard-donut{width:min(100%,148px);aspect-ratio:1;border-radius:50%;background:var(--survey-donut,#edf2ee);position:relative;display:grid;place-items:center;margin-inline:auto;box-shadow:inset 0 0 0 1px rgba(0,0,0,.025)}
.survey-dashboard-donut::after{content:"";position:absolute;inset:24%;border-radius:50%;background:#fff;box-shadow:0 0 0 1px rgba(20,40,27,.05)}
.survey-dashboard-donut__center{position:relative;z-index:1;display:grid;text-align:center;line-height:1}
.survey-dashboard-donut__center strong{font-size:24px;letter-spacing:-.03em}
.survey-dashboard-donut__center span{margin-top:5px;color:var(--muted);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.survey-dashboard-donut__legend{display:grid;gap:7px;min-width:0}
.survey-dashboard-donut__item{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:7px;min-width:0;padding-bottom:6px;border-bottom:1px solid #edf1ee;font-size:9px}
.survey-dashboard-donut__item:last-child{padding-bottom:0;border-bottom:0}
.survey-dashboard-donut__dot{width:8px;height:8px;border-radius:50%;background:var(--survey-donut-color,#2EAE46)}
.survey-dashboard-donut__label{min-width:0;font-weight:750;line-height:1.25;overflow-wrap:break-word}
.survey-dashboard-donut__item strong{font-size:10px;white-space:nowrap}
.survey-dashboard-donut__item small{color:var(--muted);font-size:8px}

.survey-dashboard-nps__chart .survey-dashboard-donut-wrap{grid-template-columns:110px minmax(0,1fr);gap:12px;min-height:0}
.survey-dashboard-nps__chart .survey-dashboard-donut{width:110px}

@media(min-width:1680px){
  .survey-dashboard-question:not(.survey-dashboard-question--wide){grid-column:span 4}
  .survey-dashboard-question__head{min-height:72px}
}
@media(max-width:1180px){
  .survey-dashboard-sync__main{display:grid}
  .survey-dashboard-sync__status{justify-content:flex-start}
  .survey-dashboard-question{grid-column:span 6}
}
@media(max-width:960px){
  .survey-dashboard-question,.survey-dashboard-question--wide{grid-column:1/-1}
  .survey-dashboard-donut-wrap{grid-template-columns:minmax(135px,165px) minmax(0,1fr)}
  .survey-dashboard-donut{width:160px}
}
@media(max-width:820px){
  .survey-dashboard-chart-options{grid-template-columns:1fr}
  .survey-dashboard-chart-config__head{display:grid}
  .survey-dashboard-chart-config__count{width:max-content}
  .survey-dashboard-sync__meta{display:grid;gap:5px}
  .survey-dashboard-heading .actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .survey-dashboard-heading .actions .btn{width:100%}
}
@media(max-width:680px){
  .survey-dashboard{gap:15px}
  .survey-dashboard-refreshbar{align-items:stretch;display:grid;padding:13px}
  .survey-dashboard-refreshbar__actions{display:grid;grid-template-columns:1fr;width:100%}
  .survey-dashboard-refreshbar__actions.has-config{grid-template-columns:1fr 1fr}
  .survey-dashboard-refreshbar__actions form,.survey-dashboard-refreshbar__actions .btn{width:100%}
  .survey-dashboard-sync{padding:15px}
  .survey-dashboard-sync__status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .survey-dashboard-sync__status>span,.survey-dashboard-sync__status>span:first-child{min-width:0;width:100%}
  .survey-dashboard-sync__actions{display:grid;grid-template-columns:1fr}
  .survey-dashboard-sync__actions form,.survey-dashboard-sync__actions .btn{width:100%}
  .survey-dashboard-question{padding:15px}
  .survey-dashboard-question__head{display:grid;min-height:0;gap:10px}
  .survey-dashboard-question__answered{width:max-content;min-width:0;text-align:left;display:flex;align-items:baseline;gap:6px;padding:7px 9px}
  .survey-dashboard-question__answered strong{font-size:17px}
  .survey-dashboard-question__answered span{margin:0}
  .survey-dashboard-bars{min-height:0;align-content:start}
  .survey-dashboard-bar__head{font-size:10px}
  .survey-dashboard-comments{grid-template-columns:1fr}
  .survey-dashboard-comment{grid-template-columns:30px minmax(0,1fr);padding:11px}
  .survey-dashboard-comment__number{width:28px;height:28px;border-radius:9px}
  .survey-dashboard-donut-wrap{grid-template-columns:1fr;min-height:0}
  .survey-dashboard-donut{width:148px}
  .survey-dashboard-donut__legend{width:100%}
  .survey-dashboard-nps{grid-template-columns:1fr;min-height:0}
  .survey-dashboard-nps__score{min-height:102px}
  .survey-dashboard-nps__chart .survey-dashboard-donut-wrap{grid-template-columns:1fr}
  .survey-dashboard-nps__chart .survey-dashboard-donut{width:140px}
  .survey-dashboard-heading .actions{grid-template-columns:1fr 1fr}
  .survey-dashboard-chart-config{padding:15px}
  .survey-dashboard-chart-config__tools{display:grid;grid-template-columns:1fr 1fr}
  .survey-dashboard-chart-config__tools .btn{width:100%}
  .survey-dashboard-chart-config__actions .btn{width:100%}
}


/* Identidade visual da empresa: upload administrativo e exibição na pesquisa pública. */
.company-logo-upload{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:14px;border:1px solid var(--line);border-radius:14px;background:#f8faf8}
.company-logo-preview{width:180px;height:100px;display:flex;align-items:center;justify-content:center;padding:12px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.company-logo-preview img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.company-logo-upload__controls{display:grid;gap:8px;min-width:min(100%,320px);flex:1}
.company-logo-upload__controls input[type=file]{width:100%}
.company-logo-remove{margin-top:4px;width:max-content;max-width:100%}
.survey-company-logo{display:flex;align-items:center;min-height:58px;margin-bottom:12px}
.survey-company-logo img{display:block;max-width:min(240px,70vw);max-height:78px;width:auto;height:auto;object-fit:contain}
@media (max-width:680px){.company-logo-upload{align-items:flex-start}.company-logo-preview{width:150px;height:88px}.survey-company-logo{min-height:48px;margin-bottom:10px}.survey-company-logo img{max-width:200px;max-height:64px}}

/* Standalone survey responses: sortable table with explicit ID column */
.survey-responses-sort-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px}
.survey-responses-sort-toolbar__count{color:var(--muted);font-size:.9rem}
.survey-responses-sort-toolbar__count strong{color:var(--text);font-size:1rem}
.survey-responses-sort-toolbar__controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.survey-responses-sort-toolbar__controls label{font-size:.78rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.survey-responses-sort-toolbar__controls .compact-select{width:auto;min-width:140px;padding:8px 34px 8px 10px}
.survey-sort-direction{min-width:126px}
.survey-responses-table th[data-sort-key]{padding:0}
.survey-table-sort{display:flex;align-items:center;justify-content:flex-start;gap:6px;width:100%;min-height:44px;padding:11px 12px;border:0;background:transparent;color:inherit;font:inherit;font-weight:800;text-align:left;cursor:pointer}
.survey-table-sort:hover,.survey-table-sort:focus-visible{background:#f5f8f6;outline:none}
.survey-table-sort span{display:inline-block;min-width:12px;color:var(--fb-green,#2fad42);font-size:.9rem}
.survey-responses-table--standalone th:nth-child(n){width:auto}
.survey-responses-table--standalone th.survey-response-col-id{width:76px}
.survey-answer-count{font-weight:800;color:var(--muted)}
.survey-responses-table td[data-label="ID"]{white-space:nowrap}
@media(max-width:980px){.survey-responses-sort-toolbar{align-items:flex-start}.survey-responses-sort-toolbar__controls{justify-content:flex-end}.survey-responses-table td[data-label="ID"]{order:-10}}
@media(max-width:680px){.survey-responses-sort-toolbar{display:grid}.survey-responses-sort-toolbar__controls{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}.survey-responses-sort-toolbar__controls label{grid-column:1/-1}.survey-responses-sort-toolbar__controls .compact-select,.survey-sort-direction{width:100%;min-width:0}}

/* Standalone survey responses: per-record external sync status and logs */
.survey-sync-control-card{display:grid;gap:16px;margin-bottom:18px}
.survey-sync-control-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.survey-sync-control-card__head h2{margin:3px 0 5px}
.survey-sync-control-card__head p{margin:0;color:var(--muted)}
.survey-sync-control-summary{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.survey-sync-control-summary span{min-width:112px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:center}
.survey-sync-control-summary strong{display:block;font-size:1.05rem;line-height:1.2}
.survey-sync-control-summary small{display:block;margin-top:3px;color:var(--muted);font-size:.72rem}
.survey-sync-all-ok{margin:0}
.survey-sync-pending-table,.survey-sync-log-table{min-width:980px}
.survey-sync-pending-table td,.survey-sync-log-table td{vertical-align:top}
.survey-sync-error-message,.survey-sync-log-message{white-space:normal;line-height:1.45;min-width:220px}
.survey-sync-state{display:inline-flex;align-items:center;justify-content:center;min-height:26px;padding:4px 8px;border-radius:999px;border:1px solid #dde3df;background:#f6f8f7;color:#4b5750;font-size:10px;font-weight:800;line-height:1.2;white-space:nowrap}
.survey-sync-state--success{background:#edf8ee;border-color:#cfe7d1;color:#257032}
.survey-sync-state--pending{background:#fff8ea;border-color:#ecd9ad;color:#8a6416}
.survey-sync-state--error{background:#fff2ef;border-color:#efcbc4;color:#9b4034}
.survey-sync-state--external{background:#edf5fb;border-color:#cbdfea;color:#2b627e}
.survey-sync-state--skipped{background:#f3f4f4;border-color:#dfe3e1;color:#5f6863}
.survey-sync-log-details{border-top:1px solid var(--line);padding-top:14px}
.survey-sync-log-details>summary{cursor:pointer;font-weight:800;color:var(--text)}
.survey-sync-log-empty{margin:12px 0 0}
.survey-sync-log-wrap{margin-top:12px}
.survey-sync-cell{min-width:150px}
.survey-sync-cell form{margin-top:8px}
.survey-sync-cell__error{display:block;max-width:260px;margin-top:6px;color:#9b4034;line-height:1.35;white-space:normal}
@media(max-width:980px){.survey-sync-control-card__head{display:grid}.survey-sync-control-summary{justify-content:flex-start}.survey-sync-control-summary span{flex:1 1 120px}.survey-sync-cell{min-width:0}}
@media(max-width:680px){.survey-sync-control-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.survey-sync-control-summary span{min-width:0}.survey-sync-pending-table,.survey-sync-log-table{min-width:0}.survey-sync-cell form,.survey-sync-cell .btn{width:100%}}

/* Standalone survey responses: full-width single-open accordion */
.survey-response-detail-row[hidden]{display:none!important}
.survey-answer-toggle{white-space:nowrap;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.survey-answer-toggle__label{font-weight:800}
.survey-answer-toggle__icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;font-size:15px;line-height:1;transition:transform .16s ease}
.survey-answer-toggle[aria-expanded="true"]{border-color:#b9d9b4;background:#f4fbf2;box-shadow:0 0 0 2px rgba(46,224,0,.06)}
.survey-answer-toggle[aria-expanded="true"] .survey-answer-toggle__icon{transform:translateY(-1px)}
.survey-responses-table--standalone .survey-response-row.is-open>td{background:#fcfefc;border-bottom-color:transparent}
.survey-response-detail-cell{padding:0!important;background:#fbfdfb}
.survey-response-detail-panel{padding:18px 20px 22px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fbfdfb 0%,#f7faf8 100%)}
.survey-response-detail-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}
.survey-response-detail-panel__head h3{margin:3px 0 0;font-size:17px;line-height:1.35}
.survey-response-detail-list{overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff}
.survey-response-detail-list .survey-answer-line{grid-template-columns:minmax(220px,34%) minmax(0,1fr);gap:22px;padding:13px 15px}
.survey-response-detail-list .survey-answer-line strong{line-height:1.45}
.survey-response-detail-list .survey-answer-line span{line-height:1.5;overflow-wrap:anywhere;word-break:normal}
.survey-response-detail-empty{padding:18px}
.survey-answer-close{flex:0 0 auto}
@media(max-width:980px){
  table.responsive.survey-responses-table--standalone .survey-response-row.is-open{border-bottom:0;border-radius:12px 12px 0 0}
  table.responsive.survey-responses-table--standalone .survey-response-detail-row{margin-top:-12px;padding:0;border-top:0;border-radius:0 0 12px 12px;background:#f7faf8;overflow:hidden}
  table.responsive.survey-responses-table--standalone .survey-response-detail-cell{display:block;padding:0!important;border:0;grid-template-columns:none}
  table.responsive.survey-responses-table--standalone .survey-response-detail-cell:before{display:none!important;content:none!important}
  .survey-response-detail-panel{padding:15px;border:0;border-top:1px solid var(--line);background:#f7faf8}
  .survey-response-detail-list .survey-answer-line{grid-template-columns:minmax(180px,38%) minmax(0,1fr);gap:16px}
}
@media(max-width:680px){
  .survey-answer-toggle{width:100%}
  .survey-response-detail-panel__head{align-items:stretch;display:grid;grid-template-columns:minmax(0,1fr) auto}
  .survey-response-detail-panel__head h3{font-size:15px}
  .survey-response-detail-list .survey-answer-line{grid-template-columns:1fr;gap:6px;padding:12px}
  .survey-response-detail-list .survey-answer-line strong{font-size:12px}
}

/* Dashboard de pesquisa: títulos navegáveis e detalhamento por pergunta */
.survey-dashboard-question__title-link{display:inline-flex;align-items:flex-start;gap:7px;color:inherit;text-decoration:none;transition:color .18s ease}.survey-dashboard-question__title-link span{flex:0 0 auto;font-size:13px;line-height:1.35;opacity:.55;transform:translateY(1px);transition:transform .18s ease,opacity .18s ease}.survey-dashboard-question__title-link:hover,.survey-dashboard-question__title-link:focus-visible{color:var(--primary)}.survey-dashboard-question__title-link:hover span,.survey-dashboard-question__title-link:focus-visible span{opacity:1;transform:translate(2px,1px)}
.survey-question-responses{display:grid;gap:14px}.survey-question-responses__heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.survey-question-responses__heading h1{margin:5px 0 6px;font-size:26px;line-height:1.15}.survey-question-responses__heading p{margin:0;color:var(--muted);max-width:880px}.survey-question-responses__summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px}.survey-question-responses__summary strong{display:block;font-size:25px;line-height:1}.survey-question-responses__summary span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.survey-question-responses__table-wrap{overflow:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.survey-question-responses__table{width:100%;min-width:760px;border-collapse:collapse}.survey-question-responses__table th,.survey-question-responses__table td{padding:13px 14px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}.survey-question-responses__table th{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#667069;background:#fafcfa}.survey-question-responses__table tr:last-child td{border-bottom:0}.survey-question-responses__person strong{display:block;font-size:13px}.survey-question-responses__person small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.survey-question-responses__answer{max-width:760px;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal;line-height:1.5}.survey-question-responses__pagination{display:flex;align-items:center;justify-content:space-between;gap:14px}.survey-question-responses__pagination-summary{font-size:12px;color:var(--muted)}
@media(max-width:680px){.survey-question-responses{gap:10px}.survey-question-responses__heading{display:grid;gap:8px}.survey-question-responses__heading h1{font-size:22px}.survey-question-responses__summary{padding:12px 13px}.survey-question-responses__summary strong{font-size:21px}.survey-question-responses__table-wrap{overflow:visible;border:0;background:transparent}.survey-question-responses__table{min-width:0;display:block}.survey-question-responses__table thead{display:none}.survey-question-responses__table tbody{display:grid;gap:10px}.survey-question-responses__table tr{display:grid;grid-template-columns:1fr auto;gap:9px 12px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff}.survey-question-responses__table td{display:block;padding:0;border:0}.survey-question-responses__table td:nth-child(1){grid-column:1/2}.survey-question-responses__table td:nth-child(2){grid-column:2/3;white-space:nowrap;text-align:right;font-size:11px;color:var(--muted)}.survey-question-responses__table td:nth-child(3){grid-column:1/-1;padding-top:9px;border-top:1px solid var(--line)}.survey-question-responses__table td:nth-child(3):before{content:'Resposta';display:block;margin-bottom:5px;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.survey-question-responses__pagination{display:grid;justify-items:center;gap:8px}.survey-question-responses__pagination .pagination{justify-content:center;gap:5px;margin-top:0}.survey-question-responses__pagination .page-link{min-width:34px;width:34px;height:34px}.survey-question-responses__pagination-summary{text-align:center}}


.survey-response-sync-actions [data-survey-totem-sync-form]{display:grid;gap:5px;align-items:start}.survey-totem-sync-progress{display:block;max-width:460px;line-height:1.35;white-space:normal}
