/* Bernuncia: warm black on warm bone, one colour, like the landing and the mark. */
:root {
  --paper: #f3ecdf;
  --surface: #f8f4ec;
  --ink: #11110f;
  --muted: #5c574e;
  --line: #d6ccb9;
  --land: #e3d9c6;
  --bad: #8f2d1f;
  --radius: 6px;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); }
a { color: inherit; }
main, .top, .foot { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
::selection { background: var(--ink); color: var(--paper); }

/* header */
.top { padding-top: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--serif); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 54px; height: auto; display: block; }

/* hero */
.hero {
  padding: 48px 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 0 40px; align-items: center;
}
.hero > :not(.hero-mark) { grid-column: 1; }
.hero-mark { grid-column: 2; grid-row: 1 / span 6; width: 100%; height: auto; display: block; user-select: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark { animation: rise 1.6s ease-out both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .hero-mark { grid-column: 1; grid-row: auto; width: min(78%, 320px); margin: 0 0 28px; order: -1; }
}
h1 { font: 500 clamp(36px, 6vw, 58px)/1.02 var(--serif); letter-spacing: -0.02em; margin: 0 0 18px; max-width: 12em; }
.lead { color: var(--muted); font-size: 18px; max-width: 32em; margin: 0 0 28px; }
.lead b { color: var(--ink); font: 500 16px var(--mono); }

/* search */
.search { display: flex; gap: 8px; max-width: 560px; }
.search input {
  flex: 1; min-width: 0; font: 500 19px var(--mono); padding: 14px 16px; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface);
}
.search input::placeholder { color: #9b9385; }
.search input:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
button {
  font: 500 15px var(--sans); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 12px 20px;
  background: var(--ink); color: var(--paper); cursor: pointer;
}
button:disabled { opacity: .45; cursor: default; }
button.ghost { background: transparent; color: var(--ink); }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.hint.bad { color: var(--bad); }

/* location suggestion */
.sugestao { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 11px; font: 500 13px var(--mono); border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.chip:hover { background: var(--ink); color: var(--paper); }
button.link { background: none; border: 0; color: var(--ink); padding: 4px 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* results */
.results { padding: 8px 0; }
.group h2 { font: 500 26px/1.2 var(--serif); margin: 36px 0 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: stretch; }

/* card: same rows for every extension */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 16px; display: flex; flex-direction: column; min-height: 196px;
}
.card.near { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.card.flash { outline: 3px solid var(--ink); outline-offset: 2px; }
.card.off { opacity: .55; }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tag { font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--ink); }
.tag.pix { background: var(--ink); color: var(--paper); }
.tag.partner { background: transparent; color: var(--ink); }
.tag.taken { background: transparent; color: var(--bad); border-color: currentColor; }
.uf-code { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); }
.domain {
  font: 500 17px/1.3 var(--mono); letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.domain .tld { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.place { margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.origin { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-foot {
  margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--line);
}
.cost { font-weight: 600; white-space: nowrap; }
.cost small { color: var(--muted); font-weight: 400; font-size: 13px; }
.act {
  display: inline-flex; align-items: center; justify-content: center; min-width: 108px; height: 36px; padding: 0 14px;
  font: 500 14px var(--sans); border-radius: var(--radius); text-decoration: none; white-space: nowrap;
  background: var(--ink); color: var(--paper); border: 1.5px solid var(--ink);
}
.act.alt { background: transparent; color: var(--ink); }
.act.alt:hover { background: var(--ink); color: var(--paper); }
.more summary { cursor: pointer; font-weight: 500; margin: 14px 0 0; text-decoration: underline; text-underline-offset: 3px; }
.more .grid { margin-top: 12px; }

/* map */
.mapa { padding: 40px 0 8px; border-top: 1.5px solid var(--ink); margin-top: 40px; }
.mapa-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mapa-head h2 { margin: 0; font: 500 30px/1.15 var(--serif); }
.toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; }
.toggle button { background: none; border: 0; color: var(--ink); padding: 6px 16px; border-radius: 999px; font-size: 14px; }
.toggle button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.mapa-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .mapa-body { grid-template-columns: 1fr; } }
.mapa-svg svg { width: 100%; height: auto; display: block; }
.uf { stroke: var(--paper); stroke-width: 1.5; cursor: pointer; transition: opacity .15s; }
.uf:hover, .uf:focus { opacity: .8; outline: none; }
.uf.m-pix { fill: var(--ink); }
.uf.m-lista { fill: url(#hatch); }
.uf.m-none, .uf.m-base { fill: var(--land); }
.uf.sel { stroke: var(--ink); stroke-width: 5; paint-order: stroke; }
.uf.m-pix.sel { fill: #4a463f; }
.hatch-bg { fill: var(--land); }
.hatch-line { stroke: var(--ink); stroke-width: 2.6; }
.lbl { font: 500 19px var(--mono); text-anchor: middle; dominant-baseline: middle; pointer-events: none; fill: var(--muted); }
.lbl.m-pix { fill: var(--paper); }
.lbl.m-lista { fill: var(--ink); paint-order: stroke; stroke: var(--land); stroke-width: 6px; }
.pin { cursor: pointer; }
.pin.m-pix { fill: var(--ink); stroke: var(--paper); stroke-width: 2.5; }
.pin.m-br { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.pin.near { stroke: var(--ink); stroke-width: 6; }
.legenda { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.legenda li { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 13px; height: 13px; border-radius: 3px; display: inline-block; background: var(--land); }
.dot.m-pix { background: var(--ink); }
.dot.m-lista { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--land) 2px 5px); }
.dot.m-br { background: var(--paper); border: 2.5px solid var(--ink); border-radius: 50%; }

/* regional page: no Bernuncia drawing, the map leads */
.hero.solo { display: block; padding-bottom: 0; }
.hero.solo h1 { max-width: 16em; }
.hero.solo .lead { max-width: 40em; }
.mapa.destaque { border-top: 0; margin-top: 8px; padding-top: 24px; }
.mapa.destaque .mapa-body { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 760px) { .mapa.destaque .mapa-body { grid-template-columns: 1fr; } }

/* state panel */
.painel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; max-height: 640px; overflow: auto; overscroll-behavior: contain; }
.painel > .muted { margin: 4px 0 12px; }
.painel h3 { margin: 0 0 4px; font: 500 24px/1.2 var(--serif); }
.painel .sub { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.painel .vazio, .muted { color: var(--muted); }
.exts { list-style: none; padding: 0; margin: 0; }
.ext {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.ext:first-child { border-top: 0; }
.ext-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ext b { font: 500 15px/1.3 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.mini { padding: 6px 12px; font-size: 13px; background: transparent; color: var(--ink); border: 1.5px solid var(--ink); white-space: nowrap; }
button.mini:hover { background: var(--ink); color: var(--paper); }

/* how it works */
.how { padding: 40px 0 16px; border-top: 1.5px solid var(--ink); margin-top: 40px; }
.how h2 { margin: 0 0 12px; font: 500 30px/1.15 var(--serif); }
.how ol { padding-left: 20px; margin: 0 0 16px; }
.how li { margin: 6px 0; }
.fine { color: var(--muted); font-size: 14px; max-width: 46em; }

/* order dialog */
dialog {
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); color: var(--ink);
  padding: 24px; width: min(420px, calc(100vw - 32px)); box-shadow: 6px 6px 0 var(--ink);
}
dialog::backdrop { background: rgba(17, 17, 15, .45); }
dialog h2 { margin: 0 0 4px; font: 500 22px/1.25 var(--mono); overflow-wrap: anywhere; }
dialog label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
dialog input {
  display: block; width: 100%; margin-top: 4px; font: inherit; padding: 10px 12px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
dialog input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
dialog .price { margin: 0; font-size: 15px; }
.error { color: var(--bad); font-size: 14px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* order status page */
.status { padding: 64px 0; max-width: 560px; }
.status h1 { font-size: clamp(30px, 5vw, 44px); overflow-wrap: anywhere; }
.status .state { font-size: 18px; }

.foot { color: var(--muted); font-size: 14px; padding-top: 24px; padding-bottom: 40px; }

/* ---------- startup home (Nov 2026) ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-color: var(--ink); }
.small { font-size: 14px; }
.small-lead { font-size: 17px; }
.sub { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.rel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .rel-grid { grid-template-columns: minmax(0, 1fr); } }
.bloco { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.bloco h3 { margin: 0 0 10px; font: 500 22px/1.2 var(--serif); }
.bloco > .muted.small { margin: -4px 0 8px; }
.rel-risk { margin: 0 0 8px; font-size: 15px; }
.risk { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.risk.ok { background: var(--ink); color: var(--paper); }
.risk.warn { background: repeating-linear-gradient(45deg, var(--land) 0 3px, var(--surface) 3px 6px); color: var(--ink); }
.risk.bad { color: var(--bad); border-color: currentColor; background: transparent; }
.classes, .marcas { list-style: none; padding: 0; margin: 0; }
.classes li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.classes li:first-child { border-top: 0; }
.marcas li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.marcas li:first-child { border-top: 0; }
.marcas b { font: 500 14px var(--mono); }
.ext b .tld { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ext-side { display: inline-flex; align-items: center; gap: 10px; }
.st { font-size: 13px; font-weight: 500; white-space: nowrap; }
.st.ok { color: var(--ink); }
.st.bad { color: var(--bad); }
.link-btn { display: inline-block; padding: 6px 12px; font-size: 13px; border: 1.5px solid var(--ink); border-radius: var(--radius); text-decoration: none; white-space: nowrap; }
.link-btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 420px) { .ext { grid-template-columns: minmax(0, 1fr); } .ext-side { justify-content: space-between; } }

.passos, .vigia, .agentes-cta, .duvidas { padding: 40px 0 8px; border-top: 1.5px solid var(--ink); margin-top: 40px; }
.passos h2, .vigia h2, .agentes-cta h2, .duvidas h2 { margin: 0 0 12px; font: 500 30px/1.15 var(--serif); }
.tres { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .tres { grid-template-columns: minmax(0, 1fr); } }
.tres li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.tres b { display: block; font: 500 24px/1.2 var(--serif); margin-bottom: 6px; }
.vigia p { max-width: 44em; }
.promessa { font: 500 22px/1.35 var(--serif); margin-top: 18px; }
code { font: 500 15px var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; overflow-wrap: anywhere; }
pre { font: 500 13px/1.5 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; max-width: 100%; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.duvidas details { border-top: 1px solid var(--line); padding: 12px 0; }
.duvidas summary { cursor: pointer; font-weight: 500; }
.duvidas details p { margin: 8px 0 0; max-width: 44em; color: var(--muted); }
dialog textarea {
  display: block; width: 100%; margin-top: 4px; font: 500 15px var(--mono); padding: 10px 12px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); resize: vertical;
}

/* agents page */
.doc { padding: 40px 16px 8px; max-width: 760px; }
.doc h1 { max-width: none; }
.doc h2 { font: 500 28px/1.2 var(--serif); margin: 36px 0 10px; }
.doc h3 { font: 500 20px/1.25 var(--serif); margin: 22px 0 6px; }
.tools { width: 100%; border-collapse: collapse; font-size: 14px; }
.tools th, .tools td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-top: 1px solid var(--line); }
.tools td:first-child { font: 500 13px var(--mono); white-space: nowrap; }
@media (max-width: 560px) { .tools td:first-child { white-space: normal; overflow-wrap: anywhere; } }

/* account (/conta) */
.conta { padding: 32px 16px 8px; }
.conta h1 { max-width: none; }
.conta-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.conta-head h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 8px; overflow-wrap: anywhere; }
.lista-simples { padding-left: 20px; max-width: 40em; }
.lista-simples li { margin: 6px 0; }
.botoes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.marcas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 18px; }
.marca-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; min-width: 0; }
.marca-card:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.marca-nome { font: 500 22px/1.2 var(--serif); overflow-wrap: anywhere; }
.nova-campos { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto auto; gap: 8px; align-items: end; }
@media (max-width: 760px) { .nova-campos { grid-template-columns: minmax(0, 1fr); } }
.nova label, .add label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }
.nova input, .nova select, .add input, .add select {
  font: 500 15px var(--sans); padding: 10px 12px; color: var(--ink); min-width: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.nova button { height: 42px; }
.add { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.add input { flex: 1; min-width: 140px; font-family: var(--mono); }
.acoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bloco-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bloco.wide { grid-column: 1 / -1; }
.conta .bloco { margin-bottom: 14px; }
.conta .rel-grid .bloco { margin-bottom: 0; }
.segs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.seg { background: transparent; color: var(--ink); border: 0; border-radius: 0; padding: 5px 10px; font-size: 12px; white-space: nowrap; }
.seg + .seg { border-left: 1.5px solid var(--ink); }
.seg.on { background: var(--ink); color: var(--paper); }
.alertas { list-style: none; padding: 0; margin: 0; }
.alerta { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.alerta:first-child { border-top: 0; }
.alerta .nivel { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 999px; border: 1.5px solid var(--ink); }
.alerta.alerta .nivel { color: var(--bad); border-color: currentColor; }
.alerta.info .nivel { border-color: var(--line); color: var(--muted); }
.alerta.visto { color: var(--muted); }
.perigo { margin-top: 28px; }
.guardar .acoes-guardar { display: flex; gap: 8px; flex-wrap: wrap; }
.guardar a.vigiar { display: inline-flex; align-items: center; padding: 12px 20px; border: 1.5px solid var(--paper); border-radius: var(--radius); color: var(--paper); text-decoration: none; font-weight: 500; font-size: 15px; }
.guardar a.vigiar:hover { background: var(--paper); color: var(--ink); }

/* ---------- home chat (Nov 2026) ---------- */
.chat { max-width: 720px; padding: 4px 0 0; }
.chat-window {
  background: var(--surface); border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden;
  box-shadow: 0 1px 0 var(--ink), 0 18px 40px -24px rgba(17, 17, 15, .45);
  display: flex; flex-direction: column;
}
.chat-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chat-top b { display: block; font: 600 16px/1.2 var(--sans); }
.chat-status { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3f7d4e; }
.chat-window.ocupada .chat-status::before { background: var(--muted); animation: blink 1.2s infinite; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.avatar img { width: 24px; height: auto; }
.avatar.grande { width: 40px; height: 40px; background: var(--surface); }
.avatar.grande img { width: 32px; }
.chat-log {
  height: min(440px, 58vh); overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px 8px;
  display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin;
}
.msg { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.msg.seguida { margin-top: 0; }
.msg.bot.seguida .avatar { visibility: hidden; }
.msg .bubble { min-width: 0; padding: 9px 14px; border-radius: 18px; font-size: 15.5px; line-height: 1.45; max-width: min(78%, 480px); }
.msg .bubble p { margin: 0; }
.msg.bot .bubble { background: #fffdf8; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.bot.seguida .bubble { border-top-left-radius: 6px; }
.msg.me { justify-content: flex-end; }
.msg.me .bubble { background: var(--ink); color: var(--paper); border-bottom-right-radius: 6px; overflow-wrap: anywhere; }
.msg.me.seguida .bubble { border-top-right-radius: 6px; }
.resumo-titulo { font: 500 17px/1.3 var(--mono); margin-bottom: 4px !important; }
.resumo { list-style: none; padding: 0; margin: 0 0 8px; }
.resumo li { padding: 3px 0 3px 14px; position: relative; }
.resumo li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.rel-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.rel-link span { transition: transform .2s ease; display: inline-block; }
.rel-link:hover span { transform: translateX(3px); }
.dots { display: inline-flex; gap: 4px; padding: 5px 2px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .35; }
.chat-dock { padding: 8px 12px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 10px; }
.chat-chips:empty { display: none; }
.chat-chips .chip {
  font: 500 14px var(--sans); padding: 7px 14px; text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px;
  background: var(--paper); color: var(--ink); transition: background .15s, color .15s, transform .15s;
}
.chat-chips .chip:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.chat-form { display: flex; gap: 8px; align-items: center; background: #fffdf8; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 4px 4px 16px; transition: box-shadow .15s; }
.chat-form:focus-within { box-shadow: 0 0 0 3px rgba(17, 17, 15, .14); }
.chat-form input { flex: 1; min-width: 0; font: 400 16px var(--sans); padding: 9px 0; border: 0; background: transparent; color: var(--ink); outline: none; }
.chat-form input::placeholder { color: #9b9385; }
.chat-form button { width: 42px; height: 42px; padding: 0; border-radius: 50%; display: grid; place-items: center; transition: transform .15s, opacity .15s; }
.chat-form button:not(:disabled):active { transform: scale(.92); }
.chat .hint { margin: 10px 4px 0; }
@media (prefers-reduced-motion: no-preference) {
  .msg { animation: msg-in .28s cubic-bezier(.2, .8, .2, 1) both; }
  .msg.me { animation-name: msg-in-me; }
  .msg.digitando { animation-duration: .18s; }
  .dots i { animation: bounce 1.1s infinite ease-in-out; }
  .dots i:nth-child(2) { animation-delay: .15s; }
  .dots i:nth-child(3) { animation-delay: .3s; }
  .chat-chips .chip { animation: chip-in .3s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
}
@keyframes msg-in { from { opacity: 0; transform: translate(-6px, 8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes msg-in-me { from { opacity: 0; transform: translate(6px, 8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bounce { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-4px); opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 560px) {
  .chat-window { border-radius: 18px; }
  .chat-log { height: min(460px, 62vh); padding: 14px 10px 6px; }
  .msg .bubble { max-width: 86%; }
}

/* report page */
.relatorio { padding-top: 24px; }
.rel-head { margin-bottom: 18px; }
.rel-kicker { margin: 0 0 8px; font-size: 14px; }
.rel-kicker a { text-decoration: none; border-bottom: 1px solid var(--line); }
.rel-head h1 { font: 500 clamp(34px, 6vw, 52px)/1.05 var(--mono); max-width: none; overflow-wrap: anywhere; margin: 0 0 6px; }
.carregando { animation: blink 1.4s infinite; }
.rel-acoes { margin: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 20px 22px; }
.rel-acoes h3 { margin: 0 0 4px; font: 500 24px/1.2 var(--serif); }
.rel-acoes p { margin: 0; max-width: 40em; color: #d9d1c2; }
.rel-acoes .botoes { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius); font-weight: 600; text-decoration: none; background: var(--paper); color: var(--ink); border: 1.5px solid var(--paper); }
.btn.alt { background: transparent; color: var(--paper); }

/* account connections */
.conexoes { padding: 32px 0 8px; border-top: 1.5px solid var(--ink); margin-top: 32px; scroll-margin-top: 16px; }
.conexoes h2 { margin: 0 0 8px; font: 500 30px/1.15 var(--serif); }
.conexoes .botoes { margin: 12px 0 4px; }
.aviso-ok { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 12px 16px; }

/* signed in: the account link reads as a pill */
.nav { align-items: center; }
.nav a.logado { background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 5px 14px; font-weight: 500; line-height: 1.2; }
.nav a.logado:hover { background: #2c2b27; }

/* account assets: the whole address on its own line, status and toggles below */
.ext.ativo { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ext.ativo b { white-space: normal; overflow-wrap: anywhere; }
.ext.ativo .ext-meta { white-space: normal; }
.ext.ativo .ext-side { justify-content: space-between; flex-wrap: wrap; gap: 8px 10px; }

/* agents page: one-click connect */
.instalar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 6px; }
@media (max-width: 640px) { .instalar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.inst {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 16px;
  background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 12px; text-decoration: none;
  font: inherit; cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.inst b { font: 600 16px/1.2 var(--sans); }
.inst span { font-size: 13px; color: var(--muted); transition: color .15s; }
.inst:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.inst:hover span { color: #d9d1c2; }
.inst.ok span::after { content: " · copiado"; }

/* /conectar: an assistant asks to read the account */
.conectar #pedido h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.conectar-dados { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 18px 0; }
.conectar-dados dt { color: var(--muted, #5c574e); }
.conectar-dados dd { margin: 0; font-family: 'IBM Plex Mono', monospace; overflow-wrap: anywhere; }

/* Account: edit a brand in place */
.editar { display: grid; gap: 12px; max-width: 560px; margin: 8px 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface, #f8f4ec); }
.editar label { display: grid; gap: 4px; font-weight: 500; }
.editar input, .editar select { font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper, #f3ecdf); }
.editar .botoes { margin: 0; }

/* Signed in: the home is the conversation. The pitch is for visitors. */
html[data-sessao="sim"] main > section:not(.chat) { display: none; }
html[data-sessao="sim"] .chat { max-width: 820px; margin: 0 auto; padding-top: 12px; }
html[data-sessao="sim"] .chat-log { height: max(360px, calc(100vh - 300px)); height: max(360px, calc(100dvh - 300px)); }
.btn.escuro { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.escuro:hover { background: var(--paper); color: var(--ink); }

/* Signed out, the home leads with connecting an agent (Claude, ChatGPT). */
.hero .instalar { margin-top: 26px; }
.hero #copiado { min-height: 1.4em; margin: 6px 0 0; }
.como code { font-size: .9em; overflow-wrap: anywhere; }
.chat-h { margin: 48px 0 14px; font: 500 30px/1.15 var(--serif); padding-top: 40px; border-top: 1.5px solid var(--ink); }
html[data-sessao="sim"] .chat-h { display: none; }

/* dominios.bernuncia.com.br/liberacao: registro.br release process */
.prazo { display: inline-block; margin: -8px 0 22px; padding: 5px 12px; border: 1.5px solid var(--ink); border-radius: var(--radius); font-weight: 500; font-size: 15px; }
.filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.filtros label { display: inline-flex; align-items: center; gap: 6px; }
.filtros select { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 5px 8px; }
.filtros input[type="checkbox"] { accent-color: var(--ink); width: 16px; height: 16px; }
.liberacao { padding: 24px 0 8px; max-width: 760px; }
.liberacao h2 { font: 500 26px/1.2 var(--serif); margin: 16px 0 6px; }
.liberacao .exts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 16px; }
.liberacao .ext b .muted { font-weight: 500; }
.liberacao .act { flex: none; }
.contagem { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
button.mais { margin-top: 14px; }
.hint a { color: var(--ink); }

/* inpi. and redes.: a name (and a sentence) to check, then one block */
.search.pilha { flex-wrap: wrap; }
.search.pilha input[name="nome"] { flex: 1 1 200px; }
.search.pilha input[name="ideia"] { flex: 2 1 280px; font: 400 17px var(--sans); }
.resultado { max-width: 760px; margin: 8px 0 40px; }
.resultado .bloco { margin-bottom: 16px; }
.abas { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.abas a { text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 14px; font-weight: 500; }
.abas a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav { flex-wrap: wrap; row-gap: 6px; }
.nav a[aria-current="page"] { border-color: var(--ink); }
@media (max-width: 560px) { .nav { gap: 12px; font-size: 14px; } }

/* nota de disponibilidade, 0 to 10 */
.nota { display: flex; gap: 18px; align-items: flex-start; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; margin: 14px 0 6px; max-width: 640px; background: var(--surface); }
.nota-valor { font: 600 48px/1 var(--serif); white-space: nowrap; }
.nota-valor small { font: 500 16px var(--mono); color: var(--muted); }
.nota-rotulo { margin: 2px 0 6px; font-weight: 600; }
.nota-partes { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 0 0 6px; font-size: 14px; }
.nota-texto { min-width: 0; }
.nota-texto p.small { margin: 0; }

/* home, signed out: the chat opens in the account */
.chat-porta { display: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 18px 20px; max-width: 640px; background: var(--surface); }
.chat-porta p { margin: 0 0 12px; }
html[data-chat="fechado"] .chat-porta { display: block; }
html[data-chat="fechado"] .chat-window, html[data-chat="fechado"] .chat > .hint { display: none; }
.sem-agente { margin: 10px 0 0; font-size: 15px; }
html[data-sessao="sim"] .sem-agente { display: none; }
.conexoes .sub-h { margin: 22px 0 6px; font: 600 15px var(--sans); text-transform: uppercase; letter-spacing: .04em; }

/* ?embed=1: the chat alone, filling the account's corner popup */
html[data-embed] body { background: var(--surface); }
html[data-embed] .top, html[data-embed] .foot, html[data-embed] .chat-h, html[data-embed] .chat > .hint,
html[data-embed] main > section:not(.chat) { display: none; }
html[data-embed] main, html[data-embed] .chat { max-width: none; margin: 0; padding: 0; }
html[data-embed] .chat-window { height: 100vh; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
html[data-embed] .chat-top { padding-right: 56px; }
html[data-embed] .chat-log { flex: 1; height: auto; min-height: 0; }

/* conta.: the chat tucked in the bottom-right corner */
.chat-abrir {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 64px; height: 64px; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 1px 0 var(--ink), 0 14px 30px -14px rgba(17, 17, 15, .55);
  transition: transform .15s ease;
}
.chat-abrir:hover { transform: translateY(-2px); }
.chat-abrir img { width: 44px; height: auto; }
.chat-popup {
  position: fixed; right: 20px; bottom: 20px; z-index: 41; width: 400px; height: min(640px, calc(100vh - 40px));
  border: 1.5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 0 var(--ink), 0 24px 60px -24px rgba(17, 17, 15, .55);
  transform-origin: bottom right; animation: popup-in .18s ease-out;
}
.chat-popup[hidden], .chat-abrir[hidden] { display: none; }
.chat-popup iframe { display: block; width: 100%; height: 100%; border: 0; }
.chat-fechar {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer;
}
.chat-fechar:hover { border-color: var(--ink); }
@keyframes popup-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .chat-popup { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  .chat-abrir { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .chat-popup { animation: none; } .chat-abrir { transition: none; } }

/* conta.: one Conexões list, each card connects or disconnects */
.bloco.conexao { display: flex; flex-direction: column; }
.conexao-acoes { margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 10px; }
button.mini.escuro { background: var(--ink); color: var(--paper); }
button.mini.escuro:hover { background: var(--paper); color: var(--ink); }
.conexao-nota { margin: 8px 0 0; min-height: 0; }
.conexao-nota:empty { display: none; }
.st.muted { color: var(--muted); }
