/* Central berorealove — painel de controle das plataformas */


@font-face { font-family: "Caviar Dreams"; src: url("fonts/CaviarDreams.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caviar Dreams"; src: url("fonts/CaviarDreams_Bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Caviar Dreams"; src: url("fonts/CaviarDreams_Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

/* cores do logo berorealove: areia #DBB58F sobre branco quente */
:root {
  --bg: #FBF8F4;
  --surface: #FFFFFF;
  --surface-2: #F4ECE3;
  --ink: #3A2A1E;
  --ink-2: #6A5341;
  --line: #EADFD3;
  --marca: #DBB58F;          /* a cor exata do logo: fundos e destaques */
  --marca-forte: #CFA276;
  --on-marca: #3A2A1E;
  --accent: #8C5E36;         /* caramelo escuro: texto, icones e foco (contraste AA) */
  --accent-soft: #F5E9DC;
  --on-accent: #FFFFFF;
  --ok: #2E7A55;
  --ok-soft: #DDF0E5;
  --warn: #9A5B00;
  --warn-soft: #FBEBCF;
  --danger: #B42318;
  --danger-soft: #FBE1DE;

  --fatal: #C2456A;
  --fanvue: #2D8C73;
  --xhamster: #D8662F;
  --pornhub: #3E6FB0;
  --privacy: #7A5AA6;

  --display: "Caviar Dreams", "Avenir Next", system-ui, sans-serif;
  --text: "Caviar Dreams", "Avenir Next", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;
  --sombra: 0 1px 2px rgb(58 42 30 / 6%), 0 8px 24px -12px rgb(58 42 30 / 20%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17120E; --surface: #211A15; --surface-2: #2B221B; --ink: #F5ECE2; --ink-2: #C9B6A2;
    --line: #3A2F26; --marca: #DBB58F; --marca-forte: #E6C6A4; --on-marca: #2A1D12;
    --accent: #E3C29F; --accent-soft: #3A2B1E; --on-accent: #2A1D12;
    --ok: #5BC48E; --ok-soft: #173326; --warn: #E9A94A; --warn-soft: #36270F; --danger: #F07A6E; --danger-soft: #3D1814;
    --fatal: #E57A95; --fanvue: #4CC3A2; --xhamster: #F08A56; --pornhub: #7FA7E0; --privacy: #A98BD6;
    --sombra: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17120E; --surface: #211A15; --surface-2: #2B221B; --ink: #F5ECE2; --ink-2: #C9B6A2;
  --line: #3A2F26; --marca: #DBB58F; --marca-forte: #E6C6A4; --on-marca: #2A1D12;
  --accent: #E3C29F; --accent-soft: #3A2B1E; --on-accent: #2A1D12;
  --ok: #5BC48E; --ok-soft: #173326; --warn: #E9A94A; --warn-soft: #36270F; --danger: #F07A6E; --danger-soft: #3D1814;
  --fatal: #E57A95; --fanvue: #4CC3A2; --xhamster: #F08A56; --pornhub: #7FA7E0; --privacy: #A98BD6;
  --sombra: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -14px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.fraco { color: var(--ink-2); }
.pequeno { font-size: .875rem; }

/* ---------- plataforma: cor por contexto ---------- */
[data-p="fatal"] { --p: var(--fatal); }
[data-p="fanvue"] { --p: var(--fanvue); }
[data-p="xhamster"] { --p: var(--xhamster); }
[data-p="pornhub"] { --p: var(--pornhub); }
[data-p="privacy"] { --p: var(--privacy); }
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .8125rem; font-weight: 700; line-height: 1;
  padding: .38em .7em .38em .55em; border-radius: 999px;
  background: color-mix(in srgb, var(--p, var(--ink-2)) 14%, transparent);
  color: color-mix(in srgb, var(--p, var(--ink-2)) 78%, var(--ink));
  white-space: nowrap;
}
.chip::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--p, var(--ink-2)); }
.chip-neutro { --p: var(--ink-2); }

/* ---------- botoes ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 42px; padding: 0 1.05em; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: .9375rem; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, transform .08s;
}
.botao:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: .5; cursor: not-allowed; }
.botao-forte { background: var(--marca); border-color: var(--marca); color: var(--on-marca); }
.botao-forte:hover { background: var(--marca-forte); border-color: var(--marca-forte); }
.botao-leve { background: transparent; }
.botao-perigo { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.botao-texto { background: none; border: 0; padding: .35em 0; color: var(--ink-2); cursor: pointer; font-size: .9rem; text-align: left; }
.botao-texto:hover { color: var(--ink); }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-caixa {
  width: min(360px, 100%); display: grid; gap: 12px; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--sombra);
}
.login-caixa label { font-weight: 700; margin-top: 16px; }
.login-caixa input, .campo input, .campo select {
  min-height: 46px; padding: 0 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg);
}
.login-erro { color: var(--danger); min-height: 1.4em; font-size: .9rem; }

/* ---------- marca ---------- */
.marca { display: grid; justify-items: start; gap: 6px; text-decoration: none; }
.marca img { display: block; width: 150px; height: auto; }
.marca-sub { font-size: .8rem; color: var(--ink-2); letter-spacing: .02em; }
.marca-grande { justify-items: center; text-align: center; margin-bottom: 4px; }
.marca-grande img { width: 220px; }
.topo-movel { display: none; }

/* ---------- estrutura ---------- */
.app {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr) minmax(360px, 430px);
}
.lateral {
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px 18px 20px; border-right: 1px solid var(--line);
}
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m);
  text-decoration: none; font-weight: 400; color: var(--ink-2); position: relative;
}
.menu a:hover { color: var(--ink); background: var(--surface-2); }
.menu a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--sombra); font-weight: 700; }
.menu svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.menu a[aria-current="page"] svg { stroke: var(--accent); }
.selo {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}
.lateral-pe { margin-top: auto; display: grid; gap: 4px; }
.so-estreito { display: none; }

.principal-coluna { min-width: 0; }
.principal { padding: 40px clamp(20px, 3.5vw, 52px) 80px; min-width: 0; outline: none; }
.pagina { max-width: 980px; display: grid; gap: 36px; }
.pagina-topo { display: grid; gap: 8px; }
.pagina-topo p { color: var(--ink-2); max-width: 62ch; }

.conversa {
  position: sticky; top: 0; height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  border-left: 1px solid var(--line); background: var(--surface);
}

@media (max-width: 1279px) {
  .app { grid-template-columns: 220px minmax(0, 1fr); }
  .conversa { display: none; }
  .so-estreito { display: block; }
  body[data-rota="conversa"] .principal-coluna { display: none; }
  body[data-rota="conversa"] .conversa { display: grid; border-left: 0; background: var(--bg); }
}
@media (max-width: 859px) {
  .app { grid-template-columns: 1fr; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .lateral {
    position: fixed; inset: auto 0 0 0; height: auto; z-index: 20; flex-direction: row;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px);
  }
  .lateral > .marca, .lateral-pe { display: none; }
  .topo-movel { display: flex; justify-content: center; padding: 14px 16px 0; }
  .topo-movel img { width: 120px; height: auto; }
  body[data-rota="conversa"] .topo-movel { display: none; }
  .menu { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .menu a { flex-direction: column; gap: 3px; padding: 7px 2px; font-size: .72rem; justify-content: center; }
  .menu a[aria-current="page"] { box-shadow: none; background: var(--accent-soft); }
  .selo { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; font-size: .68rem; }
  .principal { padding: 22px 16px 40px; }
  .pagina { gap: 28px; }
  body[data-rota="conversa"] .conversa { height: calc(100dvh - 66px - env(safe-area-inset-bottom)); }
}

/* ---------- hoje ---------- */
.hoje-topo { display: grid; gap: 6px; }
.hoje-data { color: var(--ink-2); font-weight: 400; }
.saidas { display: grid; gap: 2px; margin-top: 18px; }
.saida {
  display: grid; grid-template-columns: 5.2rem 1fr; gap: 16px; align-items: baseline;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.saida:first-child { border-top: 0; }
.saida-hora { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1; }
.saida-hora small { font-size: .95rem; color: var(--ink-2); font-weight: 400; margin-left: 2px; }
.saida-itens { display: grid; gap: 8px; }
.saida-item { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.saida-titulo { font-weight: 400; min-width: 0; }
.vazio {
  padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--r-l); color: var(--ink-2);
  display: grid; gap: 12px; justify-items: start;
}

/* faixa de 14 dias: o elemento principal da tela */
.faixa-bloco { display: grid; gap: 14px; }
.faixa-cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.legenda { display: flex; gap: 6px; flex-wrap: wrap; }
.faixa {
  display: grid; grid-template-columns: repeat(14, minmax(38px, 1fr)); gap: 5px;
  overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;
}
.dia {
  display: grid; grid-template-rows: auto auto 1fr; justify-items: center; gap: 6px;
  min-height: 170px; padding: 10px 4px 12px; border-radius: var(--r-m);
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; cursor: pointer;
}
.dia:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.dia-sem { font-size: .75rem; color: var(--ink-2); font-weight: 700; }
.dia-num { font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.dia-hoje { background: var(--marca); border-color: var(--marca); color: var(--on-marca); }
.dia-hoje .dia-sem { color: inherit; opacity: .85; }
.dia-fds .dia-sem { color: var(--accent); }
.dia-hoje.dia-fds .dia-sem { color: inherit; }
.pontos { display: flex; flex-direction: column-reverse; gap: 4px; align-self: end; }
.ponto { width: 14px; height: 14px; border-radius: 50%; background: var(--p); box-shadow: 0 0 0 2px var(--surface); }
.dia-hoje .ponto { box-shadow: 0 0 0 2px var(--marca); }
.dia-vazio .pontos::after { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--line); }

/* plataformas */
.plats { display: grid; border-top: 1px solid var(--line); }
.plat {
  display: grid; grid-template-columns: 4px minmax(0, 1.1fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.plat-cor { align-self: stretch; border-radius: 4px; background: var(--p); }
.plat-nome { display: grid; gap: 2px; }
.plat-nome b { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.plat-estado { display: grid; gap: 3px; font-size: .92rem; }
.plat-numero { font-family: var(--display); font-weight: 700; font-size: 1.12rem; }
.plat-acoes { display: flex; gap: 8px; }
@media (max-width: 859px) {
  .plat { grid-template-columns: 4px 1fr; gap: 6px 14px; }
  .plat-cor { grid-row: span 3; }
  .plat-acoes { grid-column: 2; }
}
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--ok); }
.status-alerta { color: var(--warn); }
.status-erro { color: var(--danger); }
.status-rodando { color: var(--accent); }
.status-rodando::before { animation: pulsar 1.2s ease-in-out infinite; }
@keyframes pulsar { 50% { opacity: .25; } }

.alertas { display: grid; gap: 10px; }
.alerta {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r-m); background: var(--warn-soft); color: var(--ink);
}
.alerta-erro { background: var(--danger-soft); }
.alerta p { max-width: 60ch; }

.numeros { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.numero { display: grid; gap: 2px; }
.numero b { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.numero span { color: var(--ink-2); font-size: .9rem; }

/* ---------- agenda ---------- */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.filtro { border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.filtro[aria-pressed="false"] { opacity: .45; background: transparent; }
.filtro[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--p); }
.dias { display: grid; gap: 26px; }
.dia-grupo { display: grid; gap: 4px; scroll-margin-top: 20px; }
.dia-grupo h3 { display: flex; gap: 10px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.dia-grupo h3 span { font-family: var(--text); font-weight: 400; font-size: .9rem; color: var(--ink-2); }
.item-agenda { display: grid; grid-template-columns: 3.4rem auto 1fr; gap: 12px; align-items: baseline; padding: 9px 0; }
.item-agenda .hora { font-weight: 700; }
.item-agenda .tit { min-width: 0; overflow-wrap: anywhere; }
.item-agenda .cod { color: var(--ink-2); font-size: .85rem; }
@media (max-width: 600px) {
  .item-agenda { grid-template-columns: 3.2rem 1fr; }
  .item-agenda .chip { grid-column: 2; justify-self: start; }
  .item-agenda .tit { grid-column: 2; }
}

/* ---------- acoes ---------- */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.aba {
  padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 700; color: var(--ink-2);
  border-bottom: 2.5px solid transparent; margin-bottom: -1px; text-decoration: none;
}
.aba:hover { color: var(--ink); }
.aba[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.grupo-acoes { display: grid; gap: 4px; }
.grupo-acoes > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.grupo-acoes > h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--p); }
.acao {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.acao p { color: var(--ink-2); font-size: .92rem; max-width: 64ch; }
.acao-titulo { font-weight: 700; }
.acao-envia .acao-titulo::after {
  content: "publica de verdade"; margin-left: 10px; font-size: .75rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px;
}
@media (max-width: 600px) { .acao { grid-template-columns: 1fr; } .acao .botao { justify-self: start; } }

.lista-tarefas { display: grid; }
.tarefa {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center;
  padding: 14px 4px; border-top: 1px solid var(--line); text-decoration: none; cursor: pointer; background: none;
  border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%;
}
.tarefa:hover { background: var(--surface-2); }
.tarefa .fraco { grid-column: 2; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.log {
  margin: 0; padding: 16px 18px; border-radius: var(--r-m); background: #241B15; color: #F1E6DA;
  font: .82rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 60vh; overflow: auto;
}

/* ---------- acervo ---------- */
.busca { position: relative; }
.busca input {
  width: 100%; min-height: 48px; padding: 0 16px; border-radius: var(--r-m); border: 1px solid var(--line);
  background: var(--surface); font-size: 1rem;
}
.videos { display: grid; }
.video { border-top: 1px solid var(--line); }
.video summary {
  display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 14px; align-items: center;
  padding: 13px 4px; cursor: pointer; list-style: none;
}
.video summary::-webkit-details-marker { display: none; }
.video summary:hover { background: var(--surface-2); }
.video-cod { font-size: .88rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.video-tit { font-weight: 700; min-width: 0; }
.video-marcas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.video-corpo { display: grid; gap: 16px; padding: 4px 4px 20px 4px; }
@media (max-width: 600px) {
  .video summary { grid-template-columns: 1fr; gap: 6px; }
  .video-marcas { justify-content: start; }
}
.texto-final { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.texto-final header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.texto-final p { overflow-wrap: anywhere; }
.tabela-rolagem { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink-2); background: var(--surface-2); position: sticky; top: 0; }
td.titulo-col { min-width: 260px; }

/* ---------- conversa ---------- */
.conversa-topo {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 18px 14px; border-bottom: 1px solid var(--line);
}
.conversa-topo h2 { font-size: 1.1rem; }
.conversa-topo select { margin-top: 4px; max-width: 220px; border: 0; background: none; color: var(--ink-2); font-size: .85rem; padding: 0; cursor: pointer; }
.mensagens { overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg { max-width: 92%; overflow-wrap: anywhere; }
.msg-usuario {
  align-self: flex-end; padding: 10px 14px; border-radius: 18px 18px 4px 18px;
  background: var(--marca); color: var(--on-marca); white-space: pre-wrap;
}
.msg-claude { align-self: flex-start; line-height: 1.55; }
.msg-claude > :first-child { margin-top: 0; }
.msg-claude > :last-child { margin-bottom: 0; }
.msg-claude p, .msg-claude ul, .msg-claude ol { margin: 0 0 .6em; }
.msg-claude ul, .msg-claude ol { padding-left: 1.3em; }
.msg-claude code { font: .85em var(--mono); background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
.msg-claude pre { background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-s); overflow-x: auto; }
.msg-claude pre code { background: none; padding: 0; }
.msg-claude table { font-size: .85rem; margin: .4em 0 .8em; display: block; overflow-x: auto; }
.msg-claude th, .msg-claude td { padding: 6px 8px; }
.msg-passo { align-self: flex-start; display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--ink-2); }
.msg-passo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.msg-passo.rodando::before { background: var(--accent); animation: pulsar 1s infinite; }
.msg-passo.feito::before { background: var(--ok); }
.msg-passo.falhou::before { background: var(--danger); }
.msg-erro { align-self: stretch; padding: 10px 14px; border-radius: var(--r-m); background: var(--danger-soft); color: var(--danger); font-size: .9rem; }
.digitando { align-self: flex-start; display: flex; gap: 5px; padding: 6px 2px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); opacity: .4; animation: pulsar 1.1s infinite; }
.digitando i:nth-child(2) { animation-delay: .18s; }
.digitando i:nth-child(3) { animation-delay: .36s; }
.sugestoes { display: grid; gap: 8px; margin-top: auto; }
.sugestoes p { color: var(--ink-2); font-size: .92rem; margin-bottom: 4px; }
.sugestao {
  text-align: left; padding: 11px 14px; border-radius: var(--r-m); border: 1px solid var(--line);
  background: var(--bg); cursor: pointer; font-size: .92rem;
}
.sugestao:hover { border-color: var(--accent); }
.compositor {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.compositor textarea {
  resize: none; max-height: 180px; min-height: 46px; padding: 11px 14px; border-radius: var(--r-m);
  border: 1px solid var(--line); background: var(--bg); line-height: 1.4;
}
.compositor .botao { min-height: 46px; }
.compositor #parar-chat { grid-column: 2; }

/* ---------- dialogo e aviso ---------- */
.dialogo {
  width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-l);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%);
}
.dialogo::backdrop { background: rgb(36 26 18 / 45%); backdrop-filter: blur(3px); }
.dialogo form { display: grid; gap: 16px; padding: 26px 24px 22px; }
.dialogo p { color: var(--ink-2); }
.dialogo-pe { display: flex; justify-content: end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; font-size: .92rem; }
.confirmacao {
  padding: 12px 14px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--ink); font-size: .92rem;
}
.aviso {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 50;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-m);
  background: var(--ink); color: var(--bg); box-shadow: var(--sombra); font-weight: 400;
}
@media (max-width: 859px) { .aviso { bottom: calc(80px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.conversa-topo .botao { white-space: nowrap; flex: none; }
.conversa-topo > div { min-width: 0; }
.conversa-topo select { width: 100%; text-overflow: ellipsis; }
@media (max-width: 859px) { .conversa-topo { padding: 14px 16px 10px; } .conversa-topo .botao { min-height: 38px; padding: 0 .8em; } }

/* codigo 2FA enviado pelo painel */
.codigo-2fa { display: grid; gap: 8px; padding: 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); max-width: 520px; }
.codigo-2fa label { font-weight: 700; }
.codigo-2fa.codigo-pedido { border-color: var(--marca); box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 45%, transparent); }
.codigo-linha { display: flex; gap: 10px; flex-wrap: wrap; }
.codigo-linha input {
  flex: 1 1 160px; min-height: 52px; padding: 0 16px; border-radius: var(--r-m); border: 1px solid var(--line);
  background: var(--bg); font-size: 1.6rem; letter-spacing: .35em; font-variant-numeric: tabular-nums;
}

/* pedidos */
.quem { display: grid; gap: 4px; font-size: .8rem; color: var(--ink-2); margin-bottom: 8px; }
.quem select { min-height: 36px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); padding: 0 8px; }
.pedido-novo {
  display: grid; gap: 16px; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line);
}
.pedido-novo input:not([type=radio]), .pedido-novo textarea, .pedido-novo select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg); resize: vertical;
}
.opcoes { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opcoes legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.opcao { position: relative; }
.opcao input { position: absolute; inset: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.opcao span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: .92rem;
}
.opcao input:checked + span { background: var(--marca); border-color: var(--marca); color: var(--on-marca); font-weight: 700; }
.opcao input:focus-visible + span { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.resumo-pedidos { display: grid; gap: 10px; }
.resumo-texto { padding: 18px 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); max-width: 75ch; }
.resumo-texto h1, .resumo-texto h2, .resumo-texto h3 { font-size: 1.05rem; margin: .8em 0 .3em; }
.pedidos { display: grid; }
.pedido { border-top: 1px solid var(--line); }
.pedido summary {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 4px; cursor: pointer; list-style: none;
}
.pedido summary::-webkit-details-marker { display: none; }
.pedido summary:hover { background: var(--surface-2); }
.pedido-tit { font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pedido-marcas { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
.pedido-quem { grid-column: 1 / -1; }
.pedido-urgente { box-shadow: inset 3px 0 0 var(--danger); }
.pedido-urgente summary { padding-left: 12px; }
.chip-urgente { --p: var(--danger); }
.chip-planejado { --p: var(--ok); }
.pedido-corpo { display: grid; gap: 12px; padding: 4px 4px 18px; max-width: 70ch; }
.nota-dev { padding: 10px 14px; border-radius: var(--r-m); background: var(--ok-soft); }
.campo-linha { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: .92rem; }
.campo-linha select { min-height: 38px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--surface); padding: 0 10px; font-weight: 400; }
@media (max-width: 600px) { .pedido summary { grid-template-columns: 1fr; } .pedido-marcas { justify-content: start; } }
@media (max-width: 859px) { .menu a { font-size: .66rem; } }

/* ---------- aprender usando: ajuda, tour, guia ---------- */
.ajuda { border-radius: var(--r-l); background: var(--accent-soft); color: var(--ink); max-width: 75ch; }
.ajuda summary {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font-weight: 700; list-style: none;
}
.ajuda summary::-webkit-details-marker { display: none; }
.ajuda summary::after { content: "Mostrar"; margin-left: auto; font-weight: 400; font-size: .85rem; color: var(--ink-2); }
.ajuda[open] summary::after { content: "Esconder"; }
.ajuda-icone {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--marca); color: var(--on-marca); font-size: .85rem;
}
.ajuda-corpo { padding: 0 18px 16px 50px; display: grid; gap: 8px; line-height: 1.55; }
.ajuda-corpo ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.ajuda-corpo a, .ajuda-pe a { color: var(--accent); font-weight: 700; }
@media (max-width: 600px) { .ajuda-corpo { padding-left: 18px; } }

.acao-quando { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.acao-quando b { color: var(--ink); }

.e-agora { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-l); background: var(--warn-soft); max-width: 75ch; }
.e-agora h2 { font-size: 1.15rem; }
.e-agora-botoes { display: flex; gap: 10px; flex-wrap: wrap; }

.topo-movel { position: relative; }
.topo-guia {
  position: absolute; right: 16px; top: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}

.tour { text-align: center; justify-items: center; }
.tour h2 { font-size: 1.45rem; }
.tour-texto { display: grid; gap: 10px; color: var(--ink-2); max-width: 44ch; }
.tour-texto b { color: var(--ink); }
.tour-logo { width: 190px; height: auto; }
.tour-icone { width: 56px; height: 56px; padding: 12px; border-radius: 50%; background: var(--accent-soft);
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tour-quem { display: grid; gap: 6px; justify-items: center; color: var(--ink); font-weight: 700; margin-top: 6px; }
.tour-quem select { min-height: 42px; min-width: 140px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg); padding: 0 12px; }
.tour-pontos { display: flex; gap: 6px; }
.tour-pontos i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.tour-pontos i.atual { background: var(--marca); width: 22px; border-radius: 4px; }
.tour .dialogo-pe { justify-content: center; width: 100%; }

.guia .rotinas { display: grid; gap: 10px; }
.rotina { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); }
.rotina summary { padding: 16px 18px; cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.rotina-corpo { padding: 0 20px 18px; display: grid; gap: 10px; max-width: 72ch; }
.rotina-corpo ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.atalho { padding: 10px 14px; border-radius: var(--r-m); background: var(--accent-soft); }
.glossario { display: grid; gap: 0; margin: 0; }
.glossario > div { display: grid; grid-template-columns: 13rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.glossario dt { font-weight: 700; }
.glossario dd { margin: 0; color: var(--ink-2); max-width: 64ch; }
@media (max-width: 600px) { .glossario > div { grid-template-columns: 1fr; gap: 4px; } }
.garantias { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.acao-pausada { font-size: .88rem; margin-top: 6px; padding: 8px 12px; border-radius: var(--r-m); background: var(--warn-soft); color: var(--ink); }
