:root {
  --bg: #0b0e14;
  --panel: #131824;
  --panel-2: #1a2131;
  --line: #263046;
  --text: #e8ecf4;
  --muted: #8b95a9;
  --accent: #6366f1;              /* índigo: cor do painel (o vermelho não combinava) */
  --accent-soft: rgba(99, 102, 241, .18);
  --ok: #22c55e;
  --ok-soft: rgba(34, 197, 94, .14);
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, .14);
  --bad: #ef4444;
  --bad-soft: rgba(239, 68, 68, .14);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, .14);
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.boot { padding: 40px; color: var(--muted); }

/* Layout */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; font-weight: 600; font-size: 17px; }
.brand .dot { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); display: grid; place-items: center; font-size: 14px; color: #fff; }
.side .sec { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 6px; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); }
.nav:hover { background: var(--panel-2); color: var(--text); }
.nav.on { background: var(--accent-soft); color: var(--text); }
.nav .count { margin-left: auto; background: var(--accent); color: #fff; font-size: 12px; border-radius: 99px; padding: 1px 8px; }
.side .grow { flex: 1; }
.side .who { font-size: 13px; color: var(--muted); padding: 8px 10px; word-break: break-all; }
.main { padding: 26px 30px 60px; min-width: 0; }
.top { display: none; }
.side .close-menu { display: none; }
h1 { font-size: 22px; margin: 0 0 4px; font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.head .sub { margin: 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card .lbl { color: var(--muted); font-size: 13px; }
.card .num { font-size: 28px; font-weight: 600; margin-top: 6px; }
.card.link { cursor: pointer; }
.card.link:hover { border-color: #3a4766; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.box h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }

/* Gráfico por hora */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.bars .b { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; position: relative; }
.bars .b:hover { opacity: 1; }
.hours { display: flex; gap: 4px; margin-top: 6px; }
.hours span { flex: 1; text-align: center; font-size: 10px; color: var(--muted); }

/* Tabelas */
.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
th { font-size: 12px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; background: var(--panel-2); }
tr:last-child td { border-bottom: 0; }
td.wrap { white-space: normal; }
td .row { flex-wrap: nowrap; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Etiquetas */
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; }
.tag.ok { background: var(--ok-soft); color: #86efac; }
.tag.warn { background: var(--warn-soft); color: #fcd34d; }
.tag.bad { background: var(--bad-soft); color: #fca5a5; }
.tag.info { background: var(--info-soft); color: #93c5fd; }
.tag.off { background: var(--panel-2); color: var(--muted); }
.dot-st { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot-st.ok { background: var(--ok); } .dot-st.bad { background: var(--bad); }

/* Botões e campos */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 8px; padding: 8px 14px; cursor: pointer; text-decoration: none; }
.btn:hover { border-color: #3a4766; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.pri:hover { filter: brightness(1.1); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.danger { color: #fca5a5; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 6px 13px; cursor: pointer; color: var(--muted); font-size: 13px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
input, select, textarea { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[type=checkbox] { width: auto; }
input[type=color] { padding: 2px; height: 40px; width: 70px; }
.search { max-width: 360px; }
label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.err { color: #fca5a5; font-size: 13px; min-height: 18px; margin: 6px 0; }
.pl { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; background: var(--bg); }

/* Janela (modal) */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 50; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 640px; padding: 22px; }
.modal h2 { margin: 0 0 16px; font-size: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

/* Login */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .modal { max-width: 400px; }

/* Servidores */
.srv { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.srv .t { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.srv .name { font-weight: 600; font-size: 16px; }
.srv .dns { margin-top: 10px; display: grid; gap: 4px; }
.srv .dns div { font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--muted); word-break: break-all; }

.preview { display: flex; align-items: center; gap: 12px; background: #000; border-radius: 10px; padding: 18px; }
.preview img { height: 40px; }

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line); padding: 10px 18px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; }
#toast.show { opacity: 1; }
#toast.bad { border-color: var(--bad); }

@media (max-width: 820px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; position: fixed; inset: 0 auto 0 0; width: min(300px, 82vw); z-index: 40; height: 100%; }
  .side.open { display: flex; }
  /* Fundo escuro atrás do menu: tocar fora fecha */
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; }
  .side .close-menu { display: block; align-self: flex-end; }
  .top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
  .main { padding: 18px 16px 60px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}
/* ícone do cubo no menu e na barra de cima (celular) */
.brand-icon { width: 32px; height: 32px; border-radius: 8px; display: block; }
.brand-icon.sm { width: 26px; height: 26px; border-radius: 6px; }
/* Menu lateral recolhível (computador) */
.side-open { display: none; margin-bottom: 12px; }
.side .side-hide { align-self: flex-start; margin-bottom: 8px; font-size: 12px; }
.shell.collapsed { grid-template-columns: 1fr; }
.shell.collapsed .side { display: none; }
.shell.collapsed .side-open { display: inline-flex; }
/* Clientes: nome clicável; em tela estreita os botões ficam embaixo do nome */
.link { cursor: pointer; }
.link:hover { text-decoration: underline; }
.narrow-actions { display: none; margin-top: 8px; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1100px) {
  .narrow-actions { display: flex; }
  .wide-actions { display: none; }
}
@media (max-width: 820px) {
  .side-open, .side .side-hide { display: none !important; }
  .shell.collapsed .side.open { display: flex; }
}

/* Revendas: seletor "Ver" no menu e tabela de contas */
.acct-pick { width: 100%; margin: 4px 0 8px; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); font-size: 13px; }
.acct-tree { color: var(--muted); margin-right: 4px; }
.credit-pos { color: #86efac; }
.credit-neg { color: #fca5a5; }

/* ───── Painel com nome próprio, menu em grupos, barra de cima (23/11) ───── */
.pmark { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #1d2350, #0b1020); box-shadow: inset 0 0 0 1px #6366f140; }
.pmark img { display: block; width: 96%; height: 96%; }
.pmark.sm { width: 30px; height: 30px; border-radius: 8px; }
.pmark.lg { width: 76px; height: 76px; border-radius: 20px; }
.pword { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pword .pn2 { font-weight: 600; background: linear-gradient(90deg, #22d3ee, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-help { margin: 16px 0 0; text-align: center; line-height: 1.5; }
.auth-brand { display: grid; justify-items: center; gap: 12px; padding: 4px 0 18px; font-size: 26px; text-align: center; line-height: 1.15; }
.side .sec { padding-top: 12px; }
.nav { padding: 7px 10px; font-size: 14px; }
.nav.locked { opacity: .55; }
.nav .lock { margin-left: auto; font-size: 12px; }
.topbar { display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar .grow { flex: 1; }
.gsearch-wrap { position: relative; display: flex; align-items: center; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; width: min(440px, 100%); }
.gsearch-wrap:focus-within { border-color: var(--accent); }
.gsearch-wrap input { border: 0; background: transparent; padding: 9px 2px; }
.gicon { color: var(--muted); font-size: 18px; }
kbd { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.gresults { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; z-index: 50;
  max-height: 60vh; overflow-y: auto; box-shadow: 0 12px 30px rgba(0,0,0,.45); padding: 4px 0; }
.gresults .gh { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.gresults .gi { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: 100%; text-align: left; background: none; border: 0; padding: 7px 12px; cursor: pointer; }
.gresults .gi:hover { background: var(--panel-2); }
.gresults .gi .small { width: 100%; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge strong { color: var(--text); font-weight: 600; }
.badge.ok { border-color: rgba(34,197,94,.45); }
.badge.info { border-color: rgba(59,130,246,.5); }
.badge.bad { border-color: rgba(239,68,68,.6); }
.dd { position: relative; }
.ddmenu { display: none; position: absolute; right: 0; top: calc(100% + 6px); min-width: 260px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; z-index: 50; box-shadow: 0 12px 30px rgba(0,0,0,.45); padding: 4px 0; }
.dd.open .ddmenu { display: block; }
.ddi { display: block; width: 100%; text-align: left; padding: 8px 12px; background: none; border: 0; color: var(--text); text-decoration: none; cursor: pointer; font-size: 14px; }
.ddi:hover { background: var(--panel-2); }
.ddi.warn { border-left: 3px solid var(--warn); }
.ddi.bad { border-left: 3px solid var(--bad); }
.iconbtn { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; cursor: pointer; }
.bcount { position: absolute; top: -6px; right: -6px; background: var(--accent); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 6px; }
.profbtn { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px 4px 4px; cursor: pointer; }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pname { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
/* Início */
.hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; background: linear-gradient(135deg, rgba(99,102,241,.20), rgba(34,211,238,.08));
  border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.hero h1 .muted { font-weight: 400; }
.eyebrow { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hero .lbl { color: var(--muted); font-size: 13px; margin-top: 10px; }
.hero .big { font-size: 34px; font-weight: 700; margin: 2px 0; }
.hero-r { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; flex: 1; min-width: 110px; }
.pill .lbl { margin: 0; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.appc { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--panel-2); }
.appc.off { opacity: .6; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv:last-of-type { border-bottom: 0; }
/* Listas com ações em massa */
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent);
  border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; position: sticky; top: 0; z-index: 5; }
.selcol { width: 34px; }
.selcol input { width: 16px; height: 16px; }
@media (max-width: 1100px) {
  .hero, .split { grid-template-columns: 1fr; }
  .badges { display: none; }
}
@media (max-width: 820px) {
  .topbar { margin-top: 0; }
  .pname, .topbar kbd { display: none; }
}
.topbar .side-open { margin: 0; }
/* tabelas largas (Revendas, Clientes com seleção): células mais justas */
.table-wrap.dense th, .table-wrap.dense td { padding: 9px 10px; }
.table-wrap.dense th { letter-spacing: .02em; }
.shell { align-content: start; } /* no celular a barra de cima não estica enquanto a página carrega */
/* Títulos dos grupos do menu com destaque (23/11) */
.side .sec { display: flex; align-items: center; gap: 8px; color: #a5b4fc; font-weight: 700; font-size: 11.5px; letter-spacing: .12em; padding: 16px 10px 6px; }
.side .sec::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #6366f1, #22d3ee); }
.side .sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.nav.on { box-shadow: inset 3px 0 0 var(--accent); }
.topbar { flex-wrap: nowrap; }
.topbar .gsearch-wrap { flex: 1 1 200px; max-width: 440px; min-width: 0; }
.topbar .grow { flex: 0 1 auto; }
/* seta de recolher o menu ao lado do nome do painel (23/11) */
.side .brand .side-hide { margin: 0 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; font-size: 18px; line-height: 1;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer; }
.side .brand .side-hide:hover { color: var(--text); border-color: var(--accent); }
/* Grupos do menu que abrem e fecham (02/12) */
.side .sec { width: 100%; background: none; border: 0; border-radius: 8px; font-family: inherit; text-transform: uppercase; text-align: left; cursor: pointer; margin: 0; }
.side .sec:hover { color: #c7d2fe; background: var(--panel-2); }
.side .sec:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.side .sec::after { order: 1; }
.side .sec .chev { order: 2; font-size: 15px; line-height: 1; letter-spacing: 0; color: var(--muted); transition: transform .15s; }
.side .sec.open .chev { transform: rotate(90deg); }
.side .grp-items { display: flex; flex-direction: column; gap: 4px; }
.side .grp-items[hidden] { display: none; }
/* Aparência do app com miniaturas (02/12) */
.ap-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.ap-side { position: sticky; top: 12px; }
.ap-pv { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff22; }
.ap-f { margin-bottom: 14px; }
.ap-f.dim .tpick { opacity: .55; }
.ap-l { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.tpick { display: flex; flex-wrap: wrap; gap: 8px; }
.tp { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 5px; background: var(--panel-2); border: 2px solid transparent;
  border-radius: 10px; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; text-align: center; }
.tp:hover { border-color: var(--line); }
.tp.on { border-color: var(--accent); background: var(--accent-soft); }
.tp:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tp-art { display: block; border-radius: 6px; overflow: hidden; }
.tp-l { line-height: 1.2; }
.tp-s { font-size: 10.5px; color: var(--muted); line-height: 1.2; max-width: 130px; }
.tpick-wide .tp-art { width: 136px; aspect-ratio: 16/9; }
.tpick-wide .tp, .tpick-bg .tp, .tpick-logo .tp { max-width: 150px; }
.tpick-bg .tp-art { width: 92px; aspect-ratio: 16/9; }
.tpick-logo .tp-art { width: 52px; height: 52px; }
.tpick-dot .tp-art { width: 34px; height: 34px; border-radius: 50%; }
.tpick-dot .tp { min-width: 64px; }
.tpick-text .tp { padding: 8px 14px; flex-direction: row; }
.tpick-text .tp.follow { flex-direction: column; }
@media (max-width: 900px) {
  .ap-wrap { grid-template-columns: 1fr; }
  .ap-side { position: static; }
  .tpick-wide .tp-art { width: 120px; }
  .tpick-bg .tp-art { width: 80px; }
}
/* Avisos do dono no painel das revendas e Sugestões (02/12) */
.pnotice { border: 1px solid #6366f1aa; background: #6366f11a; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.pnotice.warn { border-color: #f59e0baa; background: #f59e0b1a; }
.pn-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.pn-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: #6366f1; color: #fff; }
.pnotice.warn .pn-tag { background: #f59e0b; color: #1a1205; }
.pn-t { white-space: pre-wrap; margin-bottom: 10px; line-height: 1.45; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.box.fb { margin-bottom: 10px; }
.box.fb.fresh { border-color: var(--accent); }
.fb-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.fb-t { white-space: pre-wrap; line-height: 1.45; word-break: break-word; }
.fb-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fb-img img { display: block; width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.fb-doc { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); text-decoration: none; color: var(--text); max-width: 100%; word-break: break-all; }
.fb-reply { margin-top: 10px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--panel-2); border-radius: 6px; white-space: pre-wrap; }
.fb-act { display: grid; grid-template-columns: 180px 1fr auto; gap: 8px; align-items: start; margin-top: 12px; }
@media (max-width: 700px) { .fb-act { grid-template-columns: 1fr; } }
/* Apresentação do painel (02/12) */
.intro-bg { align-items: center; padding: 24px 16px; background: rgba(3, 6, 16, .78); }
.intro { position: relative; width: 100%; max-width: 940px; background: linear-gradient(160deg, #161d33, var(--panel) 55%); border: 1px solid #6366f155;
  border-radius: 18px; padding: 26px 26px 18px; box-shadow: 0 30px 80px #0009; }
.intro.inline { max-width: 1000px; box-shadow: none; }
.intro-skip { position: absolute; top: 14px; right: 14px; }
.intro-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: center; min-height: 330px; }
.intro-art { border-radius: 14px; overflow: hidden; background: #0b1020; border: 1px solid #ffffff14; aspect-ratio: 16/9; }
.intro-art svg { display: block; width: 100%; height: 100%; }
.intro-art.multi { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; align-content: start; gap: 6px; padding: 6px; aspect-ratio: auto; background: transparent; border: 0; }
.intro-art .ia { display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; background: #0b1020; overflow: hidden; cursor: zoom-in; }
.intro-art .ia img { display: block; width: 100%; height: 100%; object-fit: cover; }
.intro-art .ia:focus-visible { outline: 2px solid #a5b4fc; outline-offset: -2px; }
.intro-art.multi .ia { border-radius: 8px; border: 1px solid #ffffff1f; }
.intro-cap { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.intro-zoom { max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; padding: 12px; border: 0; background: #03060ff2; cursor: zoom-out; }
.intro-zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.intro-zoom img { max-width: 100%; max-height: calc(100dvh - 60px); border-radius: 10px; }
.intro-zoom div { color: #cbd5e1; font-size: 14px; text-align: center; }
.intro-art.multi .ia:first-child { grid-column: 1 / -1; }
.intro-text h2 { font-size: 24px; margin: 4px 0 12px; line-height: 1.2; background: linear-gradient(90deg, #fff, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-text p { line-height: 1.5; margin: 0 0 10px; }
.intro-text ul { margin: 0 0 10px; padding: 0; list-style: none; }
.intro-text li { position: relative; padding: 0 0 8px 22px; line-height: 1.45; }
.intro-text li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #22d3ee, #7c3aed); }
.intro-text b { color: #fff; }
.intro-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.intro-dots { flex: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.intro-dots .dot { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: #475569; cursor: pointer; transition: width .2s, background .2s; }
.intro-dots .dot.on { width: 26px; background: linear-gradient(90deg, #22d3ee, #6366f1); }
@media (max-width: 760px) {
  .intro { padding: 44px 16px 14px; }
  .intro-stage { grid-template-columns: 1fr; gap: 16px; min-height: 0; }
  .intro-text h2 { font-size: 20px; }
  .intro-nav { gap: 8px; }
  .intro-dots { gap: 4px; flex-wrap: nowrap; }
  .intro-dots .dot { width: 6px; height: 6px; }
  .intro-dots .dot.on { width: 16px; }
}
/* Gráfico do Início: número ao passar o mouse ou tocar na hora (02/12) */
.bars .bc { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; position: relative; outline: none; border-radius: 4px; }
.bars .bc[tabindex] { cursor: pointer; }
.bars .bc[tabindex]:hover, .bars .bc[tabindex]:focus { background: #ffffff0a; }
.bars .bc:hover .b, .bars .bc:focus .b { opacity: 1; }
.bars .tip { position: absolute; left: 50%; transform: translateX(-50%); margin-bottom: 8px; z-index: 5; display: none; flex-direction: column; align-items: center; gap: 2px;
  white-space: nowrap; pointer-events: none; padding: 7px 11px; border-radius: 9px; background: #0b0f1c; border: 1px solid var(--accent); box-shadow: 0 8px 24px #000a; font-size: 12px; color: var(--muted); }
.bars .tip strong { font-size: 14px; color: #fff; }
.bars .tip .on { color: #86efac; }
.bars .bc.l .tip { left: 0; transform: none; }
.bars .bc.r .tip { left: auto; right: 0; transform: none; }
.bars .bc:hover .tip, .bars .bc:focus .tip { display: flex; }
.bars:hover .bc:focus:not(:hover) .tip { display: none; }
