:root{
  --slot-bg:#09090b;
  --slot-panel:#18181b;
  --slot-panel-2:#111113;
  --slot-border:#27272a;
  --slot-border-soft:#3f3f46;
  --slot-text:#f4f4f5;
  --slot-muted:#a1a1aa;
  --slot-muted-2:#71717a;
  --slot-primary:#ef4444;
  --slot-primary-strong:#dc2626;
  --slot-green:#22c55e;
  --slot-yellow:#f59e0b;
  --slot-blue:#3b82f6;
  --slot-sidebar:20rem;
  --slot-topbar:4.9rem;
  --slot-radius:12px;
  --slot-shadow:0 18px 50px rgba(0,0,0,.25);
}
*{box-sizing:border-box}
html{min-height:100%;background:var(--slot-bg);color-scheme:dark}
body{margin:0;min-height:100vh;background:var(--slot-bg);color:var(--slot-text);font-family:"Roboto Condensed","Inter",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
img{max-width:100%}
.slot-layout{min-height:100vh;background:var(--slot-bg)}
.slot-sidebar-overlay{position:fixed;inset:0;background:rgba(9,9,11,.72);backdrop-filter:blur(2px);z-index:45;display:none}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--slot-sidebar);height:100vh;z-index:50;display:flex;flex-direction:column;background:var(--slot-panel);border-right:1px solid rgba(255,255,255,.07);box-shadow:8px 0 30px rgba(0,0,0,.2);transition:transform .2s ease}
.slot-sidebar-head{height:var(--slot-topbar);display:flex;align-items:center;padding:0 1.35rem;border-bottom:1px solid rgba(255,255,255,.08);gap:.85rem;flex:0 0 auto}
.slot-brand{display:flex;align-items:center;min-width:0;flex:1}
.slot-brand img{display:block;width:auto;height:60px;max-width:360px;object-fit:contain;object-position:left center}
.slot-admin-badge{font-size:.64rem;line-height:1;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#fecaca;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.28);padding:.35rem .45rem;border-radius:999px}
.slot-sidebar-close,.slot-mobile-menu{appearance:none;border:0;background:transparent;color:var(--slot-muted);display:grid;place-items:center;border-radius:9px;width:36px;height:36px}
.slot-sidebar-close:hover,.slot-mobile-menu:hover{background:#27272a;color:#fff}
.sidebar nav{padding:1rem .85rem 1.2rem;overflow:auto;display:flex;flex-direction:column;gap:.2rem;scrollbar-width:thin;scrollbar-color:#3f3f46 transparent}
.slot-nav-section{margin:.9rem .65rem .4rem;color:#71717a;font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.nav-item{display:flex;align-items:center;gap:.78rem;min-height:42px;padding:.65rem .75rem;border-radius:9px;color:#d4d4d8;font-size:.93rem;font-weight:550;transition:background .15s ease,color .15s ease,border-color .15s ease;border:1px solid transparent}
.nav-item svg{width:20px;height:20px;stroke-width:1.7;color:#a1a1aa;flex:0 0 auto}
.nav-item:hover{background:#242427;color:#fff}
.nav-item:hover svg{color:#e4e4e7}
.nav-item.active{background:rgba(239,68,68,.11);border-color:rgba(239,68,68,.18);color:#fff}
.nav-item.active svg{color:#f87171}
.sidebar-footer{margin-top:auto;padding:.9rem;border-top:1px solid rgba(255,255,255,.08)}
.sidebar-footer .icon-text{width:100%;display:flex;align-items:center;gap:.75rem;justify-content:flex-start;border:0;background:transparent;color:#a1a1aa;padding:.7rem .8rem;border-radius:9px}
.sidebar-footer .icon-text:hover{background:#27272a;color:#fff}
.sidebar-footer svg{width:19px;height:19px}
.slot-admin-link{display:flex;align-items:center;gap:.75rem;padding:.7rem .8rem;margin-bottom:.35rem;border-radius:9px;color:#e4e4e7;background:#202023;border:1px solid #2f2f33}
.slot-admin-link:hover{border-color:#4b4b52}
.main{margin-left:var(--slot-sidebar);min-height:100vh;background:var(--slot-bg)}
.topbar{position:sticky;top:0;z-index:35;height:var(--slot-topbar);display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;background:rgba(24,24,27,.92);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08)}
.slot-topbar-left{display:flex;align-items:center;gap:1rem;min-width:0}
.slot-mobile-menu{display:none}
.slot-page-context{min-width:0}
.slot-page-context small{display:block;color:#71717a;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;font-weight:800;margin-bottom:.16rem}
.slot-page-context h1{margin:0;color:#fafafa;font-size:1.05rem;line-height:1.2;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slot-topbar-actions{display:flex;align-items:center;gap:.65rem}
.user-chip{display:flex;align-items:center;gap:.65rem;background:#202023;border:1px solid #2c2c30;border-radius:11px;padding:.35rem .55rem .35rem .4rem;color:#e4e4e7;font-size:.84rem;max-width:260px}
.user-chip span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-initial{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#ef4444;color:white;font-weight:800;flex:0 0 auto}
.slot-top-link{display:flex;align-items:center;gap:.5rem;color:#a1a1aa;font-size:.82rem;padding:.5rem .65rem;border-radius:9px;border:1px solid transparent}
.slot-top-link:hover{color:#fff;background:#27272a;border-color:#343438}
.slot-top-link svg{width:18px;height:18px}
.slot-content{padding:1.5rem;max-width:1600px;margin:0 auto}
.slot-content>.notice:first-child{margin-top:0}
.eyebrow{margin:0 0 .35rem;color:#f87171;font-size:.69rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.35rem 0 .85rem;text-align:left;max-width:none}
.section-head>div{min-width:0}
.section-head h2{margin:0;color:#fafafa;font-size:1.22rem;line-height:1.25;font-weight:650;letter-spacing:-.01em}
.section-head p{margin:.35rem 0 0;color:var(--slot-muted)}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:0 0 1rem}
.stats article,.editor,.table-wrap,.form-grid,.plan-card,.doc-layout article,.notice,.provider-list,.operation-tabs,.config-section,.auth-form,.auth-brand{background:var(--slot-panel);border:1px solid var(--slot-border);border-radius:var(--slot-radius);box-shadow:0 1px 0 rgba(255,255,255,.02)}
.stats article{padding:1rem 1.05rem;min-height:112px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.stats article::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#3f3f46}
.stats article:first-child::before{background:#ef4444}
.stats article:nth-child(2)::before{background:#3b82f6}
.stats article:nth-child(3)::before{background:#22c55e}
.stats article:nth-child(4)::before{background:#f59e0b}
.stats article span{color:#a1a1aa;font-size:.77rem}
.stats article strong{margin-top:.45rem;color:#fff;font-size:1.7rem;line-height:1;font-weight:700}
.table-wrap{overflow:auto;margin-bottom:1rem}
table{width:100%;border-collapse:collapse;min-width:760px;background:transparent}
th,td{text-align:left;padding:.78rem .9rem;border-bottom:1px solid #27272a;font-size:.82rem;vertical-align:middle}
th{color:#a1a1aa;background:#151517;font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700;position:sticky;top:0;z-index:1}
td{color:#e4e4e7}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:rgba(255,255,255,.018)}
td strong{display:block;color:#fafafa}
td small{display:block;color:#71717a;margin-top:.2rem}
.status{display:inline-flex;align-items:center;justify-content:center;min-height:25px;border-radius:999px;padding:.25rem .55rem;font-size:.68rem;font-weight:750;background:#27272a;color:#d4d4d8;border:1px solid #3f3f46;text-transform:capitalize}
.status.success,.status.active{background:rgba(34,197,94,.12);border-color:rgba(34,197,94,.25);color:#86efac}
.status.warning,.status.pending{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.25);color:#fcd34d}
.status.error,.status.suspended{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.25);color:#fca5a5}
.status.muted{background:#202023;color:#8b8b94;border-color:#2f2f33}
.button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:38px;padding:.55rem .8rem;border-radius:9px;border:1px solid #3f3f46;background:#27272a;color:#f4f4f5;font-weight:650;font-size:.8rem;transition:.15s ease;text-decoration:none}
.button:hover{background:#303034;border-color:#52525b}
.button.primary{background:var(--slot-primary);border-color:var(--slot-primary);color:#fff;box-shadow:0 6px 18px rgba(239,68,68,.14)}
.button.primary:hover{background:var(--slot-primary-strong);border-color:var(--slot-primary-strong)}
.button.small{min-height:32px;padding:.4rem .62rem;font-size:.73rem}
.button svg{width:17px;height:17px}
.notice{padding:.9rem 1rem;margin:0 0 1rem;color:#d4d4d8;display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.notice.success{border-color:rgba(34,197,94,.28);background:rgba(34,197,94,.08);color:#bbf7d0}
.notice.warning{border-color:rgba(245,158,11,.28);background:rgba(245,158,11,.08);color:#fde68a}
.notice.error{border-color:rgba(239,68,68,.28);background:rgba(239,68,68,.08);color:#fecaca}
.notice .button{margin-left:auto}
.secret-output{width:100%;white-space:pre-wrap;word-break:break-word;background:#09090b;border:1px solid #27272a;border-radius:9px;padding:.8rem;color:#e4e4e7}
.form-grid,.editor{padding:1rem;margin-bottom:1rem}
.editor>.section-head{margin-top:0}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem 1rem}
.form-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}
.form-grid label,.plan-card label,.inline-form label,.config-section label,.auth-form label{display:flex;flex-direction:column;gap:.38rem;color:#d4d4d8;font-size:.76rem;font-weight:600;margin:0;min-width:0}
.form-grid label.wide,.wide{grid-column:1/-1}
input,select,textarea{width:100%;min-height:40px;border:1px solid #3f3f46;background:#111113;color:#f4f4f5;border-radius:9px;padding:.55rem .7rem;outline:none;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}
textarea{min-height:92px;resize:vertical}
input:focus,select:focus,textarea:focus{border-color:#ef4444;box-shadow:0 0 0 3px rgba(239,68,68,.12);background:#141416}
input::placeholder,textarea::placeholder{color:#62626b}
input[type=checkbox]{width:16px;height:16px;min-height:0;accent-color:#ef4444;padding:0}
input[type=radio]{width:16px;height:16px;min-height:0;accent-color:#ef4444;padding:0}
.toggle,.setting-toggle{flex-direction:row!important;align-items:center!important;gap:.55rem!important;min-height:40px}
.form-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:.6rem;padding-top:.1rem}
.inline-form{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}
.inline-form select,.inline-form input{width:auto;min-width:120px}
.provider-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.5rem;padding:.65rem;margin-bottom:1rem}
.provider-row{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.7rem .75rem;border-radius:9px;background:#111113;border:1px solid #26262a;color:#d4d4d8}
.provider-row:hover,.provider-row.selected{border-color:#4b4b52;background:#19191c}
.provider-row.selected{box-shadow:inset 3px 0 0 #ef4444}
.provider-row span:first-child{min-width:0}
.provider-row strong{display:block;color:#fafafa}
.provider-row small{display:block;color:#71717a;margin-top:.18rem}
.config-dot{font-size:.64rem;color:#71717a;border:1px solid #3f3f46;border-radius:999px;padding:.2rem .4rem}
.config-dot.ready{color:#86efac;border-color:rgba(34,197,94,.3);background:rgba(34,197,94,.08)}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}
.plan-card{padding:1rem;display:flex;flex-direction:column;gap:.75rem}
.plan-card .eyebrow{margin:0}
.doc-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.doc-layout article{padding:1rem}
.doc-layout h3{margin:0 0 .55rem;color:#fff;font-size:.95rem}
.doc-layout p{color:#a1a1aa;font-size:.8rem;line-height:1.55}
.doc-layout code{display:block;background:#09090b;border:1px solid #27272a;border-radius:8px;padding:.6rem .7rem;color:#fca5a5;overflow:auto;font-size:.76rem}
.operation-tabs{display:flex;gap:.35rem;padding:.45rem;overflow:auto;margin-bottom:1rem}
.operation-tab{white-space:nowrap;border:1px solid transparent;background:transparent;color:#a1a1aa;border-radius:8px;padding:.55rem .75rem}
.operation-tab:hover{background:#202023;color:#fff}
.operation-tab.active{background:#2b2b30;border-color:#3f3f46;color:#fff}
.config-section{padding:1rem;margin-bottom:.8rem}
.config-section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}
.config-section h3{margin:0;color:#fafafa;font-size:.95rem}
.config-group,.config-groups{display:grid;gap:.8rem}
.config-groups{grid-template-columns:repeat(2,minmax(0,1fr))}
.config-group{grid-template-columns:repeat(2,minmax(0,1fr))}
.config-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}
.provider-scope-grid,.probability-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.choice,.mode-lock,.activation-band{background:#111113;border:1px solid #2b2b2f;border-radius:9px;padding:.72rem}
.sticky-actions{position:sticky;bottom:.75rem;z-index:10;background:rgba(24,24,27,.92);backdrop-filter:blur(10px);border:1px solid #343438;border-radius:10px;padding:.65rem;display:flex;justify-content:flex-end;gap:.6rem;box-shadow:var(--slot-shadow)}
.empty-state{padding:1.2rem;text-align:center;color:#71717a}
.input-suffix{display:flex;align-items:stretch}
.input-suffix input{border-radius:9px 0 0 9px}
.input-suffix span{display:flex;align-items:center;padding:0 .7rem;background:#202023;border:1px solid #3f3f46;border-left:0;border-radius:0 9px 9px 0;color:#a1a1aa}
/* login */
.slot-auth-page{min-height:100vh;display:grid;place-items:center;background:#09090b;position:relative;overflow:hidden;padding:1.5rem}
.slot-auth-page::before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 50% -10%,rgba(239,68,68,.12),transparent 34%),radial-gradient(circle at 90% 90%,rgba(239,68,68,.06),transparent 28%);pointer-events:none}
.slot-auth-wrap{width:min(100%,440px);position:relative;z-index:1}
.slot-login-logo{display:flex;justify-content:center;margin-bottom:1.25rem}
.slot-login-logo img{height:68px;width:auto;max-width:430px;object-fit:contain}
.slot-login-card{background:#18181b;border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:2rem;box-shadow:0 28px 80px rgba(0,0,0,.38)}
.slot-login-card h1{margin:0;color:#fff;font-size:1.35rem;font-weight:700;text-align:center}
.slot-login-card>p{margin:.45rem 0 1.35rem;text-align:center;color:#a1a1aa;font-size:.82rem}
.slot-login-card label{display:block;color:#d4d4d8;font-size:.78rem;font-weight:600;margin:.85rem 0}
.slot-login-card label span{display:block;margin-bottom:.38rem}
.slot-login-card input{height:43px}
.slot-login-submit{width:100%;margin-top:.45rem;min-height:43px}
.slot-login-error{margin:.7rem 0;padding:.68rem .75rem;border-radius:9px;background:rgba(239,68,68,.09);border:1px solid rgba(239,68,68,.25);color:#fecaca;font-size:.78rem}
.slot-login-meta{margin-top:1rem!important;font-size:.72rem!important;color:#71717a!important}
.slot-login-admin{display:inline-flex;align-items:center;gap:.35rem;color:#fca5a5}
/* setup / legacy auth fallback */
.auth-shell{min-height:100vh;display:grid;place-items:center;background:#09090b;padding:1.5rem}
.auth-brand{display:none}
.auth-form{width:min(100%,460px);padding:1.35rem;display:grid;gap:.8rem}
.auth-form h2{margin:0;color:#fff}
.auth-link{display:none}
.field-error{color:#fca5a5;background:rgba(239,68,68,.08);border:1px solid rgba(239,68,68,.22);padding:.6rem .7rem;border-radius:8px}
@media(max-width:1100px){
  :root{--slot-sidebar:17rem}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}
  .provider-scope-grid,.probability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .sidebar{transform:translateX(-100%);width:min(86vw,320px)}
  body.slot-sidebar-open .sidebar{transform:translateX(0)}
  body.slot-sidebar-open .slot-sidebar-overlay{display:block}
  .main{margin-left:0}
  .slot-mobile-menu{display:grid}
  .slot-sidebar-close{display:grid}
  .slot-content{padding:1rem}
  .slot-top-link span{display:none}
  .user-chip span:last-child{display:none}
  .user-chip{padding:.3rem}
  .doc-layout{grid-template-columns:1fr}
}
@media(min-width:901px){.slot-sidebar-close{display:none}}
@media(max-width:680px){
  .topbar{padding:0 .8rem}
  .slot-page-context small{display:none}
  .slot-content{padding:.8rem}
  .stats{grid-template-columns:1fr 1fr;gap:.7rem}
  .stats article{min-height:96px;padding:.8rem}
  .stats article strong{font-size:1.35rem}
  .form-grid,.form-grid.compact,.config-groups,.config-group,.config-fields,.provider-scope-grid,.probability-grid{grid-template-columns:1fr}
  .section-head{align-items:flex-start;flex-direction:column}
  .section-head .button{width:100%}
  .form-actions{justify-content:stretch}
  .form-actions .button{flex:1}
  .plan-grid{grid-template-columns:1fr}
  .slot-login-card{padding:1.25rem}
  .slot-login-logo img{height:52px}
}
@media(max-width:430px){
  .stats{grid-template-columns:1fr}
  .slot-page-context h1{font-size:.95rem;max-width:200px}
}

/* Admin > Personalizacao > Logo */
.branding-grid{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.15fr);gap:1rem;align-items:stretch;margin-bottom:1rem}
.branding-preview,.branding-form,.branding-reset{background:var(--slot-panel);border:1px solid var(--slot-border);border-radius:var(--slot-radius);box-shadow:0 1px 0 rgba(255,255,255,.02)}
.branding-preview{padding:1rem;display:flex;flex-direction:column;gap:.75rem}
.branding-preview-label{color:#71717a;font-size:.68rem;font-weight:800;letter-spacing:.09em}
.branding-preview-stage{min-height:190px;display:grid;place-items:center;padding:1.25rem;border:1px dashed #3f3f46;border-radius:10px;background:#09090b;background-image:linear-gradient(45deg,#121214 25%,transparent 25%),linear-gradient(-45deg,#121214 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#121214 75%),linear-gradient(-45deg,transparent 75%,#121214 75%);background-size:18px 18px;background-position:0 0,0 9px,9px -9px,-9px 0}
.branding-preview-stage img{display:block;max-width:min(100%,520px);max-height:150px;width:auto;height:auto;object-fit:contain}
.branding-preview>small{color:#a1a1aa}
.branding-form{padding:1rem;display:flex;flex-direction:column;gap:1rem}
.branding-form h3{margin:.1rem 0 .35rem;color:#fafafa;font-size:1rem}
.branding-form p{margin:0;color:#a1a1aa;font-size:.8rem;line-height:1.5}
.branding-upload{position:relative;display:block!important;cursor:pointer}
.branding-upload input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.branding-upload>span{min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;padding:1rem;text-align:center;border:1px dashed #52525b;border-radius:10px;background:#111113;color:#e4e4e7;transition:.15s ease}
.branding-upload:hover>span{border-color:#ef4444;background:rgba(239,68,68,.035)}
.branding-upload svg{width:28px;height:28px;color:#f87171}
.branding-upload b{font-size:.86rem}
.branding-upload small{color:#71717a;font-weight:500}
.branding-actions{display:flex;justify-content:flex-end}
.branding-reset{padding:.9rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.branding-reset div{display:flex;flex-direction:column;gap:.2rem}
.branding-reset strong{color:#f4f4f5;font-size:.84rem}
.branding-reset span{color:#71717a;font-size:.76rem}
@media(max-width:900px){.branding-grid{grid-template-columns:1fr}}
@media(max-width:680px){.branding-preview-stage{min-height:150px}.branding-preview-stage img{max-height:110px}.branding-reset{align-items:stretch;flex-direction:column}.branding-reset .button{width:100%}}
