/* Base: guia Agenti-quette (coluna de 623 px, página limpa, linhas finas). Cores: aplicativo do Grok Bot. */
@font-face { font-family: Geist; font-weight: 100 900; font-display: swap; src: url(/fontes/geist.woff2) format("woff2"); }
:root {
  color-scheme: light dark;
  --fundo: #fff; --tinta: #1a1817; --texto: #57524e; --fraco: #79736e; --linha: #e7e5e4; --lavado: #f5f5f4; --link: #0b6bd3;
  --painel: #2b2b2e; --balao: #3d3d41; --painel-texto: #f5f5f7; --painel-fraco: #b4b4ba;
  --fonte: -apple-system, BlinkMacSystemFont, "SF Pro Display", Geist, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --fundo: #1c1c1e; --tinta: #f5f5f7; --texto: #c9c9ce; --fraco: #a0a0a6; --linha: #37373a; --lavado: #2a2a2d; --link: #64b1ff; }
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--fundo); color: var(--texto); font: 400 16px/1.8 var(--fonte); letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.pular { position: absolute; left: -999px; }
.pular:focus { left: 16px; top: 16px; z-index: 9; background: var(--fundo); padding: 8px 16px; }

nav.topo { position: sticky; top: 0; z-index: 5; display: flex; justify-content: center; gap: 4px; padding: 12px 24px; background: color-mix(in srgb, var(--fundo) 88%, transparent); backdrop-filter: blur(12px); }
nav.topo a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; line-height: 24px; text-decoration: none; transition: background 0.16s; }
nav.topo a[aria-current] { background: var(--lavado); color: var(--tinta); font-weight: 500; }
main { width: 100%; max-width: 671px; margin: 0 auto; padding: 32px 24px 96px; }

.painel { background: var(--painel); color: var(--painel-texto); border-radius: 24px; overflow: hidden; }
.fig { display: block; width: 100%; height: auto; font-family: var(--fonte); }
.fig.media { max-width: 480px; margin: 0 auto; }

h1 { color: var(--tinta); font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h2 { color: var(--tinta); font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.03em; margin: 64px 0 20px; scroll-margin-top: 80px; text-wrap: balance; }
h3 { color: var(--tinta); font-size: 17px; line-height: 1.45; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 12px; scroll-margin-top: 80px; }
p { text-wrap: pretty; }
article > p + p, article > p + ul, article > p + ol, article > ul + p, article > ol + p { margin-top: 20px; }
article strong { color: var(--tinta); font-weight: 600; }
article p a, article li a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
article > ul, article > ol { padding-left: 22px; display: grid; gap: 10px; }
article > ul::marker { color: var(--fraco); }

.cabeca { display: grid; gap: 16px; text-align: center; padding: 32px 0 40px; border-bottom: 1px solid var(--linha); margin-bottom: 40px; }
.cabeca p { font-size: 17px; max-width: 54ch; margin: 0 auto; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; font-size: 15px; color: var(--fraco); margin-bottom: 12px; }
.meta > a, .meta button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 15px/1 var(--fonte); letter-spacing: inherit; color: var(--fraco); background: none; border: 0; padding: 0; text-decoration: none; cursor: pointer; }
.meta button { color: var(--link); }
.meta div { display: flex; align-items: center; gap: 16px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

figure { margin: 32px 0; }
figure .painel { padding: 28px 20px; }
figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--fraco); text-align: center; text-wrap: balance; }

.tabela { margin: 32px 0; border-top: 1px solid var(--linha); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--linha); }
th { color: var(--tinta); font-weight: 600; }
td:first-child { white-space: nowrap; }
.nome { display: inline-flex; align-items: center; gap: 10px; }
.avatar { flex: none; display: block; }
.avatar * { animation: none !important; }
.claro .avatar { background: var(--painel); border-radius: 50%; padding: 4px; }

.dia { list-style: none; padding: 0; display: grid; gap: 20px; max-width: 500px; margin: 0 auto; }
.dia li { display: grid; grid-template-columns: 52px 28px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.55; color: var(--painel-fraco); }
.dia time { font-variant-numeric: tabular-nums; line-height: 28px; color: var(--painel-texto); }
.dia strong { display: block; color: var(--painel-texto); line-height: 28px; }

.conversa { max-width: 460px; margin: 0 auto; display: grid; gap: 8px; font-size: 15px; line-height: 1.5; }
.quem { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 4px; }
.balao { background: var(--balao); border-radius: 16px; padding: 12px 16px; }
.pergunta { display: grid; gap: 12px; }
.pergunta span { color: #d0d0d5; }
.pergunta button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid #64646a; border-radius: 12px; background: #4a4a4f; color: #fff; font: 500 15px/1.4 var(--fonte); text-align: left; cursor: pointer; transition: background 0.16s, transform 0.1s; }
.pergunta button:active { transform: scale(0.985); }
.pergunta i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 7px; background: #7a3cf0; font: 600 12px/1 var(--fonte); }
.pergunta button[disabled] { cursor: default; background: #3b2c58; border-color: #8a5cf0; }
.depois { display: grid; gap: 8px; }
.js .depois { max-height: 0; margin-top: -8px; overflow: hidden; }
.js .ok .depois { max-height: 400px; margin-top: 0; transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .depois > * { opacity: 0; transform: translateY(8px); }
.js .ok .depois > * { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.js .ok .depois > :nth-child(1) { transition-delay: 0.35s; }
.js .ok .depois > :nth-child(2) { transition-delay: 1.3s; }

.prompt { margin: 24px 0; border: 1px solid var(--linha); border-radius: 16px; overflow: hidden; background: var(--lavado); }
.prompt header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 4px 16px; border-bottom: 1px solid var(--linha); font-size: 14px; font-weight: 600; color: var(--tinta); }
.prompt header button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; background: none; border-radius: 12px; color: var(--tinta); font: 500 14px/1 var(--fonte); cursor: pointer; }
.prompt pre { padding: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 15px/1.65 var(--fonte); color: var(--texto); }
.prompt mark { background: color-mix(in srgb, var(--link) 12%, transparent); color: var(--link); border-radius: 5px; padding: 1px 4px; }

article > ul.checklist { list-style: none; padding: 0; gap: 0; border-top: 1px solid var(--linha); }
.checklist label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; border-bottom: 1px solid var(--linha); cursor: pointer; line-height: 1.5; }
.checklist input { width: 20px; height: 20px; flex: none; accent-color: #1d8df7; }
.checklist input:checked + span { color: var(--fraco); text-decoration: line-through; }

.indice { display: none; }
@media (min-width: 1180px) {
  .indice { display: grid; gap: 12px; position: fixed; left: max(32px, calc(50vw - 590px)); top: 112px; width: 200px; font-size: 14px; line-height: 1.45; }
  .indice a { text-decoration: none; color: var(--fraco); }
  .indice a.aqui { color: var(--tinta); font-weight: 500; }
}

.lista { list-style: none; padding: 0; margin-top: 40px; border-top: 1px solid var(--linha); }
.lista a { display: grid; grid-template-columns: 40px 1fr 16px; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--linha); text-decoration: none; line-height: 1.6; }
.lista strong { display: block; color: var(--tinta); font-size: 17px; font-weight: 600; }
.lista time { display: block; margin-top: 4px; font-size: 14px; color: var(--fraco); }
.lista .ladrilho { width: 40px; height: 40px; border-radius: 12px; background: var(--painel); display: grid; place-items: center; }
.lista .ico { color: var(--fraco); transition: transform 0.16s; }
.fim { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--linha); display: grid; gap: 12px; font-size: 15px; color: var(--fraco); overflow-wrap: anywhere; }
.fim a { color: var(--link); }

@media (hover: hover) {
  nav.topo a:hover, .prompt header button:hover { background: color-mix(in srgb, var(--tinta) 7%, transparent); }
  .meta > a:hover, .indice a:hover { color: var(--tinta); }
  .pergunta button:not([disabled]):hover { background: #56565c; }
  .lista a:hover .ico { transform: translateX(3px); }
}
@keyframes flutua { 50% { transform: translateY(-5px); } }
.flutua { animation: flutua 3.6s ease-in-out infinite; }
@keyframes pisca { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(0.1); } }
.pisca { transform-box: fill-box; transform-origin: center; animation: pisca 4.8s infinite; }
@keyframes orbita { to { stroke-dashoffset: -160; } }
.orbita { animation: orbita 16s linear infinite; }
.volta { animation-direction: reverse; }

@media (max-width: 600px) {
  main { padding-top: 16px; }
  h1 { font-size: 27px; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 16px 0; border-bottom: 1px solid var(--linha); }
  td { border: 0; padding: 0 0 8px; }
  td[data-c]::before { content: attr(data-c); display: block; font-size: 13px; color: var(--fraco); }
  figure .painel { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .recado { display: none; }
}
@media print { nav.topo, .indice, .meta button { display: none !important; } .js .depois > * { opacity: 1; } }
