/* JOGO BOT 4.9 — shared design system for every admin view. */
:root{--ink:#152e3b;--muted:#647b88;--accent:#087f83;--accent-soft:#e4f4f1;--line:#dee8ec;--canvas:#f4f7f9;--surface:#fff;--shadow:0 4px 20px #17394706;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;color:var(--ink);background:var(--canvas);font-synthesis:none}
body{line-height:1.5}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{min-height:40px;padding:9px 16px;border-radius:9px;font-weight:600;font-size:13px;line-height:1.4;background:var(--accent);transition:background .16s,box-shadow .16s,transform .16s}button:hover:not(:disabled){filter:none;background:#066b70;box-shadow:0 3px 10px #087f831c}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5;box-shadow:none}.ghost{background:#f1f5f7;color:#375565;border:1px solid var(--line)}.ghost:hover:not(:disabled){background:#e6eef2}.danger{background:#fff0f1;border:1px solid #f6d9dd;color:#b52c43}.danger:hover:not(:disabled){background:#ffe1e6}a{color:#087f83;text-underline-offset:3px}:focus-visible{outline:3px solid #47b3b0;outline-offset:3px}input,select,textarea{min-height:42px;border:1px solid #d5e0e5;border-radius:9px;padding:10px 12px;background:#fff;font-size:14px;transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:0;border-color:#198c90;box-shadow:0 0 0 3px #168b9018}input::placeholder,textarea::placeholder{color:#8b9da7}input[type=checkbox]{width:17px;min-height:17px;height:17px;accent-color:var(--accent);flex-shrink:0}input[type=file]{background:#f8fafb;border-style:dashed;padding:12px;max-width:100%}input[type=file]::file-selector-button{border:0;border-radius:6px;background:#e4f1ee;color:#08706e;padding:7px 12px;margin-right:12px;font-weight:600}label{font-size:13px;font-weight:600;color:#425f6c;margin:18px 0 8px}textarea{line-height:1.65}small,.muted{color:var(--muted);font-size:12px;line-height:1.65}h1{font-size:27px;letter-spacing:-.7px;line-height:1.25;font-weight:750;margin-bottom:8px}h2{font-size:19px;letter-spacing:-.3px;line-height:1.4}h3{font-size:16px;line-height:1.5;margin:18px 0 10px}p{line-height:1.75;overflow-wrap:anywhere}hr{border:0;border-top:1px solid var(--line);margin:24px 0}
.language-bar{height:56px;min-height:56px;padding:8px 30px;gap:10px;box-shadow:0 1px 8px #17394704;z-index:30}.language-bar::before{content:'JOGO BOT';margin-right:auto;color:#496471;font-size:11px;letter-spacing:2px;font-weight:750}.language-bar label{font-size:12px;font-weight:500}.language-bar select{font-size:12px;min-height:34px;max-width:190px;background:#f8fafb}.layout{grid-template-columns:244px minmax(0,1fr);min-height:calc(100vh - 56px)}.sidebar{top:56px;height:calc(100vh - 56px);padding:27px 18px 22px;background:#102c39;color:#c0d1d8;border-right:1px solid #193d4a;scrollbar-width:thin;scrollbar-color:#31535f transparent}.brand-row{margin-bottom:24px}.brand-row .brand{padding:0;display:flex;align-items:center;gap:7px;font-size:21px;letter-spacing:-.5px}.brand::before{content:'';width:32px;height:32px;background:url('/favicon.svg') center/contain no-repeat;margin-right:3px;flex:none}.sidebar label{font-size:11px;font-weight:500;color:#89a8b5;margin-top:14px}.sidebar select{background:#1b3b49;border:1px solid #34515e;color:#f1f7fa;min-height:44px;margin-bottom:25px;font-size:13px}.sidebar #primary-navigation{gap:6px}.sidebar #primary-navigation button{display:flex;align-items:center;gap:12px;min-height:46px;font-size:13px;font-weight:500;color:#aac2cc;padding:12px;border-radius:9px;white-space:normal;line-height:1.4}.sidebar #primary-navigation button:hover{background:#1c3e4b;color:#fff;box-shadow:none}.sidebar #primary-navigation button.active{background:#20505b;color:#83e0d0;box-shadow:inset 3px 0 #44cdb8}.nav-icon{width:18px;height:18px;flex:none;opacity:.9;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}.sidebar .account{border-top:1px solid #2d4956;margin-top:32px;padding-top:20px}.sidebar .account small{display:block;color:#91adb9;margin:0 12px 12px;overflow-wrap:anywhere}.sidebar .account button{font-size:12px;min-height:38px}.sidebar .account button:hover{background:#1c3e4b;color:#fff;box-shadow:none}main{padding:32px 34px 56px;max-width:1900px;width:100%;margin:0 auto}.top{gap:20px;align-items:center;margin-bottom:24px}.top .row{justify-content:flex-end}.breadcrumb{font-size:11px;letter-spacing:.5px;color:#8296a1;margin-bottom:8px}.section-tabs{gap:4px;border-bottom:1px solid var(--line);padding:0 0 12px;margin-bottom:24px;scrollbar-width:thin}.section-tabs button{border-radius:8px;font-size:13px;min-height:38px;padding:9px 14px;font-weight:500}.section-tabs button:hover{background:#eaf0f3;box-shadow:none;color:#214855}.section-tabs button.selected{background:#dff1ed;border-color:#b9dfd6;color:#086b65;font-weight:700}.panel,.card,.tablewrap{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{padding:24px;margin-bottom:20px}.panel>h2{margin-bottom:14px}.row{gap:10px}.panel.row{align-items:flex-end;row-gap:14px}.panel.row>label{margin:0;min-width:150px;flex:1}.panel.row>label input,.panel.row>label select{display:block;width:100%;max-width:none;margin-top:7px}.panel.row>small{align-self:center}.row input,.row select{max-width:260px}.note{border:1px solid #d8e9ec;border-left:3px solid #68b7b3;background:#edf6f6;color:#3d626d;border-radius:9px;padding:14px 17px;margin:16px 0 20px;font-size:13px;line-height:1.75;overflow-wrap:anywhere}.cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.card{padding:22px 24px;position:relative;overflow:hidden}.card::before{content:'';position:absolute;width:26px;height:3px;top:0;left:24px;background:#55bcae;border-radius:0 0 3px 3px}.card strong{font-size:34px;line-height:1.2;font-weight:700;letter-spacing:-1px;margin-top:18px;font-variant-numeric:tabular-nums}.quick-panel{gap:12px}.quick-action{border-radius:12px;padding:19px;background:var(--surface);box-shadow:var(--shadow)}.quick-action strong{font-size:14px}.quick-action span{font-size:12px}.quick-action:hover:not(:disabled){background:#f9fdfc;border-color:#9ccfc4;color:var(--ink);box-shadow:0 5px 18px #123b4810}.setup-guide{background:#e9f6f2;border-color:#c8e6dc;border-radius:12px}.bars{height:210px;gap:10px;padding-top:18px}.bar{background:linear-gradient(#4cb6a9,#168b88);border-radius:5px 5px 0 0}.barcol small{font-size:11px}
.tablewrap{max-width:100%;scrollbar-width:thin;scrollbar-color:#bbced6 transparent}table{font-size:13px}th{padding:14px 18px;background:#f8fafb;font-size:11px;letter-spacing:.4px;font-weight:650;color:#6c838f}td{padding:17px 18px;vertical-align:middle;line-height:1.65;overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafdfd}td button{border-radius:7px;min-height:32px;padding:6px 10px;font-size:12px}td:last-child{min-width:140px}.empty{padding:64px 24px!important;color:#8ca0aa;font-size:13px}.badge{font-size:11px;line-height:1.5;font-weight:600;border-radius:6px;padding:4px 9px;background:#e7f4ee;color:#217653;max-width:100%;overflow-wrap:anywhere}.badge[data-state=failed],.badge[data-state=rejected]{background:#fcecee;color:#b4314a}.badge[data-state=draft],.badge[data-state=cancelled],.badge[data-state=left]{background:#edf1f4;color:#687f8b}.badge[data-state=scheduled],.badge[data-state=pending],.badge[data-state=paused_running],.badge[data-state=paused_scheduled]{background:#fff4df;color:#916623}.badge[data-state=running],.badge[data-state=sending]{background:#e8f1fc;color:#3169a6}
dialog{padding:0;border:1px solid var(--line);border-radius:18px;width:680px;max-width:calc(100vw - 32px);max-height:88dvh;box-shadow:0 28px 100px #09273440;overflow:auto;color:var(--ink)}dialog::backdrop{background:#0e293366;backdrop-filter:blur(4px)}dialog header{padding:21px 24px;border-bottom:1px solid var(--line);gap:20px;background:#fff;position:sticky;top:0;z-index:5}dialog header h2{font-size:19px}dialog header button{flex:none}#fields{margin:0;padding:8px 24px 24px}dialog footer{position:sticky;bottom:0;padding:16px 24px;margin-top:0;border-top:1px solid var(--line);background:#fff;z-index:5}dialog footer button{min-width:100px}.emoji-choice,.tg-import-dialog{padding:24px}.emoji-choice header,.tg-import-dialog header{padding:0 0 18px;position:static}.emoji-choice .emoji-grid{margin-top:18px}.formgrid{gap:0 20px}#toast{max-width:min(640px,calc(100vw - 32px));width:max-content;bottom:24px;padding:14px 20px;border:1px solid #416470;background:#163a48;box-shadow:0 12px 40px #0a29352e;border-radius:12px;font-size:13px;line-height:1.65;overflow-wrap:anywhere;z-index:1000}
.login{max-width:420px;margin:10vh auto;padding:38px;border:1px solid #dbe7eb;border-radius:20px;box-shadow:0 22px 70px #183d4e0d;background:#fff}.login h1{display:flex;align-items:center;gap:6px;font-size:26px;margin-bottom:14px}.login h1::before{content:'';width:42px;height:42px;background:url('/favicon.svg') center/contain no-repeat;margin-right:8px}.login h1 span{color:var(--accent)}.login p{margin-bottom:26px}.login label{margin-top:18px}.login input{min-height:46px}.login button{min-height:46px}.login .error:empty{display:none}
.card-workspace{grid-template-columns:210px minmax(320px,1fr) 300px;gap:18px}.card-browser,.card-phone-wrap{top:76px}.card-browser{padding:14px}.card-browser #card-list{max-height:calc(100vh - 330px)}.card-list-item{border:1px solid #e1e9ed;border-radius:9px;padding:13px 12px}.card-list-item:hover:not(:disabled){background:#f0f8f6;box-shadow:none;color:var(--ink)}.card-list-item.selected{border-color:#82c6b9;background:#eaf7f2;box-shadow:inset 3px 0 #259c8d}.card-list-item strong{font-size:13px}.card-list-item small{font-size:11px;margin-top:5px}.card-compose{padding:24px}.card-compose textarea{min-height:190px}.card-button-editor{padding:16px;border-radius:10px;background:#f8fafb;border-color:var(--line)}.card-button-editor label{margin-top:10px}.card-savebar{gap:8px;bottom:0;padding:16px 0 8px;background:#fff;box-shadow:0 -8px 16px #fff;z-index:4}.card-savebar button{font-size:12px;padding:9px 12px}.card-phone{border:5px solid #244350;border-radius:26px;box-shadow:0 15px 35px #20434d12;background:#e6eee9;min-height:440px}.card-phone header{font-size:13px;border-bottom:1px solid #dce5e4;padding:16px}.card-phone header small{font-size:11px}.card-bubble{box-shadow:0 2px 5px #1c493b08}.card-preview-row button:hover{filter:brightness(.97);box-shadow:none}.trigger-rule{padding:18px;background:#fbfdfd;border-color:var(--line)}.trigger-rule .row{gap:6px}.trigger-rule .row button{font-size:12px}.button-drop-row{background:#f9fbfc;border-color:#b7ced5;padding:12px}.button-drop-row button:hover{background:#cae9e1;box-shadow:none;color:#174a50}.emoji-grid{grid-template-columns:repeat(auto-fill,minmax(136px,1fr));gap:12px}.emoji-card{border-color:var(--line);border-radius:12px;padding:16px 10px;box-shadow:var(--shadow)}.emoji-card small{font-size:11px}.emoji-card button{min-height:32px}.emoji-choice button.emoji-card:hover{background:#e3f3ef;box-shadow:none;color:var(--ink)}.emoji-picker{padding:10px 0}.group-config-form{max-width:none;grid-template-columns:minmax(180px,1fr) minmax(220px,2fr);gap:16px 26px}.group-config-form label{margin:0;line-height:1.7}.group-config-form button{margin-top:8px}.group-batch label{padding:12px;background:#f6f9fa;border-radius:8px;margin:0}.conversation-layout{grid-template-columns:290px minmax(0,1fr);gap:18px}.thread{border:1px solid #e4ecef;background:#fafcfd;border-radius:10px;min-height:65px}.thread:hover:not(:disabled){background:#edf6f3;box-shadow:none;color:var(--ink)}.thread.selected{background:#e9f6f1;border-color:#9acebf}.thread small{font-size:11px}.conversation-layout>section{min-width:0}#inbox-title{overflow-wrap:anywhere}#inbox-messages{height:52vh;background:#f5f8fa;border:1px solid #e6eef1;padding:18px}.chat-bubble{border:1px solid #e3eaee;background:#fff;font-size:13px}.chat-bubble.out{background:#e5f4ec;border-color:#d3e9dd}#inbox-body{min-height:100px}.chat-bubble small{font-size:11px}
@media(min-width:1800px){.cards{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:1450px){.card-workspace{grid-template-columns:190px minmax(0,1fr)}.card-phone-wrap{grid-column:2;position:static;max-width:360px}.quick-panel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.layout{grid-template-columns:218px minmax(0,1fr)}main{padding:26px 22px 44px}.sidebar{padding:24px 14px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.conversation-layout{grid-template-columns:230px minmax(0,1fr)}.group-config-form{grid-template-columns:1fr;gap:8px}.group-config-form label{margin-top:12px}.group-config-form button{grid-column:1;margin-top:16px}.top{flex-wrap:wrap}.top .row{justify-content:flex-start}}
@media(max-width:850px){.layout{display:block}.language-bar{height:52px;min-height:52px;padding:7px 16px}.language-bar::before{letter-spacing:1px;font-size:10px}.language-bar label{display:none}.language-bar select{max-width:170px}.sidebar{position:static;height:auto;padding:18px}.brand-row{margin:0 0 12px}.brand-row .brand{font-size:19px}.brand::before{width:28px;height:28px}.sidebar #nav-toggle{min-height:36px;padding:8px 10px;border-radius:8px}.sidebar>label{margin-top:8px}.sidebar select{margin:6px 0 10px}.sidebar #primary-navigation{margin:12px 0;gap:6px}.sidebar #primary-navigation button{min-height:46px;padding:10px;font-size:12px}.sidebar .account{margin:10px 0 0;padding-top:10px;display:flex;gap:6px;align-items:center}.sidebar .account small{margin:0 auto 0 0;font-size:11px}.sidebar .account button{width:auto;min-height:32px;padding:6px 8px;font-size:11px}main{padding:24px 16px 40px}.top h1{font-size:24px}.section-tabs,html[lang="pt-BR"] .section-tabs{flex-wrap:nowrap;overflow-x:auto}.section-tabs button{font-size:12px;white-space:nowrap}.panel{padding:19px}.conversation-layout{display:block}.conversation-layout>section{margin-top:16px}#inbox-threads{max-height:240px}.card-workspace{display:block}.card-browser,.card-phone-wrap{position:static}.card-browser #card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px}.card-list-item{margin:0}.card-compose{margin-top:16px}.card-phone-wrap{margin:20px auto;max-width:360px}.card-savebar{position:static;box-shadow:none}.tablewrap table{min-width:620px}.tablewrap{overscroll-behavior-x:contain}.tablewrap td{max-width:280px}.formgrid{grid-template-columns:1fr}.setup-guide{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.cards{gap:10px}.card{padding:17px 15px}.card strong{font-size:28px}.card small{font-size:11px}.card::before{left:15px}.quick-panel{grid-template-columns:1fr}.panel{padding:16px}.top{gap:14px}.top>.row{width:100%}.panel.row>input,.panel.row>select,.panel.row>label{width:100%;max-width:none}.panel.row>label{min-width:0}.panel.row{align-items:stretch}.panel.row button{flex:1}.login{margin:7vh 16px;padding:28px 24px}.language-bar{padding:7px 14px}.emoji-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.emoji-choice .emoji-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.card-savebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.card-savebar button{width:100%;white-space:normal;min-height:42px}.card-savebar .danger{grid-column:auto}.card-button-editor .row{display:block}.card-button-editor label{display:block}.card-list-item strong{font-size:12px}dialog{max-width:calc(100vw - 20px);max-height:90dvh;border-radius:14px}dialog header{padding:16px;gap:12px}dialog header h2{font-size:17px}#fields{padding:4px 16px 18px}dialog footer{padding:14px 16px}.emoji-choice,.tg-import-dialog{padding:16px}.emoji-choice header,.tg-import-dialog header{padding:0 0 16px}.trigger-rule{padding:14px}.trigger-rule>.row{width:100%}.trigger-rule button{flex:1}#toast{bottom:14px}.chat-bubble{max-width:95%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.group-config-form .moderation-section{grid-column:1 / -1;border-bottom:1px solid #d9e5eb;padding:18px 0 10px;margin:4px 0;color:#087f87;}

.ad-simple{grid-column:1/-1;width:100%}.ad-simple>div,.ad-simple details>div{margin:12px 0}.ad-simple [hidden]{display:none!important}.ad-simple details{margin-top:20px;padding:16px;border:1px solid #d9e5eb;border-radius:12px}.ad-simple summary{cursor:pointer;font-weight:700}.ad-simple p{color:#617e8b;line-height:1.65}
