html{scrollbar-width:thin;scrollbar-color:#0aa1d3 rgba(8,47,79,.14)}
*::-webkit-scrollbar{width:14px;height:14px}
*::-webkit-scrollbar-track{background:linear-gradient(180deg,#e7eff4 0%,#dbe7ee 100%);border-left:1px solid rgba(8,47,79,.08)}
*::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#0aa1d3 0%,#0b6eaa 52%,#082f4f 100%);border-radius:999px;border:3px solid #e7eff4;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 4px 12px rgba(8,47,79,.12)}
*::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#20b7ea 0%,#0c87ca 52%,#0a3b62 100%)}
*::-webkit-scrollbar-thumb:active{background:linear-gradient(180deg,#31c8f3 0%,#1093d6 52%,#0a456f 100%)}
*::-webkit-scrollbar-corner{background:#dbe7ee}
*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#173247;background:#f2f5f7;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}a{text-decoration:none;color:inherit}button{cursor:pointer}.admin-body{min-height:100vh}.admin-shell{display:flex;min-height:100vh}.admin-sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:#061f35;color:#90a7b7;padding:24px 16px;display:flex;flex-direction:column;z-index:100}.admin-brand{display:flex;gap:12px;align-items:center;color:#fff;padding:0 8px 26px}.admin-brand>span{width:43px;height:43px;border-radius:11px;background:linear-gradient(135deg,#0aa1d3,#067ea8);display:grid;place-items:center;font-weight:800;letter-spacing:-.08em}.admin-brand strong,.admin-brand small{display:block}.admin-brand strong{font-size:13px;letter-spacing:.08em}.admin-brand small{font-size:8px;color:#6f8b9e;letter-spacing:.15em;margin-top:2px}.admin-sidebar nav{display:flex;flex-direction:column;gap:4px}.admin-sidebar nav a{display:flex;align-items:center;gap:11px;padding:10px 12px;border-radius:9px;font-size:12px;transition:.2s}.admin-sidebar nav a i{width:24px;text-align:center;font-style:normal;color:#62bcd9}.admin-sidebar nav a:hover,.admin-sidebar nav a.active{background:rgba(255,255,255,.08);color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.09);padding-top:13px;display:flex;justify-content:space-between;font-size:11px}.sidebar-bottom a:hover{color:#fff}.admin-main{margin-left:250px;min-width:0;flex:1}.admin-topbar{height:76px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid #e2e9ed;display:flex;align-items:center;padding:0 32px;position:sticky;top:0;z-index:80}.admin-topbar>div:first-of-type{display:flex;flex-direction:column}.admin-topbar>div:first-of-type span{font-size:8px;letter-spacing:.16em;color:#9aabb6}.admin-topbar>div:first-of-type strong{font-size:14px;color:#173247;font-weight:600}.admin-user{margin-left:auto;display:flex;gap:10px;align-items:center;font-size:11px;color:#607787}.admin-user i{font-style:normal;width:34px;height:34px;border-radius:50%;background:#e7f5fa;color:#078bb8;display:grid;place-items:center;font-weight:700}.sidebar-toggle{display:none;border:0;background:#edf3f6;border-radius:8px;width:38px;height:38px;margin-right:12px}.admin-content{padding:34px 32px 80px;max-width:1550px;margin:0 auto}.page-intro{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:28px}.page-intro span,.panel-head span{font-size:8px;font-weight:700;letter-spacing:.16em;color:#0a9acb}.page-intro h1{font-size:32px;letter-spacing:-.035em;margin:5px 0 6px;font-weight:620;color:#0b2c46}.page-intro p{margin:0;color:#718696;font-size:13px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px}.stat-grid article{background:#fff;border:1px solid #e0e7eb;border-radius:15px;padding:21px;box-shadow:0 5px 20px rgba(8,47,79,.025)}.stat-grid article.accent{background:linear-gradient(135deg,#0b86b1,#0aa1d3);color:#fff;border-color:transparent}.stat-grid span,.stat-grid strong,.stat-grid small{display:block}.stat-grid span{font-size:8px;letter-spacing:.14em;color:#8ca0ad}.stat-grid strong{font-size:34px;line-height:1.1;margin:10px 0 4px;color:#0b2d47;font-weight:620}.stat-grid small{font-size:10px;color:#8ca0ad}.stat-grid .accent span,.stat-grid .accent small{color:rgba(255,255,255,.72)}.stat-grid .accent strong{color:#fff}.admin-grid.two{display:grid;grid-template-columns:1.55fr .7fr;gap:18px}.panel{background:#fff;border:1px solid #e0e7eb;border-radius:15px;box-shadow:0 6px 22px rgba(8,47,79,.025)}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid #edf1f3}.panel-head h2{font-size:17px;margin:3px 0 0;font-weight:600;color:#173247}.panel-head>a{font-size:10px;color:#078bb8}.table-wrap{overflow:auto}.table-wrap table{width:100%;border-collapse:collapse;min-width:650px}.table-wrap th{text-align:left;font-size:8px;letter-spacing:.12em;color:#91a3af;padding:11px 16px;background:#f9fbfc;border-bottom:1px solid #e9eef1}.table-wrap td{font-size:11px;padding:13px 16px;border-bottom:1px solid #eef2f4;vertical-align:top;color:#5f7686}.table-wrap td strong,.table-wrap td small{display:block}.table-wrap td strong{color:#234156;font-size:11px}.table-wrap td small{font-size:9px;color:#9aabb6;margin-top:2px}.status{display:inline-block;padding:4px 7px;border-radius:999px;font-size:8px;text-transform:uppercase;letter-spacing:.08em;background:#eef3f5}.status-novo{background:#e7f7fc;color:#087fa7}.status-fechado{background:#e7f7ef;color:#20794c}.status-arquivado{background:#eff1f2;color:#7b8991}.quick-panel{padding-bottom:8px}.quick-panel>a{display:flex;align-items:center;gap:12px;margin:0 13px;padding:13px 9px;border-bottom:1px solid #edf1f3}.quick-panel>a:last-child{border-bottom:0}.quick-panel>a i{font-style:normal;width:38px;height:38px;border-radius:10px;background:#edf8fb;color:#088fbf;display:grid;place-items:center}.quick-panel>a strong,.quick-panel>a span{display:block}.quick-panel>a strong{font-size:11px}.quick-panel>a span{font-size:9px;color:#91a3ae;margin-top:2px}.empty-admin{padding:28px;text-align:center;color:#8da0ac;font-size:12px}.flash{padding:12px 15px;border-radius:10px;margin-bottom:18px;font-size:11px;border:1px solid #cbe6d7;background:#eefaf3;color:#2b7049;transition:.4s}.flash.error{border-color:#f1c8c8;background:#fff1f1;color:#a44}.flash.fade{opacity:0}.admin-btn{border:1px solid #d7e1e6;background:#fff;color:#29475a;border-radius:9px;padding:10px 13px;font-weight:600;font-size:10px;display:inline-flex;justify-content:center;align-items:center;gap:6px}.admin-btn.primary{background:#082f4f;color:#fff;border-color:#082f4f}.admin-btn:hover{filter:brightness(.98);transform:translateY(-1px)}.form-section{margin-bottom:17px}.admin-form,.stack-list{display:flex;flex-direction:column;gap:17px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px 22px}.form-grid.three{grid-template-columns:2fr .65fr .65fr}.form-grid.two-cols{grid-template-columns:1fr 1fr}.form-grid .full{grid-column:1/-1}.panel label,.inline-form label,.login-form label{display:flex;flex-direction:column;gap:5px;font-size:9px;font-weight:650;color:#526b7a}.panel input,.panel select,.panel textarea,.inline-form input,.inline-form select,.inline-form textarea,.login-form input{border:1px solid #d8e2e7;border-radius:8px;padding:10px 11px;background:#fbfcfd;color:#173247;outline:none;width:100%;font-size:11px}.panel textarea,.inline-form textarea{resize:vertical}.panel input:focus,.panel select:focus,.panel textarea:focus,.inline-form input:focus,.inline-form select:focus,.inline-form textarea:focus,.login-form input:focus{border-color:#0aa1d3;box-shadow:0 0 0 3px rgba(10,161,211,.08);background:#fff}.panel label small{font-size:8px;font-weight:400;color:#9aabb6}.logo-upload{display:flex;align-items:center;gap:20px;padding:0 22px 22px}.logo-upload img{width:190px;height:90px;object-fit:contain;border:1px solid #e0e7eb;border-radius:10px;background:#fff}.sticky-save{position:sticky;bottom:15px;background:rgba(6,31,53,.95);backdrop-filter:blur(12px);color:#c2d1da;padding:12px 14px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;font-size:10px;box-shadow:0 18px 45px rgba(8,47,79,.25);z-index:40}.inline-form{padding:20px 22px;display:grid;grid-template-columns:1.2fr .7fr .4fr;gap:12px;align-items:end}.inline-form .wide{grid-column:1/-1}.inline-form>.admin-btn{justify-self:start}.item-editor{padding:18px}.item-editor-head{display:flex;gap:12px;align-items:end;margin-bottom:12px}.item-number{width:42px;height:38px;border-radius:8px;background:#edf8fb;color:#078dbb;display:grid;place-items:center;font-size:9px;font-weight:700;flex:0 0 auto}.grow{flex:1}.item-actions{display:flex;justify-content:space-between;align-items:center;margin-top:14px}.item-actions>div{display:flex;gap:8px}.switch{flex-direction:row!important;align-items:center;gap:8px!important}.switch input{display:none}.switch span{width:30px;height:18px;border-radius:999px;background:#cad6dc;position:relative;transition:.2s}.switch span:after{content:"";position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;left:3px;top:3px;transition:.2s}.switch input:checked+span{background:#0aa1d3}.switch input:checked+span:after{left:15px}.project-admin-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.project-editor{padding:14px;display:flex;flex-direction:column;gap:11px}.project-thumb{height:180px;border-radius:10px;background:#edf2f5;display:grid;place-items:center;overflow:hidden;color:#95a7b3;font-size:9px;letter-spacing:.1em}.project-thumb img{width:100%;height:100%;object-fit:cover}.filter-bar{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}.filter-bar a{padding:8px 11px;background:#fff;border:1px solid #dfe7eb;border-radius:8px;font-size:9px}.filter-bar a.active{background:#082f4f;color:#fff;border-color:#082f4f}.message-cell{max-width:320px;white-space:normal}.status-form select{font-size:9px;border:1px solid #d8e2e7;border-radius:7px;padding:7px;background:#fff}.icon-danger{width:29px;height:29px;border-radius:8px;border:1px solid #efd4d4;background:#fff6f6;color:#b65353}.user-row{display:flex;align-items:center;gap:13px;padding:14px 16px}.user-avatar{width:40px;height:40px;border-radius:50%;background:#e6f6fb;color:#0789b6;display:grid;place-items:center;font-weight:700}.user-row .grow strong,.user-row .grow span{display:block}.user-row .grow strong{font-size:11px}.user-row .grow span{font-size:9px;color:#90a2ae}.password-inline{display:flex;gap:8px;align-items:center}.password-inline input{width:150px}.login-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 80% 10%,rgba(10,161,211,.17),transparent 25%),#061f35}.login-card{width:min(440px,100%);background:#fff;border-radius:20px;padding:30px;box-shadow:0 30px 100px rgba(0,0,0,.32)}.login-logo{display:flex;align-items:center;gap:10px}.login-logo>span{width:45px;height:45px;border-radius:11px;display:grid;place-items:center;background:#0aa1d3;color:#fff;font-weight:800}.login-logo strong,.login-logo small{display:block}.login-logo strong{font-size:12px}.login-logo small{font-size:8px;letter-spacing:.12em;color:#8da0ad}.login-copy{margin:32px 0 22px}.login-copy>span{font-size:8px;color:#0a98c8;letter-spacing:.17em;font-weight:700}.login-copy h1{font-size:30px;color:#0b2c46;letter-spacing:-.035em;margin:5px 0 8px}.login-copy p{font-size:12px;color:#798e9c;line-height:1.6;margin:0}.login-form{display:flex;flex-direction:column;gap:13px}.login-form .admin-btn{margin-top:4px;padding:12px}.back-site{display:block;text-align:center;margin-top:20px;color:#8ba0ad;font-size:10px}.setup-callout{padding:16px;background:#f0f8fb;border:1px solid #d6edf4;border-radius:11px}.setup-callout strong{font-size:11px}.setup-callout p{font-size:10px;color:#708692}.setup-callout .admin-btn{width:100%}
@media(max-width:1100px){.stat-grid{grid-template-columns:1fr 1fr}.admin-grid.two{grid-template-columns:1fr}.project-admin-grid{grid-template-columns:1fr 1fr}.inline-form{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:1.3fr .5fr .5fr}}
@media(max-width:760px){.admin-sidebar{transform:translateX(-105%);transition:.25s}.admin-sidebar.open{transform:none}.admin-main{margin-left:0}.sidebar-toggle{display:block}.admin-topbar{padding:0 14px}.admin-content{padding:22px 12px 70px}.page-intro{align-items:flex-start;flex-direction:column}.stat-grid{grid-template-columns:1fr 1fr;gap:9px}.stat-grid article{padding:15px}.stat-grid strong{font-size:27px}.project-admin-grid{grid-template-columns:1fr}.inline-form,.form-grid,.form-grid.three,.form-grid.two-cols{grid-template-columns:1fr}.form-grid .full,.inline-form .wide{grid-column:auto}.item-editor-head{display:grid;grid-template-columns:42px 1fr}.item-editor-head label:nth-of-type(n+2){grid-column:2}.item-actions{align-items:flex-start;gap:12px;flex-direction:column}.item-actions>div{width:100%}.item-actions .admin-btn{flex:1}.sticky-save span{display:none}.sticky-save .admin-btn{width:100%}.logo-upload{align-items:flex-start;flex-direction:column}.user-row{align-items:flex-start;flex-wrap:wrap}.password-inline{width:100%}.password-inline input{flex:1}.admin-user>span{display:none}}
@media(max-width:460px){.stat-grid{grid-template-columns:1fr}.page-intro h1{font-size:27px}.login-card{padding:23px}.footer{} }

.service-editor{overflow:hidden}.service-admin-preview{height:190px;margin:-18px -18px 18px;overflow:hidden;background:#eaf0f3}.service-admin-preview img{width:100%;height:100%;object-fit:cover}.service-editor>label{margin-top:12px}

/* v5 - fluxo de primeiro acesso */
.setup-card{width:min(500px,100%)}
.first-access-progress{display:flex;align-items:center;margin:28px 0 6px;color:#9aabb6;font-size:9px;font-weight:650;letter-spacing:.02em}
.first-access-progress span{display:flex;align-items:center;gap:7px;white-space:nowrap}
.first-access-progress i{font-style:normal;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;background:#eef3f5;color:#708692;font-size:9px}
.first-access-progress span.active{color:#078fbd}
.first-access-progress span.active i{background:#0aa1d3;color:#fff}
.first-access-progress b{height:1px;background:#dce6ea;flex:1;margin:0 10px}
.setup-copy{margin-top:22px}
.password-field{position:relative;display:block;width:100%}
.password-field input{padding-right:46px!important}
.password-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;border-radius:8px;cursor:pointer;display:grid;place-items:center;font-size:14px;line-height:1}
.password-toggle:hover{background:#edf7fb}
.field-hint{font-size:8px!important;font-weight:400;color:#91a3af;line-height:1.45;margin-top:1px}
.setup-submit{font-size:11px!important;min-height:43px}
.setup-security-note{display:flex;gap:9px;align-items:flex-start;margin-top:16px;padding:12px 13px;border-radius:10px;background:#f5fafc;border:1px solid #e1edf1;color:#6f8492}
.setup-security-note>span{width:20px;height:20px;border-radius:50%;background:#e6f7ed;color:#27835a;display:grid;place-items:center;flex:0 0 auto;font-size:10px}
.setup-security-note p{font-size:9px;line-height:1.55;margin:1px 0 0}.setup-security-note strong{color:#334f61}
.db-help p{line-height:1.6}.db-help .admin-btn{margin-top:5px}
@media(max-width:460px){.setup-card{padding:22px 18px}.first-access-progress{font-size:8px}.first-access-progress b{margin:0 6px}.login-copy.setup-copy h1{font-size:27px}}

/* v7 — dashboard de conversão e galeria de trabalhos */
.analytics-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.analytics-stats .whatsapp-stat{background:linear-gradient(135deg,#eefbf3,#fff);border-color:#ccebd8}
.analytics-stats .whatsapp-stat strong{color:#16834c}
.analytics-stats .whatsapp-stat span{color:#5f9c78}
.dashboard-charts{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:18px;margin-bottom:18px}
.analytics-chart-panel,.funnel-panel{overflow:hidden}
.chart-legend{display:flex;align-items:center;gap:7px;font-size:9px;color:#6f8492;white-space:nowrap}
.chart-legend .quote-dot,.chart-legend .wa-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-left:7px}
.chart-legend .quote-dot{background:#0aa1d3}.chart-legend .wa-dot{background:#28a863}
.analytics-line-chart{padding:18px 20px 4px}
.analytics-line-chart svg{display:block;width:100%;height:245px;overflow:visible}
.chart-grid line{stroke:#e7eef2;stroke-width:1;vector-effect:non-scaling-stroke}
.chart-line{fill:none;stroke-width:3;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.quote-line{stroke:#0aa1d3}.wa-line{stroke:#28a863}
.chart-axis-labels{display:flex;justify-content:space-between;color:#95a6b1;font-size:9px;padding:0 2px 12px}
.tracking-note{border-top:1px solid #edf1f3;padding:12px 20px 15px;color:#8498a5;font-size:9px;line-height:1.5}
.funnel-list{padding:21px 22px 10px;display:flex;flex-direction:column;gap:18px}
.funnel-row>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}
.funnel-row strong{font-size:11px;color:#26475b}.funnel-row span{font-size:11px;font-weight:700;color:#0b2d47}
.funnel-track,.source-track{height:8px;background:#edf3f6;border-radius:999px;overflow:hidden}
.funnel-track i,.source-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0aa1d3,#067fa9)}
.funnel-row:last-child .funnel-track i{background:linear-gradient(90deg,#25a861,#35c878)}
.funnel-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 22px 22px}
.funnel-summary>div{background:#f6f9fa;border:1px solid #e9eef1;border-radius:11px;padding:12px}
.funnel-summary span,.funnel-summary strong{display:block}.funnel-summary span{font-size:8px;color:#8599a6}.funnel-summary strong{font-size:21px;color:#0b2d47;margin-top:5px}
.dashboard-lower{margin-bottom:18px}
.source-list{padding:18px 22px;display:flex;flex-direction:column;gap:15px}
.source-row>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:7px}.source-row strong{font-size:10px;color:#28485b}.source-row span{font-size:9px;color:#8296a3}
.gallery-kpi{display:flex;align-items:center;gap:14px;padding:20px 22px 8px}.gallery-kpi strong{font-size:40px;line-height:1;color:#0b2d47;font-weight:630}.gallery-kpi span{font-size:10px;color:#77909f;max-width:180px;line-height:1.45}
.quick-panel a.quick-primary{background:#eef9fd;border:1px solid #d4edf5;margin:10px 12px 4px;border-radius:12px}.quick-panel a.quick-primary i{background:#0aa1d3;color:#fff}
.recent-leads-panel{margin-top:0}
.project-upload-panel{margin-bottom:24px;overflow:hidden}.upload-badge{font-size:8px!important;color:#7c929f!important;background:#f1f6f8;border-radius:999px;padding:7px 10px;letter-spacing:.08em!important}
.project-upload-form{padding:22px}.project-upload-fields{display:grid;grid-template-columns:1.35fr 1fr .45fr;gap:13px}.project-upload-fields label{display:flex;flex-direction:column;gap:7px;font-size:9px;font-weight:650;color:#4f6878}.project-upload-fields .wide{grid-column:1/-1}.project-upload-fields input,.project-upload-fields textarea{width:100%;border:1px solid #d8e3e8;border-radius:9px;padding:10px 11px;background:#fbfcfd;color:#173247;outline:none}.project-upload-fields input:focus,.project-upload-fields textarea:focus{border-color:#0aa1d3;box-shadow:0 0 0 3px rgba(10,161,211,.08)}.project-upload-fields small{font-size:8px;color:#91a4af;font-weight:400}
.upload-dropzone{margin-top:16px;border:1.5px dashed #b9d7e2;background:#f5fbfd;border-radius:14px;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;cursor:pointer;transition:.2s}.upload-dropzone:hover,.upload-dropzone.dragging,.upload-dropzone.has-files{border-color:#0aa1d3;background:#eef9fd}.upload-dropzone input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.upload-icon{width:42px;height:42px;border-radius:50%;background:#0aa1d3;color:#fff;display:grid;place-items:center;font-size:24px;line-height:1}.upload-dropzone strong{font-size:12px;color:#173247}.upload-dropzone small{font-size:9px;color:#78909d;font-weight:400;max-width:500px;line-height:1.5}.upload-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:15px}.upload-actions>span{font-size:9px;color:#8397a4}.gallery-admin-head{display:flex;justify-content:space-between;align-items:center;margin:28px 0 12px}.gallery-admin-head span{font-size:8px;font-weight:700;letter-spacing:.16em;color:#0a9acb}.gallery-admin-head h2{font-size:18px;margin:4px 0 0;color:#173247;font-weight:600}
@media(max-width:1100px){.analytics-stats{grid-template-columns:1fr 1fr}.dashboard-charts{grid-template-columns:1fr}.project-upload-fields{grid-template-columns:1fr 1fr}.project-upload-fields label:nth-child(3){grid-column:auto}.project-upload-fields .wide{grid-column:1/-1}}
@media(max-width:760px){.analytics-stats{grid-template-columns:1fr 1fr}.analytics-line-chart{padding:12px 10px 4px}.analytics-line-chart svg{height:200px}.chart-legend{font-size:8px}.project-upload-form{padding:15px}.project-upload-fields{grid-template-columns:1fr}.project-upload-fields .wide{grid-column:auto}.upload-actions{align-items:stretch;flex-direction:column}.upload-actions .admin-btn{width:100%}.source-row>div:first-child{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:460px){.analytics-stats{grid-template-columns:1fr}.funnel-summary{grid-template-columns:1fr}.analytics-line-chart svg{height:170px}.chart-axis-labels{font-size:8px}}


/* v8 — portal reduzido a métricas + trabalhos reais */
.admin-sidebar nav{margin-top:24px}
.admin-sidebar nav a{min-height:46px}
.dashboard-intro-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.analytics-stats-v8{grid-template-columns:repeat(3,minmax(0,1fr))}
.dashboard-charts-v8{grid-template-columns:minmax(0,1.65fr) minmax(320px,.85fr)}
.chart-legend .visitor-dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-left:7px;background:#0aa1d3}
.visitor-line{stroke:#0aa1d3}.wa-line{stroke:#28a863}
.analytics-detail-grid{align-items:stretch}
.whatsapp-service-panel{border-color:#d8eee1}
.whatsapp-source-list .wa-source-track i{background:linear-gradient(90deg,#25a861,#46d17c)}
.gallery-dashboard-link{margin:0 22px 22px;padding:13px 14px;border:1px solid #d8e9ef;background:#f3fafc;border-radius:12px;display:grid;grid-template-columns:34px 1fr 18px;gap:10px;align-items:center;transition:.2s}
.gallery-dashboard-link:hover{border-color:#b8dce8;transform:translateY(-1px)}
.gallery-dashboard-link>i{font-style:normal;width:34px;height:34px;border-radius:10px;background:#0aa1d3;color:#fff;display:grid;place-items:center;font-size:18px}
.gallery-dashboard-link span{display:flex;flex-direction:column}.gallery-dashboard-link strong{font-size:10px;color:#173247}.gallery-dashboard-link small{font-size:8px;color:#7c919f;margin-top:2px}.gallery-dashboard-link>b{color:#0aa1d3}
.photos-main-panel{padding:25px 27px;display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(135deg,#f4fbfd,#fff);border-color:#d8edf4}
.photos-main-copy{max-width:720px}.photos-main-copy>span{font-size:8px;font-weight:750;letter-spacing:.16em;color:#0a9acb}.photos-main-copy h2{font-size:20px;margin:5px 0 6px;color:#173247;font-weight:620}.photos-main-copy p{font-size:10px;line-height:1.65;color:#728794;margin:0}.photos-main-button{white-space:nowrap}
.upload-preview{width:100%;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin-top:7px}
.upload-preview:empty{display:none}.upload-preview span{aspect-ratio:1;border-radius:8px;overflow:hidden;background:#e8f1f5;border:1px solid #d5e5eb}.upload-preview img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:1100px){.analytics-stats-v8{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-charts-v8{grid-template-columns:1fr}.upload-preview{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-intro-actions{width:100%}.dashboard-intro-actions .admin-btn{flex:1;text-align:center}.analytics-stats-v8{grid-template-columns:1fr 1fr}.photos-main-panel{align-items:stretch;flex-direction:column}.photos-main-button{width:100%;text-align:center}.upload-preview{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:460px){.analytics-stats-v8{grid-template-columns:1fr}.dashboard-intro-actions{display:grid;grid-template-columns:1fr}.upload-preview{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* v9 — acabamento responsivo do portal enxuto */
.admin-content{width:100%;max-width:1500px}
.panel,.stat-grid article{overflow:hidden}
.photos-main-panel{border-radius:16px}
.project-admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.project-editor{min-width:0}
.project-thumb{height:auto;aspect-ratio:4/3}
.project-thumb img{min-width:100%;min-height:100%}
.project-upload-fields input,.project-upload-fields textarea{min-height:42px}

@media(max-width:1180px){
  .admin-content{padding-inline:24px}
  .project-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .admin-topbar{height:68px}
  .admin-content{padding:20px 16px 76px}
  .page-intro{gap:14px;margin-bottom:22px}
  .page-intro h1{font-size:28px}
  .page-intro p{font-size:12px;line-height:1.6}
  .panel{border-radius:14px}
  .panel-head{padding:17px 16px}
  .stat-grid article{padding:16px}
  .project-admin-grid{grid-template-columns:1fr}
  .project-editor{padding:13px}
  .project-upload-panel{border-radius:14px}
  .project-upload-form{padding:16px}
  .upload-dropzone{padding:22px 16px}
  .photos-main-panel{padding:21px 18px}
  .gallery-admin-head{margin-top:22px}
}
@media(max-width:420px){
  .admin-content{padding-inline:12px}
  .admin-topbar{padding-inline:10px}
  .admin-user i{width:32px;height:32px}
  .page-intro h1{font-size:26px}
  .analytics-stats-v8{grid-template-columns:1fr}
  .dashboard-intro-actions{grid-template-columns:1fr}
  .admin-btn{min-height:40px}
  .upload-preview{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* v21 — scrollbar do portal na identidade JM */
html,body{scrollbar-width:thin;scrollbar-color:#11b5e4 #082f4f}
html::-webkit-scrollbar,body::-webkit-scrollbar{width:12px;height:12px}
html::-webkit-scrollbar-track,body::-webkit-scrollbar-track{background:#082f4f;border:0}
html::-webkit-scrollbar-thumb,body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#24c7ef,#0aa1d3 48%,#0a6ea8);border-radius:999px;border:3px solid #082f4f;box-shadow:0 0 12px rgba(10,161,211,.25)}
html::-webkit-scrollbar-thumb:hover,body::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#55dcf8,#14b9e8 48%,#0b83c1)}
html::-webkit-scrollbar-button,body::-webkit-scrollbar-button{width:0;height:0;display:none;background:transparent}
html::-webkit-scrollbar-corner,body::-webkit-scrollbar-corner{background:#082f4f}

/* Gateck demo — portal sem banco de dados */
.demo-admin-body .admin-shell{padding-top:38px}
.demo-admin-banner{position:fixed;z-index:999;inset:0 0 auto;height:38px;background:linear-gradient(90deg,#061724,#0a4268 55%,#0aa1d3);color:#fff;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 18px;font-size:9px;letter-spacing:.04em;box-shadow:0 8px 22px rgba(4,27,45,.16)}
.demo-admin-banner strong{letter-spacing:.14em}.demo-admin-banner span{opacity:.82}.demo-admin-banner button{border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.1);color:#fff;border-radius:999px;padding:5px 9px;font:inherit;font-weight:700;cursor:pointer}
.demo-info-card{margin-bottom:18px;padding:16px 18px;border:1px solid #d7e8ef;border-radius:14px;background:linear-gradient(135deg,#eef9fd,#fff);color:#38566a}.demo-info-card strong{display:block;color:#0b2d47;font-size:11px;margin-bottom:4px}.demo-info-card p{margin:0;font-size:10px;line-height:1.6}.demo-info-card code{background:#e6f3f8;color:#086b91;border-radius:5px;padding:1px 5px}
.demo-bars{height:260px;padding:22px 20px 12px;display:grid;grid-template-columns:repeat(14,minmax(20px,1fr));gap:7px;align-items:end;border-bottom:1px solid #edf1f3}
.demo-bar-day{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:8px}.demo-bar-pair{height:205px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.demo-bar-pair i{display:block;width:8px;min-height:4px;border-radius:6px 6px 2px 2px}.demo-bar-vis{background:linear-gradient(180deg,#1ec3ef,#0a7fae)}.demo-bar-wa{background:linear-gradient(180deg,#43d17c,#239957)}.demo-bar-day small{font-size:7px;color:#8ba0ad;white-space:nowrap}
.demo-project-editor .project-thumb{background:#eaf1f5}.demo-project-editor .project-thumb img{width:100%;height:100%;object-fit:cover}.demo-project-editor label{display:flex;flex-direction:column;gap:6px;font-size:9px;color:#526b7b;font-weight:650;margin-top:10px}.demo-project-editor input,.demo-project-editor textarea{width:100%;border:1px solid #d8e3e8;border-radius:9px;padding:10px 11px;background:#fbfcfd;color:#173247;outline:none}.demo-project-editor input:focus,.demo-project-editor textarea:focus{border-color:#0aa1d3;box-shadow:0 0 0 3px rgba(10,161,211,.08)}
.demo-toast{position:fixed;right:22px;bottom:22px;z-index:2000;max-width:340px;padding:12px 15px;border-radius:12px;background:#0b2d47;color:#fff;font-size:10px;font-weight:650;box-shadow:0 18px 50px rgba(0,0,0,.2);opacity:0;transform:translateY(10px);transition:.22s}.demo-toast.show{opacity:1;transform:none}.demo-toast.error{background:#9d2631}
@media(max-width:760px){.demo-admin-banner{height:44px;justify-content:space-between}.demo-admin-banner span{display:none}.demo-admin-body .admin-shell{padding-top:44px}.demo-bars{overflow-x:auto;grid-template-columns:repeat(14,36px);justify-content:start}.demo-toast{right:14px;left:14px;bottom:14px;max-width:none}}


/* Gateck demo v2 — aviso integrado à topbar e alinhamento corrigido */
.demo-admin-body .admin-shell{padding-top:0}
.demo-admin-body .admin-sidebar{top:0;bottom:0}
.demo-topbar{min-height:76px;height:auto;gap:18px;padding-block:10px}
.demo-topbar-title{display:flex;flex-direction:column;flex:0 0 auto}
.demo-topbar-status{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0;padding:7px 9px 7px 12px;border:1px solid #d8e9ef;background:linear-gradient(90deg,#f2fbfe,#e9f7fc);border-radius:12px;color:#416174}
.demo-topbar-status strong{font-size:9px;letter-spacing:.12em;color:#078dbc;white-space:nowrap}
.demo-topbar-status span{font-size:9px;color:#6f8796;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:420px}
.demo-topbar-status button{border:1px solid #c7e3ed;background:#fff;color:#0b6e96;border-radius:999px;padding:6px 10px;font-size:9px;font-weight:700;white-space:nowrap;cursor:pointer;transition:.2s}
.demo-topbar-status button:hover{background:#0aa1d3;border-color:#0aa1d3;color:#fff}
.demo-topbar .admin-user{margin-left:0;flex:0 0 auto}
.demo-admin-banner{display:none!important}
@media(max-width:1120px){
  .demo-topbar-status span{display:none}
}
@media(max-width:760px){
  .demo-admin-body .admin-shell{padding-top:0}
  .demo-topbar{min-height:68px;padding:8px 12px;gap:8px;align-items:center}
  .demo-topbar-title{min-width:0;flex:1}
  .demo-topbar-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:40vw}
  .demo-topbar-status{margin-left:0;padding:5px 6px;border-radius:10px;gap:6px}
  .demo-topbar-status strong{display:none}
  .demo-topbar-status button{padding:6px 8px;font-size:8px}
  .demo-topbar .admin-user{margin-left:0}
}
@media(max-width:460px){
  .demo-topbar-status{background:transparent;border:0;padding:0}
  .demo-topbar-status button{background:#eef8fb}
  .demo-topbar .admin-user{display:none}
  .demo-topbar-title strong{max-width:48vw}
}
