:root {
  --bg: #faf9f5;            /* fundo principal (creme claro) */
  --sidebar-bg: #f0eee6;    /* sidebar (cinza quente) */
  --surface: #ffffff;
  --user-bubble: #efece3;
  --border: #e9e5da;
  --border-strong: #ddd8ca;
  --text: #2b2a26;
  --muted: #74716a;
  --accent: #d52b33;        /* vermelho Futura */
  --accent-2: #b71f26;
  --accent-soft: #fbeceb;
  --ok: #15803d;
  --danger: #c0392b;
  --thread-width: 744px;
  --sidebar-w: 268px;
  --shadow-sm: 0 1px 2px rgba(40, 30, 20, .05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.layout { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }

/* Logos (imagem) */
.brand-logo { height: 30px; width: auto; display: block; }
.welcome-logo { height: 64px; width: auto; display: inline-block; margin-bottom: 22px; }

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-w); flex: none;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 14px 12px;
}
.sidebar-head { padding: 8px 8px 16px; }
.new-chat {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); padding: 11px 13px; border-radius: 12px;
  cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit;
  box-shadow: var(--shadow-sm); transition: border-color .15s, background .15s;
}
.new-chat:hover { border-color: var(--accent); }
.new-chat svg { width: 17px; height: 17px; color: var(--accent); flex: none; }

/* Lista de conversas (sessão) */
.conv-list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-top: 16px; padding-right: 2px; }
.conv-item {
  display: block; width: 100%; text-align: left;
  background: transparent; border: none; color: var(--text);
  padding: 9px 11px; border-radius: 9px; cursor: pointer;
  font-size: 13.5px; font-family: inherit; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s;
}
.conv-item:hover { background: var(--surface); }
.conv-item.active { background: var(--surface); font-weight: 600; box-shadow: var(--shadow-sm); }
.conv-list::-webkit-scrollbar { width: 7px; }
.conv-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.sidebar-foot { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 2px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  background: transparent; border: none; color: var(--muted);
  padding: 9px 9px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-family: inherit; text-align: left;
  transition: background .15s, color .15s;
}
.side-link:hover { background: var(--surface); color: var(--text); }
.side-link svg { width: 17px; height: 17px; flex: none; }
.side-sub { font-size: 11px; color: var(--muted); padding: 6px 9px 2px; line-height: 1.4; }

.backdrop { display: none; }

/* ===== Main ===== */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.main-top {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; min-height: 56px;
}
.top-spacer { flex: 1; }
.icon-btn {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn svg { width: 20px; height: 20px; }
.model-pill {
  font-size: 13px; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 20px;
}

/* ===== Thread ===== */
.chat { flex: 1; overflow-y: auto; padding: 0 16px; }
.thread {
  max-width: var(--thread-width); margin: 0 auto;
  padding: 10px 0 48px; min-height: 100%;
  display: flex; flex-direction: column; gap: 28px;
}

/* Welcome */
.welcome { margin: auto 0; text-align: center; padding: 24px 0; }
.welcome h2 { font-size: 27px; font-weight: 650; letter-spacing: -.5px; margin-bottom: 12px; }
.welcome p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; line-height: 1.6; font-size: 14.5px; }
.examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; margin: 0 auto; }
.chip {
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); padding: 13px 15px; border-radius: 14px;
  cursor: pointer; font-size: 13.5px; text-align: left; line-height: 1.45;
  box-shadow: var(--shadow-sm); transition: border-color .15s, transform .1s;
}
.chip:hover { border-color: var(--accent); }
.chip:active { transform: translateY(1px); }

/* Chips contextuais (acima do campo): tela provável (confirmar/rejeitar) ou follow-up de estado.
   Reaproveita .chip mas em formato PILL compacto e horizontal (sobrescreve o bloco do welcome). */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 2px 8px; }
.chips.hidden { display: none; }
.chips .chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; line-height: 1.2;
  text-align: center; white-space: nowrap; box-shadow: none;
}
.chips .chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chips .chip-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips .chip-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* Mensagens */
.msg { display: flex; gap: 14px; max-width: 100%; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble {
  background: var(--user-bubble); border-radius: 20px; border-bottom-right-radius: 6px;
  padding: 11px 17px; max-width: 80%;
  font-size: 15px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word;
}
.msg.bot { align-items: flex-start; }
.msg.bot .avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: none; margin-top: 1px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; overflow: hidden;
}
.msg.bot .avatar img { width: 22px; height: 22px; object-fit: contain; }
.msg.bot .bubble {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow-sm);
  font-size: 15px; line-height: 1.7; white-space: pre-wrap; word-wrap: break-word;
}
.bubble code {
  background: rgba(0, 0, 0, .06); padding: 1px 6px; border-radius: 5px;
  font-family: "SF Mono", Consolas, monospace; font-size: 13px;
}
.bubble strong { font-weight: 650; }

/* Camada técnica — destaque para o analista de suporte */
.tech-note {
  margin-top: 14px; padding: 11px 14px;
  background: #f4f3ef; border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong); border-radius: 10px;
  font-size: 13.5px; line-height: 1.6; color: var(--muted); font-style: italic;
}
.tech-label {
  display: block; font-style: normal; font-weight: 700;
  font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.tech-note code { background: rgba(0, 0, 0, .06); font-style: normal; }

/* Ação de copiar */
.msg-actions { margin-top: 8px; display: flex; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 12px; padding: 4px 7px;
  border-radius: 7px; font-family: inherit; transition: color .15s, background .15s;
}
.copy-btn:hover { color: var(--text); background: var(--user-bubble); }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.copied { color: var(--ok); }

/* Digitando */
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }

/* Log de etapas do agente */
.activity { display: flex; flex-direction: column; gap: 3px; margin-bottom: 4px; }
.activity .step { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.activity .step .ok { color: var(--ok); font-weight: 700; }
.activity .step .elapsed { color: var(--muted); opacity: .75; }
.activity.done { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.activity.done:empty { display: none; }
/* cabeçalho do painel "o que o agente fez" (clica p/ abrir/fechar quando concluído) */
.activity-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.activity.done .activity-head { cursor: pointer; user-select: none; }
.activity.done .activity-head:hover { color: var(--text); }
.activity-head .ah-tog { margin-left: auto; opacity: .7; transition: transform .15s ease; }
.activity:not(.collapsed) .activity-head .ah-tog { transform: rotate(90deg); }
.activity-steps { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
.activity.collapsed .activity-steps { display: none; }
.activity.done .activity-steps { opacity: .7; }
.answer:empty { display: none; }
.status-line { color: var(--muted); font-size: 13px; }
.spin {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  border: 2px solid var(--border-strong); border-top-color: var(--accent);
  display: inline-block; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-banner {
  background: #fdeeec; border: 1px solid #f3c9c4; color: var(--danger);
  padding: 10px 14px; border-radius: 10px; font-size: 13px;
}

/* ===== Composer ===== */
.composer-wrap { padding: 0 16px 8px; }
.composer {
  max-width: var(--thread-width); margin: 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 26px; padding: 7px 7px 7px 18px;
  box-shadow: 0 2px 12px rgba(40, 30, 20, .05);
  transition: border-color .15s, box-shadow .15s;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea {
  flex: 1; resize: none; max-height: 200px; min-height: 24px;
  border: none; outline: none; background: transparent; color: var(--text);
  font-size: 15px; font-family: inherit; line-height: 1.5; padding: 8px 0;
}
.composer textarea::placeholder { color: var(--muted); }
.send-btn {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s, transform .1s;
}
.send-btn svg { width: 19px; height: 19px; }
.send-btn:hover { background: var(--accent-2); }
.send-btn:active { transform: translateY(1px); }
.send-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.send-btn:disabled { background: var(--border-strong); cursor: not-allowed; }
.hint { text-align: center; font-size: 11.5px; color: var(--muted); padding: 9px 0 calc(2px + env(safe-area-inset-bottom)); }

/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(30, 25, 20, .42); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal-overlay.hidden { display: none; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 440px; box-shadow: 0 24px 70px rgba(20, 15, 10, .25); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; font-weight: 650; }
.modal-body { padding: 18px; display: grid; gap: 16px; }
.modal-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); }
.config-row { display: flex; flex-direction: column; gap: 6px; }
.config-row label { font-size: 13px; font-weight: 600; }
.config-row small { font-size: 11px; color: var(--muted); line-height: 1.4; }
.config-row input, .config-row select {
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--text);
  padding: 10px 12px; border-radius: 10px; font-size: 14px; outline: none; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.config-row input:focus, .config-row select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prov-toggle { display: flex; gap: 8px; }
.prov-btn {
  flex: 1; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; font-family: inherit;
  background: var(--bg); border: 1px solid var(--border-strong); color: var(--muted); cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.prov-btn:hover { color: var(--text); }
.prov-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.prov-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.primary { background: var(--accent); color: #fff; border: none; padding: 10px 18px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; font-family: inherit; transition: background .15s; }
button.primary:hover { background: var(--accent-2); }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border-strong); padding: 10px 16px; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-family: inherit; transition: color .15s, background .15s; }
button.ghost:hover { color: var(--text); background: var(--bg); }

/* Scrollbar */
.chat::-webkit-scrollbar { width: 10px; }
.chat::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
.chat::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ===== Desktop: sidebar sempre aberta ===== */
@media (min-width: 769px) {
  #btnToggleSidebar { display: none; }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .sidebar { position: fixed; top: 0; left: 0; height: 100%; z-index: 40; transform: translateX(-100%); transition: transform .22s ease; }
  .layout.sidebar-open .sidebar { transform: none; box-shadow: 0 0 50px rgba(0, 0, 0, .25); }
  .layout.sidebar-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .examples { grid-template-columns: 1fr; }
  .msg.user .bubble { max-width: 88%; }
  .welcome h2 { font-size: 23px; }
  .composer-wrap { padding: 0 12px 8px; }
  .chat { padding: 0 12px; }
}

/* ===== Atendimento v2: barra de estado, modos, popup de pergunta, feedback ===== */
.atend-bar { display:flex; align-items:center; gap:10px; margin-left:12px; font-size:12px; color:#666; min-width:0; flex:1; }
.ab-item { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:40%; }
.ab-tela { font-weight:600; color:#555; }
.ab-tela.ok { color:#0a7d40; }
.ab-meter { width:90px; height:6px; border-radius:3px; background:#e8e6e1; overflow:hidden; flex:none; }
.ab-fill { display:block; height:100%; width:0%; background:#4f9cf9; border-radius:3px; transition:width .4s; }
.ab-fill.warn { background:#e8a23d; }
.ab-fill.danger { background:#d9534f; }
.ab-pct { white-space:nowrap; flex:none; }
.ab-btn { flex:none; background:transparent; border:1px solid #ccc; color:#555; font:inherit; font-size:11px; line-height:1; padding:3px 8px; border-radius:6px; cursor:pointer; opacity:.7; }
.ab-btn:hover { opacity:1; border-color:#999; background:#f3f3f3; }
@media (max-width:768px){ .atend-bar{ display:none; } }

/* tela ancorada — pílula colada ao input (substitui a barra do topo) */
.atend-pill { display:flex; align-items:center; gap:8px; max-width:760px; margin:0 auto 8px; padding:6px 14px;
  background:var(--surface); border:1px solid var(--border-strong); border-radius:999px;
  font-size:12px; color:var(--muted); box-shadow:var(--shadow-sm); }
.atend-pill .ap-tela { font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:55%; }
.atend-pill .ap-tela.ok { color:var(--ok); }
.atend-pill .ap-estado { color:var(--muted); white-space:nowrap; }
.atend-pill .ap-spacer { flex:1; }
.atend-pill .ap-btn { flex:none; background:transparent; border:1px solid var(--border-strong); color:var(--muted);
  font:inherit; font-size:11px; line-height:1; padding:4px 11px; border-radius:999px; cursor:pointer; }
.atend-pill .ap-btn:hover { color:var(--text); border-color:var(--muted); background:var(--bg); }
.atend-pill .ab-meter, .atend-pill .ab-pct { display:none; }   /* medidor de contexto não usado no agente novo */

.modes { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin:18px 0 6px; }
.mode-card { display:flex; flex-direction:column; gap:4px; align-items:flex-start; text-align:left;
  padding:14px 16px; border:1px solid #e2ded7; border-radius:12px; background:#fff; cursor:pointer;
  width:200px; transition:border-color .15s, box-shadow .15s; }
.mode-card:hover { border-color:#4f9cf9; box-shadow:0 2px 10px rgba(79,156,249,.12); }
.mode-card.selected { border-color:#4f9cf9; background:#f3f8ff; }
.mode-card strong { font-size:14px; color:#333; }
.mode-card span { font-size:12px; color:#888; }

.modal.ask { max-width:520px; }
.ask-opts { display:flex; flex-direction:column; gap:8px; }
.ask-opt { display:flex; flex-direction:column; gap:2px; align-items:flex-start; text-align:left;
  padding:12px 14px; border:1px solid #e2ded7; border-radius:10px; background:#fff; cursor:pointer;
  transition:border-color .15s, background .15s; width:100%; }
.ask-opt:hover { border-color:#4f9cf9; background:#f3f8ff; }
.ask-opt strong { font-size:14px; color:#333; }
.ask-opt span { font-size:12px; color:#888; }
.ask-free { display:flex; gap:8px; margin-top:12px; }
.ask-free input { flex:1; padding:10px 12px; border:1px solid #e2ded7; border-radius:10px; font-size:14px; }
.reopen-ask { margin-top:8px; padding:6px 12px; border:1px solid #4f9cf9; color:#4f9cf9; background:#fff;
  border-radius:8px; cursor:pointer; font-size:13px; display:block; }
.reopen-ask:hover { background:#f3f8ff; }

.fb-btn { border:1px solid transparent; background:none; cursor:pointer; font-size:14px; padding:4px 6px;
  border-radius:8px; opacity:.55; transition:opacity .15s, border-color .15s; }
.fb-btn:hover { opacity:1; }
.fb-btn.voted { opacity:1; border-color:#4f9cf9; background:#f3f8ff; }

/* ===== Componente rico: lista de perfis / onde atua ===== */
.rico { font-size:14px; }
.rico-head { font-size:15px; margin-bottom:10px; }
.rico-head code, .pr-sub code { background:#f4f1ec; padding:1px 6px; border-radius:6px; font-size:12px; }
.rico-link { color:#2f7fd6; text-decoration:none; font-size:12px; white-space:nowrap; }
.rico-link:hover { text-decoration:underline; }
.badge { display:inline-block; font-size:10px; font-weight:700; letter-spacing:.4px; padding:2px 7px; border-radius:999px; background:#eee; color:#666; vertical-align:1px; }
.badge.emp { background:#fdeede; color:#b4690e; }
.badge.usu { background:#e3f0fd; color:#2563ab; }
.gating { border:1px solid #f0d9a8; background:#fdf6e7; border-radius:10px; padding:10px 12px; margin:10px 0; }
.gating-title { font-weight:700; font-size:13px; color:#9a6b16; margin-bottom:6px; }
.gating-row { font-size:13px; padding:3px 0; }
.rico-filter input { width:100%; padding:8px 12px; border:1px solid #e2ded7; border-radius:10px; font-size:13px; margin:8px 0 4px; }
.rico-grupo { margin-top:10px; }
.rg-title { font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.5px; color:#888; margin:10px 0 4px; }
.perfil-row { padding:8px 10px; border:1px solid #eee9e2; border-radius:10px; margin:6px 0; background:#fff; }
.perfil-row .pr-top { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.perfil-row .pr-top strong { font-size:13.5px; }
.perfil-row .pr-sub { font-size:12px; color:#777; margin-top:3px; line-height:1.5; }
.cod { color:#9a8c78; }
.rico-foot { margin-top:12px; font-size:13px; color:#666; border-top:1px dashed #e2ded7; padding-top:8px; }

/* ===== Painel de pergunta ancorado (estilo claude.ai) + badge de config ===== */
.ask-panel { max-width:760px; margin:0 auto 10px; padding:14px 16px; background:#fff;
  border:1px solid #e2ded7; border-radius:14px; box-shadow:0 -2px 18px rgba(0,0,0,.06);
  animation:askUp .18s ease-out; }
@keyframes askUp { from { transform:translateY(8px); opacity:0; } to { transform:none; opacity:1; } }
.ask-panel .ask-q { font-weight:700; font-size:14px; margin-bottom:10px; color:#333; }
.ask-panel .ask-opts { display:flex; flex-direction:column; gap:6px; max-height:260px; overflow-y:auto; }
.ask-panel .ask-hint { font-size:12px; color:#999; margin-top:8px; }
.badge.cfg { background:#efe7fb; color:#6b3fb5; }

/* ===== Home v3 ===== */
.welcome { display:flex; flex-direction:column; align-items:center; gap:6px; padding:48px 16px 24px; }
.welcome-logo { height:44px; margin-bottom:10px; }
.welcome h2 { font-size:26px; margin:0; }
.welcome-sub { max-width:560px; text-align:center; color:#888; font-size:14px; line-height:1.55; margin:4px 0 18px; }
.welcome-dica { color:#aaa; font-size:12.5px; margin-top:14px; }
.modes { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; width:100%; max-width:720px; margin:0; }
@media (max-width:680px){ .modes{ grid-template-columns:1fr; } }
.mode-card { display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px;
  padding:20px 14px 16px; border:1px solid #e6e2da; border-radius:14px; background:#fff; cursor:pointer; width:auto;
  transition:transform .12s, border-color .15s, box-shadow .15s; }
.mode-card:hover { transform:translateY(-2px); border-color:#4f9cf9; box-shadow:0 6px 18px rgba(79,156,249,.14); }
.mode-card.selected { border-color:#4f9cf9; background:#f3f8ff; box-shadow:inset 0 0 0 1px #4f9cf9; }
.mode-card .mc-ico { font-size:24px; line-height:1; }
.mode-card strong { font-size:14.5px; color:#333; }
.mode-card span { font-size:12.5px; color:#909090; line-height:1.4; }
/* itens desabilitados na fase SEM IA (modos 3/4 e Configurações) */
.mode-card.disabled, .mode-card[disabled] { opacity:.45; cursor:not-allowed; filter:grayscale(1); }
.mode-card.disabled:hover, .mode-card[disabled]:hover { transform:none; border-color:#e6e2da; box-shadow:none; }
.side-link.disabled, .side-link[disabled] { opacity:.45; cursor:not-allowed; pointer-events:none; }

/* ===== Detalhe inline do perfil (expansão na própria linha) ===== */
.perfil-row.expandable .pr-top { cursor:pointer; }
.perfil-row.expandable .pr-top:hover strong { color:#2f7fd6; }
.pr-caret { color:#b9b2a6; font-size:11px; width:12px; display:inline-block; }
.pr-det { margin-top:8px; border-top:1px dashed #eae5dd; padding-top:8px; }
.det-desc { font-size:13px; color:#444; line-height:1.55; margin-bottom:6px; }
.det-linha { font-size:12.5px; color:#666; margin:4px 0; }
.det-tela { font-size:12.5px; color:#555; padding:5px 8px; background:#faf8f5; border-radius:8px; margin:4px 0; }
.det-acesso { color:#999; }
.det-mais { margin-top:8px; }
.det-vazio { font-size:12.5px; color:#999; }

/* regra GENÉRICA que faltava: .hidden esconde QUALQUER elemento (o ask-panel dependia dela) */
.hidden { display: none !important; }
.det-rotulo { display:inline-block; min-width:96px; font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.4px; color:#9a8c78; margin-right:6px; }
.det-tela-sub { font-size:12px; color:#999; margin-top:2px; }
.det-fonte { font-size:10.5px; color:#b3a78f; background:#faf6ef; padding:1px 6px; border-radius:6px; margin-left:4px; }

/* trocar de tela no card + estado vazio do filtro */
.trocar-tela { margin-left:10px; font-size:12px; color:#2f7fd6; background:none; border:1px solid #cfe3fa; border-radius:8px; padding:3px 10px; cursor:pointer; }
.trocar-tela:hover { background:#f3f8ff; }
.rico-alts { margin:8px 0; display:flex; flex-direction:column; gap:6px; }
.rico-vazio { font-size:13px; color:#999; padding:14px 4px; text-align:center; }

/* abas colapsáveis no componente de perfis */
.rg-toggle { display:flex; align-items:center; gap:6px; width:100%; text-align:left; background:none; border:none; cursor:pointer; padding:8px 4px; }
.rg-toggle:hover { color:#2f7fd6; }
.rg-caret { color:#b9b2a6; font-size:11px; width:12px; }
.rg-body { padding-left:2px; }
.det-acesso.atual { color:#0a7d40; font-weight:600; }
