/**
 * sniff.css — Sniff News
 * Estrutura visual alinhada com o backoffice. O acento é #83C5C8.
 * O jogo de entrada mantém o seu CSS dentro de index.html.
 */

:root,
html[data-theme="light"] {
    --tq-red: #83C5C8;
    --tq-red-dark: #6aafb3;
    --tq-ink: #111111;
    --tq-muted: #5c5c5c;
    --tq-line: #e4e4e4;
    --tq-bg: #f6f6f6;
    --tq-card: #ffffff;
    --tq-kind-bg: #e9e9e9;
    --tq-ok: #1f7a3a;
    --tq-ok-bg: #eef6f0;
    --admin-footer-height: 2.15rem;
    --cor-fundo-footer: #ffffff;
    --cor-borda-footer: #e4e4e4;
    --cor-texto-footer: #3a3a3a;
    --cor-texto-footer-version: #8a8a8a;
    --cor-texto-footer-toggle-inactive: #b0b0b0;
    --cor-texto-footer-toggle-active: #111111;
    --cor-link-footer-hover-bg: #111111;
    --cor-link-footer-hover-text: #ffffff;
    --font: system-ui, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
    --tq-ink: #f3f3f3;
    --tq-muted: #c8c8c8;
    --tq-line: #5a5a5a;
    --tq-bg: #3c3c3c;
    --tq-card: #4a4a4a;
    --tq-kind-bg: #5c5c5c;
    --tq-ok-bg: #2a4032;
    --cor-fundo-footer: #333333;
    --cor-borda-footer: #4a4a4a;
    --cor-texto-footer: #e8e8e8;
    --cor-texto-footer-version: #9a9a9a;
    --cor-texto-footer-toggle-inactive: #6e6e6e;
    --cor-texto-footer-toggle-active: #ffffff;
    --cor-link-footer-hover-bg: #83C5C8;
    --cor-link-footer-hover-text: #ffffff;
}

* { box-sizing: border-box; }

html, body.tq-app {
    margin: 0;
    min-height: 100%;
}

body.tq-app {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--tq-ink);
    background: var(--tq-bg);
    padding-bottom: calc(var(--admin-footer-height) + 1.2rem);
}

body.tq-app:has(.site-footer) {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
}

body.tq-game {
    background: #ffffff;
}

a { color: var(--tq-red); }
a:hover { color: var(--tq-red-dark); }

img { max-width: 100%; height: auto; }

/* Barra superior ---------------------------------------------------------- */

.tq-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.28rem 1rem;
    background: #e4e4e4;
    border-bottom: 1px solid var(--tq-red);
    position: sticky;
    top: 0;
    z-index: 20;
}

html[data-theme="dark"] .tq-bar {
    background: #333333;
    color: #ffffff;
}

html[data-theme="dark"] body.tq-game {
    background: var(--tq-bg);
    color: var(--tq-ink);
}

.tq-bar__brand img {
    display: block;
    height: 28px;
    width: auto;
}

.tq-logo.tq-logo--dark { display: none; }
html[data-theme="dark"] .tq-logo.tq-logo--light { display: none; }
html[data-theme="dark"] .tq-logo.tq-logo--dark { display: block; }

.tq-bar__nav,
.tq-bar__user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tq-bar__nav a,
.tq-bar__user a {
    color: var(--tq-ink);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.tq-bar__nav a {
    font-weight: 200;
}

.tq-bar__nav a:hover,
.tq-bar__nav a:focus-visible,
.tq-bar__nav a[aria-current="page"] {
    font-weight: 600;
}

.tq-bar__user a {
    font-weight: 200;
}

.tq-bar__user a:hover,
.tq-bar__user a:focus-visible {
    font-weight: 600;
}

html[data-theme="dark"] .tq-bar__nav a,
html[data-theme="dark"] .tq-bar__user a,
html[data-theme="dark"] .tq-bar__user {
    color: #ffffff;
}

.tq-bar__nav a:hover,
.tq-bar__user a:hover { color: var(--tq-red); }

.tq-role,
.tq-credits {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tq-muted);
}

.tq-sub {
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.45rem 1rem;
    background: var(--tq-card);
    border-bottom: 1px solid var(--tq-line);
}

.tq-sub a {
    color: var(--tq-muted);
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 200;
}

.tq-sub a.is-active {
    font-weight: 600;
}

.tq-sub a.is-active,
.tq-sub a:hover {
    background: var(--tq-ink);
    color: #ffffff;
}

html[data-theme="dark"] .tq-sub a.is-active,
html[data-theme="dark"] .tq-sub a:hover {
    background: var(--tq-red);
}

.tq-main {
    width: min(1080px, calc(100% - 2rem));
    margin: 1.25rem auto 2rem;
}
.tq-field input,
.tq-field select,
.tq-field textarea { max-width: 100%; }
img, svg, canvas, video { max-width: 100%; }

/* Cartões e formulários --------------------------------------------------- */

.tq-hero, .tq-card, .tq-panel {
    background: var(--tq-card);
    border: 1px solid var(--tq-line);
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
}

.tq-hero h1, .tq-panel h1, .tq-card h1 {
    margin: 0 0 0.4rem;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
}

.tq-lead { color: var(--tq-muted); margin-top: 0; }

.tq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin: 1rem 0;
}
.tq-stats {
    display: grid;
    gap: 0.55rem;
    margin: 0.8rem 0;
}
.tq-stats--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tq-stats--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tq-stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tq-stats .tq-stat span { display: block; line-height: 1.25; }

.tq-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--tq-red);
}

.tq-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.tq-btn, button.tq-btn {
    display: inline-block;
    background: var(--tq-red);
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.tq-btn:hover { background: var(--tq-red-dark); color: #ffffff; }
.tq-btn:disabled,
button.tq-btn:disabled,
.tq-btn:disabled:hover,
button.tq-btn:disabled:hover {
    opacity: 0.38;
    cursor: not-allowed;
    background: var(--tq-red);
    color: #ffffff;
}

.tq-btn--ghost {
    background: transparent;
    color: var(--tq-ink);
    border: 1px solid var(--tq-line);
}

.tq-btn--ghost:hover { background: var(--tq-ink); color: #ffffff; }

.tq-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.tq-field label { font-size: 0.86rem; font-weight: 650; }
.tq-field input, .tq-field select, .tq-field textarea {
    font: inherit;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--tq-line);
    border-radius: 8px;
    background: var(--tq-card);
    color: var(--tq-ink);
}
.tq-field textarea { min-height: 90px; resize: vertical; }

.tq-alert {
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    margin: 0 0 1rem;
}
.tq-alert--erro { background: #fdecec; color: #8d1212; }
.tq-alert--ok { background: var(--tq-ok-bg); color: var(--tq-ok); }
html[data-theme="dark"] .tq-alert--erro { background: #3a1515; color: #ffd0d0; }

.tq-table-wrap { overflow-x: auto; }
table.tq-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.tq-table th, .tq-table td {
    text-align: left;
    padding: 0.55rem 0.45rem;
    border-bottom: 1px solid var(--tq-line);
    vertical-align: middle;
}
.tq-table th { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--tq-muted); }
.tq-table th a { color: inherit; text-decoration: none; }
.tq-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tq-charts { display: grid; gap: 1rem; }
.tq-chartbox { position: relative; height: 220px; }
.tq-chart { width: 100%; height: 100%; }
.tq-range, .tq-listbar { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0.8rem 0; }
.tq-listbar:has(.tq-legend) { flex-wrap: nowrap; }
.tq-range input, .tq-range select, .tq-listbar select { font: inherit; }
nav.tq-pager {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin: 0;
    border: 1px solid var(--tq-line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--tq-card);
}
.tq-pagebtn {
    appearance: none;
    border: 0;
    border-right: 1px solid var(--tq-line);
    background: transparent;
    color: inherit;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}
.tq-pagebtn:last-child { border-right: 0; }
.tq-pagebtn.is-current { background: var(--tq-red); color: #ffffff; font-weight: 650; }
.tq-pagebtn:disabled { opacity: 0.35; cursor: default; }
.tq-pagebtn:hover:not(:disabled):not(.is-current) { background: var(--tq-bg); }
.tq-pagegap { display: inline-flex; align-items: center; padding: 0 0.35rem; color: var(--tq-muted); border-right: 1px solid var(--tq-line); }
.tq-qr-thumb { width: 42px; height: 42px; object-fit: contain; background: #fff; }
.tq-clip { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-iconrow { display: inline-flex; gap: 0.3rem; align-items: center; }
.tq-iconbtns button { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; border: 1px solid var(--tq-line); background: transparent; color: inherit; border-radius: 6px; cursor: pointer; }
.tq-iconbtns button svg { display: block; width: 1.05rem; height: 1.05rem; }
.tq-mode { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.tq-mode--T { background: #83C5C8; }
.tq-mode--C { background: #1f6f4a; }
.tq-mode--O { background: #1a5fbf; }
.tq-mode--G { background: #6b4c9a; }
.tq-legend { display: flex; flex-wrap: nowrap; gap: 0.28rem 0.55rem; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; font-size: 0.68rem; white-space: nowrap; }
.tq-legend li { display: inline-flex; align-items: center; gap: 0.25rem; }
.tq-legend .tq-mode { width: 0.95rem; height: 0.95rem; font-size: 0.58rem; }
.tq-yes { color: #0d5c2e; font-weight: 700; }
.tq-no {
    display: inline-flex;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: #83C5C8;
    color: #ffffff;
    vertical-align: middle;
}
.tq-no svg { display: block; width: 62%; height: 62%; }
.tq-dl { display: grid; grid-template-columns: 12rem 1fr; gap: 0.35rem 0.8rem; }
dialog { border: 1px solid var(--tq-line); border-radius: 12px; background: var(--tq-card); color: var(--tq-ink); width: min(640px, 96vw); max-height: 90vh; overflow: auto; }
.tq-kind-caption { font-size: 0.86rem; font-weight: 650; }
.tq-kind-choice { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; }
.tq-field .tq-kind-choice label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 550; margin: 0; }
.tq-kind-choice input[type="radio"] { width: 1rem; height: 1rem; margin: 0; padding: 0; border: 0; background: transparent; accent-color: currentColor; }
.tq-kind-box { margin: 0 0 0.4rem; padding: 0.45rem 0.55rem 0.05rem; border: 1px solid var(--tq-line); border-radius: 8px; background: var(--tq-kind-bg); }
.tq-vcard-photo__preview { display: block; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; background: #fff; }
.tq-vcard-photo__preview[hidden] { display: none; }
.tq-kind-box [data-kind-panel="vcard"] { display: none !important; }
form:has([data-content-kind][value="vcard"]:checked) .tq-kind-box [data-kind-panel="link"] { display: none !important; }
form:has([data-content-kind][value="vcard"]:checked) .tq-kind-box [data-kind-panel="vcard"] { display: block !important; }
body.tq-bo .tq-kind-caption { font-size: 0.72rem; font-weight: 550; }
body.tq-bo .tq-kind-choice input[type="radio"] { width: 0.9rem; height: 0.9rem; padding: 0; }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.tq-dialog-wide { width: min(60rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); }
.tq-dialog-wide iframe { display: block; width: 100%; height: min(70vh, calc(100vh - 9rem)); min-height: 12rem; border: 0; background: var(--tq-bg); }
.tq-field textarea { width: 100%; font: inherit; }
.tq-off { text-align: center; }
.tq-off img { max-height: 72px; margin-bottom: 1rem; }
.tq-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }
.tq-actions form { margin: 0; }
.tq-actions--split { justify-content: space-between; align-items: center; width: 100%; }
.tq-actions__end { display: inline-flex; gap: inherit; margin-left: auto; }
.tq-btn--ok { background: var(--tq-ok); color: #ffffff; }
.tq-btn--ok:hover { background: #165c2b; color: #ffffff; }
a.tq-btn.tq-btn--mustard,
button.tq-btn.tq-btn--mustard { background: #83C5C8; color: #ffffff; }
a.tq-btn.tq-btn--mustard:hover,
button.tq-btn.tq-btn--mustard:hover { background: #6aafb3; color: #ffffff; }
.tq-qr-downloads { display: inline-flex; gap: inherit; align-items: center; margin-right: auto; }
.tq-qr-downloads__label { font-size: 0.75rem; font-weight: 700; color: var(--tq-ink); white-space: nowrap; }
.tq-thumb-btn {
    border: 1px solid var(--tq-line);
    background: #ffffff;
    padding: 0.15rem;
    border-radius: 6px;
    cursor: zoom-in;
}
.tq-qr-thumb { width: 72px; height: 72px; background: #fff; border-radius: 6px; display: block; }
.tq-qr-dialog {
    border: 0;
    border-radius: 12px;
    padding: 1rem 1.1rem 1.2rem;
    max-width: min(36rem, calc(100% - 1.5rem));
    background: var(--tq-card);
    color: var(--tq-ink);
}
.tq-qr-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.tq-qr-dialog img { display: block; margin: 0.6rem auto; width: min(22rem, 86vw); height: auto; background: #ffffff; }
.tq-qr-link {
    margin: 0.15rem 0 0.7rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--tq-line);
    border-radius: 8px;
    background: var(--tq-bg);
    overflow-wrap: anywhere;
}
.tq-qr-link span { display: block; margin: 0.45rem 0 0.15rem; font-size: 0.68rem; color: var(--tq-muted); }
.tq-qr-link span:first-child { margin-top: 0; }
.tq-qr-link a { color: inherit; }
.tq-table th.tq-mid,
.tq-table td.tq-mid { text-align: center; }

.tq-bars { display: flex; flex-direction: column; gap: 0.45rem; }
.tq-statbar { display: grid; grid-template-columns: minmax(5.5rem, 9rem) 1fr auto; gap: 0.5rem; align-items: center; font-size: 0.88rem; }
.tq-statbar i {
    display: block;
    height: 8px;
    background: var(--tq-red);
    border-radius: 99px;
}

.tq-narrow { width: min(460px, 100%); margin: 2rem auto; }
.tq-login-links {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    margin: 0.55rem 0 0;
}
.tq-login-links a {
    font-size: 0.68rem;
    font-weight: 200;
    line-height: 1.15;
    letter-spacing: 0.01em;
}
.tq-split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
@media (max-width: 800px) {
    .tq-split { grid-template-columns: 1fr; }
    .tq-bar { flex-wrap: wrap; gap: 0.55rem 0.8rem; }
    .tq-bar__brand img { height: 24px; }
    .tq-sub { overflow-x: auto; }
    .tq-hero h1, .tq-panel h1, .tq-card h1 { font-size: 1.35rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; }
}

.tq-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.8rem; }
.tq-steps article { border-top: 3px solid var(--tq-red); }

.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 1.25rem 0 0.85rem;
    padding-bottom: calc(0.85rem + var(--admin-footer-height));
    background: var(--tq-card);
    border-top: 1px solid var(--tq-line);
    font-size: 0.625rem;
    line-height: 1.25;
}
.site-footer__inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    max-width: 1320px;
    margin: 0 auto;
    padding-left: clamp(0.75rem, 2.5vw, 1.75rem);
    padding-right: clamp(0.75rem, 2.5vw, 1.75rem);
    box-sizing: border-box;
}
.site-footer__brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-footer__logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-footer__logo-img { display: block; max-height: 44px; width: auto; object-fit: contain; }
.site-footer__menus {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 1.25rem 2.5rem;
    flex: 1 1 auto;
    margin-left: auto;
}
.site-footer__col { flex: 0 1 auto; min-width: 8rem; text-align: right; }
.site-footer__title {
    margin: 0 0 0.25rem;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.25;
    text-transform: uppercase;
    color: var(--tq-ink);
    text-align: right;
}
.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}
.site-footer__link {
    font: inherit;
    font-size: inherit;
    line-height: 1.25;
    color: var(--tq-muted);
    text-decoration: none;
}
.site-footer__link:hover,
.site-footer__link:focus-visible { color: var(--tq-red); }
@media (min-width: 768px) {
    .site-footer__menus { gap: 1.25rem 3rem; }
}
@media (max-width: 767.98px) {
    .site-footer__inner { flex-direction: column; align-items: stretch; gap: 1.15rem; }
    .site-footer__menus {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
        width: 100%;
        margin: 0;
        gap: 0.65rem 0.75rem;
    }
    .site-footer__col,
    .site-footer__title,
    .site-footer__list,
    .site-footer__link { text-align: left; }
    .site-footer__list { align-items: flex-start; gap: 0.25rem; }
    .site-footer__link { overflow-wrap: anywhere; }
}

/* Rodapé fixo — mesma estrutura do companhiade4patas.com ------------------ */

.admin-footer {
    border-top: 1px solid var(--cor-borda-footer);
    background: var(--cor-fundo-footer);
}
.admin-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 40;
    height: auto;
    background: var(--cor-fundo-footer);
}
.admin-footer-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    min-height: 2.15rem;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.25rem 1rem;
    font-size: 0.625rem;
    line-height: 1.3;
    color: var(--cor-texto-footer);
}
@media (min-width: 768px) {
    .admin-footer-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
.admin-footer-menu { flex: 0 1 auto; min-width: 0; margin-left: auto; text-align: right; }
.admin-footer-copyright {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: left;
}
.admin-footer-boodbe-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.2em;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    top: 0.15em;
}
.admin-footer-boodbe-wrap .admin-footer-link { padding-left: 0; line-height: 1; }
.admin-footer-boodbe-icon {
    height: 1em;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}
.admin-footer-version { color: var(--cor-texto-footer-version); white-space: nowrap; }
.admin-footer-version__sep { margin: 0 1.5em; }
.admin-footer-link {
    color: inherit;
    text-decoration: none;
    border-radius: 2px;
    padding: 0 2px;
}
.admin-footer-link:hover,
.admin-footer-link:focus {
    background: var(--cor-link-footer-hover-bg);
    color: var(--cor-link-footer-hover-text);
}
.template-util { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
.template-util__link {
    border: 0;
    background: none;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}
.template-util__sep,
.template-util__pipe { color: var(--cor-texto-footer-version); }
.template-util__link[data-theme-switch] { color: var(--cor-texto-footer-toggle-inactive); font-weight: 400; }
.template-util__link[data-theme-switch].is-active {
    color: var(--cor-texto-footer-toggle-active);
    font-weight: 600;
}

.cookie-banner {
    position: fixed;
    left: 0.8rem;
    right: 0.8rem;
    bottom: calc(var(--admin-footer-height) + 0.6rem);
    z-index: 35;
    background: var(--tq-card);
    border: 1px solid var(--tq-line);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }

.tq-session-warn {
    position: fixed;
    right: 0.8rem;
    bottom: calc(var(--admin-footer-height) + 0.6rem);
    background: #333333;
    color: #fff;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    z-index: 36;
}

/* Administração — letras e linhas mais compactas ------------------------------ */

body.tq-bo {
    font-size: 12.5px;
    line-height: 1.25;
}
body.tq-bo .tq-main { margin: 0.65rem auto 1rem; }
body.tq-bo .tq-sub { padding: 0.2rem 0.7rem; }
body.tq-bo .tq-sub a { padding: 0.15rem 0.45rem; font-size: 0.75rem; line-height: 1.2; }
body.tq-bo .tq-hero,
body.tq-bo .tq-card,
body.tq-bo .tq-panel { padding: 0.65rem 0.75rem; }
body.tq-bo .tq-hero h1,
body.tq-bo .tq-panel h1,
body.tq-bo .tq-card h1,
body.tq-bo h2 {
    font-size: 1.05rem;
    line-height: 1.2;
    margin: 0 0 0.2rem;
}
body.tq-bo dialog h3 {
    margin: 0.85rem 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 650;
}
body.tq-bo p,
body.tq-bo .tq-lead,
body.tq-bo li { margin-top: 0.15rem; margin-bottom: 0.35rem; line-height: 1.25; }
body.tq-bo .tq-grid { gap: 0.45rem; margin: 0.45rem 0; }
body.tq-bo .tq-stat strong { font-size: 1.15rem; line-height: 1.1; }
body.tq-bo .tq-actions { gap: 0.35rem; margin-top: 0.45rem; }
body.tq-bo .tq-btn,
body.tq-bo button.tq-btn { padding: 0.28rem 0.6rem; font-size: 0.75rem; line-height: 1.2; border-radius: 6px; }
body.tq-bo .tq-field { gap: 0.1rem; margin-bottom: 0.4rem; }
body.tq-bo .tq-field label { font-size: 0.72rem; font-weight: 550; line-height: 1.2; }
body.tq-bo .tq-field input,
body.tq-bo .tq-field select,
body.tq-bo .tq-field textarea,
body.tq-bo .tq-range input,
body.tq-bo .tq-range select,
body.tq-bo .tq-pager select {
    padding: 0.22rem 0.4rem;
    font-size: 0.78rem;
    line-height: 1.2;
    border-radius: 5px;
}
body.tq-bo .tq-field textarea { min-height: 3rem; }
body.tq-bo .tq-alert { padding: 0.35rem 0.5rem; margin-bottom: 0.45rem; line-height: 1.25; }
body.tq-bo .tq-table { font-size: 0.72rem; line-height: 1.2; }
body.tq-bo .tq-table th,
body.tq-bo .tq-table td { padding: 0.22rem 0.32rem; }
body.tq-bo .tq-table th { font-size: 0.62rem; letter-spacing: 0.02em; }
body.tq-bo .tq-charts { gap: 0.45rem; }
body.tq-bo .tq-chartbox { height: 180px; }
body.tq-bo .tq-range,
body.tq-bo .tq-listbar { gap: 0.35rem; margin: 0.35rem 0; font-size: 0.72rem; }
body.tq-bo .tq-dash-filters { margin-top: 1.35rem; }
body.tq-bo .tq-pagebtn { min-width: 1.7rem; height: 1.55rem; padding: 0 0.35rem; font-size: 0.72rem; }
body.tq-bo .tq-dl { gap: 0.12rem 0.5rem; font-size: 0.75rem; line-height: 1.25; }
body.tq-bo dialog { font-size: 0.78rem; line-height: 1.25; }
body.tq-bo .tq-iconbtns button { width: 1.55rem; height: 1.55rem; font-size: 0.75rem; }
body.tq-bo .tq-iconbtns button svg { width: 0.9rem; height: 0.9rem; }
body.tq-bo .tq-mode { width: 1.25rem; height: 1.25rem; font-size: 0.68rem; }
body.tq-bo .tq-no { width: 1.25rem; height: 1.25rem; }
body.tq-bo .tq-legend { font-size: 0.62rem; }
body.tq-bo .tq-legend .tq-mode { width: 0.85rem; height: 0.85rem; font-size: 0.52rem; }
body.tq-bo .tq-qr-thumb { width: 32px; height: 32px; }
body.tq-bo .tq-info-qr { width: 72px; height: 72px; }
.tq-dl dd { margin: 0; overflow-wrap: anywhere; }


div.dt-container { color: inherit; font-size: 0.78rem; }
div.dt-container .dt-input {
    font: inherit;
    color: var(--tq-ink);
    background: var(--tq-card);
    border: 1px solid var(--tq-line);
    border-radius: 6px;
}
div.dt-container .dt-paging .dt-paging-button.current,
div.dt-container .dt-paging .dt-paging-button.current:hover {
    background: var(--tq-red) !important;
    border-color: var(--tq-red) !important;
    color: #ffffff !important;
}
div.dt-container .dt-layout-end { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; flex-wrap: wrap; }
div.dt-container .tq-legend { margin: 0; }
table.dataTable thead th { color: var(--tq-muted); }
html[data-theme="dark"] { --dt-html-background: #3c3c3c; --dt-row-stripe: 255, 255, 255; --dt-column-ordering: 228, 228, 228; }
html[data-theme="light"] { --dt-column-ordering: 17, 17, 17; }

.tq-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
    background: #d7d7d7;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
html[data-theme="dark"] .tq-avatar {
    background: #5a5a5a;
    border-color: rgba(255, 255, 255, 0.18);
}
.tq-avatar--lg { width: 6.5rem; height: 6.5rem; }
.tq-avatar--empty { box-sizing: border-box; }
#tq-photo-form { margin-bottom: 1.35rem; }
.tq-photo-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}
.tq-photo-field__caption { align-self: flex-start; }
.tq-photo-field__face { position: relative; width: 6.5rem; height: 6.5rem; }
.tq-photo-field__preview { position: absolute; inset: 0; }
.tq-photo-field__preview[hidden],
.tq-photo-field [hidden] { display: none !important; }
.tq-photo-field__trash {
    position: absolute;
    right: -0.15rem;
    bottom: -0.15rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--tq-line);
    border-radius: 50%;
    background: var(--tq-card);
    color: var(--tq-ink);
    cursor: pointer;
}
.tq-photo-field__trash:hover { background: var(--tq-red); color: #ffffff; border-color: var(--tq-red); }
.tq-photo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    box-sizing: border-box;
    min-height: 4.5rem;
    padding: 0.85rem 1rem;
    border: 1px dashed var(--tq-line);
    border-radius: 12px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 450;
    line-height: 1.35;
    color: var(--tq-muted);
    cursor: pointer;
}
.tq-photo-drop.is-over {
    border-color: var(--tq-red);
    color: var(--tq-ink);
}
.tq-photo-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.tq-photo-msg { margin: 0; color: var(--tq-red); font-size: 0.82rem; text-align: center; }
.tq-foto-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
}
.tq-foto-sheet[hidden] { display: none !important; }
.tq-foto-sheet__card {
    width: min(640px, 96vw);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1rem 1.1rem 0.9rem;
    border: 1px solid var(--tq-line);
    border-radius: 12px;
    background: var(--tq-card);
    color: var(--tq-ink);
}
.tq-foto-crop {
    height: min(60vh, 26rem);
    margin-top: 0.75rem;
    overflow: hidden;
    border-radius: 8px;
    background: #2a2a2a;
}
.tq-foto-crop > img { display: block; max-width: 100%; }
.tq-foto-sheet .cropper-view-box,
.tq-foto-sheet .cropper-face { border-radius: 50%; }
.tq-foto-sheet .cropper-view-box { outline: 1px solid #83C5C8; }
.tq-foto-sheet .cropper-line,
.tq-foto-sheet .cropper-point { display: none; }
.tq-foto-sheet .tq-btn--ghost {
    background: transparent;
    color: var(--tq-ink);
    border: 1px solid var(--tq-line);
}


/* Sniff News — cartões, janela de procura e ícone a rodar ---------------- */

.tq-hero .tq-actions { justify-content: flex-start; }
.tq-main > .tq-hero,
.tq-main > .tq-card,
.tq-main > .tq-panel,
.tq-main > .tq-stats,
.tq-main > .tq-toolbar,
.tq-main > .lista,
.tq-main > .paginacao,
.tq-main > #contador { margin-bottom: 0.7rem; }

.sentimento {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    align-items: center;
}
.sent-meter b { font-size: 2rem; color: var(--tq-red); line-height: 1; }
.sent-bar { height: 8px; background: var(--tq-kind-bg); border-radius: 99px; overflow: hidden; margin: 0.35rem 0; }
.sent-bar i { display: block; height: 100%; background: var(--tq-red); }

.tq-toolbar { margin: 0.4rem 0 0.6rem; }
.tq-toolbar input,
.tq-toolbar select {
    font: inherit;
    padding: 0.45rem 0.6rem;
    border: 1px solid var(--tq-line);
    border-radius: 8px;
    background: var(--tq-card);
    color: var(--tq-ink);
}
.tq-toolbar input { flex: 1 1 16rem; }

.lista { display: flex; flex-direction: column; gap: 0.55rem; }
.card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
    background: var(--tq-card);
    border: 1px solid var(--tq-line);
    border-radius: 12px;
    padding: 0.55rem;
}
.card-link {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 0.7rem;
    color: inherit;
    text-decoration: none;
}
.card-link:hover h2 { color: var(--tq-red); }
.thumb { width: 88px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--tq-kind-bg); }
.thumb img, .preview { width: 88px; height: 88px; object-fit: cover; display: block; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; font-size: 0.75rem; color: var(--tq-muted); }
.row-meta .icon { width: 18px; height: 18px; border-radius: 4px; }
.card h2 { margin: 0.15rem 0; font-size: 1rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--tq-muted); }
.pill {
    display: inline-block;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--tq-kind-bg);
    color: var(--tq-ink);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.sent-badge {
    align-self: start;
    border: 0;
    border-radius: 8px;
    min-width: 3.2rem;
    padding: 0.35rem 0.45rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    background: var(--tq-kind-bg);
    color: var(--tq-ink);
}
.sent-badge.low { background: #f3e3c2; color: #6a4b10; }
.sent-badge.mid { background: #efe6c8; color: #5c4810; }
.sent-badge.high { background: var(--tq-ok-bg); color: var(--tq-ok); }
.sent-badge.off { opacity: 0.45; }
.card-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    align-self: start;
}
.drop-btn {
    width: 1.7rem;
    height: 1.7rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #8a8a8a;
    color: #ffffff;
    font: 700 0.78rem/1 system-ui, "Segoe UI", sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.drop-btn:hover { background: #6a6a6a; }
html[data-theme="dark"] .drop-btn { background: #9a9a9a; color: #ffffff; }
html[data-theme="dark"] .drop-btn:hover { background: #b0b0b0; color: #1a1a1a; }

.run-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.run-title { display: inline-flex; align-items: center; gap: 0.55rem; }
.sniff-spin { display: inline-flex; color: #f97316; flex: 0 0 auto; }
.sniff-spin[hidden] { display: none; }
.sn-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.sn-inline input[name="confirm"] { width: 8rem; }

.sn-inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 8px 0 0; }
.sn-inline input[name="confirm"] { width: 8rem; }

.wipe-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.7rem 0;
    font-weight: 650;
}
.wipe-check input { margin-top: 0.15rem; accent-color: #83C5C8; }
.sniff-spin svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
    animation: sniff-spin 0.85s linear infinite;
}
@keyframes sniff-spin { to { transform: rotate(360deg); } }
.run-log { margin: 0.4rem 0 0; padding-left: 1.1rem; max-height: 14rem; overflow: auto; }
.run-log li { margin: 0.15rem 0; }

.paginacao { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.paginacao a, .paginacao span {
    min-width: 1.8rem;
    text-align: center;
    padding: 0.2rem 0.4rem;
    border: 1px solid var(--tq-line);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
}
.paginacao .current, .paginacao span.current { background: var(--tq-red); color: #fff; border-color: var(--tq-red); }

.sn-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(17, 17, 17, 0.55);
}
.sn-modal[hidden] { display: none; }
.sn-modal__card {
    width: min(460px, 100%);
    background: var(--tq-card);
    color: var(--tq-ink);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--tq-line);
}
.sn-keys { display: grid; grid-template-columns: 8rem 1fr; gap: 0.35rem 0.6rem; }
.sn-keys dd { margin: 0; }
.empty { padding: 1rem; color: var(--tq-muted); }

body.tq-bo .card h2 { font-size: 0.92rem; }
body.tq-bo .thumb, body.tq-bo .thumb img, body.tq-bo .preview { width: 64px; height: 64px; }
body.tq-bo .card-link { grid-template-columns: 64px 1fr; }
body.tq-bo .sent-meter b { font-size: 1.4rem; }

@media (max-width: 800px) {
    .sentimento, .tq-stats--5, .tq-stats--4 { grid-template-columns: 1fr 1fr; }
    .card, .card-link { grid-template-columns: 1fr; }
}
