/* Torre de Controle NV3 — paleta Tacira (azul-petróleo sobre grafite) com o vermelho American Tower só como acento de marca */
:root {
  /* Padrão visual American Tower: vermelho ATC, preto e cinzas sobre branco */
  --atc-red: #d21241; --atc-red-dark: #a80e33; --atc-red-soft: #fbe7ec;
  --preto: #111214; --grafite: #2b2e33; --grafite-2: #3d4248;
  --bg: #f5f5f6; --card: #ffffff; --ink: #1b1c1f; --muted: #646a71; --line: #e3e4e7; --sunk: #f1f2f4;
  --ok: #1f8a57; --ok-soft: #e1f3ea; --warn: #b7791f; --warn-soft: #fbf0dc; --crit: #c0362c; --crit-soft: #fbe3e1; --info-soft: #eef0f3;
  --tacira-600: var(--atc-red); --tacira-700: var(--atc-red-dark); --tacira-500: var(--atc-red); --tacira-300: #f08aa0; --tacira-100: var(--atc-red-soft);
  --tacira-900: var(--preto); --tacira-800: var(--grafite);
  --radius: 10px; --shadow: 0 1px 2px rgba(17, 18, 20, .05), 0 4px 14px rgba(17, 18, 20, .06);
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); }
a { color: var(--tacira-600); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

/* ---------- login ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login .marca { background: radial-gradient(1200px 600px at -10% -20%, #1b4a5a 0%, var(--tacira-900) 55%), var(--tacira-900); color: #e6f1f5; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .marca::after { content: ''; position: absolute; right: -120px; bottom: -120px; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(92, 192, 224, .18); box-shadow: 0 0 0 60px rgba(92, 192, 224, .04), 0 0 0 120px rgba(92, 192, 224, .03); }
.logos { display: flex; align-items: center; gap: 22px; }
.logo-slot { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; }
.logo-slot img { max-height: 34px; }
.logo-tacira .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--tacira-500), var(--tacira-300)); display: grid; place-items: center; color: #08202a; font-weight: 800; }
.logo-atc .mark { width: 30px; height: 30px; border-radius: 6px; background: var(--atc-red); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.logos .sep { width: 1px; height: 28px; background: rgba(255, 255, 255, .25); }
.nv3 { position: relative; z-index: 1; }
.nv3 .selo { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: rgba(92, 192, 224, .12); color: var(--tacira-300); font-weight: 700; letter-spacing: .08em; font-size: 12px; text-transform: uppercase; }
.nv3 h1 { font-size: 40px; line-height: 1.1; margin: 18px 0 12px; color: #fff; }
.nv3 p { color: #a8c3cd; max-width: 46ch; font-size: 16px; line-height: 1.55; margin: 0; }
.nv3 ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: #cfe2e9; }
.nv3 li::before { content: '›'; color: var(--tacira-300); margin-right: 10px; font-weight: 800; }
.login .rodape { color: #6f8e99; font-size: 12px; position: relative; z-index: 1; }
.login .form { display: grid; place-items: center; padding: 40px; background: var(--bg); }
.login form { width: min(380px, 100%); background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 32px; }
.login form h2 { margin: 0 0 4px; font-size: 22px; }
.login form .sub { color: var(--muted); margin: 0 0 24px; }
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.campo { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.campo:focus { outline: 2px solid var(--tacira-300); border-color: var(--tacira-500); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; background: var(--tacira-600); color: #fff; font-weight: 600; }
.btn:hover { background: var(--tacira-700); }
.btn.sec { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.sec:hover { background: var(--sunk); }
.btn.perigo { background: #fff; color: var(--crit); border-color: #efc4c0; }
.btn.peq { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn.largo { width: 100%; margin-top: 22px; padding: 12px; }
.erro { color: var(--crit); background: var(--crit-soft); border-radius: 8px; padding: 8px 10px; margin-top: 12px; font-size: 13px; display: none; }

/* ---------- casca do app ---------- */
.app { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
.lateral { background: var(--tacira-900); color: #cfe0e6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.lateral .topo { padding: 18px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.lateral .topo .logos { gap: 12px; font-size: 12px; color: #fff; }
.lateral .topo .logos .mark { width: 24px; height: 24px; font-size: 11px; }
.lateral .nome-portal { margin-top: 12px; font-weight: 800; font-size: 16px; color: #fff; display: flex; align-items: center; gap: 8px; }
.lateral .nome-portal small { font-weight: 600; font-size: 10px; letter-spacing: .1em; color: var(--tacira-300); background: rgba(92, 192, 224, .12); padding: 2px 7px; border-radius: 999px; }
.menu { flex: 1; overflow-y: auto; padding: 10px 8px 16px; }
.mod { margin-bottom: 4px; }
.mod > button, .grp > button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; padding: 9px 10px; border-radius: 8px; text-align: left; }
.mod > button { font-weight: 700; color: #e8f2f5; }
.mod > button:hover, .grp > button:hover { background: rgba(255, 255, 255, .06); }
.mod > button .ic { width: 26px; height: 26px; border-radius: 7px; background: rgba(92, 192, 224, .12); display: grid; place-items: center; color: var(--tacira-300); flex: none; }
.seta { margin-left: auto; transition: transform .15s; opacity: .6; font-size: 11px; }
.aberto > button .seta { transform: rotate(90deg); }
.filhos { display: none; padding-left: 14px; margin: 2px 0 6px 13px; border-left: 1px solid rgba(255, 255, 255, .08); }
.aberto > .filhos { display: block; }
.grp > button { font-size: 13px; color: #b9cfd7; font-weight: 600; padding: 7px 10px; }
.item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #a9c0c8; text-decoration: none; font-size: 13px; }
.item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.item.ativo { background: var(--tacira-600); color: #fff; }
.selo-mini { font-size: 10px; padding: 1px 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); margin-left: auto; font-weight: 700; }
.lateral .usuario { border-top: 1px solid rgba(255, 255, 255, .07); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--tacira-600); color: #fff; display: grid; place-items: center; font-weight: 700; }
.usuario .quem { line-height: 1.25; }
.usuario .quem small { color: #7f9aa4; }
.usuario button { margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .15); color: #cfe0e6; border-radius: 8px; padding: 5px 9px; font-size: 12px; }

.principal { min-width: 0; }
.barra { display: flex; align-items: center; gap: 12px; padding: 18px 28px 6px; }
.barra h1 { font-size: 22px; margin: 0; }
.trilha { color: var(--muted); font-size: 13px; }
.barra .acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ao-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ok); background: var(--ok-soft); padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.ao-vivo::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(31, 138, 87, .2); }
.conteudo { padding: 14px 28px 40px; }

/* ---------- componentes ---------- */
.grade { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.dois { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.tres { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card .desc { color: var(--muted); font-size: 12.5px; margin: 0 0 12px; }
.kpi .rot { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.kpi .val { font-size: 30px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; }
.kpi .nota { color: var(--muted); font-size: 12px; }
.kpi.destaque { background: linear-gradient(135deg, var(--tacira-700), var(--tacira-600)); color: #fff; }
.kpi.destaque .rot, .kpi.destaque .nota { color: #cfe8f1; }
.kpi.alerta .val { color: var(--crit); }
.grafico { position: relative; height: 260px; }
.grafico.baixo { height: 200px; }
table.tab { width: 100%; border-collapse: collapse; font-size: 13px; }
.tab th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tab td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tab tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.crit { background: var(--crit-soft); color: var(--crit); } .tag.info { background: var(--info-soft); color: var(--tacira-600); }
.barra-h { height: 8px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.barra-h > i { display: block; height: 100%; background: var(--tacira-500); border-radius: 999px; }
.vazio { color: var(--muted); padding: 30px; text-align: center; }
.carregando { color: var(--muted); padding: 40px; text-align: center; }
.aviso { background: var(--info-soft); border-left: 3px solid var(--tacira-600); padding: 12px 14px; border-radius: 8px; color: var(--tacira-700); font-size: 13px; }

/* BI */
.bi-frame { width: 100%; height: calc(100vh - 150px); border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.bi-ger .cat { margin-bottom: 14px; }
.bi-ger .linha { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.bi-ger .linha:hover { background: var(--sunk); }
.bi-ger .linha .nome { font-weight: 600; }
.bi-ger .linha .url { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.bi-ger .linha .ops { margin-left: auto; display: flex; gap: 6px; opacity: .55; }
.bi-ger .linha:hover .ops { opacity: 1; }
.bi-ger .nivel2 { margin-left: 22px; border-left: 2px solid var(--line); padding-left: 8px; }
.bi-ger .nivel3 { margin-left: 22px; }

/* jornada */
.jornada .etapa { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; scroll-margin-top: 20px; }
.jornada .etapa h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.jornada .n { width: 30px; height: 30px; border-radius: 50%; background: var(--tacira-600); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.jornada ul.regras { margin: 10px 0 0; padding-left: 18px; color: #2b3d46; line-height: 1.5; }
.jornada .sist { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.wpp { background: #e9e2d6; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bolha { max-width: 88%; padding: 8px 11px; border-radius: 10px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); white-space: pre-wrap; }
.bolha.assistente { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bolha.cliente { background: #d8fdd2; align-self: flex-end; border-top-right-radius: 2px; }
.bolha.sistema { align-self: center; background: rgba(255, 255, 255, .6); color: #55636a; font-size: 12px; font-style: italic; max-width: 95%; text-align: center; }
.bolha .botoes { margin-top: 8px; border-top: 1px solid #eee; display: grid; }
.bolha .botoes span { color: #0a7cbd; text-align: center; padding: 6px 0; font-weight: 600; }
.bolha.lista b { display: block; margin-bottom: 6px; }
.bolha.lista div { padding: 6px 0; border-top: 1px solid #eee; color: #0a7cbd; }
.mapa-etapas { display: flex; flex-wrap: wrap; gap: 8px; }
.mapa-etapas a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 13px; font-weight: 600; }

/* admin */
.perm-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin-top: 8px; }
.perm-grade label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; background: var(--sunk); padding: 8px 10px; border-radius: 8px; }
.modal-fundo { position: fixed; inset: 0; background: rgba(11, 27, 34, .55); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--card); border-radius: 16px; width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal h3 { margin: 0 0 6px; }
.modal .rodape-modal { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--tacira-800); color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 60; }

@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; } .login .marca { display: none; }
  .app { grid-template-columns: 1fr; } .lateral { position: static; height: auto; }
  .dois { grid-template-columns: 1fr; } .jornada .etapa { grid-template-columns: 1fr; }
}

/* ===================== Tema American Tower (sobrepõe a base) ===================== */
body { font-family: var(--font); }
/* login */
.login .marca { background: linear-gradient(160deg, #1b1c1f 0%, #111214 60%, #2a0a14 100%); }
.login .marca::after { border-color: rgba(210, 18, 65, .22); box-shadow: 0 0 0 60px rgba(210, 18, 65, .05), 0 0 0 120px rgba(210, 18, 65, .03); }
.logo-atc-grande img { height: 64px; }
.nv3 .selo { background: rgba(210, 18, 65, .16); color: #ff8fa8; }
.nv3 li::before { color: var(--atc-red); }
.nv3 p { color: #b8bcc2; }
.powered { position: fixed; right: 24px; bottom: 18px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .04em; text-decoration: none; }
.powered img { height: 16px; opacity: .85; }
.powered:hover img { opacity: 1; }
/* menu lateral branco */
.lateral { background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.lateral .topo { border-bottom: 1px solid var(--line); padding: 20px 18px 16px; }
.lateral .topo .logo-atc-menu { height: 38px; display: block; }
.lateral .nome-portal { color: var(--ink); margin-top: 14px; font-size: 15px; }
.lateral .nome-portal small { color: var(--atc-red); background: var(--atc-red-soft); }
.mod > button { color: var(--ink); }
.mod > button:hover, .grp > button:hover { background: var(--sunk); }
.mod > button .ic { background: var(--atc-red-soft); color: var(--atc-red); }
.filhos { border-left-color: var(--line); }
.grp > button { color: var(--grafite-2); }
.item { color: var(--muted); }
.item:hover { background: var(--sunk); color: var(--ink); }
.item.ativo { background: var(--atc-red); color: #fff; }
.lateral .usuario { border-top: 1px solid var(--line); }
.usuario .quem small { color: var(--muted); }
.usuario button { border-color: var(--line); color: var(--ink); }
.avatar { background: var(--grafite); }
.btn { background: var(--atc-red); } .btn:hover { background: var(--atc-red-dark); }
.kpi.destaque { background: linear-gradient(135deg, #1b1c1f, #2b2e33); border-left: 4px solid var(--atc-red); }
.kpi.destaque .val { color: #fff; }
.ao-vivo { color: var(--ok); }
.barra h1 { font-weight: 700; }
.card h3 { font-weight: 700; }
/* barra de filtros */
.filtros { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; background: var(--card); box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.filtros .f { display: flex; flex-direction: column; gap: 4px; }
.filtros .f > span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filtros input, .filtros select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.filtros input[type=date] { width: 140px; }
.filtros .rapidos { display: flex; gap: 4px; }
.filtros .rapidos button { padding: 6px 9px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 12px; }
.filtros .rapidos button.ativo { background: var(--grafite); color: #fff; border-color: var(--grafite); }
.filtros .acoes-f { margin-left: auto; display: flex; gap: 8px; }
.multi { position: relative; }
.multi > button { padding: 7px 9px; border: 1px solid var(--line); background: #fff; border-radius: 8px; min-width: 210px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.multi .painel { display: none; position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 340px; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; }
.multi.aberto .painel { display: block; }
.multi .painel label { display: flex; gap: 8px; align-items: center; margin: 0; padding: 6px 8px; border-radius: 6px; font-weight: 500; }
.multi .painel label:hover { background: var(--sunk); }
.multi .painel small { color: var(--muted); margin-left: auto; }
.sugest { position: relative; }
.sugest .lista { display: none; position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: 320px; max-height: 280px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.sugest .lista div { padding: 8px 10px; cursor: pointer; } .sugest .lista div:hover { background: var(--sunk); }
.sugest .lista small { color: var(--muted); display: block; }
.chip-f { display: inline-flex; align-items: center; gap: 6px; background: var(--atc-red-soft); color: var(--atc-red-dark); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 999px; }
.chip-f button { border: 0; background: none; color: inherit; padding: 0; font-weight: 800; }
/* tabelas largas sem espremer */
.tab td.dt, .tab th.dt { white-space: nowrap; width: 1%; }
.tab td.tel { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tab td.msg { min-width: 320px; }
.tab tr.clicavel { cursor: pointer; } .tab tr.clicavel:hover td { background: var(--atc-red-soft); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 6px 10px; font-size: 12px; border-right: 1px solid var(--line); }
.seg button:last-child { border-right: 0; } .seg button.ativo { background: var(--grafite); color: #fff; }
.dir { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.dir.recebida { background: #e8f1fb; color: #1d5fa6; } .dir.enviada { background: var(--atc-red-soft); color: var(--atc-red-dark); }
/* detalhe do chamado */
.modal.largo { width: min(980px, 100%); }
.det-topo { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 14px 0; }
.det-topo div { background: var(--sunk); border-radius: 8px; padding: 9px 11px; }
.det-topo small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.linha-tempo { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.linha-tempo li { position: relative; padding: 0 0 14px 16px; }
.linha-tempo li::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--grafite-2); }
.linha-tempo li.status::before { background: var(--atc-red); }
.linha-tempo .q { font-size: 12px; color: var(--muted); }
.linha-tempo .t { white-space: pre-wrap; margin-top: 3px; font-size: 13px; }
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.abas button { border: 0; background: none; padding: 8px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.abas button.ativo { color: var(--atc-red); border-bottom-color: var(--atc-red); }

/* ---------- 07/10/2026: categorias no menu + editor de agendas ---------- */
.menu .cat-menu { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px 34px; }
.passo { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.passo > b { font-size: 13px; color: var(--ink); }
.passo select, .passo input:not([type=checkbox]) { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; max-width: 100%; }
.passo .tab td { vertical-align: middle; }
.tpl-previa { max-height: 96px; overflow: auto; font-size: 12.5px; line-height: 1.45; min-width: 260px; }
.kpi.drill { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.kpi.drill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(17, 18, 20, .12); }

/* ---------- Oráculo NOC ATC ---------- */
.oraculo { max-width: 1180px; }
.or-conversa { display: grid; gap: 18px; margin-bottom: 14px; }
.or-boas .or-sugestoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.or-sugestoes button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); text-align: left; }
.or-sugestoes button:hover { border-color: var(--atc-red); color: var(--atc-red); }
.or-pergunta { justify-self: end; max-width: 75%; background: var(--atc-red); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.or-resposta { border-left: 4px solid var(--atc-red); }
.or-texto { font-size: 14.5px; line-height: 1.6; }
.or-texto p { margin: 0 0 8px; } .or-texto ul { margin: 4px 0 8px 18px; padding: 0; } .or-texto li { margin: 3px 0; }
.or-passos div { font-size: 13px; color: var(--muted); padding: 2px 0; } .or-passos .atual { color: var(--atc-red); font-weight: 600; }
.or-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 4px; }
.or-res { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-top: 10px; background: #fff; }
.or-res summary { cursor: pointer; font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.or-res .or-down { margin-left: auto; display: inline-flex; gap: 6px; }
.or-tab { overflow: auto; max-height: 420px; margin-top: 8px; }
.or-entrada { position: sticky; bottom: 10px; display: flex; gap: 10px; align-items: flex-end; padding: 12px; box-shadow: 0 8px 26px rgba(17, 18, 20, .14); }
.or-entrada textarea { flex: 1; resize: vertical; min-height: 44px; max-height: 200px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; }
.oraculo, .or-conversa, .or-turno, .or-resposta, .or-res { min-width: 0; max-width: 100%; }
.or-turno { display: grid; gap: 10px; }
.or-resposta { overflow: hidden; }
.or-tab { max-width: 100%; }
.or-tab .tab td { min-width: 70px; }
