:root{
  --bg:#0A0A0B;
  --bg-soft:#121212;
  --surface:#171717;
  --surface-2:#1E1E1E;
  --surface-3:#262626;
  --line:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.14);
  --text:#F8FAFC;
  --muted:#A1A1AA;
  --muted-2:#71717A;
  --accent:#10B981;
  --accent-2:#3B82F6;
  --danger:#EF4444;
  --shadow:0 24px 80px rgba(0,0,0,.46);
  --radius-xl:32px;
  --radius-lg:22px;
  --radius-md:16px;
}
*{box-sizing:border-box}
html{min-height:100%}
body{margin:0;min-height:100vh;font-family:Inter,Roboto,"SF Pro Display",Segoe UI,Arial,sans-serif;background:radial-gradient(circle at 20% 0%,rgba(16,185,129,.16),transparent 31%),radial-gradient(circle at 85% 12%,rgba(59,130,246,.14),transparent 34%),linear-gradient(145deg,#050506 0%,#0A0A0B 52%,#121212 100%);color:var(--text);letter-spacing:-.02em}
button,input{font-family:inherit}.public-shell{width:min(1280px,100%);min-height:100vh;margin:auto;display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;padding:28px}.brand-panel,.chat-card,.login-card,.login-brand{border:1px solid var(--line);background:linear-gradient(180deg,rgba(30,30,30,.72),rgba(18,18,18,.92));box-shadow:var(--shadow);backdrop-filter:blur(22px)}
.brand-panel{border-radius:var(--radius-xl);padding:34px;display:flex;flex-direction:column;position:relative;overflow:hidden}.brand-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.07),transparent 32%),radial-gradient(circle at 15% 22%,rgba(16,185,129,.22),transparent 27%);pointer-events:none}.brand-mark{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(16,185,129,.22),rgba(59,130,246,.14));border:1px solid rgba(16,185,129,.34);color:var(--accent);position:relative;z-index:1}.brand-mark svg{width:30px;height:30px}.brand-copy{position:relative;z-index:1;margin-top:44px}.eyebrow{display:inline-flex;padding:8px 12px;border:1px solid var(--line);border-radius:999px;color:var(--accent);font-weight:700;font-size:12px;text-transform:uppercase;letter-spacing:.08em;background:rgba(16,185,129,.08)}.brand-panel h1{font-size:35px;line-height:1.02;margin:20px 0 14px;font-weight:800;letter-spacing:-.055em}.brand-panel p{margin:0;color:#D4D4D8;font-size:16px;line-height:1.6}.trust-list{position:relative;z-index:1;display:grid;gap:12px;margin-top:46px}.trust-item{height:52px;display:flex;align-items:center;gap:13px;padding:0 14px;border:1px solid var(--line);border-radius:var(--radius-md);background:rgba(255,255,255,.035);color:#E4E4E7}.trust-item svg{width:20px;height:20px;color:var(--accent)}.secure-note{position:relative;z-index:1;margin-top:auto;display:inline-flex;align-items:center;gap:10px;color:var(--muted);font-size:13px}.secure-note svg{width:16px;height:16px;color:var(--accent)}
.chat-card{border-radius:var(--radius-xl);min-height:780px;display:flex;flex-direction:column;overflow:hidden;position:relative}.chat-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% -12%,rgba(16,185,129,.18),transparent 31%),linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);background-size:auto,44px 44px,44px 44px;pointer-events:none}.chat-header{min-height:96px;padding:0 32px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1;background:rgba(18,18,18,.55)}.agent-wrap{display:flex;align-items:center;gap:16px}.bot-avatar,.mini-avatar{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#F8FAFC,#D4D4D8);color:#09090B;border:2px solid rgba(16,185,129,.72);box-shadow:0 0 0 6px rgba(16,185,129,.09)}.bot-avatar{width:58px;height:58px}.mini-avatar{width:42px;height:42px;flex:none}.chat-header h2{font-size:22px;margin:0 0 5px;font-weight:800}.chat-header p{margin:0;color:var(--muted);font-size:14px}.chat-header p span{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 18px var(--accent);margin-right:7px}.dots{width:42px;height:42px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.035);color:var(--muted);display:grid;place-items:center;cursor:pointer}.dots:hover{color:var(--text);border-color:var(--line-strong)}
.chat-body{position:relative;z-index:1;padding:34px 34px 8px;display:flex;flex-direction:column;gap:26px}.msg-row{display:flex;gap:14px;align-items:flex-start}.msg-row.user{justify-content:flex-end}.bubble{max-width:460px;border-radius:6px 20px 20px 20px;padding:17px 19px;font-size:17px;line-height:1.48;color:#F4F4F5;box-shadow:0 14px 35px rgba(0,0,0,.22)}.bot-bubble,.msg-row.bot .bubble{background:linear-gradient(180deg,#242424,#1A1A1A);border:1px solid var(--line)}.msg-row.user .bubble{background:linear-gradient(135deg,var(--accent),#059669);color:white;border-radius:20px 6px 20px 20px;border:1px solid rgba(255,255,255,.08)}.bubble small{display:block;text-align:right;color:rgba(255,255,255,.55);font-size:11px;margin-top:8px;letter-spacing:0}.quick-replies,.options-grid{position:relative;z-index:1;padding:8px 34px 22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.option{min-height:88px;border:1px solid var(--line);background:linear-gradient(180deg,rgba(38,38,38,.82),rgba(23,23,23,.9));border-radius:20px;padding:14px;display:grid;grid-template-columns:46px minmax(0,1fr) 20px;gap:12px;align-items:center;color:var(--text);text-align:left;font-size:15px;font-weight:600;cursor:pointer;transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease}.option:hover{transform:translateY(-2px);border-color:rgba(16,185,129,.42);box-shadow:0 18px 45px rgba(0,0,0,.28);background:linear-gradient(180deg,rgba(43,43,43,.95),rgba(24,24,24,.95))}.option i.icon{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:rgba(16,185,129,.10);color:var(--accent)}.option svg{width:21px;height:21px}.num{display:inline-grid;place-items:center;width:28px;height:28px;margin-right:8px;background:rgba(16,185,129,.14);color:#A7F3D0;border:1px solid rgba(16,185,129,.28);border-radius:9px;font-weight:800}.chat-input{position:relative;z-index:1;margin:auto 34px 0;display:grid;grid-template-columns:46px 1fr 50px;gap:10px;padding:10px;background:rgba(38,38,38,.72);border:1px solid var(--line);border-radius:22px;box-shadow:0 16px 40px rgba(0,0,0,.25)}.chat-input input{height:50px;width:100%;border:1px solid transparent;background:#F4F4F5;color:#18181B;border-radius:16px;padding:0 16px;font-size:15px;outline:none;letter-spacing:-.01em}.chat-input input:focus{border-color:rgba(16,185,129,.72);box-shadow:0 0 0 4px rgba(16,185,129,.14)}.chat-input button{border:0;border-radius:15px;color:var(--muted);background:transparent;display:grid;place-items:center;cursor:pointer}.chat-input .send{background:linear-gradient(135deg,var(--accent),#059669);color:white;box-shadow:0 12px 30px rgba(16,185,129,.24)}.chat-input .send:hover{filter:brightness(1.06)}.chat-footer{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted-2);font-size:12px;padding:18px 20px 24px}.chat-footer svg{width:14px;height:14px;color:var(--accent)}
.login-page{display:grid;place-items:center;padding:24px}.login-shell{width:min(1050px,100%);display:grid;grid-template-columns:1fr 430px;gap:24px}.login-brand,.login-card{border-radius:28px;padding:44px}.login-brand h1{font-size:42px;margin:24px 0 10px}.login-brand p{font-size:19px;color:var(--muted);max-width:560px}.login-preview{display:grid;gap:14px;margin-top:50px}.login-preview div{display:flex;gap:14px;align-items:center;border:1px solid var(--line);border-radius:16px;padding:16px;background:rgba(255,255,255,.04)}.login-preview svg{color:var(--accent)}.login-top{text-align:center}.login-top svg{width:54px;height:54px;color:var(--accent)}.login-top h2{font-size:29px;margin:14px 0 6px}.login-top p{color:var(--muted)}label{display:block;margin:18px 0 8px;color:#dfe7ed}.field{height:56px;border:1px solid var(--line);border-radius:16px;background:#101a23;display:flex;align-items:center;gap:12px;padding:0 15px}.field svg{color:var(--accent)}.field input{width:100%;height:100%;background:transparent;border:0;outline:0;color:white;font-size:16px}.login-btn{margin-top:24px;width:100%;height:58px;border:0;border-radius:16px;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:white;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center;gap:10px}.demo{display:block;text-align:center;margin-top:18px;color:var(--muted)}
@media(max-width:980px){.public-shell{grid-template-columns:1fr;padding:0}.brand-panel{display:none}.chat-card{min-height:100vh;border-radius:0;border:0}.chat-card:before{background:radial-gradient(circle at 50% -10%,rgba(16,185,129,.30),transparent 34%),linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px);background-size:auto,36px 36px,36px 36px}.chat-header{min-height:138px;justify-content:center;text-align:center;align-items:center}.agent-wrap{flex-direction:column;gap:10px}.dots{position:absolute;right:18px;top:24px}.chat-body{padding:24px 18px 8px;gap:22px}.bubble{font-size:15px;max-width:295px}.quick-replies,.options-grid{grid-template-columns:1fr;padding:8px 18px 16px}.option{min-height:58px;grid-template-columns:42px 1fr 18px;border-radius:16px;padding:10px 12px;font-size:14px}.option i.icon{width:42px;height:42px;border-radius:14px}.chat-input{margin:auto 14px 0;grid-template-columns:42px 1fr 46px;border-radius:20px}.chat-input input{height:46px}.chat-footer{padding-bottom:18px}.login-shell{grid-template-columns:1fr}.login-brand{display:none}.login-card{border-radius:24px;padding:28px}}
@media(max-width:520px){body{background:#0A0A0B}.chat-header h2{font-size:20px}.mini-avatar{width:38px;height:38px}.msg-row{gap:10px}.bubble{padding:14px 16px}.num{width:26px;height:26px}.option{gap:10px}}

/* Correção: rolagem interna do chat sem aumentar a página */
.public-page{overflow:hidden;}
.premium-shell{height:100vh;min-height:0;}
.premium-chat-card{height:calc(100vh - 56px);min-height:0;max-height:920px;}
.premium-chat-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-behavior:smooth;
  padding-right:26px;
}
.premium-chat-body::-webkit-scrollbar{width:8px;}
.premium-chat-body::-webkit-scrollbar-track{background:rgba(255,255,255,.035);border-radius:999px;}
.premium-chat-body::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(16,185,129,.75),rgba(59,130,246,.65));border-radius:999px;}
.premium-chat-body::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(16,185,129,.95),rgba(59,130,246,.85));}
.quick-replies{flex:0 0 auto;}
.premium-input,.chat-footer,.premium-chat-header{flex:0 0 auto;}

@media(max-width:980px){
  .public-page{overflow:hidden;}
  .premium-shell{height:100vh;}
  .premium-chat-card{height:100vh;max-height:none;}
  .premium-chat-body{padding-right:12px;}
}

/* V4 — Desktop Compacta e Premium SaaS B2B */
@media (min-width:981px){
  :root{
    --bg:#0B0B0D;
    --bg-soft:#121212;
    --surface:#171717;
    --surface-2:#1E1E1E;
    --accent:#10B981;
    --accent-2:#3B82F6;
  }

  body.public-page{
    overflow:hidden;
    background:
      radial-gradient(circle at 12% 0%,rgba(16,185,129,.10),transparent 30%),
      radial-gradient(circle at 92% 6%,rgba(59,130,246,.12),transparent 28%),
      linear-gradient(145deg,#070708 0%,#0B0B0D 52%,#121212 100%);
  }

  .public-shell.premium-shell{
    width:100%;
    max-width:none;
    height:100vh;
    min-height:0;
    grid-template-columns:80px minmax(0,1fr);
    gap:14px;
    padding:14px;
  }

  .brand-panel.compact-aside{
    width:80px;
    min-width:80px;
    padding:14px 10px;
    border-radius:22px;
    align-items:center;
    justify-content:flex-start;
    gap:22px;
    background:linear-gradient(180deg,rgba(24,24,24,.86),rgba(14,14,16,.96));
    box-shadow:0 18px 55px rgba(0,0,0,.38);
  }

  .brand-panel.compact-aside:before{
    background:linear-gradient(180deg,rgba(255,255,255,.045),transparent 45%);
  }

  .compact-aside .brand-mark{
    width:48px;
    height:48px;
    border-radius:16px;
    margin:0;
  }

  .compact-aside .brand-mark svg{width:23px;height:23px;}
  .compact-aside .brand-copy,
  .compact-aside .trust-list{display:none;}

  .icon-rail{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:12px;
    align-items:center;
    width:100%;
  }

  .icon-rail button,
  .compact-aside .secure-note{
    width:48px;
    height:48px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.075);
    background:rgba(255,255,255,.035);
    color:#A1A1AA;
    display:grid;
    place-items:center;
    cursor:pointer;
    transition:.18s ease;
  }

  .icon-rail button:hover,
  .compact-aside .secure-note:hover{
    color:#F8FAFC;
    border-color:rgba(16,185,129,.38);
    background:rgba(16,185,129,.10);
    transform:translateY(-1px);
  }

  .icon-rail svg,
  .compact-aside .secure-note svg{width:21px;height:21px;}

  .compact-aside .secure-note{
    margin-top:auto;
    font-size:0;
    gap:0;
  }

  .chat-card.premium-chat-card{
    width:100%;
    height:calc(100vh - 28px);
    max-height:none;
    min-height:0;
    border-radius:24px;
    background:linear-gradient(180deg,rgba(22,22,23,.78),rgba(12,12,13,.96));
  }

  .chat-header.premium-chat-header{
    min-height:78px;
    padding:0 28px;
    background:rgba(14,14,15,.68);
  }

  .bot-avatar{width:48px;height:48px;box-shadow:0 0 0 5px rgba(16,185,129,.075)}
  .chat-header h2{font-size:20px;letter-spacing:-.035em;}
  .chat-header p{font-size:13px;}

  .chat-body.premium-chat-body{
    padding:30px 36px 16px;
    gap:22px;
  }

  .msg-row{gap:13px;}
  .mini-avatar{width:38px;height:38px;box-shadow:0 0 0 4px rgba(16,185,129,.07)}

  .bubble{
    max-width:min(680px,68%);
    padding:20px 22px;
    font-size:16px;
    line-height:1.58;
    border-radius:18px 18px 18px 6px;
    box-shadow:0 18px 42px rgba(0,0,0,.22);
  }

  .msg-row.user .bubble{
    border-radius:18px 18px 6px 18px;
    background:linear-gradient(135deg,#10B981,#047857);
  }

  .quick-replies,
  .options-grid{
    flex:0 0 auto;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
    padding:10px 36px 14px;
    border-top:1px solid rgba(255,255,255,.055);
    background:linear-gradient(180deg,transparent,rgba(10,10,11,.34));
  }

  .option{
    width:auto;
    min-height:42px;
    min-width:0;
    grid-template-columns:24px auto 14px;
    gap:9px;
    padding:8px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:650;
    background:rgba(255,255,255,.045);
    box-shadow:none;
    white-space:nowrap;
  }

  .option:hover{
    transform:translateY(-1px);
    box-shadow:0 12px 28px rgba(0,0,0,.22);
  }

  .option i.icon{
    width:24px;
    height:24px;
    border-radius:999px;
    background:rgba(16,185,129,.12);
  }

  .option svg{width:15px;height:15px;}
  .option > div{display:flex;align-items:center;gap:7px;}

  .num{
    width:22px;
    height:22px;
    margin-right:0;
    border-radius:999px;
    font-size:12px;
  }

  .chat-input.premium-input{
    margin:0 36px 24px;
    grid-template-columns:42px 1fr 48px;
    padding:8px;
    border-radius:20px;
    background:rgba(30,30,30,.84);
  }

  .chat-input input{
    height:48px;
    border-radius:15px;
    background:#EDEEF0;
    color:#111827;
  }

  .chat-footer{display:none!important;}
}

/* V6 — opções dentro do balão do atendimento */
.quick-replies{display:none!important;}
.bubble strong{font-weight:750;color:#F8FAFC;}
.bubble-options{
  display:grid;
  gap:10px;
  margin-top:16px;
}
.bubble-option{
  width:100%;
  min-height:48px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  color:#F8FAFC;
  border-radius:16px;
  padding:10px 12px;
  display:grid;
  grid-template-columns:28px 22px minmax(0,1fr);
  gap:10px;
  align-items:center;
  text-align:left;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,opacity .18s ease;
}
.bubble-option:hover{
  transform:translateY(-1px);
  border-color:rgba(16,185,129,.42);
  background:linear-gradient(180deg,rgba(16,185,129,.14),rgba(255,255,255,.04));
}
.bubble-option:disabled{cursor:default;opacity:.55;transform:none;}
.bubble-option.selected{opacity:1;border-color:rgba(16,185,129,.65);background:rgba(16,185,129,.14);}
.bubble-option svg{width:18px;height:18px;color:#10B981;}
.option-number{
  width:26px;
  height:26px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(16,185,129,.14);
  border:1px solid rgba(16,185,129,.28);
  color:#A7F3D0;
  font-size:12px;
  font-weight:800;
}
.typing-bubble{
  width:76px;
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:center;
  padding:16px 18px!important;
}
.typing-bubble span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#A1A1AA;
  animation:typingPulse 1s infinite ease-in-out;
}
.typing-bubble span:nth-child(2){animation-delay:.15s;}
.typing-bubble span:nth-child(3){animation-delay:.3s;}
@keyframes typingPulse{0%,80%,100%{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
@media (min-width:981px){
  .msg-row.bot .bubble:has(.bubble-options){max-width:min(560px,62%);}
  .bubble-options{grid-template-columns:1fr;}
  .bubble-option{min-height:46px;border-radius:15px;}
}
@media(max-width:520px){
  .bubble-options{margin-top:14px;gap:9px;}
  .bubble-option{min-height:46px;font-size:13px;border-radius:14px;grid-template-columns:26px 20px 1fr;}
}

/* V7 — correção responsiva mobile: input sempre visível no celular */
@media (max-width:980px){
  html,
  body.public-page{
    width:100%;
    height:100%;
    min-height:100%;
    overflow:hidden;
  }

  .public-shell.premium-shell,
  .public-shell{
    width:100%;
    height:100dvh;
    min-height:100dvh;
    max-height:100dvh;
    padding:0;
    display:block;
  }

  .chat-card.premium-chat-card,
  .chat-card{
    width:100%;
    height:100dvh;
    min-height:0;
    max-height:100dvh;
    border-radius:0;
    border:0;
    display:flex;
    flex-direction:column;
    overflow:hidden;
  }

  .chat-header.premium-chat-header,
  .chat-header{
    flex:0 0 auto;
    min-height:82px;
    padding:12px 16px;
    justify-content:flex-start;
    text-align:left;
  }

  .agent-wrap{
    flex-direction:row;
    gap:12px;
  }

  .bot-avatar{
    width:46px;
    height:46px;
  }

  .chat-header h2{
    font-size:18px;
    margin-bottom:3px;
  }

  .chat-header p{
    font-size:12px;
  }

  .dots{
    position:absolute;
    right:12px;
    top:20px;
    width:40px;
    height:40px;
  }

  .chat-body.premium-chat-body,
  .premium-chat-body{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    padding:18px 14px 14px;
    gap:16px;
    -webkit-overflow-scrolling:touch;
  }

  .chat-input.premium-input,
  .chat-input{
    flex:0 0 auto;
    width:auto;
    margin:0 10px calc(10px + env(safe-area-inset-bottom));
    padding:7px;
    grid-template-columns:38px minmax(0,1fr) 44px;
    gap:7px;
    border-radius:18px;
  }

  .chat-input input{
    min-width:0;
    height:44px;
    border-radius:14px;
    font-size:15px;
    padding:0 13px;
  }

  .chat-input button{
    width:38px;
    height:44px;
  }

  .chat-input .send{
    width:44px;
  }

  .bubble{
    max-width:calc(100vw - 74px);
  }

  .msg-row.user .bubble{
    max-width:calc(100vw - 42px);
  }

  .bubble-option{
    width:100%;
    min-width:0;
  }
}

@media (max-width:420px){
  .chat-header.premium-chat-header,
  .chat-header{
    min-height:76px;
    padding:10px 12px;
  }

  .bot-avatar{
    width:42px;
    height:42px;
  }

  .chat-header h2{
    font-size:17px;
  }

  .chat-body.premium-chat-body,
  .premium-chat-body{
    padding:14px 10px 12px;
  }

  .bubble{
    max-width:calc(100vw - 62px);
    font-size:14px;
    line-height:1.48;
    padding:13px 14px;
  }

  .msg-row.user .bubble{
    max-width:calc(100vw - 28px);
  }

  .bubble-options{
    gap:8px;
  }

  .bubble-option{
    min-height:44px;
    padding:9px 10px;
    font-size:13px;
    grid-template-columns:24px 19px minmax(0,1fr);
  }

  .option-number{
    width:24px;
    height:24px;
    font-size:11px;
  }
}

/* ADMIN PREMIUM */
.admin-page{margin:0;min-height:100vh;background:#070B12;color:#F8FAFC;font-family:Inter,system-ui,sans-serif;display:grid;grid-template-columns:260px 1fr}.admin-sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#0B1220,#070B12);border-right:1px solid rgba(148,163,184,.14);padding:22px 16px;display:flex;flex-direction:column;gap:22px}.admin-logo{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:20px}.admin-logo span{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#2563EB,#10B981);box-shadow:0 18px 45px rgba(37,99,235,.28)}.admin-sidebar nav{display:grid;gap:7px}.admin-sidebar nav a,.admin-public{display:flex;align-items:center;gap:12px;color:#94A3B8;text-decoration:none;padding:13px 14px;border-radius:14px;font-weight:600;font-size:14px}.admin-sidebar nav a:hover,.admin-sidebar nav a.active,.admin-public:hover{color:#fff;background:rgba(59,130,246,.12);box-shadow:inset 0 0 0 1px rgba(59,130,246,.18)}.admin-public{margin-top:auto;background:rgba(16,185,129,.08)}.admin-main{padding:26px;min-width:0}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.admin-top h1{margin:0;font-size:32px;letter-spacing:-.04em}.admin-top p{margin:7px 0 0;color:#94A3B8}.admin-user{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(148,163,184,.14);border-radius:999px;background:rgba(15,23,42,.7)}.admin-user a{color:#60A5FA;text-decoration:none}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.kpi-card,.admin-panel{background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(8,13,23,.96));border:1px solid rgba(148,163,184,.14);border-radius:24px;box-shadow:0 22px 80px rgba(0,0,0,.32)}.kpi-card{padding:22px;display:grid;gap:8px}.kpi-card i{color:#10B981}.kpi-card strong{font-size:34px;letter-spacing:-.05em}.kpi-card span,.muted{color:#94A3B8}.admin-grid{display:grid;grid-template-columns:1.5fr .85fr;gap:18px}.admin-panel{padding:22px}.admin-panel.wide{min-width:0}.admin-panel.narrow{max-width:760px}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-title h2{margin:0;font-size:18px}.panel-title a,.soft-btn{color:#93C5FD;background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.22);border-radius:12px;padding:9px 12px;text-decoration:none;font-weight:700}.soft-btn{display:inline-flex;gap:8px;align-items:center;cursor:pointer}.flow-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.node,.flow-card{padding:18px;border-radius:18px;background:rgba(2,6,23,.7);border:1px solid rgba(148,163,184,.14);display:grid;gap:8px}.node i,.flow-card i{color:#3B82F6}.node.start i{color:#10B981}.node span,.flow-card span{color:#94A3B8;font-size:13px}.conversation-list{display:grid;gap:10px}.conversation-list div{padding:14px;border-radius:16px;background:rgba(2,6,23,.55);display:grid;gap:4px}.conversation-list span{color:#94A3B8}.conversation-list em{font-style:normal;color:#10B981;font-size:12px}.table-list{display:grid;gap:10px}.table-list>div{display:grid;grid-template-columns:1.2fr 1.2fr .8fr .5fr;gap:12px;align-items:center;padding:14px;border-radius:14px;background:rgba(2,6,23,.55)}.table-head{color:#94A3B8;font-weight:700}.tag{display:inline-flex;width:max-content;border-radius:999px;padding:6px 10px;font-size:12px}.tag.green{background:rgba(16,185,129,.12);color:#34D399}.tag.blue{background:rgba(59,130,246,.12);color:#93C5FD}.tag.gray{background:rgba(148,163,184,.12);color:#CBD5E1}.agent-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.agent-card{padding:20px;border-radius:20px;background:rgba(2,6,23,.55);border:1px solid rgba(148,163,184,.13)}.agent-card i{color:#60A5FA}.agent-card h3{margin:12px 0 4px}.agent-card p,.agent-card small{color:#94A3B8}.response-editor,.settings-form,.flow-form{display:grid;gap:16px}.response-card,.flow-edit-card{padding:18px;border:1px solid rgba(148,163,184,.14);border-radius:20px;background:rgba(2,6,23,.55)}.response-card header,.flow-edit-card header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.response-card header div,.flow-edit-card header div{display:flex;gap:10px;align-items:center}.response-card label,.settings-form label,.flow-edit-card p{font-weight:700;color:#CBD5E1;font-size:13px;margin-top:8px}.response-card input,.response-card textarea,.settings-form input,.settings-form textarea,.flow-edit-card input{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.18);background:#0B1220;color:#F8FAFC;border-radius:14px;padding:13px 14px;font-family:inherit;outline:none}.response-card textarea,.settings-form textarea{resize:vertical}.switch-line{display:flex!important;align-items:center;gap:8px;margin:0!important}.success-alert,.form-alert{padding:12px 14px;border-radius:14px;margin-bottom:16px}.success-alert{background:rgba(16,185,129,.12);color:#34D399;border:1px solid rgba(16,185,129,.22)}.form-alert{background:rgba(239,68,68,.12);color:#FCA5A5;border:1px solid rgba(239,68,68,.22)}.primary-admin-btn{border:0;border-radius:15px;background:linear-gradient(135deg,#2563EB,#10B981);color:#fff;font-weight:800;padding:14px 18px;display:inline-flex;align-items:center;gap:10px;width:max-content;cursor:pointer;box-shadow:0 18px 50px rgba(37,99,235,.25)}.visual-flow{display:flex;align-items:center;gap:14px;justify-content:center;margin:8px 0 20px}.flow-arrow{color:#64748B}.flow-edit-card header label{display:flex;align-items:center;gap:8px;color:#94A3B8}.flow-edit-card header input{width:80px;padding:8px}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.check-grid label{display:flex;align-items:center;gap:8px;background:rgba(15,23,42,.82);border:1px solid rgba(148,163,184,.13);border-radius:13px;padding:10px;color:#CBD5E1}.mini-chat-preview{display:grid;gap:9px}.mini-chat-preview p{background:rgba(2,6,23,.7);padding:13px;border-radius:16px;color:#CBD5E1}.mini-chat-preview span{padding:10px 12px;border-radius:999px;background:rgba(59,130,246,.1);border:1px solid rgba(59,130,246,.15);color:#DBEAFE}.login-card form{display:grid;gap:10px}.login-card form label{color:#CBD5E1;font-size:13px;font-weight:700}.login-card .field input{width:100%;background:transparent;border:0;outline:none;color:#fff;font-family:inherit}.login-btn{cursor:pointer}.secure-note{text-decoration:none;color:inherit}@media(max-width:900px){.admin-page{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto;flex-direction:row;overflow:auto}.admin-logo strong,.admin-sidebar nav a span,.admin-public span{display:none}.admin-sidebar nav{display:flex}.admin-main{padding:16px}.admin-top{align-items:flex-start;gap:12px;flex-direction:column}.kpi-grid,.admin-grid,.agent-grid,.flow-preview{grid-template-columns:1fr}.table-list>div{grid-template-columns:1fr;gap:6px}.check-grid{grid-template-columns:1fr}}

/* ================================
   V9 ADMIN - Centro de Operações
   ================================ */
.v9-admin{background:radial-gradient(circle at 18% 0%,rgba(16,185,129,.12),transparent 32%),radial-gradient(circle at 86% 10%,rgba(59,130,246,.10),transparent 30%),#060A11;grid-template-columns:286px minmax(0,1fr)}
.v9-admin .admin-sidebar{background:linear-gradient(180deg,rgba(11,18,32,.96),rgba(5,9,15,.98));border-right:1px solid rgba(148,163,184,.12);padding:20px 14px;gap:16px;overflow-y:auto}
.v9-admin .admin-logo{padding:10px;border-radius:18px;background:rgba(255,255,255,.035);border:1px solid rgba(148,163,184,.10);position:relative}.v9-admin .admin-logo small{display:block;color:#10B981;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.v9-admin .admin-logo{flex-wrap:wrap}.v9-admin .admin-logo strong{line-height:1}.nav-label{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#64748B;font-weight:900;margin:14px 12px 5px}.v9-admin .admin-sidebar nav a{position:relative}.v9-admin .admin-sidebar nav a b{margin-left:auto;min-width:23px;height:23px;border-radius:999px;background:rgba(239,68,68,.16);color:#FCA5A5;display:grid;place-items:center;font-size:12px}.v9-admin .admin-sidebar nav a.active{background:linear-gradient(135deg,rgba(16,185,129,.14),rgba(59,130,246,.12));box-shadow:inset 0 0 0 1px rgba(16,185,129,.20)}
.v9-admin .admin-main{padding:24px 28px 36px}.v9-admin .admin-top{gap:20px}.ops-pill{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(16,185,129,.25);background:rgba(16,185,129,.09);color:#A7F3D0;border-radius:999px;padding:8px 11px;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.ops-pill svg{width:15px;height:15px}.ops-pill.danger{border-color:rgba(245,158,11,.25);background:rgba(245,158,11,.10);color:#FCD34D}.top-actions{display:flex;align-items:center;gap:12px}.admin-search{height:46px;min-width:330px;border:1px solid rgba(148,163,184,.13);background:rgba(15,23,42,.72);border-radius:999px;display:flex;align-items:center;gap:10px;padding:0 12px;color:#94A3B8}.admin-search svg{width:18px;height:18px;color:#60A5FA}.admin-search kbd{margin-left:auto;border:1px solid rgba(148,163,184,.18);background:#020617;border-radius:8px;padding:4px 7px;color:#CBD5E1;font:700 11px JetBrains Mono,monospace}.admin-search.inline{min-width:260px;border-radius:14px}
.ops-hero{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:18px;align-items:stretch;margin-bottom:18px}.ops-hero>div:first-child,.hero-meter{border:1px solid rgba(148,163,184,.13);background:linear-gradient(135deg,rgba(15,23,42,.90),rgba(8,13,23,.94));border-radius:28px;padding:26px;box-shadow:0 24px 80px rgba(0,0,0,.32)}.ops-hero h2{font-size:30px;line-height:1.1;margin:18px 0 8px;letter-spacing:-.05em}.ops-hero p{margin:0;color:#94A3B8;max-width:820px}.hero-meter{display:grid;place-items:center;text-align:center}.hero-meter strong{font:900 48px JetBrains Mono,monospace;letter-spacing:-.06em}.hero-meter span{color:#CBD5E1;font-weight:800}.hero-meter small{color:#34D399;font-weight:900;margin-top:6px}
.kpi-grid-v9{grid-template-columns:repeat(6,minmax(0,1fr))}.kpi-card.v9{position:relative;overflow:hidden;min-height:174px}.kpi-card.v9:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 0%,rgba(255,255,255,.07),transparent 36%);pointer-events:none}.kpi-card.v9 i{width:22px;height:22px}.kpi-card.v9 span{font-weight:800;color:#CBD5E1}.kpi-card.v9 strong{font-family:JetBrains Mono,monospace;font-weight:900;font-size:30px}.trend{font-style:normal;font-weight:900;font-size:12px;color:#34D399}.trend.danger{color:#F87171}.kpi-card.alert{border-color:rgba(245,158,11,.24)}.danger-card{border-color:rgba(239,68,68,.22)}.spark{height:42px;display:flex;align-items:end;gap:5px;margin-top:4px}.spark b{display:block;width:100%;border-radius:999px;background:linear-gradient(180deg,#34D399,#2563EB);opacity:.72}.danger-card .spark b{background:linear-gradient(180deg,#F87171,#F59E0B)}
.ops-grid{grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr)}.ops-grid.bottom{margin-top:18px}.smart-table{display:grid;gap:10px}.smart-table>div{display:grid;grid-template-columns:1.4fr 1fr .7fr .7fr .9fr .7fr .55fr;align-items:center;gap:12px;padding:14px 16px;border:1px solid rgba(148,163,184,.11);background:rgba(2,6,23,.48);border-radius:16px}.smart-table.compact>div{grid-template-columns:1.3fr 1fr .7fr .65fr .55fr}.smart-table .smart-head{background:transparent;border:0;color:#64748B;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.08em;padding:0 16px}.smart-table strong{display:grid;gap:3px}.smart-table small{color:#64748B;font-weight:700}.smart-table b{font-family:JetBrains Mono,monospace}.smart-table a{color:#93C5FD;font-weight:900;text-decoration:none;cursor:pointer}.smart-table .critical{border-color:rgba(239,68,68,.28);background:linear-gradient(90deg,rgba(239,68,68,.12),rgba(2,6,23,.52))}.tag.red{background:rgba(239,68,68,.13);color:#FCA5A5}.conversation-toolbar,.editor-toolbar,.mini-vars{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}.conversation-toolbar span,.editor-toolbar span,.mini-vars span{border:1px solid rgba(148,163,184,.12);background:rgba(2,6,23,.55);border-radius:999px;padding:9px 12px;color:#CBD5E1;font-weight:800;font-size:13px}.conversation-toolbar .active{background:rgba(16,185,129,.12);border-color:rgba(16,185,129,.25);color:#A7F3D0}
.funnel{display:grid;gap:12px}.funnel div{display:flex;justify-content:space-between;align-items:center;border-radius:16px;padding:13px 14px;background:linear-gradient(90deg,rgba(16,185,129,.16),rgba(59,130,246,.06));border:1px solid rgba(148,163,184,.12)}.funnel span,.reason-list span,.health-list span{color:#CBD5E1}.funnel strong,.reason-list b,.health-list strong{font-family:JetBrains Mono,monospace}.reason-list,.health-list,.alert-list{display:grid;gap:11px}.reason-list div,.health-list div,.alert-list div{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid rgba(148,163,184,.11);background:rgba(2,6,23,.48);border-radius:16px;padding:14px}.alert-list div{justify-content:flex-start}.alert-list svg{color:#F59E0B}.v9-flow .node{min-height:138px}.bar-chart{height:280px;display:flex;align-items:end;gap:12px;padding:20px;border-radius:20px;background:rgba(2,6,23,.42);border:1px solid rgba(148,163,184,.10)}.bar-chart b{flex:1;border-radius:14px 14px 4px 4px;background:linear-gradient(180deg,#10B981,#2563EB);opacity:.82}.template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.template-card{min-height:210px;border:1px solid rgba(148,163,184,.12);background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(2,6,23,.62));border-radius:22px;padding:22px;display:grid;align-content:start;gap:12px}.template-card i{color:#34D399;width:30px;height:30px}.template-card h3{margin:0;font-size:20px}.template-card p{margin:0;color:#94A3B8;line-height:1.5}.template-card a{margin-top:8px;color:#93C5FD;font-weight:900;cursor:pointer}.role-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:18px}.role-strip div{padding:16px;border-radius:18px;background:rgba(2,6,23,.50);border:1px solid rgba(148,163,184,.11);display:grid;gap:5px}.role-strip span{color:#94A3B8;font-size:13px}.agent-avatar{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:rgba(59,130,246,.12);color:#93C5FD}.agent-stats{margin-top:14px;border-top:1px solid rgba(148,163,184,.10);padding-top:12px;display:grid;gap:2px}.agent-stats b{font-family:JetBrains Mono,monospace}.agent-stats span{color:#64748B;font-size:12px}.v9-response{grid-template-columns:repeat(2,minmax(0,1fr))}.v9-response .primary-admin-btn{grid-column:1/-1}.response-preview{margin-top:12px;border:1px dashed rgba(148,163,184,.18);background:rgba(15,23,42,.55);border-radius:16px;padding:13px}.response-preview p{margin:7px 0 0;color:#94A3B8;line-height:1.5}
@media(max-width:1200px){.kpi-grid-v9{grid-template-columns:repeat(3,1fr)}.template-grid{grid-template-columns:repeat(2,1fr)}.ops-grid{grid-template-columns:1fr}.ops-hero{grid-template-columns:1fr}.v9-response{grid-template-columns:1fr}.role-strip{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.v9-admin{grid-template-columns:1fr}.top-actions{flex-direction:column;align-items:stretch;width:100%}.admin-search{min-width:0;width:100%}.kpi-grid-v9,.template-grid,.role-strip{grid-template-columns:1fr}.smart-table>div,.smart-table.compact>div{grid-template-columns:1fr}.smart-table .smart-head{display:none}.ops-hero h2{font-size:24px}}

/* =========================================================
   V10 ADMIN UI — inspiração Biblioteca: X + UI refinado
   ========================================================= */
.v10-admin{
  --v10-bg:#07111d;
  --v10-bg-2:#0b1626;
  --v10-surface:#111d2e;
  --v10-surface-2:#152338;
  --v10-line:rgba(148,163,184,.15);
  --v10-line-2:rgba(148,163,184,.24);
  --v10-text:#F5F7FB;
  --v10-muted:#9AA8BA;
  --v10-purple:#7C5CFF;
  --v10-purple-2:#A78BFA;
  --v10-green:#36D889;
  --v10-amber:#D8B75F;
  --v10-redsoft:#E07A7A;
  --v10-shadow:0 22px 60px rgba(0,0,0,.24);
  background:
    linear-gradient(rgba(124,92,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(124,92,255,.035) 1px,transparent 1px),
    radial-gradient(circle at 82% 0%,rgba(124,92,255,.12),transparent 32%),
    linear-gradient(180deg,#091421 0%,#07111d 100%);
  background-size:64px 64px,64px 64px,auto,auto;
  grid-template-columns:248px minmax(0,1fr);
  color:var(--v10-text);
  letter-spacing:-.015em;
}
.v10-admin .admin-sidebar{
  background:#07101b;
  border-right:1px solid rgba(124,92,255,.28);
  box-shadow:inset -1px 0 0 rgba(124,92,255,.20);
  padding:24px 16px;
  gap:18px;
}
.v10-admin .admin-logo{
  padding:12px 12px 18px;
  border:0;
  border-bottom:1px solid rgba(148,163,184,.14);
  border-radius:0;
  background:transparent;
  gap:12px;
}
.v10-admin .admin-logo span{
  width:44px;height:44px;border-radius:15px;
  background:linear-gradient(135deg,#7C5CFF,#12B7A8);
  box-shadow:none;
}
.v10-admin .admin-logo strong{font-size:19px;font-weight:850;color:#fff}
.v10-admin .admin-logo small{color:#36D889;font-size:10px;letter-spacing:.13em;margin-left:auto}
.v10-admin .admin-sidebar nav{gap:8px}
.v10-admin .nav-label{font-size:11px;color:#7B8CA4;font-weight:700;letter-spacing:.14em;margin:18px 0 5px}
.v10-admin .admin-sidebar nav a,
.v10-admin .admin-public{
  border-radius:9px 12px 12px 9px;
  padding:12px 12px;
  color:#B4C0D1;
  font-weight:600;
  background:transparent;
  box-shadow:none;
  position:relative;
}
.v10-admin .admin-sidebar nav a svg,
.v10-admin .admin-public svg{width:20px;height:20px;color:#A78BFA;stroke-width:2.1}
.v10-admin .admin-sidebar nav a:hover{background:rgba(124,92,255,.10);color:#fff}
.v10-admin .admin-sidebar nav a.active{
  background:linear-gradient(90deg,rgba(124,92,255,.36),rgba(124,92,255,.18));
  color:#fff;
  box-shadow:none;
}
.v10-admin .admin-sidebar nav a.active:before{
  content:"";position:absolute;left:-16px;top:0;bottom:0;width:4px;border-radius:0 999px 999px 0;background:#7C5CFF;
}
.v10-admin .admin-sidebar nav a b{background:rgba(124,92,255,.24);color:#E9D5FF}
.v10-admin .admin-public{background:rgba(18,183,168,.08);margin-top:auto}
.v10-admin .admin-main{padding:0 32px 36px;min-height:100vh}
.v10-admin .admin-top{
  min-height:88px;
  margin:0 -32px 18px;
  padding:0 24px 0 32px;
  border-bottom:1px solid var(--v10-line);
  background:rgba(9,20,33,.62);
  backdrop-filter:blur(14px);
}
.v10-admin .admin-top h1{font-size:30px;font-weight:850;letter-spacing:-.04em}
.v10-admin .admin-top p{color:var(--v10-muted);font-size:14px;margin-top:6px}
.v10-admin .ops-pill{display:none}
.v10-admin .top-actions{gap:12px}
.v10-admin .admin-search{
  height:54px;min-width:520px;border-radius:10px;
  background:#0C1728;border:1px solid rgba(148,163,184,.18);
  color:#AEBBCC;padding:0 14px;
}
.v10-admin .admin-search svg{color:#9AA8FF}
.v10-admin .admin-search kbd{border-radius:7px;background:#0A1220;color:#E5E7EB;border-color:rgba(148,163,184,.30)}
.top-icon{width:44px;height:44px;border-radius:50%;border:1px solid var(--v10-line);background:#0C1728;color:#B9C5D8;display:grid;place-items:center;cursor:pointer}.top-icon svg{width:20px;height:20px}.top-icon:hover{border-color:rgba(124,92,255,.5);color:#fff;background:rgba(124,92,255,.12)}
.v10-admin .admin-user{height:48px;border-radius:999px;background:#101c2d;border-color:rgba(148,163,184,.18);padding:0 12px;color:#fff}
.v10-admin .admin-user svg{color:#B9C5D8}.v10-admin .admin-user a{color:#9AA8FF}
.v10-admin .kpi-card,.v10-admin .admin-panel{
  background:rgba(17,29,46,.78);
  border:1px solid rgba(148,163,184,.16);
  border-radius:12px;
  box-shadow:none;
}
.v10-admin .admin-panel{padding:24px}
.v10-admin .panel-title{align-items:flex-start}.v10-admin .panel-title h2{font-size:18px;font-weight:850}.v10-admin .muted{color:var(--v10-muted)}
.v10-admin .soft-btn,.v10-admin .panel-title a{
  border-radius:9px;background:rgba(124,92,255,.16);border-color:rgba(124,92,255,.28);color:#C4B5FD;box-shadow:none;
}
.v10-admin .primary-admin-btn{border-radius:10px;background:#7C5CFF;color:#070A12;box-shadow:none;font-weight:900}.v10-admin .primary-admin-btn svg{stroke-width:2.6}
.v10-admin .ops-hero{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.v10-admin .ops-hero>div:first-child,.v10-admin .hero-meter{background:rgba(17,29,46,.78);border-radius:18px;border:1px solid rgba(148,163,184,.16);box-shadow:none}.v10-admin .ops-hero h2{font-size:28px;font-weight:850;margin-top:0}.v10-admin .ops-hero h2:before{content:"Acompanhamento recomendado";display:block;width:max-content;margin-bottom:18px;padding:7px 11px;border-radius:999px;background:rgba(216,183,95,.13);border:1px solid rgba(216,183,95,.30);color:#F0D78A;font-size:12px;letter-spacing:.04em;text-transform:none}.v10-admin .ops-hero .ops-pill{display:none}.v10-admin .hero-meter strong{font-size:44px}.v10-admin .hero-meter small,.v10-admin .trend{color:var(--v10-green)}
.v10-admin .kpi-grid{gap:16px}.v10-admin .kpi-card{padding:22px;min-height:166px}.v10-admin .kpi-card.v9:before{display:none}.v10-admin .kpi-card i{color:#A78BFA}.v10-admin .kpi-card span{font-size:14px;color:#C4CDD9;font-weight:700}.v10-admin .kpi-card strong{font-size:30px;color:#fff}.v10-admin .kpi-card.alert{border-color:rgba(216,183,95,.38)}.v10-admin .danger-card{border-color:rgba(216,183,95,.26)}.v10-admin .trend.danger{color:#F0D78A}.v10-admin .spark b{background:linear-gradient(180deg,#36D889,#7C5CFF);opacity:.9}.v10-admin .danger-card .spark b{background:linear-gradient(180deg,#D8B75F,#7C5CFF)}
.v10-admin .smart-table>div{background:rgba(13,24,39,.72);border-color:rgba(148,163,184,.14);border-radius:12px}.v10-admin .smart-table .smart-head{background:transparent;border:0;color:#7B8CA4}.v10-admin .smart-table .critical{background:linear-gradient(90deg,rgba(216,183,95,.15),rgba(13,24,39,.78));border-color:rgba(216,183,95,.34)}.v10-admin .tag.red{background:rgba(216,183,95,.18);color:#F0D78A}.v10-admin .tag.green{background:rgba(54,216,137,.13);color:#7BF0B7}.v10-admin .tag.blue{background:rgba(124,92,255,.17);color:#C4B5FD}.v10-admin .tag.gray{background:rgba(148,163,184,.12);color:#CBD5E1}
.v10-admin .funnel div,.v10-admin .reason-list div,.v10-admin .health-list div,.v10-admin .alert-list div{background:rgba(13,24,39,.72);border-color:rgba(148,163,184,.14);border-radius:12px}.v10-admin .funnel div{background:linear-gradient(90deg,rgba(18,183,168,.13),rgba(124,92,255,.09))}.v10-admin .alert-list svg{color:#D8B75F}.v10-admin .bar-chart{background:rgba(13,24,39,.72);border-radius:14px}.v10-admin .bar-chart b{background:linear-gradient(180deg,#7C5CFF,#12B7A8);opacity:.95}
.v10-admin .template-card,.v10-admin .agent-card,.v10-admin .response-card,.v10-admin .flow-edit-card,.v10-admin .node,.v10-admin .flow-card{background:rgba(17,29,46,.86);border-color:rgba(148,163,184,.16);border-radius:14px;box-shadow:none}.v10-admin .template-card i,.v10-admin .agent-card i,.v10-admin .response-card i,.v10-admin .flow-edit-card i,.v10-admin .node i{color:#A78BFA}.v10-admin input,.v10-admin textarea,.v10-admin .response-card input,.v10-admin .response-card textarea,.v10-admin .settings-form input,.v10-admin .settings-form textarea,.v10-admin .flow-edit-card input{background:#0C1728;border-color:rgba(148,163,184,.18);color:#F5F7FB;border-radius:10px}.v10-admin .success-alert{background:rgba(54,216,137,.12);color:#7BF0B7;border-color:rgba(54,216,137,.28)}
/* Fluxos V10 */
.flow-builder-shell{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px}.flow-main-panel{min-width:0}.flow-title p{margin:6px 0 0}.flow-map-v10{display:flex;align-items:center;gap:14px;padding:18px;border-radius:14px;background:rgba(13,24,39,.72);border:1px solid rgba(148,163,184,.14);margin-bottom:18px;overflow:auto}.flow-node-v10{min-width:185px;display:grid;gap:6px;padding:16px;border-radius:13px;background:rgba(17,29,46,.86);border:1px solid rgba(148,163,184,.16)}.flow-node-v10 span{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:rgba(124,92,255,.18);color:#C4B5FD}.flow-node-v10 small{color:#9AA8BA}.flow-node-v10.is-start span{background:rgba(54,216,137,.14);color:#7BF0B7}.flow-node-v10.is-attention span{background:rgba(216,183,95,.15);color:#F0D78A}.flow-line-v10{width:48px;height:1px;background:linear-gradient(90deg,rgba(124,92,255,.4),rgba(18,183,168,.4));flex:none}.flow-form-v10{gap:14px}.branch-card-v10{padding:0;overflow:hidden}.branch-card-v10 header{padding:18px 18px 0}.branch-heading{display:flex!important;align-items:center;gap:12px}.branch-heading small{display:block;color:#9AA8BA;font-size:12px;margin-top:2px}.branch-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:rgba(124,92,255,.18);color:#C4B5FD}.branch-content-v10{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;padding:0 18px 18px}.destination-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.destination-grid label{background:#0C1728;border-color:rgba(148,163,184,.16);border-radius:10px;color:#DCE5F0;font-weight:650;margin:0}.destination-grid input{width:auto!important;accent-color:#7C5CFF}.destination-grid svg{color:#A78BFA;width:18px;height:18px}.branch-side-note{border:1px solid rgba(216,183,95,.26);background:rgba(216,183,95,.09);border-radius:12px;padding:14px;display:grid;align-content:start;gap:8px;color:#F0D78A}.branch-side-note span{color:#D6CDB7;font-size:13px;line-height:1.5}.flow-side-panel{position:sticky;top:106px;align-self:start;max-height:calc(100vh - 126px);overflow:auto}.icon-palette-v10{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.icon-palette-v10 button{min-height:54px;border-radius:12px;border:1px solid rgba(148,163,184,.16);background:#0C1728;color:#DCE5F0;display:flex;align-items:center;gap:10px;padding:10px;cursor:pointer;text-align:left;font-weight:700}.icon-palette-v10 button:hover{border-color:rgba(124,92,255,.45);background:rgba(124,92,255,.12)}.icon-palette-v10 svg{width:20px;height:20px;color:#A78BFA}.side-preview-title{margin-top:22px}.preview-v10 span{display:flex;align-items:center;gap:8px;border-radius:10px;background:#0C1728;border-color:rgba(148,163,184,.16);color:#DCE5F0}.preview-v10 span svg{width:16px;height:16px;color:#A78BFA}
@media(max-width:1200px){.v10-admin .admin-search{min-width:320px}.flow-builder-shell{grid-template-columns:1fr}.flow-side-panel{position:relative;top:auto;max-height:none}.branch-content-v10{grid-template-columns:1fr}}
@media(max-width:900px){.v10-admin{grid-template-columns:1fr}.v10-admin .admin-top{margin:0 -16px 16px;padding:16px;min-height:auto}.v10-admin .admin-sidebar{height:auto}.v10-admin .admin-main{padding:0 16px 28px}.top-icon{display:none}.destination-grid,.icon-palette-v10{grid-template-columns:1fr}}
/* V11 - Respostas inteligentes com accordion, ramificações e destinos */
.responses-builder-v11{overflow:hidden}.v11-response-editor{gap:14px}.response-accordion{border:1px solid rgba(148,163,184,.16);background:rgba(17,29,46,.86);border-radius:16px;overflow:hidden}.accordion-head{width:100%;border:0;background:transparent;color:#F5F7FB;padding:16px 18px;display:flex;align-items:center;gap:14px;cursor:pointer;text-align:left}.acc-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:rgba(124,92,255,.16);color:#C4B5FD}.acc-text{display:grid;gap:2px;flex:1}.acc-text strong{font-size:16px}.acc-text small{color:#9AA8BA}.acc-toggle{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#0C1728;color:#A78BFA}.accordion-body{display:none;padding:0 18px 18px}.response-accordion.is-open .accordion-body{display:grid;gap:16px}.response-top-grid{display:grid;grid-template-columns:1fr 220px 140px;gap:12px;align-items:end}.responses-builder-v11 label{display:grid;gap:7px;color:#CBD5E1;font-weight:700;font-size:13px}.responses-builder-v11 input,.responses-builder-v11 textarea,.responses-builder-v11 select{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.18);background:#0C1728;color:#F5F7FB;border-radius:10px;padding:12px 13px;font-family:inherit;outline:none}.responses-builder-v11 textarea{resize:vertical}.icon-bank-panel{border:1px solid rgba(148,163,184,.14);border-radius:14px;background:rgba(12,23,40,.58);padding:14px}.icon-bank-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px;max-height:210px;overflow:auto;padding-right:6px}.icon-bank-grid button{border:1px solid rgba(148,163,184,.14);background:#0C1728;color:#DCE5F0;border-radius:11px;padding:10px;display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;font-weight:650}.icon-bank-grid button:hover{border-color:rgba(124,92,255,.5);background:rgba(124,92,255,.12)}.icon-bank-grid svg{width:18px;height:18px;color:#A78BFA;flex:none}.branch-title-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.branches-list{display:grid;gap:12px}.branch-form-card{border:1px solid rgba(148,163,184,.14);border-radius:14px;background:rgba(7,11,18,.5);padding:14px;display:grid;gap:12px}.branch-grid{display:grid;grid-template-columns:1fr 180px 170px 44px;gap:10px;align-items:end}.remove-branch{height:44px;border:1px solid rgba(239,68,68,.25);background:rgba(239,68,68,.08);color:#FCA5A5;border-radius:10px;cursor:pointer}.destinations-box{border:1px solid rgba(216,183,95,.22);background:rgba(216,183,95,.07);border-radius:13px;padding:13px}.destinations-box p{margin:4px 0 12px;color:#D6CDB7;font-size:13px}.destination-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.destination-checks label{display:flex;align-items:center;gap:8px;background:#0C1728;border:1px solid rgba(148,163,184,.14);border-radius:10px;padding:9px;color:#DCE5F0;margin:0;font-size:12px}.destination-checks input{width:auto!important;accent-color:#7C5CFF}.destination-checks svg{width:16px;height:16px;color:#A78BFA}.chat-action-link{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;border-radius:12px;background:linear-gradient(135deg,#6D5DFB,#12B7A8);color:#fff;text-decoration:none;font-weight:800}.chat-soft-note{display:flex;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;border-radius:12px;background:rgba(124,92,255,.12);color:#C4B5FD}.bot-bubble strong svg{width:17px;height:17px;vertical-align:-3px;margin-right:5px}@media(max-width:1050px){.response-top-grid,.branch-grid,.destination-checks,.icon-bank-grid{grid-template-columns:1fr}.remove-branch{width:100%}}

/* V11 — Conversas conectadas, perfil e cooperadores */
.admin-logo img,.brand-mark img,.brand-orb img{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px}.brand-orb img{width:54px;height:54px}.admin-logo span{overflow:hidden}.ops-mini-kpis{display:flex;gap:10px;flex-wrap:wrap}.ops-mini-kpis span{display:inline-flex;align-items:center;gap:6px;padding:9px 12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.04);color:var(--muted);font-size:13px}.ops-mini-kpis b{color:var(--text);font-family:"JetBrains Mono",monospace}.conversation-layout{display:grid;grid-template-columns:minmax(360px,43%) minmax(0,1fr);gap:20px;min-height:620px}.conversation-list,.conversation-detail{border:1px solid var(--line);border-radius:24px;background:rgba(8,14,24,.44);overflow:hidden}.conversation-list{padding:14px;display:flex;flex-direction:column;gap:10px;max-height:72vh;overflow:auto}.conversation-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;text-decoration:none;color:var(--text);padding:13px;border:1px solid transparent;border-radius:18px;background:rgba(255,255,255,.025);transition:.18s ease}.conversation-item:hover,.conversation-item.active{background:rgba(255,255,255,.055);border-color:rgba(139,124,246,.32)}.conversation-item.needs-human{border-color:rgba(200,155,99,.42);background:rgba(200,155,99,.09)}.conv-avatar{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:rgba(139,124,246,.14);color:#a78bfa}.needs-human .conv-avatar{background:rgba(200,155,99,.16);color:#e5b978}.conv-main{min-width:0}.conv-main strong{display:block;font-size:14px}.conv-main small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.conv-side{display:flex;align-items:flex-end;flex-direction:column;gap:7px}.conv-side span{font-size:12px;color:var(--muted)}.tag.amber{background:rgba(200,155,99,.18);color:#e8c28e;border-color:rgba(200,155,99,.24)}.conversation-detail{display:flex;flex-direction:column;min-width:0}.detail-head{min-height:86px;padding:20px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px}.detail-head h3{margin:0 0 4px;font-size:22px}.detail-head p{margin:0;color:var(--muted)}.detail-actions{display:flex;gap:9px;flex-wrap:wrap}.human-alert{margin:18px 22px 0;padding:14px 16px;border:1px solid rgba(200,155,99,.28);border-radius:18px;background:rgba(200,155,99,.10);display:flex;gap:10px;align-items:center;color:#e8c28e}.human-alert span{color:var(--muted);font-size:13px}.admin-chat-window{flex:1;min-height:340px;max-height:52vh;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:12px}.admin-msg{max-width:78%;border:1px solid var(--line);border-radius:18px;padding:12px 14px;background:rgba(255,255,255,.04)}.admin-msg span{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.admin-msg p{margin:0;line-height:1.55}.admin-msg.user{align-self:flex-start;background:rgba(139,124,246,.10);border-color:rgba(139,124,246,.18)}.admin-msg.bot,.admin-msg.system{align-self:center;max-width:90%;background:rgba(255,255,255,.025)}.admin-msg.admin{align-self:flex-end;background:rgba(16,185,129,.10);border-color:rgba(16,185,129,.20)}.admin-reply-form{border-top:1px solid var(--line);padding:18px 22px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}.admin-reply-form textarea{resize:vertical;min-height:58px;border:1px solid var(--line);border-radius:16px;background:#101a23;color:var(--text);padding:14px;outline:none}.empty-state{display:grid;place-items:center;text-align:center;gap:8px;color:var(--muted);padding:42px 18px}.empty-state svg{width:38px;height:38px;color:#8b7cf6}.empty-state strong{color:var(--text)}.empty-state.large{height:100%}.settings-columns{display:grid;grid-template-columns:1fr 420px;gap:22px}.settings-form h3,.agent-form h3{display:flex;align-items:center;gap:10px;margin:0 0 14px}.settings-form select,.settings-form input[type=file]{width:100%;min-height:48px;border:1px solid var(--line);border-radius:14px;background:#101a23;color:var(--text);padding:10px 12px}.logo-preview{min-height:84px;border:1px dashed rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.035);display:flex;align-items:center;gap:14px;padding:14px;color:var(--muted)}.logo-preview img{max-width:220px;max-height:62px;object-fit:contain;background:rgba(255,255,255,.04);border-radius:12px;padding:6px}.security-note{margin-top:16px;display:flex;gap:10px;color:var(--muted);font-size:13px;line-height:1.45}.agent-manager{display:grid;grid-template-columns:360px 1fr;gap:22px}.check-line{display:flex!important;align-items:center;gap:9px}.check-line input{width:auto!important}.chat-soft-note{margin-top:10px;border:1px solid rgba(16,185,129,.25);border-radius:14px;padding:10px;color:#a7f3d0;background:rgba(16,185,129,.08);display:flex;align-items:center;gap:8px}.chat-action-link{display:inline-flex;align-items:center;gap:8px;margin-top:10px;padding:10px 12px;border-radius:14px;background:rgba(139,124,246,.20);color:#ddd6fe;text-decoration:none;border:1px solid rgba(139,124,246,.30)}
@media(max-width:1100px){.conversation-layout,.settings-columns,.agent-manager{grid-template-columns:1fr}.admin-reply-form{grid-template-columns:1fr}.conversation-list{max-height:none}.admin-chat-window{max-height:60vh}}
/* V13 - atualização viva das conversas */
.conversation-item{width:100%;text-align:left;border:0;cursor:pointer;font-family:inherit;}
.admin-chat-window{scroll-behavior:smooth;}
.human-alert{animation:softPulse 1.8s ease-in-out infinite alternate;}
@keyframes softPulse{from{opacity:.88}to{opacity:1}}

/* V15 - Conversas: refresh inteligente e ramificações legíveis no painel */
.admin-msg .admin-msg-body{display:flex;flex-direction:column;gap:10px;line-height:1.55}
.admin-msg .admin-msg-body p{margin:0;color:inherit}
.admin-option-list{display:flex;flex-direction:column;gap:10px;margin-top:4px}
.admin-option-chip{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid rgba(167,139,250,.22);border-radius:14px;background:rgba(255,255,255,.035);color:#f8fafc}
.admin-option-chip span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;background:rgba(16,185,129,.14);border:1px solid rgba(16,185,129,.42);color:#6ee7b7;font-weight:800;font-size:13px;flex:0 0 auto}
.admin-option-chip svg{width:18px;height:18px;color:#2dd4bf;flex:0 0 auto}
.admin-option-chip strong{font-size:14px;font-weight:700;color:#f8fafc}
.conversation-item{transition:background .18s ease,border-color .18s ease,transform .18s ease}
.conversation-item.active{transform:none}

/* V16 - Estado da conversa governa o atendimento */
.msg-row.system{justify-content:center;margin:12px 0;display:flex}.system-bubble{max-width:86%;border:1px solid rgba(148,163,184,.20);background:rgba(148,163,184,.10);color:#CBD5E1;border-radius:16px;padding:11px 14px;text-align:center;font-size:13px;line-height:1.45}.system-bubble small{display:block;margin-top:6px;color:#94A3B8;font-size:11px}.admin-msg.system{align-self:center;max-width:92%;background:rgba(148,163,184,.08);border-color:rgba(148,163,184,.18)}
.print-only{display:none}.history-window{max-height:64vh}.tag.gray{background:rgba(148,163,184,.14);color:#cbd5e1;border-color:rgba(148,163,184,.20)}
@media print{
  .admin-sidebar,.admin-top,.conversation-list,.detail-head.no-print{display:none!important}
  .admin-main{margin:0!important;padding:0!important}.admin-panel,.conversation-detail{border:0!important;background:#fff!important;color:#111!important;box-shadow:none!important}
  .conversation-layout{display:block!important}.print-only{display:block!important;color:#111!important;margin:0 0 18px}
  .admin-chat-window{max-height:none!important;overflow:visible!important;padding:0!important}.admin-msg{break-inside:avoid;border:1px solid #ddd!important;background:#fff!important;color:#111!important;margin:8px 0}.admin-msg span{color:#444!important}
}

/* V22 - Histórico com seleção e exclusão */
.notice.success{margin:0 0 16px;padding:12px 14px;border:1px solid rgba(16,185,129,.25);background:rgba(16,185,129,.08);border-radius:14px;color:#d1fae5;font-weight:700}
.history-toolbar{gap:10px;justify-content:space-between;align-items:center}
.soft-btn.danger{border-color:rgba(239,68,68,.35);color:#fecaca;background:rgba(239,68,68,.08)}
.soft-btn.danger:hover{background:rgba(239,68,68,.16)}
.select-all-row{display:flex;align-items:center;gap:8px;margin:10px 12px;color:var(--muted,#9ca3af);font-size:13px;font-weight:700}
.conversation-item-wrap{display:flex;align-items:stretch;gap:8px;margin-bottom:8px}
.conversation-item-wrap .history-check{margin:22px 0 0 6px;accent-color:#10b981;flex:0 0 auto}
.conversation-item-wrap .conversation-item{flex:1;margin-bottom:0}
.detail-actions form{display:inline-flex;margin:0}
@media print{.conversation-item-wrap .history-check,.select-all-row,.notice{display:none!important}}

/* V27 - Estatísticas executivas: melhoria visual sem alterar lógica/API */
.stats-executive{margin-bottom:22px}.stats-section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:18px}.section-kicker{display:inline-flex;align-items:center;gap:8px;color:#8b7cf6;font-weight:900;font-size:12px;text-transform:uppercase;letter-spacing:.10em}.stats-section-head h2{margin:8px 0 6px;font-size:28px;line-height:1.1}.stats-section-head p{margin:0;color:var(--muted);max-width:720px}.stats-period,.stats-chip{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.045);color:var(--muted);font-weight:800;font-size:13px;padding:10px 13px;white-space:nowrap}.stats-period svg,.stats-chip svg{width:16px;height:16px}.stats-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stats-kpi{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,rgba(18,28,43,.92),rgba(8,14,24,.78));padding:20px;display:grid;gap:10px;min-height:170px}.stats-kpi:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:#8b7cf6;opacity:.85}.stats-kpi.positive:before{background:#22C55E}.stats-kpi.warning:before{background:#D8B75F}.stats-kpi.neutral:before{background:#7C5CFF}.kpi-icon{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:rgba(139,124,246,.14);color:#c4b5fd}.stats-kpi.positive .kpi-icon{background:rgba(34,197,94,.12);color:#86efac}.stats-kpi.warning .kpi-icon{background:rgba(216,183,95,.13);color:#f7d77d}.stats-kpi span{color:var(--muted);font-weight:800;font-size:13px}.stats-kpi strong{font-family:"JetBrains Mono",monospace;font-size:38px;line-height:1;color:var(--text)}.stats-kpi small{display:flex;align-items:center;gap:6px;color:#9fb0c3;font-weight:800}.stats-kpi small svg{width:15px;height:15px}.stats-main-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr);gap:20px;align-items:stretch}.stats-chart-panel{min-height:410px}.stats-bar-chart{height:315px;display:flex;align-items:end;gap:14px;padding:24px 10px 8px;border-radius:18px;background:linear-gradient(180deg,rgba(13,24,39,.76),rgba(8,14,24,.58));border:1px solid rgba(148,163,184,.12)}.stats-bar-chart div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;align-items:center}.stats-bar-chart b{display:block;width:100%;min-height:18px;border-radius:14px 14px 6px 6px;background:linear-gradient(180deg,#7C5CFF,#12B7A8);box-shadow:0 14px 28px rgba(18,183,168,.10)}.stats-bar-chart span{font-size:12px;color:var(--muted);font-weight:800}.stats-bar-chart .peak b{background:linear-gradient(180deg,#D8B75F,#12B7A8)}.stats-bar-chart .peak span{color:#f7d77d}.stats-alert-panel{border:1px solid rgba(216,183,95,.26);border-left:6px solid #D8B75F;border-radius:24px;background:linear-gradient(180deg,rgba(216,183,95,.13),rgba(8,14,24,.72));padding:22px;box-shadow:0 18px 48px rgba(0,0,0,.18)}.alert-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}.alert-head>svg{width:30px;height:30px;color:#f7d77d;flex:0 0 auto}.alert-head h2{margin:0 0 5px;font-size:22px}.alert-head p{margin:0;color:var(--muted);line-height:1.45}.stats-alert-list{display:grid;gap:12px}.stats-alert-list div{border:1px solid rgba(216,183,95,.20);border-radius:16px;background:rgba(8,14,24,.45);padding:15px;display:grid;gap:6px}.stats-alert-list strong{font-size:15px}.stats-alert-list span{color:var(--muted);line-height:1.4}.stats-alert-list b{width:max-content;border-radius:999px;background:rgba(216,183,95,.16);color:#f7d77d;padding:7px 9px;font-size:12px}.stats-lower-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:20px;margin-top:20px}.menu-progress-list{display:grid;gap:16px}.menu-progress-list header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#CBD5E1;font-weight:900}.menu-progress-list b{font-family:"JetBrains Mono",monospace;color:var(--text)}.menu-progress-list em{display:block;height:12px;border-radius:999px;background:rgba(148,163,184,.13);overflow:hidden}.menu-progress-list i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#7C5CFF,#12B7A8)}.stats-insights .insight-list{display:grid;gap:11px}.insight-list div{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.035);padding:13px 14px;color:#CBD5E1}.insight-list svg{width:18px;height:18px;color:#12B7A8;flex:0 0 auto}@media(max-width:1200px){.stats-kpi-grid{grid-template-columns:repeat(2,1fr)}.stats-main-grid,.stats-lower-grid{grid-template-columns:1fr}}@media(max-width:720px){.stats-section-head{align-items:flex-start;flex-direction:column}.stats-kpi-grid{grid-template-columns:1fr}.stats-bar-chart{gap:7px;padding-inline:8px}.stats-kpi strong{font-size:34px}}

/* V28 - Centro de Operações executivo: visual premium sem alterar lógica/API */
.ops-command-head{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;align-items:stretch;margin-bottom:22px}.ops-command-head>div:first-child,.command-status{border:1px solid rgba(148,163,184,.14);border-radius:28px;background:linear-gradient(135deg,rgba(17,29,46,.92),rgba(8,14,24,.78));box-shadow:0 22px 60px rgba(0,0,0,.22);padding:26px}.command-kicker{display:inline-flex;align-items:center;gap:8px;color:#9AA8FF;text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:900}.command-kicker svg{width:16px;height:16px}.ops-command-head h2{margin:14px 0 7px;font-size:32px;line-height:1.08;letter-spacing:-.05em}.ops-command-head p{margin:0;max-width:760px;color:#9AA8BA;line-height:1.55}.command-status{display:grid;align-content:center;justify-items:center;text-align:center;gap:8px}.command-status svg{width:42px;height:42px;color:#36D889}.command-status strong{font-size:18px}.command-status span{color:#9AA8BA;font-size:13px;font-weight:700}.ops-health-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;margin-bottom:22px}.ops-health-card{position:relative;overflow:hidden;min-height:178px;border:1px solid rgba(148,163,184,.14);border-radius:22px;background:linear-gradient(180deg,rgba(17,29,46,.92),rgba(8,14,24,.76));padding:20px;display:grid;align-content:start;gap:10px;box-shadow:0 18px 45px rgba(0,0,0,.16)}.ops-health-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:#7C5CFF}.ops-health-card:after{content:"";position:absolute;right:-32px;top:-34px;width:96px;height:96px;border-radius:999px;background:rgba(124,92,255,.13);filter:blur(1px)}.ops-health-card.blue:before{background:#3B82F6}.ops-health-card.green:before{background:#22C55E}.ops-health-card.amber:before{background:#D8B75F}.ops-health-card.red:before{background:#EF4444}.ops-health-card.purple:before{background:#7C5CFF}.ops-health-card.cyan:before{background:#12B7A8}.ops-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:rgba(124,92,255,.14);color:#C4B5FD}.blue .ops-icon{background:rgba(59,130,246,.12);color:#93C5FD}.green .ops-icon{background:rgba(34,197,94,.12);color:#86EFAC}.amber .ops-icon{background:rgba(216,183,95,.13);color:#F7D77D}.red .ops-icon{background:rgba(239,68,68,.12);color:#FCA5A5}.cyan .ops-icon{background:rgba(18,183,168,.12);color:#5EEAD4}.ops-icon svg{width:23px;height:23px}.ops-health-card span{color:#B4C0D1;font-weight:850;font-size:13px}.ops-health-card strong{font-family:JetBrains Mono,monospace;font-size:34px;line-height:1;letter-spacing:-.06em;z-index:1}.ops-health-card small{display:flex;align-items:center;gap:6px;color:#9AA8BA;font-weight:800}.ops-health-card small svg{width:15px;height:15px}.ops-action-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.75fr);gap:20px;margin-bottom:22px}.ops-panel-title{align-items:flex-start}.ops-panel-title h2{margin:5px 0 0;font-size:21px}.ops-live-panel,.ops-volume-panel{min-height:100%}.ops-state-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.ops-state-grid div{border:1px solid rgba(148,163,184,.12);border-radius:18px;background:rgba(2,6,23,.38);padding:16px;display:grid;gap:7px}.ops-state-grid div.warn{border-color:rgba(216,183,95,.25);background:rgba(216,183,95,.08)}.ops-state-grid svg{width:22px;height:22px;color:#9AA8FF}.ops-state-grid .warn svg{color:#F7D77D}.ops-state-grid span{color:#9AA8BA;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.ops-state-grid strong{font-family:JetBrains Mono,monospace;font-size:28px}.ops-queue-preview{display:grid;gap:10px}.ops-queue-preview>div{display:grid;grid-template-columns:1.15fr 1fr .65fr .8fr;gap:12px;align-items:center;border:1px solid rgba(148,163,184,.11);background:rgba(2,6,23,.42);border-radius:16px;padding:14px}.ops-queue-preview .critical{border-color:rgba(239,68,68,.30);background:linear-gradient(90deg,rgba(239,68,68,.12),rgba(2,6,23,.42))}.ops-queue-preview span{color:#B4C0D1}.ops-queue-preview b{font-family:JetBrains Mono,monospace}.ops-bottleneck-panel{border:1px solid rgba(216,183,95,.32);border-left:6px solid #D8B75F;border-radius:24px;background:linear-gradient(180deg,rgba(216,183,95,.15),rgba(8,14,24,.76));padding:22px;box-shadow:0 18px 50px rgba(0,0,0,.18)}.ops-bottleneck-panel .alert-head{margin-bottom:16px}.ops-bottleneck-panel .alert-head>i,.ops-bottleneck-panel .alert-head>svg{width:32px;height:32px;color:#F7D77D;flex:0 0 auto}.ops-alert-cards{display:grid;gap:12px}.ops-alert-cards article{display:grid;gap:6px;border:1px solid rgba(216,183,95,.22);border-radius:16px;background:rgba(8,14,24,.44);padding:15px}.ops-alert-cards span{color:#B4C0D1;line-height:1.4}.ops-alert-cards b{width:max-content;border-radius:999px;background:rgba(216,183,95,.16);color:#F7D77D;padding:7px 9px;font-size:12px}.ops-analytics-grid{display:grid;margin-bottom:22px}.ops-volume-wrap{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:18px;align-items:stretch}.ops-volume-chart{height:330px;display:flex;align-items:end;gap:14px;padding:24px 12px 10px;border-radius:18px;background:linear-gradient(180deg,rgba(13,24,39,.76),rgba(8,14,24,.58));border:1px solid rgba(148,163,184,.12)}.ops-volume-chart div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:10px}.ops-volume-chart b{display:block;width:100%;min-height:18px;border-radius:14px 14px 6px 6px;background:linear-gradient(180deg,#7C5CFF,#12B7A8);box-shadow:0 14px 28px rgba(18,183,168,.10)}.ops-volume-chart span{font-size:12px;color:#9AA8BA;font-weight:850}.ops-volume-chart .peak b{background:linear-gradient(180deg,#D8B75F,#12B7A8)}.ops-volume-chart .peak span{color:#F7D77D}.ops-volume-summary{display:grid;gap:12px}.ops-volume-summary div{border:1px solid rgba(148,163,184,.12);border-radius:16px;background:rgba(2,6,23,.38);padding:16px;display:grid;gap:6px}.ops-volume-summary span{color:#9AA8BA;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.ops-volume-summary strong{font-family:JetBrains Mono,monospace;font-size:26px}.ops-bottom-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:20px;margin-bottom:22px}.ops-menu-bars{display:grid;gap:17px}.ops-menu-bars header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-weight:900}.ops-menu-bars b{font-family:JetBrains Mono,monospace}.ops-menu-bars em{display:block;height:12px;border-radius:999px;background:rgba(148,163,184,.13);overflow:hidden}.ops-menu-bars i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#7C5CFF,#12B7A8)}.ops-menu-bars small{display:block;margin-top:6px;color:#9AA8BA;font-weight:750}.ops-insights-panel .insight-list{display:grid;gap:11px}.ops-flow-footer{margin-bottom:10px}@media(max-width:1280px){.ops-health-grid{grid-template-columns:repeat(3,1fr)}.ops-action-grid,.ops-bottom-grid{grid-template-columns:1fr}.ops-volume-wrap{grid-template-columns:1fr}}@media(max-width:760px){.ops-command-head{grid-template-columns:1fr}.ops-health-grid,.ops-state-grid{grid-template-columns:1fr}.ops-queue-preview>div{grid-template-columns:1fr}.ops-command-head h2{font-size:26px}.ops-volume-chart{gap:7px;padding-inline:8px}.ops-health-card strong{font-size:30px}}

/* V29 - Centro de Operações simplificado: dados reais, menos ruído visual */
.ops-simple-head .command-status{background:linear-gradient(180deg,rgba(18,183,168,.12),rgba(8,14,24,.76));border-color:rgba(18,183,168,.22)}
.ops-simple-kpis{grid-template-columns:repeat(6,minmax(0,1fr))}.ops-simple-kpis .ops-health-card{min-height:158px}.ops-simple-kpis .ops-health-card small{line-height:1.35}.ops-simple-grid{grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr)}.ops-simple-side{border-left-color:#12B7A8;border-color:rgba(18,183,168,.28);background:linear-gradient(180deg,rgba(18,183,168,.11),rgba(8,14,24,.76))}.ops-simple-side .alert-head>i,.ops-simple-side .alert-head>svg{color:#5EEAD4}.ops-simple-side .ops-alert-cards article{border-color:rgba(18,183,168,.18)}.ops-simple-side .ops-alert-cards b{background:rgba(18,183,168,.13);color:#5EEAD4}.ops-empty-row{grid-template-columns:1fr!important;color:#9AA8BA}.ops-empty-row strong{color:#F8FAFC}.ops-clean-list .ops-empty-row span{color:#9AA8BA}.ops-simple-bottom{grid-template-columns:minmax(0,1.12fr) minmax(340px,.88fr)}.ops-response-list{display:grid;gap:10px}.ops-response-item{display:grid;grid-template-columns:34px minmax(0,1fr) 140px 90px 78px;align-items:center;gap:12px;border:1px solid rgba(148,163,184,.12);border-radius:16px;background:rgba(2,6,23,.38);padding:13px 14px}.ops-response-item>i,.ops-response-item>svg{width:22px;height:22px;color:#8B7CF6}.ops-response-item strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ops-response-item span{color:#9AA8BA;font-weight:750}.ops-response-item b{font-family:JetBrains Mono,monospace}.ops-empty-card{min-height:180px;display:grid;place-items:center;text-align:center;gap:8px;color:#9AA8BA;border:1px dashed rgba(148,163,184,.18);border-radius:18px;background:rgba(255,255,255,.025)}.ops-empty-card svg{width:38px;height:38px;color:#8B7CF6}.ops-empty-card strong{color:#F8FAFC}.tag.gray{background:rgba(148,163,184,.12);color:#CBD5E1;border-color:rgba(148,163,184,.16)}
@media(max-width:1280px){.ops-simple-kpis{grid-template-columns:repeat(3,1fr)}.ops-simple-grid,.ops-simple-bottom{grid-template-columns:1fr}}@media(max-width:760px){.ops-simple-kpis{grid-template-columns:1fr}.ops-response-item{grid-template-columns:1fr}.ops-response-item>i,.ops-response-item>svg{display:none}}


/* V29.1 — Refinamento UX/UI Lucide: ícones uniformes, cards premium e microinterações suaves */
.v10-admin [data-lucide],
.v10-admin svg.lucide{
  width:20px;
  height:20px;
  stroke-width:1.9;
  flex:0 0 auto;
  vertical-align:middle;
}
.v10-admin .admin-logo [data-lucide],
.v10-admin .admin-logo svg.lucide{width:22px;height:22px;}
.v10-admin .admin-sidebar nav a [data-lucide],
.v10-admin .admin-public [data-lucide]{width:19px;height:19px;opacity:.92;}
.v10-admin .top-icon [data-lucide],
.v10-admin .admin-user [data-lucide]{width:18px;height:18px;}

.v10-admin .admin-sidebar nav a,
.v10-admin .admin-public,
.v10-admin .panel-title a,
.v10-admin .soft-btn,
.v10-admin .top-icon,
.v10-admin .admin-user,
.v10-admin .admin-search,
.v10-admin .ops-health-card,
.v10-admin .admin-panel,
.v10-admin .ops-bottleneck-panel,
.v10-admin .ops-state-grid div,
.v10-admin .ops-queue-preview>div,
.v10-admin .ops-response-item,
.v10-admin .ops-alert-cards article,
.v10-admin .insight-list div{
  transition:transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease, color .22s ease, opacity .22s ease;
}

.v10-admin .admin-sidebar nav a:hover,
.v10-admin .admin-public:hover,
.v10-admin .panel-title a:hover,
.v10-admin .soft-btn:hover,
.v10-admin .top-icon:hover{
  transform:translateY(-1px);
}

.v10-admin .ops-command-head>div:first-child,
.v10-admin .command-status,
.v10-admin .admin-panel,
.v10-admin .ops-bottleneck-panel,
.v10-admin .ops-health-card{
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.v10-admin .ops-command-head>div:first-child{
  background:linear-gradient(135deg,rgba(17,29,46,.86),rgba(8,14,24,.72));
  border-color:rgba(148,163,184,.16);
}

.v10-admin .ops-health-card{
  min-height:150px;
  padding:18px;
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 4%,rgba(255,255,255,.055),transparent 30%),
    linear-gradient(180deg,rgba(17,29,46,.90),rgba(8,14,24,.74));
  box-shadow:0 16px 42px rgba(0,0,0,.18);
}
.v10-admin .ops-health-card:hover{
  transform:translateY(-3px);
  border-color:rgba(148,163,184,.26);
  box-shadow:0 24px 70px rgba(0,0,0,.25);
}
.v10-admin .ops-health-card:before{
  height:2px;
  opacity:.95;
}
.v10-admin .ops-health-card:after{
  width:82px;
  height:82px;
  right:-28px;
  top:-28px;
  opacity:.84;
}
.v10-admin .ops-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
}
.v10-admin .ops-icon [data-lucide],
.v10-admin .ops-icon svg.lucide{width:21px;height:21px;}
.v10-admin .ops-health-card span{
  color:#C8D2E0;
  letter-spacing:.01em;
}
.v10-admin .ops-health-card strong{
  font-size:32px;
  animation:opsFadeUp .34s ease both;
}
.v10-admin .ops-health-card small{
  color:#93A3B8;
  font-size:12px;
}

.v10-admin .ops-state-grid div,
.v10-admin .ops-alert-cards article,
.v10-admin .ops-response-item,
.v10-admin .insight-list div{
  background:linear-gradient(180deg,rgba(7,13,25,.58),rgba(2,6,23,.36));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}
.v10-admin .ops-state-grid div:hover,
.v10-admin .ops-alert-cards article:hover,
.v10-admin .ops-response-item:hover,
.v10-admin .insight-list div:hover{
  transform:translateY(-2px);
  border-color:rgba(148,163,184,.22);
  background:linear-gradient(180deg,rgba(12,22,39,.70),rgba(2,6,23,.44));
}

.v10-admin .ops-queue-preview>div{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.v10-admin .ops-queue-preview>div:hover{
  transform:translateY(-1px);
  border-color:rgba(148,163,184,.22);
}

.v10-admin .ops-response-item{
  grid-template-columns:38px minmax(0,1fr) 140px 90px 78px;
  border-radius:18px;
  padding:14px 15px;
}
.v10-admin .ops-response-item>i,
.v10-admin .ops-response-item>svg{
  width:36px;
  height:36px;
  padding:8px;
  border-radius:13px;
  color:#A7A0FF;
  background:rgba(139,124,246,.12);
  box-shadow:inset 0 0 0 1px rgba(139,124,246,.13);
}
.v10-admin .ops-response-item b,
.v10-admin .ops-state-grid strong,
.v10-admin .ops-health-card strong{
  font-variant-numeric:tabular-nums;
}

.v10-admin .tag{
  border:1px solid transparent;
  font-weight:850;
  letter-spacing:.01em;
}
.v10-admin .tag.green{border-color:rgba(16,185,129,.16);}
.v10-admin .tag.red{background:rgba(239,68,68,.12);color:#FCA5A5;border-color:rgba(239,68,68,.18);}
.v10-admin .tag.amber{background:rgba(216,183,95,.12);color:#F7D77D;border-color:rgba(216,183,95,.18);}

.v10-admin .command-status strong::before,
.v10-admin .ops-pill::before{
  content:"";
  display:inline-block;
  width:7px;
  height:7px;
  margin-right:8px;
  border-radius:999px;
  background:#22C55E;
  box-shadow:0 0 0 5px rgba(34,197,94,.10);
}
.v10-admin .command-status strong{display:flex;align-items:center;justify-content:center;}
.v10-admin .ops-pill{display:inline-flex;align-items:center;}

@keyframes opsFadeUp{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}

@media (prefers-reduced-motion:reduce){
  .v10-admin *,
  .v10-admin *::before,
  .v10-admin *::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

@media(max-width:760px){
  .v10-admin .ops-health-card:hover,
  .v10-admin .ops-state-grid div:hover,
  .v10-admin .ops-alert-cards article:hover,
  .v10-admin .ops-response-item:hover,
  .v10-admin .insight-list div:hover{transform:none;}
  .v10-admin .ops-response-item{grid-template-columns:1fr;}
}

/* V31 - Refinamento premium de UX/UI: consistência visual sem alterar lógica */
.v10-admin .admin-top{align-items:center;min-height:86px}.v10-admin .top-actions{gap:10px;flex-wrap:wrap;justify-content:flex-end}.v10-admin .admin-search{display:none!important}.v10-admin .admin-user{height:44px;border-radius:14px;background:rgba(17,29,46,.78);border-color:rgba(148,163,184,.16)}.v10-admin .top-icon{width:44px;height:44px;border-radius:14px;transition:transform .18s ease,background .18s ease,border-color .18s ease}.v10-admin .top-icon:hover{transform:translateY(-1px);background:rgba(124,92,255,.13);border-color:rgba(167,139,250,.32)}

.config-premium{padding:24px;border-radius:22px}.config-title{margin-bottom:22px}.config-title h2{display:flex;align-items:center;gap:10px;font-size:21px;letter-spacing:-.02em}.config-title h2 svg{width:22px;height:22px;color:#A78BFA}.settings-columns-premium{grid-template-columns:minmax(0,1fr) 380px;align-items:start;gap:22px}.settings-card{background:rgba(12,23,40,.72);border:1px solid rgba(148,163,184,.14);border-radius:20px;padding:22px;gap:14px;box-shadow:0 18px 55px rgba(0,0,0,.18);transition:transform .18s ease,border-color .18s ease,background .18s ease}.settings-card:hover{transform:translateY(-1px);border-color:rgba(167,139,250,.24);background:rgba(12,23,40,.82)}.settings-card-access{position:sticky;top:22px}.settings-card-head{display:flex;align-items:center;gap:14px;margin-bottom:4px;padding-bottom:16px;border-bottom:1px solid rgba(148,163,184,.10)}.settings-card-head.compact{padding-bottom:14px;margin-bottom:2px}.settings-card-head h3{margin:0!important;font-size:18px;letter-spacing:-.02em}.settings-card-head p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.4}.settings-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:rgba(124,92,255,.14);color:#C4B5FD;flex:0 0 auto}.settings-icon svg{width:21px;height:21px}.form-section{display:grid;gap:12px;padding:18px;border:1px solid rgba(148,163,184,.10);border-radius:18px;background:rgba(2,6,23,.22)}.form-section h4{margin:0 0 2px;display:flex;align-items:center;gap:8px;font-size:14px;color:#E5E7EB;letter-spacing:.01em}.form-section h4 svg{width:18px;height:18px;color:#A78BFA}.form-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.v10-admin .settings-form label{font-size:12px;text-transform:uppercase;letter-spacing:.055em;color:#AEB9CA;margin-top:2px}.v10-admin .settings-form input,.v10-admin .settings-form textarea,.v10-admin .settings-form select,.v10-admin .settings-form input[type=file]{min-height:48px;border-radius:12px;padding:13px 14px;font-size:15px;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.v10-admin .settings-form textarea{line-height:1.55;resize:vertical}.v10-admin .settings-form .textarea-sm{min-height:96px}.v10-admin .settings-form .textarea-md{min-height:120px}.v10-admin .settings-form input:focus,.v10-admin .settings-form textarea:focus{border-color:rgba(167,139,250,.55);box-shadow:0 0 0 4px rgba(124,92,255,.12);background:#0E1B2E}.logo-upload-grid{display:grid;grid-template-columns:250px minmax(0,1fr);gap:14px;align-items:stretch}.logo-preview-premium{min-height:112px;border-radius:16px;justify-content:center;flex-direction:column;text-align:center;border-color:rgba(167,139,250,.22);background:linear-gradient(180deg,rgba(124,92,255,.08),rgba(255,255,255,.025))}.logo-preview-premium svg{width:30px;height:30px;color:#A78BFA}.logo-preview-premium img{max-width:220px;max-height:60px;width:auto;height:auto;object-fit:contain;padding:8px;border-radius:12px}.logo-guidelines{border:1px solid rgba(148,163,184,.10);border-radius:16px;padding:15px;background:rgba(255,255,255,.025);display:flex;flex-direction:column;justify-content:center;gap:7px;color:var(--muted);font-size:13px;line-height:1.4}.logo-guidelines strong{color:#F8FAFC;font-size:14px}.uniform-btn,.v10-admin .primary-admin-btn.uniform-btn{height:44px;min-width:190px;justify-content:center;border-radius:12px;padding:0 18px;font-size:14px;letter-spacing:.01em;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}.uniform-btn svg{width:18px;height:18px}.uniform-btn:hover{transform:translateY(-1px);filter:brightness(1.06);box-shadow:0 12px 35px rgba(124,92,255,.18)}.settings-card-access .uniform-btn{width:100%;margin-top:4px}.success-alert{display:flex;align-items:center;gap:9px;margin:0;border-radius:14px}.success-alert svg{width:18px;height:18px}.security-note{border:1px solid rgba(148,163,184,.10);border-radius:14px;padding:12px;background:rgba(255,255,255,.025);margin-top:2px}.security-note svg{width:18px;height:18px;color:#A78BFA;flex:0 0 auto}

@media(max-width:1100px){.settings-columns-premium{grid-template-columns:1fr}.settings-card-access{position:relative;top:auto}.logo-upload-grid{grid-template-columns:1fr}.form-grid-2{grid-template-columns:1fr}}
@media(max-width:900px){.v10-admin .top-actions{width:100%;justify-content:flex-start}.config-premium{padding:18px;border-radius:18px}.settings-card{padding:18px}.form-section{padding:15px}.v10-admin .admin-top{align-items:flex-start}}

/* V32 — Exclusão segura + refinamento da tela do atendente */
body.modal-open{overflow:hidden}
.delete-modal-backdrop[hidden]{display:none!important}
.delete-modal-backdrop{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:22px;background:rgba(2,6,23,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.delete-modal{width:min(460px,100%);border:1px solid rgba(239,68,68,.26);border-radius:24px;background:linear-gradient(180deg,rgba(17,29,46,.98),rgba(8,14,24,.98));box-shadow:0 30px 90px rgba(0,0,0,.48);padding:24px;animation:modalPop .18s ease both}
.delete-modal-icon{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;color:#fecaca;background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.20);margin-bottom:14px}
.delete-modal-icon svg{width:22px;height:22px}.delete-modal h3{margin:0 0 8px;font-size:22px;letter-spacing:-.03em}.delete-modal p{margin:0 0 18px;color:#B4C0D1;line-height:1.5}.delete-modal label{margin:0 0 8px;font-size:13px;font-weight:850;color:#E2E8F0}.delete-modal input{width:100%;height:48px;box-sizing:border-box;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:#0C1728;color:#F8FAFC;padding:0 14px;outline:none;font-weight:850;letter-spacing:.06em;text-transform:uppercase}.delete-modal input:focus{border-color:rgba(239,68,68,.48);box-shadow:0 0 0 4px rgba(239,68,68,.10)}.delete-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.delete-modal .soft-btn{min-height:42px}.delete-modal .soft-btn:disabled{opacity:.42;cursor:not-allowed;transform:none!important}
@keyframes modalPop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

.attendant-panel{padding:20px}.attendant-panel .panel-title{margin-bottom:14px}.attendant-panel .panel-title h2{font-size:20px}.attendant-panel .panel-title .muted{font-size:13px}.attendant-panel .conversation-layout{grid-template-columns:minmax(300px,32%) minmax(0,1fr);gap:16px;min-height:calc(100vh - 190px)}.attendant-panel .conversation-list{border-radius:22px;padding:12px;max-height:calc(100vh - 210px);background:rgba(8,14,24,.36)}.attendant-panel .conversation-toolbar{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin-bottom:2px;background:transparent}.attendant-panel .conversation-toolbar span{font-size:12px;border:1px solid rgba(148,163,184,.13);border-radius:999px;background:rgba(255,255,255,.035);padding:7px 9px;color:#9AA8BA;font-weight:850}.attendant-panel .conversation-toolbar span.active{color:#F8FAFC;border-color:rgba(139,124,246,.28);background:rgba(139,124,246,.10)}.attendant-panel .conversation-item{grid-template-columns:38px minmax(0,1fr) auto;gap:10px;padding:11px;border-radius:16px}.attendant-panel .conv-avatar{width:38px;height:38px;border-radius:13px}.attendant-panel .conv-avatar svg{width:18px;height:18px}.attendant-panel .conv-main strong{font-size:13px}.attendant-panel .conv-main small{font-size:12px;margin-top:3px}.attendant-panel .conv-side{gap:5px}.attendant-panel .conv-side .tag{padding:5px 8px;font-size:11px}.attendant-panel .conv-side span{font-size:11px}.attendant-panel .conversation-detail{border-radius:22px;background:linear-gradient(180deg,rgba(8,14,24,.48),rgba(8,14,24,.34))}.attendant-panel .detail-head{min-height:64px;padding:14px 18px}.attendant-panel .detail-head h3{font-size:19px;margin-bottom:2px}.attendant-panel .detail-head p{font-size:13px}.attendant-panel .detail-actions .soft-btn{min-height:38px;padding:8px 11px;border-radius:12px;font-size:13px}.attendant-panel .human-alert{margin:12px 18px 0;padding:11px 13px;border-radius:15px}.attendant-panel .admin-chat-window{min-height:0;max-height:none;flex:1;padding:20px 22px;gap:11px;scroll-behavior:smooth}.attendant-panel .admin-msg{max-width:72%;padding:11px 13px;border-radius:17px}.attendant-panel .admin-msg.bot,.attendant-panel .admin-msg.system{max-width:82%}.attendant-panel .admin-msg p{line-height:1.5}.attendant-panel .admin-reply-form{padding:16px 18px;grid-template-columns:minmax(0,1fr) 128px;gap:12px;align-items:stretch;background:rgba(2,6,23,.22)}.attendant-panel .admin-reply-form textarea{min-height:94px;max-height:220px;border-radius:18px;padding:15px 16px;font-size:15px;line-height:1.45}.attendant-panel .admin-reply-form textarea:focus{border-color:rgba(16,185,129,.45);box-shadow:0 0 0 4px rgba(16,185,129,.08)}.attendant-panel .admin-reply-form .primary-admin-btn{width:128px;justify-content:center;align-self:stretch;border-radius:18px;padding:0 14px;box-shadow:0 16px 34px rgba(37,99,235,.18)}
@media(max-width:1100px){.attendant-panel .conversation-layout{grid-template-columns:1fr;min-height:auto}.attendant-panel .conversation-list{max-height:none}.attendant-panel .admin-chat-window{min-height:360px}.attendant-panel .admin-reply-form{grid-template-columns:1fr}.attendant-panel .admin-reply-form .primary-admin-btn{width:100%;min-height:46px}}


/* V32.1 - Correção real: mais largura para o chat do atendente */
.attendant-panel{padding:18px!important;}
.attendant-panel .conversation-layout{
  grid-template-columns:minmax(250px,26%) minmax(0,1fr)!important;
  gap:14px!important;
  min-height:calc(100vh - 168px)!important;
}
.attendant-panel .conversation-list{
  max-height:calc(100vh - 190px)!important;
}
.attendant-panel .conversation-detail{
  min-height:calc(100vh - 190px)!important;
}
.attendant-panel .admin-chat-window{
  min-height:0!important;
  flex:1 1 auto!important;
  max-height:none!important;
  padding:22px 26px!important;
}
.attendant-panel .admin-reply-form{
  grid-template-columns:minmax(0,1fr) 118px!important;
  padding:16px 18px!important;
}
.attendant-panel .admin-reply-form textarea{
  min-height:118px!important;
  font-size:15.5px!important;
}
.attendant-panel .admin-reply-form .primary-admin-btn{
  width:118px!important;
}
.attendant-panel .panel-title{
  margin-bottom:12px!important;
}
@media(min-width:1280px){
  .attendant-panel .conversation-layout{grid-template-columns:minmax(240px,24%) minmax(0,1fr)!important;}
}
@media(max-width:1100px){
  .attendant-panel .conversation-layout{grid-template-columns:1fr!important;min-height:auto!important;}
  .attendant-panel .conversation-detail{min-height:560px!important;}
  .attendant-panel .admin-chat-window{min-height:360px!important;}
  .attendant-panel .admin-reply-form{grid-template-columns:1fr!important;}
  .attendant-panel .admin-reply-form .primary-admin-btn{width:100%!important;min-height:46px;}
}


/* V32.2 - Correção pontual: preservar rolagem do chat e simplificar lista do atendente */
.attendant-panel .conversation-layout{
  grid-template-columns:minmax(230px,22%) minmax(0,1fr)!important;
  min-height:calc(100vh - 168px)!important;
  height:calc(100vh - 168px)!important;
}
.attendant-panel .conversation-list{
  max-height:none!important;
  height:100%!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}
.attendant-panel .conversation-detail{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.attendant-panel .admin-chat-window{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  scroll-behavior:smooth!important;
  padding-right:26px!important;
}
.attendant-panel .admin-chat-window::-webkit-scrollbar,
.attendant-panel .conversation-list::-webkit-scrollbar{width:8px;}
.attendant-panel .admin-chat-window::-webkit-scrollbar-track,
.attendant-panel .conversation-list::-webkit-scrollbar-track{background:rgba(255,255,255,.035);border-radius:999px;}
.attendant-panel .admin-chat-window::-webkit-scrollbar-thumb,
.attendant-panel .conversation-list::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(16,185,129,.75),rgba(59,130,246,.65));border-radius:999px;}
.attendant-panel .admin-chat-window::-webkit-scrollbar-thumb:hover,
.attendant-panel .conversation-list::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,rgba(16,185,129,.95),rgba(59,130,246,.85));}
.attendant-panel .conversation-item{
  grid-template-columns:34px minmax(0,1fr)!important;
  min-height:54px!important;
  padding:10px 11px!important;
}
.attendant-panel .conversation-item .conv-side,
.attendant-panel .conversation-item .conv-main small{display:none!important;}
.attendant-panel .conv-avatar{width:34px!important;height:34px!important;border-radius:12px!important;}
.attendant-panel .conv-avatar svg{width:17px!important;height:17px!important;}
.attendant-panel .conv-main strong{font-size:14px!important;line-height:1.2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.attendant-panel .conversation-item.needs-human{
  border-color:rgba(239,68,68,.36)!important;
  background:rgba(239,68,68,.10)!important;
}
.attendant-panel .conversation-item.needs-human .conv-avatar{background:rgba(239,68,68,.16)!important;color:#FCA5A5!important;}
.attendant-panel .conversation-item.needs-human .conv-main strong{color:#FCA5A5!important;}
.attendant-panel .admin-reply-form{flex:0 0 auto!important;}
@media(min-width:1280px){
  .attendant-panel .conversation-layout{grid-template-columns:minmax(220px,20%) minmax(0,1fr)!important;}
}
@media(max-width:1100px){
  .attendant-panel .conversation-layout{grid-template-columns:1fr!important;height:auto!important;min-height:auto!important;}
  .attendant-panel .conversation-list{height:auto!important;max-height:280px!important;}
  .attendant-panel .conversation-detail{height:560px!important;min-height:560px!important;}
}

/* V33 - Refinamento premium da área de envio do atendente (sem alterar lógica) */
.attendant-panel .premium-reply-form{
  flex:0 0 auto!important;
  display:block!important;
  grid-template-columns:none!important;
  padding:15px 18px 18px!important;
  border-top:1px solid rgba(148,163,184,.12)!important;
  background:linear-gradient(180deg,rgba(2,6,23,.10),rgba(2,6,23,.28))!important;
}
.attendant-panel .reply-composer{
  width:100%;
  box-sizing:border-box;
  display:flex;
  align-items:flex-end;
  gap:8px;
  min-height:58px;
  padding:10px 10px 10px 12px;
  border:1px solid rgba(148,163,184,.14);
  border-radius:22px;
  background:#111827;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 14px 38px rgba(0,0,0,.16);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.attendant-panel .reply-composer:focus-within{
  border-color:rgba(139,92,246,.48);
  background:#111C2C;
  box-shadow:0 0 0 4px rgba(139,92,246,.10),0 18px 42px rgba(0,0,0,.20);
}
.attendant-panel .reply-tool,
.attendant-panel .reply-send{
  flex:0 0 auto;
  width:38px;
  height:38px;
  border:0;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:transparent;
  color:#94A3B8;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease,opacity .18s ease;
}
.attendant-panel .reply-tool svg,
.attendant-panel .reply-send svg{width:19px;height:19px;stroke-width:2.1px}
.attendant-panel .reply-tool:hover{
  background:rgba(148,163,184,.10);
  color:#E2E8F0;
  transform:translateY(-1px);
}
.attendant-panel .reply-send{
  margin-left:2px;
  background:rgba(148,163,184,.08);
  color:#64748B;
  cursor:not-allowed;
  opacity:.72;
}
.attendant-panel .reply-send:not(:disabled){
  cursor:pointer;
  opacity:1;
  color:#FFFFFF;
  background:linear-gradient(135deg,#8B5CF6,#6366F1);
  box-shadow:0 10px 26px rgba(99,102,241,.22);
}
.attendant-panel .reply-send:not(:disabled):hover{
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(99,102,241,.30);
  filter:brightness(1.04);
}
.attendant-panel .premium-reply-form textarea{
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  min-height:38px!important;
  height:38px;
  max-height:160px!important;
  resize:none!important;
  overflow-y:auto!important;
  border:0!important;
  border-radius:0!important;
  outline:none!important;
  background:transparent!important;
  color:#F3F4F6!important;
  padding:8px 6px 7px!important;
  font-size:15.5px!important;
  line-height:1.45!important;
  box-shadow:none!important;
}
.attendant-panel .premium-reply-form textarea::placeholder{color:#9CA3AF!important;opacity:.92}
.attendant-panel .premium-reply-form textarea:focus{box-shadow:none!important;border:0!important;background:transparent!important}
.attendant-panel .premium-reply-form textarea::-webkit-scrollbar{width:6px}
.attendant-panel .premium-reply-form textarea::-webkit-scrollbar-track{background:transparent}
.attendant-panel .premium-reply-form textarea::-webkit-scrollbar-thumb{background:rgba(148,163,184,.26);border-radius:999px}
@media(max-width:760px){
  .attendant-panel .reply-composer{gap:6px;padding:9px;border-radius:18px}
  .attendant-panel .reply-tool,.attendant-panel .reply-send{width:36px;height:36px;border-radius:12px}
  .attendant-panel .premium-reply-form{padding:12px!important}
}


/* V33.1 - Barra de envio profissional: ergonomia, feedback visual e ações contextuais */
.attendant-panel .premium-reply-form{
  padding:18px 22px 22px!important;
  background:linear-gradient(180deg,rgba(2,6,23,.08),rgba(17,24,39,.44))!important;
  border-top:1px solid rgba(148,163,184,.14)!important;
}
.attendant-panel .premium-reply-form::before{
  content:"";
  display:block;
  height:1px;
  margin:0 0 16px;
  background:linear-gradient(90deg,transparent,rgba(148,163,184,.18),transparent);
}
.attendant-panel .reply-composer{
  position:relative!important;
  min-height:68px!important;
  padding:13px 13px 13px 14px!important;
  gap:9px!important;
  align-items:flex-end!important;
  border:1px solid #4B5563!important;
  border-radius:20px!important;
  background:#1F2937!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 18px 46px rgba(0,0,0,.22)!important;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease!important;
}
.attendant-panel .reply-composer:hover{
  border-color:rgba(156,163,175,.68)!important;
  background:#202C3A!important;
}
.attendant-panel .reply-composer:focus-within{
  border-color:#8B5CF6!important;
  background:#202C3A!important;
  box-shadow:0 0 0 4px rgba(139,92,246,.12),0 18px 50px rgba(0,0,0,.28)!important;
}
.attendant-panel .reply-composer.is-typing{
  border-color:rgba(139,92,246,.76)!important;
}
.attendant-panel .reply-tool,
.attendant-panel .reply-send{
  width:40px!important;
  height:40px!important;
  border-radius:14px!important;
}
.attendant-panel .reply-tool{
  color:#9CA3AF!important;
  background:rgba(17,24,39,.34)!important;
  border:1px solid rgba(148,163,184,.10)!important;
}
.attendant-panel .reply-tool:hover{
  color:#F3F4F6!important;
  background:rgba(148,163,184,.12)!important;
  border-color:rgba(148,163,184,.18)!important;
}
.attendant-panel .reply-tool svg,
.attendant-panel .reply-send svg{
  width:20px!important;
  height:20px!important;
  stroke-width:2!important;
}
.attendant-panel .premium-reply-form textarea{
  min-height:42px!important;
  height:42px;
  max-height:168px!important;
  padding:10px 10px 8px!important;
  color:#F3F4F6!important;
  font-size:15.5px!important;
  line-height:1.45!important;
  caret-color:#8B5CF6!important;
}
.attendant-panel .premium-reply-form textarea::placeholder{
  color:#9CA3AF!important;
  opacity:1!important;
}
.attendant-panel .reply-send{
  background:rgba(15,23,42,.72)!important;
  color:#64748B!important;
  border:1px solid rgba(148,163,184,.10)!important;
  box-shadow:none!important;
  opacity:1!important;
}
.attendant-panel .reply-send:disabled{
  cursor:not-allowed!important;
  filter:none!important;
}
.attendant-panel .reply-send:not(:disabled){
  color:#fff!important;
  background:linear-gradient(135deg,#8B5CF6,#6366F1)!important;
  border-color:rgba(139,92,246,.48)!important;
  box-shadow:0 12px 28px rgba(99,102,241,.28)!important;
}
.attendant-panel .reply-send:not(:disabled):active{
  transform:translateY(0) scale(.98)!important;
}
.attendant-panel .premium-reply-form textarea::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
.attendant-panel .premium-reply-form textarea{scrollbar-width:none!important}
@media(max-width:760px){
  .attendant-panel .premium-reply-form{padding:14px!important}
  .attendant-panel .reply-composer{min-height:62px!important;padding:10px!important;border-radius:18px!important;gap:6px!important}
  .attendant-panel .reply-tool,.attendant-panel .reply-send{width:36px!important;height:36px!important;border-radius:12px!important}
  .attendant-panel .reply-tool[aria-label="Gravação de voz"]{display:none!important}
}

/* V33.2 - Links clicáveis seguros no chat público, atendente e histórico */
.chat-link{
  color:#93C5FD;
  text-decoration:none;
  font-weight:750;
  border-bottom:1px solid rgba(147,197,253,.42);
  overflow-wrap:anywhere;
  word-break:break-word;
  transition:color .18s ease,border-color .18s ease,background .18s ease;
}
.chat-link:hover{
  color:#BFDBFE;
  border-color:rgba(191,219,254,.72);
  background:rgba(59,130,246,.10);
}
.user-bubble .chat-link,
.msg-row.user .chat-link{
  color:#E0F2FE;
  border-color:rgba(224,242,254,.62);
}
.admin-msg .chat-link{
  color:#A5B4FC;
  border-color:rgba(165,180,252,.50);
}
.admin-msg.admin .chat-link{
  color:#A7F3D0;
  border-color:rgba(167,243,208,.52);
}

/* V33.3 - Ações reais do composer: anexo, emoji e microfone */
.attendant-panel .reply-composer{position:relative;}
.attendant-panel .reply-tool:disabled{opacity:.55;cursor:wait;}
.attendant-panel .reply-tool.is-busy svg{animation:replySpin .9s linear infinite;}
.attendant-panel .reply-composer.is-recording{border-color:rgba(239,68,68,.55)!important;box-shadow:0 0 0 4px rgba(239,68,68,.11),0 18px 42px rgba(0,0,0,.20)!important;}
.attendant-panel .reply-composer.is-recording [aria-label="Gravação de voz"]{background:rgba(239,68,68,.18);color:#FCA5A5;}
.attendant-panel .reply-floating-panel{position:absolute;left:12px;bottom:calc(100% + 10px);z-index:40;min-width:210px;padding:8px;border:1px solid rgba(148,163,184,.18);border-radius:16px;background:#0B1220;box-shadow:0 22px 60px rgba(0,0,0,.36);display:grid;gap:5px;}
.attendant-panel .reply-floating-panel button{border:0;border-radius:12px;background:transparent;color:#E5E7EB;min-height:38px;padding:9px 10px;display:flex;align-items:center;gap:9px;cursor:pointer;font:inherit;text-align:left;transition:background .16s ease,color .16s ease,transform .16s ease;}
.attendant-panel .reply-floating-panel button:hover{background:rgba(139,92,246,.14);color:#fff;transform:translateY(-1px);}
.attendant-panel .reply-floating-panel svg{width:17px;height:17px;color:#A78BFA;}
.attendant-panel .reply-floating-panel.emoji-panel{grid-template-columns:repeat(5,38px);min-width:auto;left:54px;}
.attendant-panel .reply-floating-panel.emoji-panel .emoji-choice{width:38px;height:38px;min-height:38px;display:grid;place-items:center;padding:0;font-size:20px;}
@keyframes replySpin{to{transform:rotate(360deg)}}

/* V33.4 - Respostas inteligentes: remove microfone e adiciona sugestões leves */
.attendant-panel .reply-tool[aria-label="Respostas rápidas"]{
  color:#C4B5FD!important;
  background:rgba(139,92,246,.10)!important;
  border-color:rgba(139,92,246,.18)!important;
}
.attendant-panel .reply-tool[aria-label="Respostas rápidas"]:hover{
  color:#fff!important;
  background:rgba(139,92,246,.20)!important;
  border-color:rgba(139,92,246,.35)!important;
}
.attendant-panel .quick-replies-panel{
  left:102px!important;
  min-width:min(520px,calc(100vw - 340px));
  max-width:620px;
  max-height:330px;
  overflow:auto;
  padding:10px!important;
}
.attendant-panel .quick-panel-title{
  display:flex;
  align-items:center;
  gap:8px;
  color:#C4B5FD;
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.08em;
  padding:7px 9px 9px;
  border-bottom:1px solid rgba(148,163,184,.12);
  margin-bottom:5px;
}
.attendant-panel .quick-panel-title svg{width:15px;height:15px;color:#A78BFA;}
.attendant-panel .quick-reply-choice{
  width:100%;
  min-height:42px!important;
  justify-content:flex-start;
  align-items:flex-start!important;
  line-height:1.35;
}
.attendant-panel .quick-reply-choice span{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.attendant-panel .quick-replies-panel::-webkit-scrollbar{width:6px}
.attendant-panel .quick-replies-panel::-webkit-scrollbar-track{background:transparent}
.attendant-panel .quick-replies-panel::-webkit-scrollbar-thumb{background:rgba(148,163,184,.28);border-radius:999px}
@media(max-width:760px){
  .attendant-panel .quick-replies-panel{left:8px!important;right:8px!important;min-width:0!important;max-width:none!important;}
}

/* V34: botões de ação compactos por ícone */
.soft-btn.icon-btn{width:38px;min-width:38px;height:38px;padding:0;justify-content:center;gap:0}
.soft-btn.icon-btn svg{width:18px;height:18px}
.attendant-panel .detail-actions .soft-btn.icon-btn{width:38px;min-width:38px;padding:0}
.history-panel .detail-actions{display:flex;align-items:center;gap:8px}
.history-panel .detail-actions form{margin:0}

/* V37 - Organização UX/UI: Equipe e Central de Conversas */
.team-panel-v37 .panel-title,
.chat-title-clean{
  align-items:flex-start!important;
  justify-content:flex-start!important;
  flex-direction:column!important;
  gap:6px!important;
  margin-bottom:18px!important;
}
.chat-title-clean .ops-mini-kpis{display:none!important;}
.attendant-panel .conversation-toolbar{display:none!important;}
.attendant-panel .conversation-list{
  padding-top:14px!important;
  gap:8px!important;
}
.attendant-panel .conversation-item{
  border:1px solid rgba(148,163,184,.10)!important;
  background:rgba(15,23,42,.68)!important;
  margin:0!important;
}
.attendant-panel .conversation-item:hover,
.attendant-panel .conversation-item.active{
  border-color:rgba(139,124,246,.35)!important;
  background:rgba(139,124,246,.12)!important;
}
.ux-team-manager{
  grid-template-columns:360px minmax(0,1fr)!important;
  align-items:start!important;
  gap:22px!important;
}
.ux-agent-form{
  position:sticky;
  top:18px;
  padding:22px!important;
  border:1px solid rgba(148,163,184,.14)!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.82),rgba(15,23,42,.58))!important;
}
.form-head-v37{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.form-head-v37 h3{margin:0!important;font-size:18px!important;}
.form-head-v37 p{margin:3px 0 0;color:var(--muted);font-size:12px;}
.form-icon-v37{
  width:42px;height:42px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(139,124,246,.16);color:#A78BFA;
}
.ux-agent-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr))!important;
  gap:14px!important;
}
.ux-agent-card{
  min-height:auto!important;
  padding:18px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.76),rgba(15,23,42,.48))!important;
  border:1px solid rgba(148,163,184,.13)!important;
}
.agent-top-v37{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;}
.ux-agent-card .agent-avatar{width:42px!important;height:42px!important;border-radius:15px!important;}
.ux-agent-card h3{font-size:17px!important;margin:0 0 6px!important;}
.ux-agent-card p{font-size:13px!important;margin:0 0 14px!important;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.agent-meta-v37{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:10px 0;border-top:1px solid rgba(148,163,184,.12);border-bottom:1px solid rgba(148,163,184,.12);
  color:var(--muted);font-size:12px;
}
.agent-meta-v37 b{color:var(--text);font-family:"JetBrains Mono",monospace;font-size:13px;}
.agent-actions-v37{display:flex;gap:8px;margin-top:14px;}
.agent-actions-v37 button{
  width:36px;height:36px;border:1px solid rgba(148,163,184,.14);border-radius:12px;
  background:rgba(255,255,255,.035);color:var(--muted);display:grid;place-items:center;cursor:pointer;
}
.agent-actions-v37 button:hover{color:#F8FAFC;background:rgba(139,124,246,.14);border-color:rgba(139,124,246,.28);}
.agent-actions-v37 svg{width:16px;height:16px;}
@media(max-width:1100px){
  .ux-team-manager{grid-template-columns:1fr!important;}
  .ux-agent-form{position:relative;top:auto;}
}

/* V38 fix: anexos no chat público */
.attachment-card{margin-top:10px;border:1px solid rgba(255,255,255,.12);border-radius:12px;overflow:hidden;background:rgba(255,255,255,.04)}
.attachment-card a{display:block;color:inherit;text-decoration:none;padding:10px;font-weight:700}
.attachment-card img{display:block;max-width:240px;max-height:180px;border-radius:10px;margin-bottom:8px;object-fit:cover}

/* V38 refinamento visual: menus enviados pelo atendente na index */
.admin-menu-options{
  gap:10px;
  margin-top:14px;
}
.admin-menu-options .admin-menu-choice{
  min-height:54px;
  padding:10px 14px;
  border-radius:15px;
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:12px;
  align-items:center;
}
.admin-menu-options .admin-menu-choice .option-number{
  width:28px;
  height:28px;
  font-size:12px;
  flex:0 0 28px;
}
.admin-menu-options .admin-menu-choice span:last-child{
  display:block;
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.25;
  font-weight:800;
}
.admin-menu-options .admin-menu-choice:after{
  content:'›';
  justify-self:end;
  grid-column:2;
  grid-row:1;
  color:rgba(167,243,208,.75);
  font-size:22px;
  line-height:1;
  margin-left:8px;
}
.admin-menu-options .admin-menu-choice span:last-child{
  padding-right:24px;
}
@media(max-width:520px){
  .admin-menu-options .admin-menu-choice{
    min-height:50px;
    padding:9px 12px;
    grid-template-columns:28px minmax(0,1fr);
    gap:10px;
  }
  .admin-menu-options .admin-menu-choice .option-number{
    width:26px;
    height:26px;
  }
}

/* V39 TESTE — correção visual definitiva dos menus na index (somente CSS) */
.bubble-options.admin-menu-options{
  display:flex!important;
  flex-direction:column!important;
  gap:10px!important;
  margin-top:14px!important;
  width:100%!important;
}
.bubble-options.admin-menu-options .bubble-option.admin-menu-choice{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:56px!important;
  box-sizing:border-box!important;
  padding:11px 42px 11px 14px!important;
  gap:12px!important;
  border-radius:16px!important;
  grid-template-columns:none!important;
}
.bubble-options.admin-menu-options .bubble-option.admin-menu-choice .option-number{
  flex:0 0 28px!important;
  width:28px!important;
  height:28px!important;
  margin:0!important;
  font-size:12px!important;
}
.bubble-options.admin-menu-options .bubble-option.admin-menu-choice span:last-child{
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  display:block!important;
  padding:0!important;
  font-size:14px!important;
  line-height:1.25!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.bubble-options.admin-menu-options .bubble-option.admin-menu-choice:after{
  content:'›'!important;
  position:absolute!important;
  right:15px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  grid-column:auto!important;
  grid-row:auto!important;
  margin:0!important;
  color:rgba(167,243,208,.78)!important;
  font-size:24px!important;
  line-height:1!important;
}
.bubble-options.admin-menu-options .bubble-option.admin-menu-choice:hover:after{
  transform:translate(2px,-50%)!important;
}
@media(max-width:520px){
  .bubble-options.admin-menu-options .bubble-option.admin-menu-choice{
    min-height:52px!important;
    padding:10px 38px 10px 12px!important;
    gap:10px!important;
  }
  .bubble-options.admin-menu-options .bubble-option.admin-menu-choice .option-number{
    flex-basis:26px!important;
    width:26px!important;
    height:26px!important;
  }
  .bubble-options.admin-menu-options .bubble-option.admin-menu-choice span:last-child{
    font-size:13px!important;
  }
}

/* V40 - Gerenciador de Menus Principais */
.responses-builder-v40 .panel-title{align-items:center;gap:14px}
.responses-builder-v40 .new-menu-card{border:1px solid rgba(124,92,255,.26);background:rgba(124,92,255,.08);border-radius:16px;padding:16px;gap:14px}
.responses-builder-v40 .menu-actions-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 18px 14px;margin-top:-4px}
.responses-builder-v40 .mini-action{min-height:36px;padding:8px 11px;border-radius:10px;font-size:12px;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.responses-builder-v40 .danger-admin-btn{border:1px solid rgba(239,68,68,.28);background:rgba(239,68,68,.10);color:#FCA5A5;border-radius:10px;font-weight:800}
.responses-builder-v40 .danger-admin-btn:hover{background:rgba(239,68,68,.18);border-color:rgba(239,68,68,.45)}
.responses-builder-v40 .switch-line strong{min-height:43px;display:flex;align-items:center;padding:0 13px;border:1px solid rgba(148,163,184,.18);background:#0C1728;color:#8BE9C7;border-radius:10px}
.responses-builder-v40 .accordion-head{padding-bottom:12px}
.responses-builder-v40 .acc-text small{display:block}
.responses-builder-v40 .primary-admin-btn svg,
.responses-builder-v40 .soft-btn svg,
.responses-builder-v40 .danger-admin-btn svg{width:16px;height:16px;flex:none}
@media(max-width:720px){
  .responses-builder-v40 .panel-title{display:grid;align-items:stretch}
  .responses-builder-v40 .menu-actions-row{display:grid;grid-template-columns:1fr 1fr;padding:0 14px 14px}
  .responses-builder-v40 .mini-action{justify-content:center;width:100%}
}

/* V41 - Atendentes com modais SaaS */
.team-panel-v41{padding:26px!important;}
.team-title-v41{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;margin-bottom:18px!important;}
.team-title-v41 h2{font-size:20px!important;margin:0 0 6px!important;}
.agents-board-v41{border:1px solid rgba(148,163,184,.13);border-radius:22px;overflow:hidden;background:rgba(2,6,23,.26)}
.agents-toolbar-v41{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid rgba(148,163,184,.12);background:rgba(15,23,42,.52)}
.agents-toolbar-v41 strong{font-size:17px}.agents-toolbar-v41 span{color:var(--muted);font-size:13px}
.agents-list-v41{display:grid}.agent-row-v41{display:grid;grid-template-columns:minmax(240px,1.4fr) minmax(180px,.8fr) 100px auto;gap:16px;align-items:center;padding:16px 18px;border-bottom:1px solid rgba(148,163,184,.09)}
.agent-row-v41:last-child{border-bottom:0}.agent-row-v41:hover{background:rgba(139,124,246,.06)}
.agent-profile-v41{display:flex;align-items:center;gap:13px;min-width:0}.agent-initial-v41{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;flex:none;background:linear-gradient(135deg,rgba(59,130,246,.42),rgba(139,124,246,.35));color:#fff;font-weight:900}
.agent-profile-v41 h3{margin:0 0 4px;font-size:15px}.agent-profile-v41 p{margin:0;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-role-v41{display:grid;gap:3px;color:#CBD5E1}.agent-role-v41 small{font-family:"JetBrains Mono",monospace;color:var(--text);font-weight:800}
.agent-actions-v41{display:flex;justify-content:flex-end;gap:8px}.agent-actions-v41 form{margin:0}.agent-actions-v41 button{width:38px;height:38px;border:1px solid rgba(148,163,184,.14);border-radius:13px;background:rgba(255,255,255,.035);color:#AEBBD0;display:grid;place-items:center;cursor:pointer;transition:.16s ease}.agent-actions-v41 button:hover{color:#fff;background:rgba(139,124,246,.16);border-color:rgba(139,124,246,.34);transform:translateY(-1px)}.agent-actions-v41 button.danger:hover{color:#FCA5A5;background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.30)}.agent-actions-v41 svg{width:17px;height:17px}
.ct-modal-backdrop[hidden]{display:none!important}.ct-modal-backdrop{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:22px;background:rgba(2,6,23,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.ct-modal{position:relative;width:min(520px,100%);border:1px solid rgba(148,163,184,.18);border-radius:24px;background:linear-gradient(180deg,rgba(17,29,46,.98),rgba(8,14,24,.98));box-shadow:0 32px 100px rgba(0,0,0,.52);padding:24px;animation:modalPop .18s ease both}.ct-modal-wide{width:min(760px,100%)}.ct-modal-danger{border-color:rgba(239,68,68,.26)}
.ct-modal h3{margin:0 0 6px;font-size:22px;letter-spacing:-.03em}.ct-modal p{margin:0 0 20px;color:var(--muted)}.ct-modal-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border:1px solid rgba(148,163,184,.14);border-radius:13px;background:rgba(255,255,255,.035);color:#CBD5E1;display:grid;place-items:center;cursor:pointer}.ct-modal-close:hover{background:rgba(255,255,255,.08);color:#fff}.ct-modal-close svg{width:18px;height:18px}
.ct-modal-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ct-modal-form.single{grid-template-columns:1fr}.ct-modal-form label{display:grid;gap:8px;color:#CBD5E1;font-size:13px;font-weight:850}.ct-modal-form input,.ct-modal-form select{width:100%;height:48px;box-sizing:border-box;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:#0C1728;color:#F8FAFC;padding:0 14px;outline:none}.ct-modal-form input:focus,.ct-modal-form select:focus{border-color:rgba(139,124,246,.48);box-shadow:0 0 0 4px rgba(139,124,246,.10)}
.switch-v41{display:flex!important;align-items:center!important;gap:12px!important;padding:12px 0}.switch-v41 input{display:none}.switch-v41 span{width:48px;height:28px;border-radius:999px;background:rgba(148,163,184,.20);position:relative;border:1px solid rgba(148,163,184,.18);transition:.16s}.switch-v41 span:after{content:"";position:absolute;top:4px;left:4px;width:18px;height:18px;border-radius:50%;background:#E2E8F0;transition:.16s}.switch-v41 input:checked+span{background:rgba(139,124,246,.72);border-color:rgba(139,124,246,.75)}.switch-v41 input:checked+span:after{left:24px}.switch-v41 b{font-size:14px;color:#E2E8F0}
.ct-modal-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;margin-top:4px;padding-top:16px;border-top:1px solid rgba(148,163,184,.12)}.danger-btn-v41{border:1px solid rgba(239,68,68,.36);border-radius:15px;background:rgba(239,68,68,.12);color:#FCA5A5;font-weight:900;padding:13px 16px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}.danger-btn-v41:hover{background:rgba(239,68,68,.18);color:#fff}
@media(max-width:900px){.team-title-v41{align-items:flex-start!important;flex-direction:column!important}.agent-row-v41{grid-template-columns:1fr;gap:10px}.agent-actions-v41{justify-content:flex-start}.ct-modal-form{grid-template-columns:1fr}.ct-modal{padding:20px}}

/* V42 - Histórico: UX limpo com lista compacta, visualização ampla e modais */
.history-panel-v42{padding:26px!important;}
.history-head-v42{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px;}
.history-head-v42 h2{margin:8px 0 6px;font-size:26px;letter-spacing:-.04em;}
.history-filter-v42{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.search-box-v42{height:42px;min-width:280px;border:1px solid rgba(148,163,184,.16);border-radius:14px;background:rgba(15,23,42,.62);display:flex;align-items:center;gap:10px;padding:0 12px;}
.search-box-v42 svg{width:17px;height:17px;color:#94A3B8;flex:none;}
.search-box-v42 input{border:0;outline:0;background:transparent;color:#F8FAFC;width:100%;font:inherit;font-size:14px;}
.search-box-v42 input::placeholder{color:#64748B;}
.history-shell-v42{display:grid;grid-template-columns:minmax(260px,28%) minmax(0,1fr);gap:18px;min-height:calc(100vh - 230px);}
.history-list-v42,.history-view-v42{border:1px solid rgba(148,163,184,.13);border-radius:24px;background:rgba(8,14,24,.44);overflow:hidden;}
.history-list-v42{padding:12px;max-height:calc(100vh - 230px);overflow:auto;}
.history-list-top-v42{display:flex;align-items:center;justify-content:space-between;padding:5px 4px 12px;color:#CBD5E1;}
.history-list-top-v42 strong{font-size:13px;}.history-list-top-v42 small{font-size:12px;color:#94A3B8;}
.history-mini-card-v42{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:10px;align-items:center;text-decoration:none;color:#F8FAFC;padding:10px;border:1px solid transparent;border-radius:16px;background:rgba(15,23,42,.52);margin-bottom:8px;transition:.16s ease;}
.history-mini-card-v42:hover,.history-mini-card-v42.active{background:rgba(139,124,246,.12);border-color:rgba(139,124,246,.30);}
.history-avatar-v42{width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,rgba(16,185,129,.24),rgba(139,124,246,.26));border:1px solid rgba(148,163,184,.12);color:#D1FAE5;font-weight:950;font-size:12px;letter-spacing:.02em;flex:none;}
.history-avatar-v42.big{width:48px;height:48px;border-radius:17px;font-size:14px;}
.history-mini-main-v42{min-width:0;display:grid;gap:3px;}
.history-mini-main-v42 strong{font-size:13px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.history-mini-main-v42 span{font-size:12px;color:#94A3B8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.history-mini-card-v42 time{font-size:11px;color:#7C8DA3;align-self:start;padding-top:2px;white-space:nowrap;}
.history-view-v42{display:flex;flex-direction:column;min-width:0;}
.history-view-head-v42{min-height:72px;padding:16px 18px;border-bottom:1px solid rgba(148,163,184,.12);display:flex;align-items:center;justify-content:space-between;gap:14px;background:rgba(15,23,42,.34);}
.history-title-v42{display:flex;align-items:center;gap:12px;min-width:0;}
.history-title-v42 h3{margin:0 0 3px;font-size:21px;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.history-title-v42 p{margin:0;color:#94A3B8;font-size:13px;}
.history-meta-v42{display:flex;gap:8px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid rgba(148,163,184,.10);background:rgba(2,6,23,.22);}
.history-meta-v42 span{display:inline-flex;align-items:center;gap:7px;min-height:30px;padding:6px 10px;border:1px solid rgba(148,163,184,.13);border-radius:999px;background:rgba(255,255,255,.035);color:#CBD5E1;font-size:12px;font-weight:800;}
.history-meta-v42 svg{width:14px;height:14px;color:#8BE9C7;}
.history-note-v42{margin:14px 18px 0;padding:12px 14px;border:1px solid rgba(216,183,95,.22);border-radius:16px;background:rgba(216,183,95,.08);color:#EADDA8;display:flex;gap:10px;line-height:1.45;}
.history-note-v42 svg{width:18px;height:18px;flex:none;color:#F7D77D;}
.history-window-v42{flex:1;min-height:520px;max-height:none!important;padding:22px 24px!important;overflow:auto;}
.history-footer-v42{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px;border-top:1px solid rgba(148,163,184,.10);color:#7C8DA3;font-size:11px;background:rgba(2,6,23,.22);}
.ct-modal-form .full{grid-column:1/-1;}
.ct-modal-form textarea{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.18);border-radius:14px;background:#0C1728;color:#F8FAFC;padding:12px 14px;outline:none;resize:vertical;font:inherit;line-height:1.45;}
.ct-modal-form textarea:focus{border-color:rgba(139,124,246,.48);box-shadow:0 0 0 4px rgba(139,124,246,.10);}
@media(max-width:1120px){.history-head-v42{align-items:flex-start;flex-direction:column}.history-shell-v42{grid-template-columns:1fr;min-height:auto}.history-list-v42{max-height:360px}.history-window-v42{min-height:420px}.search-box-v42{min-width:min(100%,320px)}}
@media(max-width:620px){.history-panel-v42{padding:18px!important}.history-filter-v42,.history-filter-v42 .soft-btn,.search-box-v42{width:100%;min-width:0}.history-view-head-v42{align-items:flex-start;flex-direction:column}.history-title-v42 h3{white-space:normal}.history-meta-v42{padding:10px 14px}.history-window-v42{padding:16px!important;min-height:360px}.history-footer-v42{align-items:flex-start;flex-direction:column}.ct-modal-form{grid-template-columns:1fr!important}}
@media print{.history-panel-v42{padding:0!important}.history-head-v42,.history-list-v42,.history-meta-v42,.history-note-v42,.history-footer-v42{display:none!important}.history-shell-v42{display:block!important}.history-view-v42{border:0!important;background:#fff!important}.history-window-v42{min-height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important}.print-only{display:block!important;color:#111!important}}

/* V44 — Cards reais no chat do cliente para ramificações automáticas */
.branch-content-card{
  display:block;
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(16,185,129,.22);
  background:linear-gradient(180deg,rgba(16,185,129,.10),rgba(255,255,255,.035));
  border-radius:16px;
  padding:14px 15px;
  margin:2px 0 10px;
}
.branch-card-title{display:flex;align-items:center;gap:9px;margin-bottom:10px;color:#F8FAFC;font-weight:900;}
.branch-card-title svg{width:18px;height:18px;color:#6EE7B7;flex:none;}
.branch-card-text{display:grid;gap:10px;color:#F4F4F5;}
.branch-card-text p{display:block;margin:0!important;line-height:1.55;white-space:normal;}
.branch-card-text a,.chat-link{color:#93C5FD;font-weight:850;text-decoration:none;word-break:break-word;}
.branch-type-pagamento{border-color:rgba(16,185,129,.34);background:linear-gradient(180deg,rgba(6,78,59,.34),rgba(15,23,42,.26));}
.branch-type-encerrar{border-color:rgba(148,163,184,.24);background:rgba(148,163,184,.08);}
.branch-type-atendente{border-color:rgba(124,92,255,.30);background:rgba(124,92,255,.10);}

/* V45 - Histórico: paginação, seleção em lote, filtro por data e rolagem interna */
.history-panel-v42{
  height:calc(100vh - 34px)!important;
  max-height:calc(100vh - 34px)!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.history-head-v42{flex:0 0 auto!important;}
.history-shell-v42{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}
.history-list-v42,
.history-view-v42{
  min-height:0!important;
  max-height:none!important;
}
.history-list-v42{
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.history-bulk-form-v45{
  min-height:0;
  height:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.history-view-v42{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
.history-window-v42{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:auto!important;
}
.history-list-top-v45{
  gap:10px;
  align-items:center;
}
.history-list-top-v45>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.select-all-v45,
.history-check-v45{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  color:rgba(226,232,240,.82);
  font-size:12px;
  cursor:pointer;
  user-select:none;
}
.select-all-v45 input,
.history-check-v45 input{
  width:16px;
  height:16px;
  accent-color:#8b5cf6;
}
.bulk-bar-v45{
  position:sticky;
  top:0;
  z-index:8;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border:1px solid rgba(34,197,94,.25);
  border-radius:16px;
  background:linear-gradient(135deg,rgba(5,150,105,.18),rgba(15,23,42,.94));
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.bulk-bar-v45[hidden]{display:none!important;}
.bulk-bar-v45 strong{font-size:12px;color:#d1fae5;white-space:nowrap;}
.primary-admin-btn.compact{min-height:34px;padding:8px 12px;font-size:12px;border-radius:12px;}
.history-row-v45{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:stretch;
  gap:6px;
}
.history-row-v45.active .history-mini-card-v42{
  border-color:rgba(139,92,246,.62);
  background:linear-gradient(135deg,rgba(99,102,241,.20),rgba(15,23,42,.72));
}
.history-check-v45{
  min-height:58px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:14px;
  background:rgba(15,23,42,.42);
}
.history-row-v45 .history-mini-card-v42{height:100%;}
.history-pagination-v45{
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid rgba(148,163,184,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:rgba(226,232,240,.72);
  font-size:12px;
}
.history-pagination-v45 .soft-btn.disabled{
  opacity:.38;
  pointer-events:none;
}
.history-filter-v45{
  flex-wrap:wrap;
  justify-content:flex-end;
}
.date-filter-v45{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid rgba(148,163,184,.14);
  border-radius:14px;
  background:rgba(15,23,42,.55);
  color:rgba(226,232,240,.78);
  font-size:12px;
  white-space:nowrap;
}
.date-filter-v45 input{
  border:0;
  outline:0;
  color:#e5e7eb;
  background:transparent;
  font:inherit;
  color-scheme:dark;
}
@media(max-width:1120px){
  .history-panel-v42{height:auto!important;max-height:none!important;overflow:visible!important;}
  .history-shell-v42{overflow:visible!important;}
  .history-list-v42{max-height:420px!important;overflow:auto!important;}
  .history-view-v42{overflow:visible!important;}
  .history-window-v42{min-height:420px!important;}
}

/* V46 - Histórico: ação real para seleção, tema dos campos e barras */
.history-panel-v42,
.history-list-v42,
.history-window-v42,
.ct-modal,
.admin-panel{
  scrollbar-width:thin;
  scrollbar-color:#7c5cff rgba(15,23,42,.62);
}
.history-panel-v42::-webkit-scrollbar,
.history-list-v42::-webkit-scrollbar,
.history-window-v42::-webkit-scrollbar,
.ct-modal::-webkit-scrollbar,
.admin-panel::-webkit-scrollbar{width:10px;height:10px;}
.history-panel-v42::-webkit-scrollbar-track,
.history-list-v42::-webkit-scrollbar-track,
.history-window-v42::-webkit-scrollbar-track,
.ct-modal::-webkit-scrollbar-track,
.admin-panel::-webkit-scrollbar-track{background:rgba(15,23,42,.70);border-radius:999px;}
.history-panel-v42::-webkit-scrollbar-thumb,
.history-list-v42::-webkit-scrollbar-thumb,
.history-window-v42::-webkit-scrollbar-thumb,
.ct-modal::-webkit-scrollbar-thumb,
.admin-panel::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#8b5cf6,#14b8a6);border:2px solid rgba(15,23,42,.70);border-radius:999px;}
.history-panel-v42::-webkit-scrollbar-thumb:hover,
.history-list-v42::-webkit-scrollbar-thumb:hover,
.history-window-v42::-webkit-scrollbar-thumb:hover,
.ct-modal::-webkit-scrollbar-thumb:hover,
.admin-panel::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#a78bfa,#2dd4bf);}

.history-panel-v42 input,
.history-panel-v42 select,
.history-panel-v42 textarea,
.ct-modal input,
.ct-modal select,
.ct-modal textarea{
  background:linear-gradient(180deg,rgba(15,23,42,.88),rgba(8,13,24,.92))!important;
  border:1px solid rgba(139,92,246,.24)!important;
  color:#e5e7eb!important;
  border-radius:14px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 0 0 0 rgba(139,92,246,0)!important;
  color-scheme:dark;
}
.history-panel-v42 input::placeholder,
.history-panel-v42 textarea::placeholder,
.ct-modal input::placeholder,
.ct-modal textarea::placeholder{color:rgba(148,163,184,.78)!important;}
.history-panel-v42 input:focus,
.history-panel-v42 select:focus,
.history-panel-v42 textarea:focus,
.ct-modal input:focus,
.ct-modal select:focus,
.ct-modal textarea:focus{
  outline:0!important;
  border-color:rgba(45,212,191,.62)!important;
  box-shadow:0 0 0 3px rgba(45,212,191,.12),0 12px 28px rgba(0,0,0,.18)!important;
}
.history-panel-v42 select,
.ct-modal select{
  appearance:none;
  background-image:linear-gradient(180deg,rgba(15,23,42,.88),rgba(8,13,24,.92)),linear-gradient(45deg,transparent 50%,#8bdbcc 50%),linear-gradient(135deg,#8bdbcc 50%,transparent 50%)!important;
  background-position:0 0,calc(100% - 18px) 50%,calc(100% - 12px) 50%!important;
  background-size:100% 100%,6px 6px,6px 6px!important;
  background-repeat:no-repeat!important;
  padding-right:36px!important;
}
.history-panel-v42 input[type="checkbox"]{
  appearance:none;
  width:17px!important;
  height:17px!important;
  padding:0!important;
  border-radius:6px!important;
  display:inline-grid;
  place-content:center;
  background:rgba(15,23,42,.82)!important;
  border:1px solid rgba(139,92,246,.42)!important;
  cursor:pointer;
}
.history-panel-v42 input[type="checkbox"]::before{
  content:"";
  width:9px;
  height:9px;
  transform:scale(0);
  transition:.14s ease;
  border-radius:3px;
  background:linear-gradient(135deg,#22c55e,#2dd4bf);
  box-shadow:0 0 14px rgba(45,212,191,.45);
}
.history-panel-v42 input[type="checkbox"]:checked::before{transform:scale(1);}
.history-panel-v42 input[type="checkbox"]:indeterminate::before{transform:scale(1);height:3px;border-radius:999px;}

.bulk-bar-v45{border-color:rgba(45,212,191,.30)!important;background:linear-gradient(135deg,rgba(20,184,166,.18),rgba(124,92,255,.14),rgba(15,23,42,.96))!important;}
.bulk-actions-v46{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
.danger-btn-v41.compact{min-height:34px;padding:8px 12px;font-size:12px;border-radius:12px;display:inline-flex;align-items:center;gap:7px;}
.history-check-v45{border-color:rgba(139,92,246,.20)!important;background:linear-gradient(180deg,rgba(30,41,59,.52),rgba(15,23,42,.62))!important;}
.history-filter-v45 .search-box-v42,
.date-filter-v45{border-color:rgba(139,92,246,.22)!important;background:linear-gradient(180deg,rgba(15,23,42,.72),rgba(8,13,24,.80))!important;}
.date-filter-v45 input{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:8px!important;}
.ct-modal-form label{color:rgba(226,232,240,.86)!important;}
@media(max-width:720px){.bulk-bar-v45{align-items:flex-start;flex-direction:column}.bulk-actions-v46{width:100%;justify-content:stretch}.bulk-actions-v46 button{flex:1 1 auto;justify-content:center}}


/* V47 - Correção pontual: alerta vermelho pulsante e rolagem automática do atendimento */
@keyframes chattopWaitingPulse{
  0%{box-shadow:0 0 0 0 rgba(239,68,68,.52);border-color:rgba(239,68,68,.48);}
  55%{box-shadow:0 0 0 7px rgba(239,68,68,.00);border-color:rgba(248,113,113,.82);}
  100%{box-shadow:0 0 0 0 rgba(239,68,68,.00);border-color:rgba(239,68,68,.48);}
}
@keyframes chattopAvatarPulse{
  0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 rgba(248,113,113,0));}
  50%{transform:scale(1.06);filter:drop-shadow(0 0 8px rgba(248,113,113,.75));}
}
.attendant-panel .conversation-item.needs-human{
  border:1px solid rgba(239,68,68,.56)!important;
  background:linear-gradient(135deg,rgba(239,68,68,.16),rgba(15,23,42,.72))!important;
  animation:chattopWaitingPulse 1.35s ease-in-out infinite!important;
}
.attendant-panel .conversation-item.needs-human.active{
  border-color:rgba(248,113,113,.95)!important;
  background:linear-gradient(135deg,rgba(239,68,68,.22),rgba(88,28,28,.22))!important;
}
.attendant-panel .conversation-item.needs-human .conv-avatar{
  background:rgba(239,68,68,.18)!important;
  color:#fecaca!important;
  border:1px solid rgba(248,113,113,.35)!important;
  animation:chattopAvatarPulse 1.35s ease-in-out infinite!important;
}
.attendant-panel .conversation-item.needs-human .conv-main strong{color:#fecaca!important;}
.attendant-panel .conversation-item:not(.needs-human) .conv-avatar{animation:none!important;}
.attendant-panel .conv-avatar{
  display:grid!important;
  place-items:center!important;
  flex:0 0 auto!important;
}
.attendant-panel .conv-avatar svg{
  display:block!important;
  margin:auto!important;
  stroke-width:2.2!important;
}
.attendant-panel .admin-chat-window{
  scroll-behavior:smooth!important;
}

/* V48 - ajuste pontual: pulso vermelho até assumir + ícone centralizado */
.attendant-panel .conversation-item.needs-human{
  border-color:rgba(239,68,68,.75)!important;
  background:linear-gradient(135deg,rgba(239,68,68,.20),rgba(15,23,42,.78))!important;
  animation:chattopWaitingPulse 1.25s ease-in-out infinite!important;
}
.attendant-panel .conversation-item.needs-human .conv-avatar{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  min-height:34px!important;
  padding:0!important;
  line-height:0!important;
  text-align:center!important;
  background:rgba(239,68,68,.20)!important;
  color:#fecaca!important;
  border:1px solid rgba(248,113,113,.48)!important;
  animation:chattopAvatarPulse 1.25s ease-in-out infinite!important;
}
.attendant-panel .conversation-item .conv-avatar svg,
.attendant-panel .conversation-item .conv-avatar i,
.attendant-panel .conversation-item .conv-avatar [data-lucide]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  display:block!important;
  margin:0!important;
  position:static!important;
  transform:none!important;
}
.attendant-panel .conversation-item:not(.needs-human) .conv-avatar{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  line-height:0!important;
}
