/* Fontes servidas pelo próprio site (nada é carregado do Google) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-tight-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/inter-tight-latin-800-normal.woff2") format("woff2"); }

/* =========================================================
   Paleta e estilo: papel + tinta, bordas de 1,5px, cantos retos,
   sombras "empilhadas" sólidas, verde como destaque.
   Fontes: Inter (texto) e Inter Tight (títulos).
   ========================================================= */

/* Tema claro */
:root {
  --paper: #f3f2ee;
  --surface: #fbfaf7;
  --ink: #0e0e0e;
  --ink-soft: #55534e;
  --rule: #d6d3cb;
  --green: #5ed37a;
  --yellow: #f2c53d;
  --swoosh: #5ed37a;
  --on-ink: #f3f2ee;
  --danger: #d93a3f;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Inter Tight", "Inter", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
/* Tema escuro (padrão quando o sistema está no escuro) */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --surface: #1a1a18;
    --ink: #f3f2ee;
    --ink-soft: #a7a49c;
    --rule: #34332f;
    --green: #6be08a;
    --yellow: #f5cd4f;
    --swoosh: #2e8b4c;
    --on-ink: #121211;
    --danger: #ff6b6f;
    color-scheme: dark;
  }
}
/* Faixa invertida (seção de destaque) */
.invert { --paper: #0e0e0e; --surface: #161614; --ink: #f3f2ee; --ink-soft: #a7a49c; --rule: #34332f; --on-ink: #0e0e0e; background: var(--paper); color: var(--ink); }
@media (prefers-color-scheme: dark) { .invert { --paper: #1f1f1c; --surface: #262623; } }

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font-family: var(--font-mono); font-size: .9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.muted { color: var(--ink-soft); }

/* Sombras sólidas empilhadas */
.raised { box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink), 5px 5px 0 var(--ink), 6px 6px 0 var(--ink); }
.box { border: 1.5px solid var(--ink); background: var(--surface); }

/* ---------- Topo ---------- */
header.top { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1.5px solid var(--ink); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; font-size: 19px; display: flex; gap: 10px; align-items: center; }
.brand .dot { width: 28px; height: 28px; background: var(--green); border: 1.5px solid var(--ink); display: grid; place-items: center; }
.brand .dot svg { width: 16px; height: 16px; }
nav { display: flex; gap: 22px; }
nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 4px; }
nav a::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .18s; }
nav a:hover::after { transform: scaleX(1); }
nav a.active::after { transform: scaleX(1); background: var(--green); height: 3px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--on-ink); font: 600 14px var(--font-body); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .16s, box-shadow .16s, background-color .16s; border-radius: 0; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink), 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.field input:focus, .field input:focus-visible { outline: none; box-shadow: none; }
.btn.accent { background: var(--green); color: #0e0e0e; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; }
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }
.link-btn { background: none; border: 0; color: var(--ink); cursor: pointer; font: 500 14px var(--font-body); margin-top: 18px; text-decoration: underline 1.5px; text-underline-offset: 4px; }
.link-btn:hover { text-decoration-color: var(--green); text-decoration-thickness: 3px; }

/* ---------- Etiquetas ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1.5px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag.green { background: var(--green); color: #0e0e0e; border-color: #0e0e0e; }
.tag.yellow { background: var(--yellow); color: #0e0e0e; border-color: #0e0e0e; }

/* ---------- Home ---------- */
.hero { padding: 72px 0 64px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 8vw, 5.5rem); letter-spacing: -0.045em; line-height: .98; margin: 0 0 22px; max-width: 900px; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hero p.lead { color: var(--ink-soft); font-size: 18px; margin: 0 0 34px; max-width: 520px; animation: rise .6s .09s cubic-bezier(.2,.7,.2,1) both; }
.swoosh { position: relative; display: inline-block; z-index: 0; }
.swoosh svg { position: absolute; z-index: -1; left: 0; top: 62%; width: 100%; height: 42%; overflow: visible; }
.swoosh path { stroke: var(--swoosh); stroke-dasharray: 1 1.5; stroke-dashoffset: 1; animation: draw .75s .45s cubic-bezier(.6,0,.2,1) forwards; }

.field { display: flex; width: 100%; max-width: 580px; margin-bottom: 26px; box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink); animation: rise .6s .18s cubic-bezier(.2,.7,.2,1) both; }
.field input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid var(--ink); border-right-width: 0; background: var(--surface); color: var(--ink); font: 15px var(--font-body); outline: none; border-radius: 0; }
.field input::placeholder { color: var(--ink-soft); }
.field .suffix { display: flex; align-items: center; height: 52px; padding: 0 14px 0 2px; border: 1.5px solid var(--ink); border-left: 0; border-right-width: 0; background: var(--surface); color: var(--ink-soft); font: 500 15px var(--font-body); white-space: nowrap; }
.field input { padding-right: 4px; }
.field .btn { height: 52px; box-shadow: none; transform: none; }
.field .btn:hover { background: color-mix(in oklab, var(--ink) 85%, var(--paper)); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.ticks li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 10px; background: var(--green); color: #0e0e0e; border: 1.5px solid #0e0e0e; font-size: 11px; font-weight: 800; }
#recent { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

.section { border-top: 1.5px solid var(--ink); }
.section-head { padding: 64px 0 28px; }
.section-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.045em; line-height: 1; margin: 12px 0 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1.5px solid var(--ink); }
.step { padding: 28px 24px 40px; border-bottom: 1.5px solid var(--ink); }
@media (min-width: 780px) { .step + .step { border-left: 1.5px solid var(--ink); } .step { border-bottom: 0; } }
.step .n { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--green); letter-spacing: -0.04em; }
.step h3 { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; margin: 6px 0 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats div { padding: 40px 24px; }
@media (min-width: 640px) { .stats div + div { border-left: 1.5px solid var(--ink); } }
.stats b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.045em; line-height: 1; }
.stats span { color: var(--ink-soft); font-size: 14px; }

.faq { padding: 0 0 80px; max-width: 760px; }
.faq details { border-top: 1.5px solid var(--ink); }
.faq details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { text-decoration: underline 1.5px; text-underline-offset: 4px; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1.5px solid var(--ink); font-size: 18px; font-weight: 500; transition: transform .22s, background-color .16s; }
.faq details[open] summary::after { content: "−"; background: var(--green); color: #0e0e0e; border-color: #0e0e0e; transform: rotate(180deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); animation: fade .26s both; }

.cta { padding: 64px 0; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.75rem, 4vw, 2.75rem); letter-spacing: -0.045em; line-height: 1; margin: 0; }

/* ---------- Caixa de entrada ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.045em; line-height: 1; margin: 12px 0 6px; }
.inbox-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; padding: 24px 0 64px; align-items: start; }
@media (max-width: 860px) { .inbox-layout { grid-template-columns: 1fr; } .inbox-layout.reading .list-panel { display: none; } .inbox-layout:not(.reading) .read-panel { display: none; } }
.panel { border: 1.5px solid var(--ink); background: var(--surface); display: flex; flex-direction: column; min-height: 520px; }
.list-panel { box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink), 5px 5px 0 var(--ink), 6px 6px 0 var(--ink); }
.panel-head { padding: 14px 16px; border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.addr { font-family: var(--font-body); font-size: 14px; word-break: break-all; margin-top: 6px; }
.status { height: 24px; padding: 0 8px; border: 1.5px solid var(--ink); display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 12px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); }
.status.on { background: var(--green); color: #0e0e0e; border-color: #0e0e0e; }
.status.on i { background: #0e0e0e; animation: blink 1.4s infinite; }
.status.off { background: var(--danger); color: #fff; border-color: var(--danger); }
.status.off i { background: #fff; }
.list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; max-height: 70vh; }
.list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; border-bottom: 1.5px solid var(--rule); cursor: pointer; }
.list li:hover { background: color-mix(in oklab, var(--surface) 80%, var(--ink)); }
.list li.sel { background: color-mix(in oklab, var(--green) 18%, var(--surface)); }
.list li.new { animation: slidein .28s cubic-bezier(.2,.7,.2,1) both; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--ink); font-weight: 700; font-family: var(--font-display); background: var(--paper); text-transform: uppercase; }
.list li.new .avatar, .list li.unread .avatar { background: var(--green); color: #0e0e0e; border-color: #0e0e0e; }
.row-main { min-width: 0; }
.row-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-soft); }
.row-from { font-weight: 700; color: var(--ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-subject { font-weight: 600; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-preview { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; margin-top: 8px; height: 26px; padding: 0 8px; background: var(--yellow); color: #0e0e0e; border: 1.5px solid #0e0e0e; font: 700 13px var(--font-mono); letter-spacing: .06em; cursor: copy; }
.empty { padding: 56px 20px; text-align: center; color: var(--ink-soft); }
.empty b { color: var(--ink); }
.empty .pulse { width: 14px; height: 14px; background: var(--green); border: 1.5px solid var(--ink); margin: 0 auto 16px; animation: pop 1.6s infinite; }
.error { color: var(--danger); font-size: 14px; margin-top: 10px; }

.read-body { flex: 1; display: flex; flex-direction: column; min-height: 520px; }
.read-meta { padding: 18px 20px; border-bottom: 1.5px solid var(--ink); }
.read-meta h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 6px; font-size: 24px; line-height: 1.1; }
.read-meta .muted { font-size: 13px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.quick:empty { display: none; }
.code-big { font-family: var(--font-mono); font-size: 18px; font-weight: 800; letter-spacing: .1em; }
iframe.mail { flex: 1; width: 100%; min-height: 480px; border: 0; background: #fff; }
pre.mail { flex: 1; margin: 0; padding: 20px; white-space: pre-wrap; word-break: break-word; font-family: inherit; }

.bar { height: 10px; border: 1.5px solid var(--ink); margin: 20px 0 10px; background: var(--paper); }
.bar > div { height: 100%; background: var(--green); transition: width 1s linear; }

/* ---------- Avisos e rodapé ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--green); color: #0e0e0e; border: 1.5px solid #0e0e0e; padding: 10px 16px; font-weight: 600; font-size: 14px; box-shadow: 1px 1px 0 #0e0e0e, 2px 2px 0 #0e0e0e, 3px 3px 0 #0e0e0e, 4px 4px 0 #0e0e0e; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }
footer { border-top: 1.5px solid var(--ink); color: var(--ink-soft); font-size: 13px; padding: 24px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Animações ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.85); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes slidein { from { opacity: 0; transform: translateX(-10px); background: color-mix(in oklab, var(--green) 30%, var(--surface)); } to { opacity: 1; transform: none; } }
@keyframes draw { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Barra de endereços (caixa de entrada) ---------- */
.addr-bar { margin-top: 32px; padding: 20px; box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink), 4px 4px 0 var(--ink); }
.addr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.addr-input { flex: 1 1 320px; display: flex; min-width: 0; border: 1.5px solid var(--ink); background: var(--paper); }
.addr-input input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 400 15px var(--font-body); outline: none; }
.addr-input .suffix { display: flex; align-items: center; padding: 0 14px 0 4px; color: var(--ink-soft); font: 400 15px var(--font-body); white-space: nowrap; }
.addr-row .btn { height: 51px; }
.addr-list { margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--rule); }
.addr-list-title { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-addr { display: inline-flex; align-items: center; height: 36px; border: 1.5px solid var(--ink); background: var(--surface); font: 500 14px var(--font-body); cursor: pointer; }
.chip-addr .name { padding: 0 10px 0 12px; }
.chip-addr .x { display: grid; place-items: center; width: 30px; height: 100%; border: 0; border-left: 1.5px solid var(--ink); background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 16px; }
.chip-addr .x:hover { color: var(--danger); }
.chip-addr:hover { background: color-mix(in oklab, var(--surface) 85%, var(--ink)); }
.chip-addr.active { background: var(--green); color: #0e0e0e; border-color: #0e0e0e; }
.chip-addr.active .x { color: #0e0e0e; border-color: #0e0e0e; }
.chip-addr .badge { margin-right: 8px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; background: var(--yellow); color: #0e0e0e; border: 1.5px solid #0e0e0e; font-size: 11px; }
.inbox-layout { padding-top: 24px; }
@media (max-width: 640px) { .addr-row .btn { flex: 1; } }
.wrap.inbox-layout { padding-left: 20px; padding-right: 20px; }
@media (min-width: 640px) { .wrap.inbox-layout { padding-left: 32px; padding-right: 32px; } }

/* ---------- Menu do usuário ---------- */
nav { align-items: center; }
.user-menu { display: inline-flex; align-items: center; gap: 14px; margin-left: 4px; font-size: 14px; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 5px; border: 1.5px solid var(--ink); background: var(--surface); }
.user-avatar { display: grid; place-items: center; width: 28px; height: 28px; background: var(--green); color: #0e0e0e; border: 1.5px solid #0e0e0e; font: 800 14px var(--font-display); }
.user-name { color: var(--ink); font: 700 14px var(--font-display); letter-spacing: -0.01em; }
.link-out { background: none; border: 0; padding: 8px 0; color: var(--ink); font: 600 14px var(--font-body); cursor: pointer; text-decoration: underline 1.5px; text-underline-offset: 4px; }
.link-out:hover { text-decoration-color: var(--danger); }
@media (max-width: 560px) { .user-chip { padding: 0 5px; } nav { gap: 14px; } .user-menu { padding-left: 12px; } }

/* ---------- Tela de login ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-brand .brand { font-size: 26px; gap: 12px; }
.auth-brand .brand .dot { width: 38px; height: 38px; }
.auth-brand .brand .dot svg { width: 20px; height: 20px; }
.auth-card { width: 100%; max-width: 440px; padding: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1.5px solid var(--ink); }
.auth-tab { height: 54px; border: 0; background: transparent; color: var(--ink-soft); font: 600 14px var(--font-body); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.auth-tab.active { color: var(--ink); border-bottom-color: var(--green); }
.auth-form { display: grid; gap: 16px; padding: 28px; }
.auth-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.auth-form input { height: 48px; padding: 0 14px; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: 400 15px var(--font-body); outline: none; border-radius: 0; }
.auth-form input:focus { background: var(--surface); }
.auth-form .btn { height: 50px; margin-top: 4px; }
.auth-form .hint { font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.auth-error { min-height: 20px; color: var(--danger); font-size: 14px; }
.auth-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-soft); }

/* ---------- Painel admin ---------- */
.admin { padding-top: 36px; padding-bottom: 80px; display: grid; gap: 24px; }
.admin h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.045em; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; margin: 10px 0 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.admin-stats div { padding: 20px; border: 1.5px solid var(--ink); background: var(--surface); margin: 0 -1.5px -1.5px 0; }
.admin-stats b { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.admin-stats span { font-size: 13px; color: var(--ink-soft); }
.admin-card { padding: 0; }
.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1.5px solid var(--ink); }
.admin-card-head h2 { margin: 0; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.admin-actions { display: flex; gap: 8px; align-items: center; }
.admin-actions select { height: 36px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font: 500 14px var(--font-body); padding: 0 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; padding: 12px 20px; border-bottom: 1.5px solid var(--rule); }
.table td { padding: 12px 20px; border-bottom: 1.5px solid var(--rule); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .code { font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 6px; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border: 1.5px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.pill.green { background: var(--green); color: #0e0e0e; border-color: #0e0e0e; }
.pill.red { background: var(--danger); color: #fff; border-color: var(--danger); }
.pill.muted { color: var(--ink-soft); border-color: var(--rule); }
.table-wrap { overflow-x: auto; }
.empty-row { padding: 28px 20px; text-align: center; color: var(--ink-soft); }

.auth-form[hidden] { display: none; }

/* Logo trocado pelo usuário logado */
.brand[data-user] { visibility: hidden; }
.brand.user-brand { gap: 12px; cursor: default; user-select: none; }
.brand.user-brand .user-avatar { width: 32px; height: 32px; font-size: 16px; }
.brand.user-brand .user-name { font: 800 19px var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.chip[data-invite] { font: 600 13px var(--font-body); letter-spacing: 0; }

/* ---------- Lixeiras e confirmação ---------- */
.icon-btn { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.icon-btn:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.read-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(14,14,14,.45); animation: fade .15s both; }
.modal { width: 100%; max-width: 420px; padding: 24px; }
.modal h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.modal p { margin: 0 0 22px; color: var(--ink-soft); font-size: 15px; word-break: break-word; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }

/* Botões do e-mail aberto: ações à esquerda, lixeira à direita */
.read-actions-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.read-actions { align-items: flex-start; }
.back-mobile { display: none; }
@media (max-width: 860px) { .back-mobile { display: inline-flex; } }

.list li.pending { cursor: default; opacity: .65; }

.img-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 20px; border-bottom: 1.5px solid var(--rule); background: var(--paper); font-size: 13px; color: var(--ink-soft); }

/* ---------- Menu em caixinhas ---------- */
header.top nav { gap: 8px; }
header.top nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; transition: background-color .15s, transform .15s, box-shadow .15s; }
header.top nav a::after { display: none; }
header.top nav a:hover { transform: translate(-1px, -1px); box-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink), 3px 3px 0 var(--ink); }
header.top nav a.active { background: var(--green); color: #0e0e0e; border-color: #0e0e0e; }
header.top nav a.nav-out:hover { color: var(--danger); border-color: var(--danger); box-shadow: none; transform: none; }
@media (max-width: 560px) { header.top nav a { padding: 0 10px; height: 34px; font-size: 13px; } header.top nav { gap: 6px; } }

/* ---------- Página 404 ---------- */
.notfound { padding: 32px 28px; }
.notfound h1 { margin: 14px 0 8px; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.04em; font-size: clamp(1.8rem, 6vw, 2.4rem); line-height: 1.05; }
.notfound p { margin: 0 0 24px; color: var(--ink-soft); }
.notfound .btn { width: 100%; height: 50px; }

.link-host{opacity:.65;font-weight:400;font-size:.92em;margin-left:2px}

/* arrastar endereços */
.chip-addr { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.chips.sorting, .chips.sorting .chip-addr { cursor: grabbing; }
.chip-addr.dragging { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); z-index: 1; position: relative; transition: box-shadow .1s, transform .1s; }
