/* Painel admin — visual neutro (nov/2026), mesmo sistema do painel do cliente. */
:root{
  --bg:#fafafa;--card:#fff;--line:#e7e7ea;--line-2:#f0f0f2;--ink:#111114;--ink-2:#3f3f46;--muted:#71717a;--faint:#a1a1aa;
  --accent:#35AA73;--accent-soft:#e9fbef;--green:#15803d;--green-bg:#ecfdf3;--green-line:#bbf7d0;
  --amber:#b45309;--amber-bg:#fffbeb;--amber-line:#fde68a;--red:#dc2626;--red-bg:#fef2f2;--red-line:#fecaca;
  --blue:#1d4ed8;--blue-bg:#eff6ff;--blue-line:#bfdbfe;
  --r:14px;--r-sm:10px;--mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --font:"Circular Std",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:400 14px/1.45 var(--font);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0;padding:0}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted)}
.mono{font-family:var(--mono)}
.num,.tbl .num{text-align:right;font-variant-numeric:normal}
.overline{display:block;margin-bottom:3px;color:var(--muted);font-size:11.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}

/* ---------- Estrutura ---------- */
.adm{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh;background:linear-gradient(#fff,#fff) 0 0/248px 100% no-repeat}
.adm-side{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:18px 14px;background:#fff;border-right:1px solid var(--line)}
.adm-brand{display:flex;align-items:center;gap:10px;padding:4px 8px 20px}
.adm-brand img{display:block;height:38px;width:auto}
.adm-brand em{margin-left:auto;padding:2px 8px;color:var(--muted);background:#f4f4f5;border-radius:6px;font-size:11px;font-style:normal;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.adm-nav{display:flex;flex-direction:column;gap:2px}
.adm-nav small{margin:16px 10px 6px;color:var(--faint);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.adm-nav button{display:flex;align-items:center;gap:11px;height:38px;padding:0 10px;color:var(--ink-2);border-radius:9px;font-size:14.5px;font-weight:500;text-align:left}
.adm-nav button:hover{background:#f4f4f5;color:var(--ink)}
.adm-nav button.active{background:#f1f1f3;color:var(--ink);font-weight:600}
.adm-nav button b{margin-left:auto;min-width:22px;height:20px;padding:0 6px;color:var(--muted);background:#f4f4f5;border-radius:6px;font-size:12px;font-weight:600;line-height:20px;text-align:center}
.adm-nav button b:empty{display:none}
.adm-nav button b.live{color:var(--green);background:var(--green-bg)}
.adm-nav button b.warn{color:var(--amber);background:var(--amber-bg)}
.adm-side-foot{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.provider-chip{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#fafafa;border:1px solid var(--line);border-radius:var(--r-sm)}
.provider-chip i{width:8px;height:8px;background:var(--faint);border-radius:50%;flex:none}
.provider-chip.ok i{background:#22c55e;box-shadow:0 0 0 3px #dcfce7}
.provider-chip.bad i{background:var(--red);box-shadow:0 0 0 3px var(--red-bg)}
.provider-chip span{display:flex;flex-direction:column;min-width:0}
.provider-chip strong{font-size:13px;font-weight:600}
.provider-chip small{color:var(--muted);font-size:12px}
.adm-back{display:flex;align-items:center;gap:8px;padding:8px 10px;color:var(--muted);border-radius:8px;font-size:13.5px;font-weight:500}
.adm-back:hover{color:var(--ink);background:#f4f4f5}
.adm-back .icon{width:16px;height:16px}
.adm-scrim{position:fixed;inset:0;z-index:55;background:rgba(17,17,20,.35)}
.adm-main{min-width:0}

/* ---------- Barra superior ---------- */
.adm-top{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;height:64px;padding:0 28px;background:rgba(250,250,250,.9);border-bottom:1px solid var(--line);backdrop-filter:blur(12px)}
.icon-btn{position:relative;display:grid;place-items:center;width:38px;height:38px;color:var(--ink-2);background:#fff;border:1px solid var(--line);border-radius:10px;flex:none}
.icon-btn:hover{border-color:#d4d4d8;color:var(--ink)}
.icon-btn .dot{position:absolute;top:7px;right:8px;width:8px;height:8px;background:var(--red);border:2px solid #fff;border-radius:50%}
.mobile-only{display:none}
.g-search{position:relative;flex:1 1 auto;max-width:560px}
.g-search>.icon{position:absolute;top:50%;left:13px;width:17px;height:17px;color:var(--muted);transform:translateY(-50%);pointer-events:none}
.g-search input{width:100%;height:40px;padding:0 40px 0 39px;background:#fff;border:1px solid var(--line);border-radius:10px;outline:0;font-size:14.5px}
.g-search input:focus{border-color:#a1a1aa;box-shadow:0 0 0 3px #f1f1f3}
.g-search input::-webkit-search-cancel-button{display:none}
.g-search kbd{position:absolute;top:50%;right:11px;display:grid;place-items:center;min-width:22px;height:22px;color:var(--muted);border:1px solid var(--line);border-radius:6px;font:500 12px var(--font);transform:translateY(-50%)}
.g-search:focus-within kbd{display:none}
.g-results{position:absolute;top:46px;left:0;right:0;max-height:440px;overflow:auto;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(17,17,20,.12)}
.g-results h4{margin:8px 10px 4px;color:var(--faint);font-size:11px;font-weight:600;letter-spacing:.1em;text-transform:uppercase}
.g-results button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;border-radius:8px;text-align:left}
.g-results button:hover,.g-results button.focus{background:#f4f4f5}
.g-results button span{display:flex;flex-direction:column;min-width:0}
.g-results button small{color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.g-results .empty{padding:14px}
.adm-top-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
.pop-wrap{position:relative}
.pop{position:absolute;top:46px;right:0;z-index:60;width:340px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(17,17,20,.12)}
.pop-head{padding:8px 10px;font-size:13px;font-weight:600}
.pop-menu{width:250px}
.pop-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:8px;font-size:14px;text-align:left}
.pop-menu button:hover{background:#f4f4f5}
.alert-item{display:flex;gap:10px;width:100%;padding:10px;border-radius:9px;text-align:left}
.alert-item:hover{background:#f7f7f8}
.alert-item i{flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--blue)}
.alert-item.warn i{background:#f59e0b}.alert-item.error i{background:var(--red)}
.alert-item span{display:flex;flex-direction:column}
.alert-item strong{font-size:13.5px;font-weight:600}
.alert-item small{color:var(--muted);font-size:12.5px}
.me{display:flex;align-items:center;gap:10px;height:40px;padding:0 10px 0 4px;background:#fff;border:1px solid var(--line);border-radius:10px}
.me:hover{border-color:#d4d4d8}
.me-avatar{display:grid;place-items:center;width:30px;height:30px;background:#f1f1f3;border-radius:8px;font-size:12px;font-weight:700}
.me-text{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
.me-text strong{font-size:13.5px;font-weight:600}
.me-text small{color:var(--muted);font-size:12px}
.me .icon{width:15px;height:15px;color:var(--muted)}

/* ---------- Conteúdo ---------- */
.adm-content{max-width:1440px;margin:0 auto;padding:26px 28px 48px}
.view{display:none}
.view.active{display:block}
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:14px 20px;margin-bottom:20px}
.page-head h1{margin:0;font-size:26px;font-weight:700;letter-spacing:-.025em}
.page-head p{margin:4px 0 0;color:var(--muted);font-size:14.5px}
.head-actions{display:flex;flex-wrap:wrap;gap:8px}
.page-head>.head-actions+.head-actions{margin-left:-12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 15px;border-radius:10px;font-size:14px;font-weight:600;white-space:nowrap;transition:background .15s,border-color .15s}
.btn .icon{width:16px;height:16px}
.btn-sm{height:32px;padding:0 11px;font-size:13px;border-radius:8px}
.btn-block{width:100%}
.btn-outline{background:#fff;border:1px solid var(--line)}
.btn-outline:hover{background:#f7f7f8;border-color:#d4d4d8}
.btn-dark{color:#fff;background:#111114;border:1px solid #111114}
.btn-dark:hover{background:#27272a}
.btn-danger{color:var(--red);background:#fff;border:1px solid var(--red-line)}
.btn-danger:hover{background:var(--red-bg)}
.btn-success{color:var(--green);background:var(--green-bg);border:1px solid var(--green-line)}
.btn-success:hover{background:#dcfce7}
.btn:disabled{opacity:.55;cursor:not-allowed}
.btn.confirming{color:#fff;background:var(--red);border-color:var(--red)}
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border:1px solid;border-radius:7px;font-size:12.5px;font-weight:600;white-space:nowrap}
.pill i{width:6px;height:6px;background:currentColor;border-radius:50%}
.pill-green{color:var(--green);background:var(--green-bg);border-color:var(--green-line)}
.pill-amber{color:var(--amber);background:var(--amber-bg);border-color:var(--amber-line)}
.pill-red{color:var(--red);background:var(--red-bg);border-color:var(--red-line)}
.pill-blue{color:var(--blue);background:var(--blue-bg);border-color:var(--blue-line)}
.pill-gray{color:var(--muted);background:#f4f4f5;border-color:var(--line)}
.pill-dark{color:#fff;background:#111114;border-color:#111114}
.seg{display:inline-flex;padding:3px;background:#f1f1f3;border-radius:10px}
.seg button{height:32px;padding:0 13px;color:var(--muted);border-radius:8px;font-size:13.5px;font-weight:600}
.seg button.active{color:var(--ink);background:#fff;box-shadow:0 1px 2px rgba(17,17,20,.08)}
.seg-sm button{height:30px;padding:0 11px;font-size:13px}

.card{padding:20px;background:var(--card);border:1px solid var(--line);border-radius:var(--r)}
.card-flush{padding:0;overflow:hidden}
.card h2{margin:0;font-size:16.5px;font-weight:600;letter-spacing:-.01em}
.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.grid-2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;margin-bottom:18px}
.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:18px}
.kpis-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.kpis-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kpi{display:flex;flex-direction:column;gap:4px;padding:16px 18px;background:#fff;border:1px solid var(--line);border-radius:var(--r)}
.kpi small{color:var(--muted);font-size:13px;font-weight:500}
.kpi strong{font-size:23px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:normal}
.kpi em{color:var(--muted);font-size:12.5px;font-style:normal}
.kpi em .up{color:var(--green);font-weight:600}.kpi em .down{color:var(--red);font-weight:600}
.empty{padding:28px 16px;color:var(--muted);text-align:center;font-size:14px}
.notice{margin-bottom:18px;padding:13px 16px;color:var(--ink-2);background:var(--amber-bg);border:1px solid var(--amber-line);border-radius:var(--r-sm);font-size:14px}
.notice b{color:var(--amber)}
.alert-list{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.alert-list:empty{display:none}
.alert-bar{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:var(--r-sm);text-align:left;width:100%}
.alert-bar.warn{border-left-color:#f59e0b}.alert-bar.error{border-left-color:var(--red)}
.alert-bar strong{font-size:14px;font-weight:600}
.alert-bar small{color:var(--muted);font-size:13px}
.alert-bar em{margin-left:auto;color:var(--muted);font-size:13px;font-style:normal;white-space:nowrap}

/* ---------- Gráfico ---------- */
.chart{position:relative;height:280px}
.chart-empty{position:absolute;top:42%;left:50%;padding:6px 12px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:8px;font-size:13px;transform:translate(-50%,-50%)}
.chart svg{display:block;width:100%;height:100%;overflow:visible}
.chart .grid line{stroke:var(--line-2);stroke-width:1}
.chart .axis text{fill:var(--muted);font-size:11.5px;font-family:var(--font)}
.chart .bar{fill:var(--accent)}
.chart .bar-hit{fill:transparent;cursor:default}
.chart .bar-hit:hover+.bar,.chart g.on .bar{fill:#2b8c5f}
.chart .zero{fill:var(--line)}
.chart-tip{position:absolute;z-index:5;min-width:170px;padding:10px 12px;background:#111114;color:#fff;border-radius:10px;font-size:12.5px;pointer-events:none;transform:translate(-50%,-100%);box-shadow:0 10px 24px rgba(17,17,20,.2)}
.chart-tip b{display:block;margin-bottom:4px;font-size:13px}
.chart-tip div{display:flex;justify-content:space-between;gap:14px;color:#d4d4d8}
.chart-tip div span:last-child{color:#fff;font-variant-numeric:normal}
.chart-table{max-height:250px;overflow:auto}

/* ---------- Operação ---------- */
.op-big{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}
.op-big strong{font-size:40px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:normal}
.op-big span{color:var(--muted)}
.op-rows{display:flex;flex-direction:column;margin-bottom:16px}
.op-rows div{display:flex;justify-content:space-between;padding:9px 0;border-top:1px solid var(--line-2);font-size:14px}
.op-rows span{color:var(--muted)}
.op-rows b{font-weight:600;font-variant-numeric:normal}

/* ---------- Feed ---------- */
.feed{display:flex;flex-direction:column;max-height:420px;overflow-y:auto;margin:0 -8px;scrollbar-width:thin}
.feed-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:8px;border-radius:9px}
.feed-item.new{background:var(--accent-soft)}
.feed-item div{min-width:0}
.feed-item strong{display:block;font-size:13.5px;font-weight:600}
.feed-item small{display:block;color:var(--muted);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.feed-item b{font-size:13px;font-weight:600;font-variant-numeric:normal}
.feed-item b.pos{color:var(--green)}.feed-item b.neg{color:var(--ink-2)}.feed-item b.zero{color:var(--faint)}

/* ---------- Logos ---------- */
.logo{position:relative;display:grid;place-items:center;width:34px;height:34px;flex:none;overflow:hidden;color:#fff;background:var(--c,#52525b);border-radius:9px;font-size:12.5px;font-weight:700}
.logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#fff}
.logo-sm{width:28px;height:28px;border-radius:8px;font-size:11px}
.logo-lg{width:48px;height:48px;border-radius:12px;font-size:16px}
.avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;color:var(--ink-2);background:#f1f1f3;border-radius:50%;font-size:12.5px;font-weight:700}
.avatar-lg{width:52px;height:52px;font-size:17px}

/* ---------- Tabelas ---------- */
.toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.field-search{position:relative;flex:1 1 260px;max-width:420px}
.field-search .icon{position:absolute;top:50%;left:12px;width:16px;height:16px;color:var(--muted);transform:translateY(-50%)}
.field-search input{width:100%;height:38px;padding:0 12px 0 36px;background:#fff;border:1px solid var(--line);border-radius:9px;outline:0}
.field-search input:focus,.sel:focus,.fcol input:focus,.fcol textarea:focus,.unit input:focus{border-color:#a1a1aa;box-shadow:0 0 0 3px #f1f1f3;outline:0}
.sel{height:38px;padding:0 32px 0 12px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;border:1px solid var(--line);border-radius:9px;appearance:none;-webkit-appearance:none;cursor:pointer}
.table-wrap{overflow-x:auto}
.tbl{width:100%;border-collapse:collapse;font-size:14px}
.tbl th{padding:11px 16px;color:var(--muted);background:#fcfcfc;border-bottom:1px solid var(--line);font-size:12px;font-weight:600;letter-spacing:.04em;text-align:left;text-transform:uppercase;white-space:nowrap}
.tbl td{padding:12px 16px;border-bottom:1px solid var(--line-2);vertical-align:middle;white-space:nowrap}
.tbl tbody tr:last-child td{border-bottom:0}
.tbl-click tbody tr{cursor:pointer}
.tbl-click tbody tr:hover td{background:#fafafa}
.card .tbl th{background:transparent}
.card:not(.card-flush) .tbl th,.card:not(.card-flush) .tbl td{padding-left:0}
.card:not(.card-flush) .tbl th:last-child,.card:not(.card-flush) .tbl td:last-child{padding-right:0}
.cell{display:flex;align-items:center;gap:11px;min-width:0}
.cell>span:not(.avatar):not(.logo){display:flex;flex-direction:column;min-width:0}
.cell strong{font-weight:600}
.cell small{color:var(--muted);font-size:12.5px}
.tbl td.wrap{white-space:normal;min-width:240px;max-width:420px;color:var(--ink-2)}
.timer{font-family:var(--mono);font-size:13px;font-weight:600}
.timer.low{color:var(--red)}
.code{font-family:var(--mono);font-weight:600;color:var(--green);letter-spacing:.06em}
.pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}
.pager:empty{display:none}
.pager div{display:flex;gap:6px}
.pager button{display:grid;place-items:center;width:32px;height:32px;background:#fff;border:1px solid var(--line);border-radius:8px}
.pager button:disabled{opacity:.4;cursor:not-allowed}
.pager .icon{width:15px;height:15px}
.tabs{display:flex;gap:4px;margin-bottom:14px;overflow-x:auto;scrollbar-width:none}
.tabs button{display:flex;align-items:center;gap:7px;height:36px;padding:0 13px;color:var(--muted);border:1px solid transparent;border-radius:9px;font-size:14px;font-weight:600;white-space:nowrap}
.tabs button:hover{color:var(--ink)}
.tabs button.active{color:var(--ink);background:#fff;border-color:var(--line)}
.tabs b{min-width:20px;height:20px;padding:0 6px;color:var(--muted);background:#f1f1f3;border-radius:6px;font-size:12px;line-height:20px;text-align:center}
.tabs b:empty{display:none}

/* ---------- Gavetas e modais ---------- */
.drawer{position:fixed;inset:0;z-index:70}
.drawer-scrim{position:absolute;inset:0;background:rgba(17,17,20,.35)}
.drawer aside{position:absolute;top:0;right:0;bottom:0;width:min(560px,100%);overflow-y:auto;padding:24px;background:#fff;box-shadow:-20px 0 50px rgba(17,17,20,.15);animation:slide .2s ease}
@keyframes slide{from{transform:translateX(30px);opacity:.6}}
.drawer-x{position:absolute;top:16px;right:16px}
.d-head{display:flex;align-items:center;gap:14px;margin:4px 48px 18px 0}
.d-head h2{margin:0;font-size:20px;font-weight:700;letter-spacing:-.02em}
.d-head p{margin:2px 0 0;color:var(--muted);font-size:13.5px;word-break:break-all}
.d-pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}
.d-section{padding:16px 0;border-top:1px solid var(--line)}
.d-section>h3{margin:0 0 12px;font-size:13px;font-weight:600;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
.dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;margin:0}
.dl div{min-width:0}
.dl dt{color:var(--muted);font-size:12.5px}
.dl dd{margin:2px 0 0;font-size:14px;font-weight:500;word-break:break-word}
.d-actions{display:flex;flex-wrap:wrap;gap:8px}
.balance-big{font-size:30px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:normal}
.inline-form{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;margin:12px 0 8px}
.inline-form input,.fcol input,.fcol textarea,.unit input,.modal input,.modal textarea,.modal select{height:38px;padding:0 11px;background:#fff;border:1px solid var(--line);border-radius:9px;outline:0;width:100%}
textarea{height:auto!important;padding:10px 11px!important;resize:vertical}
.hint{color:var(--muted);font-size:12.5px}
.mini-list{display:flex;flex-direction:column}
.mini-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--line-2);font-size:13.5px}
.mini-row:last-child{border-bottom:0}
.mini-row span{display:flex;flex-direction:column;min-width:0}
.mini-row small{color:var(--muted);font-size:12.5px}
.mini-row b{font-variant-numeric:normal;font-weight:600}
.mini-row b.pos{color:var(--green)}
.mini-row.click{cursor:pointer}.mini-row.click:hover{background:#fafafa}
.code-box{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;background:var(--green-bg);border:1px solid var(--green-line);border-radius:var(--r-sm)}
.code-box .code{font-size:22px}
.modal,.mfa-gate{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:16px;background:rgba(17,17,20,.4)}
.mfa-gate{z-index:90;background:rgba(250,250,250,.96)}
.modal-card{position:relative;width:min(480px,100%);max-height:calc(100vh - 32px);overflow-y:auto;padding:24px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 30px 60px rgba(17,17,20,.18)}
.modal-card h2{margin:0 0 6px;font-size:19px;font-weight:700;letter-spacing:-.02em}
.modal-card p{margin:0 0 16px;color:var(--muted)}
.modal-card label{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-size:13.5px;font-weight:500}
.modal-card .row-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.modal-svc{display:flex;align-items:center;gap:12px;margin:0 40px 16px 0}
.modal-svc h2{margin:0}
.qr{display:grid;place-items:center;padding:12px;margin:8px 0 12px;background:#fff;border:1px solid var(--line);border-radius:12px}
.qr img{width:180px;height:180px}
.secret{padding:8px 10px;background:#f4f4f5;border-radius:8px;font-family:var(--mono);font-size:12.5px;word-break:break-all}
.otp{font-family:var(--mono);font-size:22px!important;letter-spacing:.3em;text-align:center;height:48px!important}

/* ---------- Suporte ---------- */
.support{display:grid;grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:18px;align-items:start}
.sup-item{display:block;width:100%;padding:13px 16px;border-bottom:1px solid var(--line-2);text-align:left}
.sup-item:hover{background:#fafafa}
.sup-item.active{background:#f4f4f5}
.sup-item .top{display:flex;justify-content:space-between;gap:8px;margin-bottom:3px}
.sup-item strong{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-item small{color:var(--muted);font-size:12.5px;white-space:nowrap}
.sup-item p{margin:0;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-thread{min-height:420px;display:flex;flex-direction:column}
.thread-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.thread-head h2{margin:0}
.thread-head p{margin:3px 0 0;color:var(--muted);font-size:13px}
.msgs{display:flex;flex-direction:column;gap:10px;flex:1;padding:16px 0;max-height:480px;overflow-y:auto}
.msg{max-width:78%;padding:10px 13px;background:#f4f4f5;border-radius:12px 12px 12px 4px;white-space:pre-wrap;word-break:break-word}
.msg.staff{align-self:flex-end;color:#fff;background:#111114;border-radius:12px 12px 4px 12px}
.msg small{display:block;margin-top:5px;opacity:.65;font-size:11.5px}
.reply{display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px solid var(--line)}
.reply textarea{width:100%;background:#fff;border:1px solid var(--line);border-radius:10px;outline:0}
.reply div{display:flex;justify-content:space-between;gap:8px}

/* ---------- Configurações ---------- */
.settings{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
.card-wide{grid-column:1/-1}
.settings .note{margin:4px 0 12px;color:var(--muted);font-size:13.5px}
.settings h2.mt{margin-top:22px}
.settings-save{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:-4px}
.frow{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid var(--line-2)}
.frow>span:first-child{display:flex;flex-direction:column}
.frow b{font-size:14px;font-weight:600}
.frow small{color:var(--muted);font-size:12.5px}
.unit{display:flex;align-items:center;gap:7px;flex:none}
.unit input{width:84px;text-align:right}
.unit em{color:var(--muted);font-style:normal;font-size:13px}
.switch{appearance:none;-webkit-appearance:none;position:relative;width:40px;height:23px;flex:none;background:#d4d4d8;border-radius:999px;cursor:pointer;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;background:#fff;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.switch:checked{background:#111114}
.switch:checked::after{transform:translateX(17px)}
.switch:disabled{opacity:.5;cursor:not-allowed}
.fcol{display:flex;flex-direction:column;gap:6px;margin-top:12px;font-size:13.5px;font-weight:500}
.fcol small{color:var(--muted);font-weight:400}
.fpair{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.banner-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}
.banner-preview{min-height:110px;margin:6px 0 14px;padding:4px;background:#fafafa;border:1px dashed var(--line);border-radius:12px}
.bp{display:flex;align-items:stretch;overflow:hidden;background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:10px}
.bp.success{border-left-color:#16a34a}.bp.warning{border-left-color:#f59e0b}.bp.danger{border-left-color:var(--red)}
.bp img{width:38%;max-height:140px;object-fit:cover}
.bp.only img{width:100%}
.bp div{padding:12px 14px}
.bp strong{display:block;font-size:14.5px}
.bp p{margin:4px 0 0;color:var(--ink-2);font-size:13.5px}
.bp span{display:inline-block;margin-top:6px;color:var(--accent);font-size:13px;font-weight:600}
.perm td:not(:first-child),.perm th:not(:first-child){text-align:center;width:80px}

/* ---------- Toast ---------- */
.toast{position:fixed;left:50%;bottom:24px;z-index:100;max-width:min(520px,calc(100% - 32px));padding:12px 16px;color:#fff;background:#111114;border-radius:11px;box-shadow:0 14px 30px rgba(17,17,20,.25);font-size:14px;font-weight:500;opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:opacity .2s,transform .2s}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.error{background:var(--red)}.toast.warn{background:#92400e}.toast.ok{background:#166534}

/* ---------- Responsivo ---------- */
@media (max-width:1280px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1100px){.grid-2,.settings,.banner-form{grid-template-columns:1fr}.support{grid-template-columns:1fr}.kpis-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:980px){
  .adm{grid-template-columns:1fr;background:none}
  .adm-side{position:fixed;left:0;z-index:60;width:270px;transform:translateX(-100%);transition:transform .2s}
  .adm-side.open{transform:none;box-shadow:20px 0 50px rgba(17,17,20,.2)}
  .mobile-only{display:grid}
  .adm-top{padding:0 16px}
  .adm-content{padding:20px 16px 40px}
  .me-text,.me .icon{display:none}
  .me{padding:0 4px}
}
@media (max-width:640px){
  .kpis,.kpis-3,.kpis-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .kpi{padding:13px 14px}.kpi strong{font-size:19px}
  .kpis>.kpi:last-child:nth-child(odd){grid-column:1/-1}
  .page-head h1{font-size:22px}
  .page-head>.head-actions+.head-actions{margin-left:0}
  .g-search kbd{display:none}
  .g-search input{font-size:16px}
  .pop{position:fixed;top:70px;left:12px;right:12px;width:auto}
  .dl,.fpair{grid-template-columns:1fr}
  .inline-form{grid-template-columns:1fr}
  .drawer aside{padding:20px 16px}
  .toolbar{padding:12px}
  .field-search{flex-basis:100%;max-width:none}
  .toolbar .sel{flex:1 1 140px}
  .frow{align-items:flex-start}
  .msg{max-width:90%}
}

/* ---------- Provedores ---------- */
.prov{margin-bottom:28px}
.prov-head{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-bottom:14px}
.prov-mark{display:grid;place-items:center;width:52px;height:52px;flex:none;color:#fff;background:#111114;border-radius:14px;font-weight:700;font-size:15px;letter-spacing:.02em}
.prov-head h2{margin:0;font-size:22px;font-weight:700;letter-spacing:-.02em}
.prov-head p{margin:2px 0 0;color:var(--muted);font-size:13.5px}
.prov-head .head-actions{margin-left:auto}
.prov-issues{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.prov-issues div{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--amber-bg);border:1px solid var(--amber-line);border-radius:var(--r-sm);font-size:13.5px}
.prov-issues div.err{background:var(--red-bg);border-color:var(--red-line)}
.prov-issues i{width:8px;height:8px;flex:none;background:#f59e0b;border-radius:50%}
.prov-issues div.err i{background:var(--red)}
.meter{height:8px;margin-top:8px;background:var(--line-2);border-radius:9px;overflow:hidden}
.meter i{display:block;height:100%;background:var(--green);border-radius:9px}
.meter.low i{background:var(--red)}
.meter.mid i{background:#f59e0b}
.prov .kpi strong small{font-size:13px;font-weight:500;color:var(--muted)}
.prov-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);gap:18px}
.prov-grid .tbl td,.prov-grid .tbl th{padding-top:10px;padding-bottom:10px}
.ev{display:flex;gap:10px;padding:10px 0;border-top:1px solid var(--line-2);font-size:13.5px}
.ev:first-child{border-top:0}
.ev i{width:8px;height:8px;margin-top:6px;flex:none;background:var(--red);border-radius:50%}
.ev span{display:flex;flex-direction:column}
.ev small{color:var(--muted);font-size:12.5px}
.prov-soon{display:flex;align-items:center;gap:14px;padding:18px 20px;color:var(--muted);background:transparent;border:1px dashed var(--line);border-radius:var(--r)}
.prov-soon b{color:var(--ink)}
@media (max-width:1180px){.prov-grid{grid-template-columns:1fr 1fr}.prov-grid>:first-child{grid-column:1/-1}}
@media (max-width:640px){.prov-grid{grid-template-columns:1fr}.prov-head .head-actions{margin-left:0;width:100%}.prov-head .head-actions .btn{flex:1}}

/* ---------- Webhooks ---------- */
.wh{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 20px;align-items:center;margin-bottom:12px}
.wh-main{display:flex;align-items:center;gap:14px;min-width:0}
.wh-ic{display:grid;place-items:center;width:44px;height:44px;flex:none;color:#fff;background:#111114;border-radius:12px}
.wh-ic.off{color:var(--muted);background:#f1f1f3}
.wh-main strong{display:block;font-size:16px}
.wh-main code{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font:12.5px var(--mono)}
.wh-events{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.wh-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px 18px;color:var(--muted);font-size:13px}
.wh .d-actions{justify-content:flex-end}
.code-sample{margin:0;padding:16px;overflow-x:auto;color:#e7e7ea;background:#111114;border-radius:12px;font:12.5px/1.6 var(--mono)}
.hint code{padding:1px 6px;background:#f4f4f5;border-radius:5px;font:12px var(--mono)}
.secret-box{display:flex;align-items:center;gap:8px;margin:6px 0 4px}
.secret-box .secret{flex:1}
.ev-check{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin:4px 0 12px}
.ev-check label{flex-direction:row!important;align-items:flex-start;gap:8px!important;margin:0!important;font-weight:400!important;font-size:13.5px}
.ev-check input{width:16px!important;height:16px!important;margin-top:2px;accent-color:#111114}
.ev-check small{display:block;color:var(--muted);font-size:12px}
.json-edit{min-height:180px;font:12.5px/1.5 var(--mono)!important}
@media (max-width:640px){.wh{grid-template-columns:1fr}.wh .d-actions{justify-content:flex-start}.ev-check{grid-template-columns:1fr}}
