.nav-account {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
    font-size: 13px;
    white-space: nowrap;
}
.nav-account a {
    color: var(--text-primary, var(--t-text, #2e3031));
    text-decoration: none;
    font-weight: 600;
}
.nav-account a:hover { color: var(--accent-red, var(--t-red, #b92b27)); text-decoration: underline; }
.nav-account .nav-account-link { color: var(--accent-red, var(--t-red, #b92b27)); }
.btn-account-sair,
.nav-account button {
    appearance: none;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    background: var(--bg-card, var(--t-surface, #fff));
    color: var(--text-primary, var(--t-text, #2e3031));
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-account-sair:hover { border-color: var(--accent-red, var(--t-red, #b92b27)); color: var(--accent-red, var(--t-red, #b92b27)); }

.user-mention {
    font-weight: 700;
    color: var(--accent-red, var(--t-red, #b92b27));
    text-decoration: none;
}
.user-mention:hover { text-decoration: underline; }
.user-badge {
    display: inline-block;
    margin-left: 4px;
    color: var(--t-green, #228822);
    font-weight: 700;
    font-size: 11px;
}
.user-badge.primordial {
    color: var(--t-warn-text, #8a5a12);
    background: var(--t-warn-bg, #f8efd2);
    border: 1px solid var(--t-warn-border, #e0c772);
    border-radius: 999px;
    padding: 0 6px;
    font-size: 10px;
    letter-spacing: 0.02em;
    vertical-align: middle;
}
.bd-comments-reddit .user-mention { color: var(--t-link2, #369); }
.bd-comments-reddit .user-badge { color: var(--t-green, #228822); }
.or-author.user-mention, a.or-author { font-weight: 700; }

.auth-main {
    max-width: 480px;
    margin: 50px auto 0;
    padding: 32px 16px 64px;
}
.auth-card {
    background: var(--bg-card, var(--t-surface, #fff));
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 8px;
    padding: 22px;
}
.auth-card h1 { font-size: 22px; margin: 0 0 8px; color: var(--text-primary, var(--t-text, #2e3031)); }
.auth-lead { color: var(--text-secondary, var(--t-text2, #636466)); font-size: 14px; margin: 0 0 18px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
    background: var(--search-bg, var(--t-surface2, #f7f7f8));
    color: var(--text-primary, var(--t-text, #2e3031));
}
.auth-card .auth-submit {
    margin-top: 16px;
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    border: none;
    background: var(--accent-red, #b92b27);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    padding: 9px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.auth-card .auth-submit:hover { background: var(--accent-red-hover, #a12320); }
.auth-card .auth-submit:disabled { opacity: 0.7; cursor: wait; }
.auth-status { font-size: 13px; margin-top: 10px; color: var(--text-secondary, var(--t-text2, #636466)); }
.auth-status.erro { color: var(--accent-red, var(--t-red, #b92b27)); }
.auth-status.ok { color: var(--t-green, #228822); }
.auth-alt { font-size: 13px; margin-top: 16px; }
.auth-alt a { color: var(--accent-red, var(--t-red, #b92b27)); font-weight: 600; }
.bd-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; opacity: 0 !important; }
.claim-box {
    border: 1px solid var(--t-ok-border, #d4e6d4);
    background: var(--t-ok-bg, #f0fff0);
    padding: 12px 14px;
    border-radius: 6px;
    margin: 0 0 16px;
}
.claim-box h2 { font-size: 15px; margin: 0 0 6px; color: var(--t-green, #228822); }
.claim-box p { font-size: 13px; margin: 0 0 10px; color: var(--t-text, #2e3031); }
.claim-box button {
    appearance: none;
    border: 1px solid var(--t-green, #228822);
    background: var(--t-surface, #fff);
    color: var(--t-green, #228822);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.claim-box button:hover { background: var(--t-ok-bg, #e8f8e8); }

.profile-main { padding: 24px 16px 64px; max-width: 720px; }
.profile-card {
    background: var(--bg-card, var(--t-surface, #fff));
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 8px;
    padding: 22px;
}
.profile-name { font-size: 26px; margin: 0 0 6px; color: var(--text-primary, var(--t-text, #2e3031)); }
.profile-meta { color: var(--text-secondary, var(--t-text2, #636466)); font-size: 14px; margin: 0 0 20px; }
.profile-status { color: var(--text-secondary, var(--t-text2, #636466)); }
.profile-status.erro { color: var(--accent-red, var(--t-red, #b92b27)); }
.profile-comments { list-style: none; margin: 0; padding: 0; }
.profile-comments li {
    border-top: 1px solid var(--border-subtle, var(--t-border, #f1f2f2));
    padding: 12px 0;
}
.profile-comments .profile-comment-page {
    font-size: 12px;
    color: var(--text-secondary, var(--t-text2, #636466));
    margin-bottom: 4px;
}
.profile-comments .profile-comment-page a { color: var(--accent-red, var(--t-red, #b92b27)); }
.profile-comments .profile-comment-body { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.bd-as-user { font-size: 13px; margin: 0 0 8px; color: var(--text-primary, var(--t-text, #2e3031)); }

@media (max-width: 640px) {
    .nav-account { margin-right: 4px; gap: 6px; }
    .nav-account .nav-account-cadastro { display: none; }
}

/* Auth and profile pages have no right sidebar: use the full width. */
.site-container.layout-auth {
    grid-template-columns: 1fr;
}
.site-container.layout-auth .navbar {
    width: 100%;
}

.reserva-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t-warn-text, #8a5a12);
    margin: 0 0 6px;
}
.reserva-card h1 { margin-bottom: 10px; }
.reserva-card .auth-lead { margin-bottom: 12px; }
.retorno-nome { margin: 8px 0 14px; font-size: 15px; }
.claim-link-box {
    border: 1px dashed var(--border-color, var(--t-border, #dee0e1));
    background: var(--search-bg, var(--t-surface2, #f7f7f8));
    padding: 12px 14px;
    border-radius: 6px;
    margin: 14px 0;
    font-size: 13px;
    word-break: break-all;
}
.claim-link-box p { margin: 0 0 8px; }
.btn-copy-link {
    appearance: none;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    background: var(--t-surface, #fff);
    color: var(--text-primary, var(--t-text, #2e3031));
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-copy-link:hover { border-color: var(--accent-red, var(--t-red, #b92b27)); color: var(--accent-red, var(--t-red, #b92b27)); }
.mod-reservas { margin-top: 28px; }
.mod-reservas h2 { font-size: 18px; margin: 0 0 8px; }
.mod-res-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mod-res-table th, .mod-res-table td {
    text-align: left;
    padding: 8px 6px;
    border-bottom: 1px solid var(--border-subtle, var(--t-border, #f1f2f2));
    vertical-align: top;
}
.mod-res-table th { color: var(--text-secondary); font-weight: 600; font-size: 11px; text-transform: uppercase; }
.mod-res-status { font-weight: 700; }
.mod-res-status.paid, .mod-res-status.claimed { color: var(--t-green, #228822); }
.mod-res-status.pending { color: var(--t-warn-text, #8a5a12); }
.mod-res-status.expired { color: var(--text-light, var(--t-text3, #8f9092)); }

.auth-card .auth-secondary {
    margin-top: 8px;
    -webkit-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    background: var(--bg-card, var(--t-surface, #fff));
    color: var(--text-primary, var(--t-text, #2e3031));
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    padding: 9px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}
.auth-card .auth-secondary:hover { border-color: var(--accent-red, var(--t-red, #b92b27)); color: var(--accent-red, var(--t-red, #b92b27)); }
.auth-card .auth-secondary:disabled { opacity: 0.7; cursor: not-allowed; }
.pix-box {
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    background: var(--search-bg, var(--t-surface2, #f7f7f8));
    border-radius: 8px;
    padding: 16px 14px;
    margin-top: 16px;
}
.pix-box h2 { font-size: 16px; margin: 0 0 8px; color: var(--text-primary, var(--t-text, #2e3031)); }
.pix-nome { margin: 0 0 6px; font-size: 14px; }
.pix-timer { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--t-warn-text, #8a5a12); }
.pix-qr {
    display: block;
    width: 220px;
    height: 220px;
    max-width: 100%;
    margin: 0 auto 14px;
    background: var(--t-surface, #fff);
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 6px;
    object-fit: contain;
}
.pix-box textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
    font-size: 12px;
    line-height: 1.4;
    background: var(--t-surface, #fff);
    color: var(--text-primary, var(--t-text, #2e3031));
    resize: vertical;
    word-break: break-all;
}
@media (max-width: 640px) {
    .pix-qr { width: 200px; height: 200px; }
}
.sidebar-account-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.sidebar-link-sutil { font-size: 12px; color: var(--text-secondary, var(--t-text2, #636466)); text-decoration: none; }
.sidebar-link-sutil:hover { color: var(--accent-red, var(--t-red, #b92b27)); text-decoration: underline; }

/* ---------- Arte ASCII do perfil ---------- */
.profile-ascii { margin: 0 0 22px; }
.ascii-wrap {
    container-type: inline-size;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.ascii-art {
    --cols: 52;
    display: inline-block;
    margin: 0;
    padding: 10px 12px;
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", "Courier New", ui-monospace, monospace;
    font-variant-ligatures: none;
    font-size: 14px;
    line-height: 1.15;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    tab-size: 4;
    color: var(--text-primary, var(--t-text, #2e3031));
    background: var(--search-bg, var(--t-surface2, #f7f7f8));
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 6px;
    box-sizing: border-box;
}
.ascii-art.sem-moldura { background: transparent; border-color: transparent; padding-left: 0; padding-right: 0; }
@supports (font-size: 1cqw) {
    /* Encolhe a fonte para a arte caber na largura; nunca menos de 8px nem mais de 15px. */
    .ascii-art { font-size: clamp(8px, calc((100cqw - 26px) / (var(--cols) * 0.62)), 15px); }
}
.ascii-tools, .ascii-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ascii-btn {
    background: var(--accent-red, #b92b27);
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.ascii-btn:hover { background: var(--accent-red-hover, #a12320); }
.ascii-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ascii-btn.secondary { background: transparent; color: var(--text-primary, var(--t-text, #2e3031)); border: 1px solid var(--border-color, var(--t-border, #dee0e1)); }
.ascii-btn.danger { background: #8a1f1c; }
.ascii-status { font-size: 13px; margin: 6px 0 0; color: var(--text-secondary, var(--t-text2, #636466)); min-height: 0; }
.ascii-status:empty { display: none; }
.ascii-status.ok { color: var(--t-green, #228822); }
.ascii-status.erro { color: var(--accent-red, var(--t-red, #b92b27)); }
.ascii-editor { margin-top: 14px; border: 1px solid var(--border-color, var(--t-border, #dee0e1)); border-radius: 8px; padding: 14px; }
.ascii-editor-title { font-size: 16px; margin: 0 0 4px; color: var(--text-primary, var(--t-text, #2e3031)); }
.ascii-hint { font-size: 12px; color: var(--text-secondary, var(--t-text2, #636466)); margin: 0 0 10px; }
.ascii-input {
    width: 100%;
    box-sizing: border-box;
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", "Courier New", ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.2;
    white-space: pre;
    overflow-x: auto;
    resize: vertical;
    padding: 8px;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 4px;
    background: var(--bg-card, var(--t-surface, #fff));
    color: var(--text-primary, var(--t-text, #2e3031));
}
.ascii-counter { font-size: 12px; margin: 6px 0 0; color: var(--text-secondary, var(--t-text2, #636466)); font-variant-numeric: tabular-nums; }
.ascii-counter.erro { color: var(--accent-red, var(--t-red, #b92b27)); font-weight: 700; }
.ascii-erros { margin: 4px 0 0; padding-left: 18px; font-size: 12px; color: var(--accent-red, var(--t-red, #b92b27)); }
.ascii-erros:empty { display: none; }
.ascii-frames { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ascii-frames legend { font-size: 12px; font-weight: 700; color: var(--text-secondary, var(--t-text2, #636466)); padding: 0; margin-bottom: 4px; }
.ascii-radio { font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--text-primary, var(--t-text, #2e3031)); }
.ascii-preview-label { font-size: 12px; font-weight: 700; color: var(--text-secondary, var(--t-text2, #636466)); margin: 14px 0 6px; }
/* Simula a área útil do perfil num celular de 412px. */
.ascii-preview-phone {
    width: 354px;
    max-width: 100%;
    border: 1px dashed var(--border-color, var(--t-border, #dee0e1));
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
}
.ascii-hint code { font-family: "DejaVu Sans Mono", Menlo, Consolas, "Courier New", monospace; font-size: 12px; }
.ascii-vazio { font-size: 12px; color: var(--text-light, var(--t-text3, #8f9092)); margin: 0; }
@media (max-width: 480px) {
    .profile-main { padding-left: 10px; padding-right: 10px; }
    .profile-card { padding: 16px 14px; }
    .ascii-editor { padding: 10px; }
    .ascii-preview-phone { width: 100%; }
}

/* ---------- Avatar ASCII (8 linhas × 16 colunas num espaço fixo, como foto de perfil) ---------- */
/* A arte é desenhada a 10px e reduzida com transform, para não depender do tamanho mínimo de fonte do navegador. */
.ascii-avatar {
    --av-scale: 0.56;
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 60px;
    height: 56px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 4px;
    background: transparent; /* quadro transparente: só a borda, o fundo da página aparece por trás */
    color: var(--text-primary, var(--t-text, #2e3031));
    text-decoration: none !important;
    vertical-align: middle;
}
.ascii-avatar .av-pre {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin: 0;
    padding: 0;
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", "Courier New", ui-monospace, monospace;
    font-variant-ligatures: none;
    font-size: 10px;
    line-height: 1.1;
    white-space: pre;
    color: inherit;
    background: none;
    border: 0;
    transform: translate(-50%, -50%) scale(var(--av-scale));
    transform-origin: 50% 50%;
    pointer-events: none;
}
.ascii-avatar-xs { width: 44px; height: 40px; --av-scale: 0.4; }
.ascii-avatar-lg { width: 112px; height: 104px; --av-scale: 1.05; border-radius: 6px; }
a.ascii-avatar:hover { border-color: var(--accent-red, var(--t-red, #b92b27)); }

.profile-head { margin: 0 0 20px; }
.profile-head .profile-meta { margin-bottom: 0; }
.profile-head.has-avatar { display: flex; align-items: center; gap: 14px; }
.profile-head-text { min-width: 0; }
.profile-head-text .profile-name { overflow-wrap: anywhere; }

/* Comentários com avatar: avatar à esquerda, conteúdo ao lado; respostas continuam abaixo. */
.bd-comment-row.has-avatar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.bd-comment-main { min-width: 0; }
/* Postagens: avatar pequeno na linha "enviado … por" */
.or-tagline.has-avatar .ascii-avatar { margin: 2px 4px 2px 1px; }

/* Editor do avatar */
.avatar-input { max-width: 320px; }
.avatar-preview-sizes .ascii-preview { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
.avatar-preview-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.avatar-preview-item > span { font-size: 11px; color: var(--text-light, var(--t-text3, #8f9092)); }
.avatar-preview-comment { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--border-subtle, var(--t-border, #f1f2f2)); padding-top: 8px; }
.avatar-preview-comment .bd-comment-meta { font-size: 12px; margin: 0 0 2px; color: var(--text-secondary, var(--t-text2, #636466)); }
.avatar-preview-body { font-size: 13px; margin: 0; color: var(--text-primary, var(--t-text, #2e3031)); }
.ascii-editor-host .ascii-editor { margin-top: 14px; }
@media (max-width: 480px) {
    .ascii-avatar-lg { width: 96px; height: 90px; --av-scale: 0.9; }
    .profile-head.has-avatar { gap: 12px; }
    .profile-head.has-avatar .profile-name { font-size: 22px; }
}

/* ===== Editor de cores da arte ASCII ===== */
.ascii-cores { margin: 12px 0 4px; }
.ascii-palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ascii-swatch {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; min-height: 34px;
    border: 1px solid var(--t-border, #ccc); border-radius: 16px; cursor: pointer;
    background: var(--t-surface, #fff); color: var(--t-text, #222); font-size: 12px;
}
.ascii-swatch-dot { font-family: "Courier New", Courier, monospace; font-size: 16px; line-height: 1; }
.ascii-swatch.is-on { border-color: var(--t-text, #222); box-shadow: 0 0 0 2px var(--t-text, #222) inset; font-weight: 700; }
.ascii-swatch.is-eraser .ascii-swatch-dot { color: var(--t-text2, #555); }
.ascii-paint-scroll {
    border: 1px dashed var(--t-border, #bbb); border-radius: 4px; padding: 6px;
    background: var(--t-surface, #fff); max-width: 100%; overflow: hidden;
}
.ascii-paint {
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Courier New", monospace; line-height: 1.25;
    color: var(--t-text, #222); white-space: pre; touch-action: none; user-select: none; -webkit-user-select: none;
    cursor: crosshair; width: max-content; max-width: 100%;
}
.ascii-paint-row { display: block; height: 1.25em; font-family: inherit; }
.ascii-cell { display: inline-block; width: 0.62em; text-align: center; font-family: inherit; font-size: inherit; }
.ascii-cell:not(.is-space):hover { outline: 1px solid var(--t-text3, #999); }
.ascii-limpar { margin-top: 6px; }
/* Indicador "Digitando em: cor" e cursor do textarea na cor do pincel */
.ascii-typing { margin: 6px 0 2px; font-size: 13px; color: var(--t-text2, #555); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; }
.ascii-typing-dot { font-family: "Courier New", Courier, monospace; font-size: 16px; }
.ascii-typing-dot.is-default { color: var(--t-text, #222); }
.ascii-typing:not(.has-color) .ascii-typing-name { color: var(--t-text, #222); }
.ascii-typing.has-color .ascii-typing-name { padding: 0 6px; border-radius: 3px; border: 1px solid currentColor; }
.ascii-typing-hint { font-size: 11px; color: var(--t-text3, #888); }
.ac-caret-1 { caret-color: var(--ac-1); } .ac-caret-2 { caret-color: var(--ac-2); } .ac-caret-3 { caret-color: var(--ac-3); } .ac-caret-4 { caret-color: var(--ac-4); }
.ac-caret-5 { caret-color: var(--ac-5); } .ac-caret-6 { caret-color: var(--ac-6); } .ac-caret-7 { caret-color: var(--ac-7); } .ac-caret-8 { caret-color: var(--ac-8); }
.ascii-input.ac-caret-1 { border-color: var(--ac-1); } .ascii-input.ac-caret-2 { border-color: var(--ac-2); } .ascii-input.ac-caret-3 { border-color: var(--ac-3); } .ascii-input.ac-caret-4 { border-color: var(--ac-4); }
.ascii-input.ac-caret-5 { border-color: var(--ac-5); } .ascii-input.ac-caret-6 { border-color: var(--ac-6); } .ascii-input.ac-caret-7 { border-color: var(--ac-7); } .ascii-input.ac-caret-8 { border-color: var(--ac-8); }
.ascii-typing, .ascii-typing *, .ascii-swatch, .ascii-swatch * { transition: none; }

/* >>anônimo */
label.bd-anon-toggle,
.bd-comments label.bd-anon-toggle,
.or-submit-form label.bd-anon-toggle {
  display: flex; flex-direction: row; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 12px; font-weight: 400; margin: -2px 0 0; cursor: pointer;
  color: var(--text-primary, var(--t-text, #2e3031));
}
label.bd-anon-toggle input[type="checkbox"] { margin: 0; width: 15px; height: 15px; flex: 0 0 auto; cursor: pointer; accent-color: var(--accent-red, #b92b27); }
.bd-anon-voce { font-size: 11px; opacity: .75; font-style: italic; }
.bd-autor-real { font-size: 11px; padding: 0 4px; border: 1px dashed currentColor; border-radius: 3px; opacity: .85; white-space: nowrap; }
.bd-autor-real .user-mention { font-size: inherit; }
.profile-anon-title { margin: 2px 0; font-weight: bold; }
.profile-anon-pager { margin: 14px 0; font-size: 14px; }

/* Banir conexão */
.bd-ban-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 11px; color: var(--accent-red, #b92b27); cursor: pointer; text-decoration: underline dotted; }
.bd-ban-btn:hover { text-decoration: underline; }
.mod-actions .bd-ban-btn.mod-btn { text-decoration: none; font-size: 13px; padding: 6px 12px; }
.mod-conexao { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mod-conexao-label { font-size: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; opacity: .8; }
.bd-ban-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .55); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; overflow-y: auto; }
.bd-ban-box { width: 100%; max-width: 440px; box-sizing: border-box; background: var(--card-bg, var(--t-surface, #fff)); color: var(--text-primary, var(--t-text, #222)); border: 1px solid var(--border-color, var(--t-border, #ccc)); border-radius: 8px; padding: 16px 18px; box-shadow: 0 10px 40px rgba(0,0,0,.35); font-size: 14px; }
[data-theme="dark"] .bd-ban-box { background: #1f2124; color: #e8e8e8; border-color: #3a3d42; }
[data-theme="papel"] .bd-ban-box { background: #f6efdc; color: #2b2418; border-color: #c9b98f; }
.bd-ban-box h2 { margin: 0 0 8px; font-size: 18px; }
.bd-ban-box p { margin: 0 0 10px; line-height: 1.4; }
.bd-ban-label strong { font-family: ui-monospace, Menlo, Consolas, monospace; }
.bd-ban-ja { font-size: 12px; padding: 6px 8px; border-left: 3px solid var(--accent-red, #b92b27); background: rgba(185, 43, 39, .08); }
.bd-ban-scopes { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bd-ban-scopes legend { font-weight: 600; padding: 0; margin-bottom: 4px; width: 100%; }
.bd-ban-opt, .bd-ban-check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.bd-ban-check { align-items: flex-start; font-size: 13px; margin: 0 0 12px; }
.bd-ban-check input { margin-top: 2px; }
.bd-ban-field { display: flex; flex-direction: column; gap: 3px; font-weight: 600; margin: 0 0 10px; }
.bd-ban-select, .bd-ban-motivo { font: inherit; font-weight: 400; padding: 6px 8px; border: 1px solid var(--border-color, var(--t-border, #bbb)); border-radius: 4px; background: var(--input-bg, var(--t-surface, #fff)); color: inherit; width: 100%; box-sizing: border-box; }
[data-theme="dark"] .bd-ban-select, [data-theme="dark"] .bd-ban-motivo { background: #2a2d31; border-color: #4a4e55; }
[data-theme="papel"] .bd-ban-select, [data-theme="papel"] .bd-ban-motivo { background: #fffaf0; border-color: #c9b98f; }
.bd-ban-actions { display: flex; gap: 8px; margin-bottom: 6px; }
.bd-ban-go, .bd-ban-cancel { font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 4px; cursor: pointer; border: 1px solid var(--accent-red, #b92b27); }
.bd-ban-go { background: var(--accent-red, #b92b27); color: #fff; }
.bd-ban-cancel { background: transparent; color: inherit; border-color: currentColor; }
.bd-ban-status { font-size: 13px; min-height: 1em; }
.bd-ban-status.erro { color: var(--accent-red, #b92b27); }
.bd-ban-status.ok { color: var(--t-green, #228822); }
/* Turnstile (só sem conta) */
.bd-turnstile { margin: 2px 0 4px; max-width: 100%; min-height: 65px; }
.bd-turnstile[hidden] { display: none; }

/* ===== Camadas da arte ASCII (até 4) ===== */
.ascii-camadas { margin: 10px 0 8px; }
.ascii-layer-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ascii-layer {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px;
    border: 1px solid var(--t-border, #ccc); border-radius: 6px; background: var(--t-surface, #fff);
}
.ascii-layer.is-active { border-color: var(--t-text, #222); box-shadow: 0 0 0 1px var(--t-text, #222) inset; }
.ascii-layer-sel {
    flex: 1 1 140px; min-height: 34px; text-align: left; padding: 4px 8px; border: 0; border-radius: 4px; cursor: pointer;
    background: transparent; color: var(--t-text, #222); font-size: 13px;
}
.ascii-layer.is-active .ascii-layer-sel { font-weight: 700; }
.ascii-layer.is-hidden .ascii-layer-sel { opacity: 0.6; text-decoration: line-through; }
.ascii-layer-empty { font-weight: 400; color: var(--t-text2, #666); font-size: 12px; }
.ascii-layer-btn {
    min-width: 34px; min-height: 34px; padding: 2px 8px; border: 1px solid var(--t-border, #ccc); border-radius: 4px; cursor: pointer;
    background: var(--t-surface, #fff); color: var(--t-text, #222); font-size: 13px;
}
.ascii-layer-btn:disabled { opacity: 0.35; cursor: default; }
.ascii-layer-eye.is-off { color: var(--t-text2, #666); }
.ascii-layer-tools { margin-top: 2px; }
.ascii-layer-view { margin-top: 8px; }
.ascii-dim { opacity: 0.28; }
.avatar-preview-camadas pre.ascii-art { margin: 0; font-size: 13px; line-height: 1.15; }

/* ---------- MOR-39: avatar ASCII das b/ (mesmo quadro transparente dos avatares de perfil) ---------- */
/* Cabeçalho da b/: no lugar do "b" laranja. */
.or-snoo.ascii-avatar-b { display: inline-block; width: 64px; height: 60px; --av-scale: 0.6; padding: 0; margin-bottom: 4px; border-radius: 6px; background: transparent; color: var(--t-text, var(--text-primary, #2e3031)); font: inherit; }
.or-snoo.ascii-avatar-b:hover { border-color: var(--accent-red, var(--t-red, #b92b27)); }
/* Listas (comunidades, painel lateral): avatar ou o "b" laranja de sempre. */
.or-b-icon { flex: 0 0 auto; vertical-align: middle; }
.or-b-icon.ascii-avatar.or-b-icon-md { width: 60px; height: 56px; --av-scale: 0.56; }
.or-b-icon.ascii-avatar.or-b-icon-xs { width: 44px; height: 40px; --av-scale: 0.4; }
.or-b-tile { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; background: #ff4500; color: #fff; border-radius: 6px; font: italic 700 28px Palatino, "Times New Roman", serif; line-height: 1; text-decoration: none; }
.or-b-tile.or-b-icon-md { width: 56px; height: 56px; margin: 0 2px; }
.or-b-tile.or-b-icon-xs { width: 36px; height: 36px; margin: 2px 4px; font-size: 20px; border-radius: 5px; }
.or-sub.has-icon { display: flex; align-items: flex-start; gap: 12px; }
.or-sub-text { flex: 1 1 auto; min-width: 0; }
.or-painel-comm.has-icon { display: flex; align-items: center; gap: 8px; }
.or-painel-comm-icon { flex: 0 0 auto; line-height: 0; text-decoration: none !important; }
.or-painel-comm-text { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) {
    .or-sub.has-icon { gap: 10px; }
}
.or-snoo.ascii-avatar-b, .or-b-icon { transition: border-color .15s; }

/* ---------- MOR-40: greentext (linha que começa com ">") ---------- */
/* Tom do 4chan (#789922), um pouco mais escuro para ler bem no branco; mais claro no escuro, mais escuro no papel. */
.bd-green { color: #5f7d14; }
[data-theme="dark"] .bd-green { color: #9cbd45; }
[data-theme="papel"] .bd-green { color: #566f10; }

/* ---------- MOR-41: feed geral (/b/todas/) — selo de origem em cada postagem ---------- */
.bd-origem { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; font-size: 11px; font-weight: 700; line-height: 1.2; color: var(--t-link2, #369); text-decoration: none; }
.bd-origem:hover .bd-origem-nome, .bd-origem:focus-visible .bd-origem-nome { text-decoration: underline; }
.bd-origem-row { margin: 0 0 4px; line-height: 0; }
.bd-thread.is-collapsed .bd-origem-row { margin-bottom: 2px; }
.or-b-icon.ascii-avatar.or-b-icon-mini { width: 34px; height: 30px; --av-scale: 0.3; }
.or-b-tile.or-b-icon-mini { width: 22px; height: 22px; margin: 0 1px; font-size: 14px; border-radius: 4px; }
.or-title .bd-origem { margin-right: 2px; }
.bd-todas-nota { font-size: 12px; color: var(--t-text3, #888); margin: 0 0 10px; }

/* ---------- MOR-43: postagens no perfil ---------- */
.profile-posts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.profile-post { background: var(--bg-card, #fff); border: 1px solid var(--border-color, #e6e6e6); border-radius: 10px; padding: 12px 14px; }
.profile-post-meta { font-size: 12px; color: var(--text-light, #8f9092); margin: 0 0 8px; }
.profile-post-body { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; line-height: 1.5; }
.profile-post-del { margin-top: 8px; }
.profile-composer { margin: 0 0 20px; padding: 14px; border: 1px solid var(--border-color, #e6e6e6); border-radius: 10px; background: var(--bg-card, #fff); }
.profile-composer h2 { font-size: 15px; margin: 0 0 10px; }
.profile-composer textarea { width: 100%; box-sizing: border-box; min-height: 90px; padding: 8px 10px; border: 1px solid var(--border-color, #ddd); border-radius: 6px; background: var(--search-bg, #fafafa); color: var(--text-primary, #222); font: inherit; resize: vertical; }
.profile-composer .bd-comments-actions { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Denunciar (MOR-50): link discreto + diálogo; contador para ADMs */
.bd-denunciar-btn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-secondary, var(--t-text2, #636466)); cursor: pointer; text-transform: lowercase; }
.bd-denunciar-btn:hover { color: var(--accent-red, var(--t-red, #b92b27)); text-decoration: underline; }
.bd-denunciar-btn:focus-visible { outline: 2px solid var(--accent-red, #b92b27); outline-offset: 2px; }
.bd-denunciar-btn.is-done, .bd-denunciar-btn:disabled { opacity: .55; cursor: default; text-decoration: none; color: var(--text-secondary, var(--t-text2, #636466)); }
.bd-comments-reddit .bd-denunciar-btn { font-size: 12px; font-weight: 700; color: var(--t-text3, #888); }
.bd-comments-reddit .bd-denunciar-btn:hover { color: var(--t-red, #b92b27); }
.or-buttons .bd-denunciar-btn { padding: 0; font-size: 10px; font-weight: 700; color: var(--or-muted, var(--t-text3, #888)); }
.or-buttons .bd-denunciar-btn:hover { color: var(--t-red, #b92b27); }
.or-buttons .bd-denunciar-btn.is-done { color: var(--or-muted, var(--t-text3, #888)); }
.bd-comment-actions-row .bd-denunciar-btn { padding: 4px 0; }
.profile-denunciar { margin: 2px 0 8px; font-size: 12px; color: var(--text-secondary, var(--t-text2, #636466)); display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; }
.profile-denunciar .bd-denunciar-btn { font-weight: 400; text-decoration: underline dotted; }
.profile-post .bd-denunciar-btn, .profile-comments .bd-denunciar-btn { margin-right: 10px; }
.wiki-rodape .bd-denunciar-btn { font-size: inherit; font-weight: 400; text-transform: none; padding: 0; text-decoration: underline; }
.bd-rep-box { max-width: 480px; }
.bd-rep-box h2 { text-transform: none; }
.bd-rep-lead { font-size: 13px; opacity: .85; }
.bd-rep-motivos { border: 0; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.bd-rep-motivos legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.bd-rep-opt { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: 4px; }
.bd-rep-opt:hover { background: rgba(127, 127, 127, .12); }
.bd-rep-opt input { margin: 3px 0 0; flex: 0 0 auto; accent-color: var(--accent-red, #b92b27); }
.bd-rep-opt span { display: flex; flex-direction: column; line-height: 1.3; }
.bd-rep-opt small { font-size: 12px; opacity: .72; }
.bd-rep-prio { font-size: 12.5px; margin: 0 0 10px; padding: 6px 8px; border-left: 3px solid var(--accent-red, #b92b27); background: rgba(185, 43, 39, .1); }
.bd-rep-field { display: flex; justify-content: space-between; font-weight: 600; margin: 0 0 4px; }
.bd-rep-contador { font-weight: 400; font-size: 12px; opacity: .7; }
.bd-rep-texto { width: 100%; box-sizing: border-box; font: inherit; padding: 6px 8px; border: 1px solid var(--border-color, var(--t-border, #bbb)); border-radius: 4px; background: var(--input-bg, var(--t-surface, #fff)); color: inherit; resize: vertical; min-height: 70px; }
[data-theme="dark"] .bd-rep-texto { background: #2a2d31; border-color: #4a4e55; }
[data-theme="papel"] .bd-rep-texto { background: #fffaf0; border-color: #c9b98f; }
.bd-rep-box .bd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bd-rep-actions { display: flex; gap: 10px; margin: 12px 0 6px; flex-wrap: wrap; }
.bd-rep-go, .bd-rep-cancel { font: inherit; font-weight: 600; padding: 7px 14px; border-radius: 4px; cursor: pointer; border: 1px solid var(--border-color, var(--t-border, #bbb)); background: transparent; color: inherit; }
.bd-rep-go { background: var(--accent-red, #b92b27); border-color: var(--accent-red, #b92b27); color: #fff; }
.bd-rep-go:disabled { opacity: .55; cursor: default; }
.bd-rep-status { min-height: 1.2em; margin: 4px 0 0; font-size: 13px; }
.bd-rep-status.erro { color: var(--accent-red, #b92b27); }
.bd-rep-status.ok { color: var(--t-green, #228822); font-weight: 600; }
.bd-den-badge { display: inline-block; min-width: 16px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--accent-red, #b92b27); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; }
.bd-den-badge[hidden] { display: none; }
.bd-den-badge.is-prio { outline: 2px solid #ff3b30; outline-offset: 1px; }
.btn-toggle-sidebar { position: relative; }
.btn-toggle-sidebar.has-den::after { content: ""; position: absolute; top: 6px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent-red, #b92b27); border: 2px solid var(--card-bg, var(--t-surface, #fff)); }
.btn-toggle-sidebar.has-den-prio::after { background: #ff3b30; box-shadow: 0 0 0 2px rgba(255, 59, 48, .45); }

.ascii-actions.ascii-tools-bar { align-items: flex-start; }
/* Movedor de caracteres do editor ASCII (MOR-51): desloca a camada sem cortar nem envolver. */
.ascii-mover-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.ascii-mover-legend { font-size: 11px; font-weight: 700; color: var(--text-secondary, var(--t-text2, #636466)); line-height: 1.2; }
.ascii-mover {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    grid-template-rows: repeat(3, 34px);
    gap: 3px;
}
.ascii-mover-btn { min-width: 0; width: 100%; height: 100%; padding: 0; font-size: 16px; line-height: 1; font-weight: 700; }
.ascii-mover-btn:focus-visible { outline: 2px solid var(--accent-red, #b92b27); outline-offset: 1px; }
.ascii-mover-up { grid-column: 2; grid-row: 1; }
.ascii-mover-left { grid-column: 1; grid-row: 2; }
.ascii-mover-right { grid-column: 3; grid-row: 2; }
.ascii-mover-down { grid-column: 2; grid-row: 3; }
@media (max-width: 480px) {
    .ascii-mover { grid-template-columns: repeat(3, 38px); grid-template-rows: repeat(3, 38px); }
}

.ascii-mover-modos { display: flex; gap: 3px; margin: 1px 0 4px; }
.ascii-mover-modo {
    font: inherit; font-size: 11px; font-weight: 700; line-height: 1.2;
    padding: 4px 8px; border-radius: 4px; cursor: pointer;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    background: transparent; color: var(--text-primary, var(--t-text, #2e3031));
}
.ascii-mover-modo:hover { border-color: var(--text-secondary, #636466); }
.ascii-mover-modo.is-on, .ascii-mover-modo[aria-checked="true"] {
    background: var(--accent-red, #b92b27); color: #fff; border-color: var(--accent-red, #b92b27);
}
.ascii-mover-modo:focus-visible { outline: 2px solid var(--accent-red, #b92b27); outline-offset: 1px; }
.ascii-mover-dica { font-size: 11px; line-height: 1.3; margin: 4px 0 0; max-width: 16em; text-align: center; color: var(--text-secondary, var(--t-text2, #636466)); }
.ascii-mover-dica[hidden] { display: none; }
.ascii-cell.is-selected {
    outline: 2px solid var(--accent-red, #b92b27);
    outline-offset: -1px;
    box-shadow: 0 0 0 2px rgba(185, 43, 39, .4);
    background: rgba(185, 43, 39, .2);
    border-radius: 2px;
    position: relative;
    z-index: 1;
}
[data-theme="dark"] .ascii-cell.is-selected {
    outline-color: #ff6b63;
    box-shadow: 0 0 0 2px rgba(255, 107, 99, .5);
    background: rgba(255, 107, 99, .28);
}
[data-theme="papel"] .ascii-cell.is-selected {
    outline-color: #8a1f1c;
    box-shadow: 0 0 0 2px rgba(138, 31, 28, .35);
    background: rgba(185, 43, 39, .18);
}
.ascii-paint.is-char-pick { cursor: default; }
.ascii-paint.is-char-pick .ascii-cell:not(.is-space) { cursor: pointer; }
@media (max-width: 480px) {
    .ascii-mover-modo { padding: 6px 10px; font-size: 12px; }
    .ascii-cell.is-selected { outline-width: 3px; box-shadow: 0 0 0 3px rgba(185, 43, 39, .45); }
}


/* Editor ASCII aberto: barra lateral só com o cabeçalho; movedor e caracteres vão para o painel. */
.ascii-editor { position: relative; }
.ascii-editor-title { padding-right: 2.4em; }
.ascii-editor-encolher {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--border-color, var(--t-border, #dee0e1));
    border-radius: 6px;
    background: var(--search-bg, var(--bg-card, var(--t-surface, #fff)));
    color: var(--text-primary, var(--t-text, #2e3031));
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
.ascii-editor-encolher:hover { border-color: var(--text-secondary, #636466); }
.ascii-editor-encolher:focus-visible { outline: 2px solid var(--accent-red, #b92b27); outline-offset: 1px; }
/* Encolhido: esconde título, ajuda e camadas; deixa o desenho (grade, desfazer, cores). */
.ascii-editor.is-encolhido > .ascii-editor-topo { display: none !important; }
.ascii-editor.is-encolhido .ascii-frames { display: none !important; }
.ascii-editor.is-encolhido { padding-top: 36px; }

body.bd-ascii-aberto .right-sidebar > .sidebar-body,
body.bd-ascii-aberto .right-sidebar > .sidebar-footer { display: none !important; }

.ascii-sidebar-dock {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ascii-dock { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.ascii-dock-titulo {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    color: var(--text-secondary, var(--t-text2, #636466));
}
.ascii-sidebar-dock .ascii-mover-wrap { align-self: center; }
.ascii-sidebar-dock .ascii-mover-dica { max-width: none; text-align: center; }
.ascii-chars { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.ascii-char {
    min-width: 32px;
    min-height: 32px;
    padding: 0 4px;
    cursor: pointer;
    font-family: "DejaVu Sans Mono", Menlo, Consolas, "Courier New", monospace;
    font-size: 15px;
    line-height: 1;
    border: 1px solid var(--border-color, #dee0e1);
    border-radius: 6px;
    background: var(--bg-card, var(--t-surface, #fff));
    color: var(--text-primary, var(--t-text, #2e3031));
}
.ascii-char:hover { border-color: var(--text-secondary, #636466); }
.ascii-char:focus-visible { outline: 2px solid var(--accent-red, #b92b27); outline-offset: 1px; }

@media (max-width: 950px) {
    .ascii-char { min-width: 34px; min-height: 34px; }
}
@media (max-width: 480px) {
    .ascii-editor-encolher { top: 6px; right: 6px; width: 36px; height: 36px; }
}

[data-theme="dark"] .ascii-editor-encolher,
[data-theme="papel"] .ascii-editor-encolher { background: var(--search-bg, var(--bg-card, var(--t-surface))); }


/* Aura: número compacto ao lado do nome; no perfil, linha própria. */
.user-aura {
    display: inline-block;
    margin-left: 0.35em;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary, var(--t-text2, #888));
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
}
.user-aura::before {
    content: "aura ";
    font-weight: 500;
    opacity: 0.75;
}
html.nav-compacta .user-aura::before { content: none; }
html.nav-compacta .user-aura { font-size: 10px; margin-left: 0.25em; }

.profile-aura {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--text-secondary, var(--t-text2, #636466));
}
.profile-aura strong {
    font-size: 1.2em;
    color: var(--text-primary, var(--t-text, #2e3031));
    font-weight: 700;
}
