/*
 * Elite SSP - camada visual 2.0
 *
 * Arquivo propositalmente aditivo: fica depois de ssp.css e não altera os
 * contratos PHP/NUI. Para rollback visual basta remover sua inclusao em
 * painel.php.
 */

:root {
  --bg: #06080d;
  --bg2: #090d15;
  --panel: #0d131f;
  --panel2: #111a2a;
  --line: rgba(156, 177, 215, .11);
  --line2: rgba(110, 153, 234, .24);
  --blue: #4c82f6;
  --blue-soft: #a9c5ff;
  --text: #f2f5fb;
  --dim: #b3bfd4;
  --mute: #73819a;
  --gold: #e4b75b;
  --ok: #39d98a;
  --bad: #ff5d6c;
  --warn: #e7b85a;
  --elite-red: #ff3041;
  --elite-red-deep: #b91424;
  --ssp-head: "Oswald", "Segoe UI", sans-serif;
  --ssp-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ssp-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

html { background: var(--bg); }

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  font-family: var(--ssp-body);
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(48, 102, 218, .14), transparent 68%),
    radial-gradient(780px 440px at 96% 2%, rgba(255, 48, 65, .055), transparent 72%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(135, 160, 207, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 160, 207, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0, rgba(0, 0, 0, .54) 55%, transparent 100%);
}

body.ssp-ingame::before { display: none; }

button, input, textarea, select { font-family: inherit; }

::selection { color: #fff; background: rgba(76, 130, 246, .45); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Cabecalho -------------------------------------------------------- */

.ssp-top {
  min-height: 74px;
  gap: 20px;
  padding: 11px clamp(18px, 3vw, 46px);
  border-color: var(--line);
  background: rgba(6, 8, 13, .9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px) saturate(135%);
}

.ssp-brand { gap: 12px; }

.ssp-shield {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-color: rgba(100, 148, 238, .34);
  border-radius: 11px;
  color: #c6d8ff;
  background:
    radial-gradient(circle at 20% 10%, rgba(104, 155, 255, .28), transparent 58%),
    linear-gradient(145deg, #16233a, #0b101a);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 10px 25px rgba(0, 0, 0, .25);
}

.ssp-shield::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 48, 65, .22);
  filter: blur(8px);
}

.ssp-shield svg { position: relative; z-index: 1; width: 23px; height: 23px; }

.ssp-brand b {
  font-family: var(--ssp-head);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ssp-brand small {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-family: var(--ssp-head);
  font-size: .61rem;
  font-weight: 500;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.ssp-busca {
  position: relative;
  max-width: 560px;
}

.ssp-busca input {
  height: 42px;
  border-color: var(--line);
  border-radius: 10px 0 0 10px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, .035);
  font-size: .82rem;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ssp-busca input::placeholder { color: #69768d; }

.ssp-busca input:focus {
  border-color: rgba(98, 149, 247, .7);
  background: rgba(13, 20, 33, .98);
  box-shadow: 0 0 0 3px rgba(76, 130, 246, .11);
}

.ssp-busca button {
  height: 42px;
  padding: 0 18px;
  border-color: rgba(101, 151, 246, .55);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(135deg, #4d84f8, #3265d2);
  box-shadow: 0 8px 22px rgba(51, 104, 218, .2);
  font-family: var(--ssp-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ssp-user {
  gap: 9px;
  min-height: 44px;
  padding: 5px 5px 5px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, .025);
}

.ssp-user img {
  width: 32px;
  height: 32px;
  border-color: rgba(110, 153, 234, .3);
  border-radius: 8px;
  object-fit: cover;
}

.ssp-user .nm {
  font-family: var(--ssp-head);
  font-size: .75rem;
  letter-spacing: .02em;
}

.ssp-sair {
  margin-left: 3px;
  padding: 7px 10px;
  border-color: var(--line);
  border-radius: 7px;
  color: var(--mute);
  font-family: var(--ssp-head);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ssp-sair:hover {
  border-color: rgba(255, 93, 108, .45);
  color: #fff;
  background: rgba(255, 93, 108, .08);
}

/* Navegacao -------------------------------------------------------- */

.ssp-nav {
  gap: 2px;
  min-height: 51px;
  padding: 0 clamp(18px, 3vw, 46px);
  border-color: var(--line);
  background: rgba(9, 13, 21, .94);
  box-shadow: inset 0 -1px rgba(255, 255, 255, .01);
  scrollbar-width: thin;
  scrollbar-color: rgba(105, 147, 226, .38) transparent;
}

.ssp-nav::-webkit-scrollbar { height: 4px; }
.ssp-nav::-webkit-scrollbar-track { background: transparent; }
.ssp-nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(105, 147, 226, .38); }

.ssp-nav > a,
.ssp-navdrop-btn {
  position: relative;
  min-height: 50px;
  padding: 0 13px;
  border-bottom-width: 2px;
  color: #8795ad;
  font-family: var(--ssp-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.ssp-nav > a:hover,
.ssp-navdrop-btn:hover {
  color: #fff;
  background: linear-gradient(to top, rgba(76, 130, 246, .075), transparent 80%);
}

.ssp-nav > a.on,
.ssp-navdrop.on .ssp-navdrop-btn {
  color: #d9e5ff;
  border-bottom-color: var(--blue);
  background: linear-gradient(to top, rgba(76, 130, 246, .1), transparent 82%);
}

.ssp-nav > a.on::after,
.ssp-navdrop.on .ssp-navdrop-btn::after {
  content: "";
  position: absolute;
  right: 24%;
  bottom: -1px;
  left: 24%;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  filter: blur(5px);
  opacity: .55;
}

.ssp-navdrop-arrow { width: 12px; height: 12px; }

.ssp-navdrop-menu {
  min-width: 224px;
  padding: 6px;
  border-color: rgba(111, 153, 232, .26);
  border-radius: 10px;
  background: linear-gradient(155deg, #111b2c, #0b1321 78%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .52);
  /* O blur cria uma camada preta no compositor transparente da NUI/CEF. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.ssp-navdrop-item {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 7px;
  color: var(--dim);
  font-family: var(--ssp-body);
  font-size: .76rem;
}

.ssp-navdrop-item:hover,
.ssp-navdrop-item.on {
  color: #fff;
  background: rgba(76, 130, 246, .105);
}

.ssp-nav .ssp-badge {
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid rgba(255, 105, 117, .35);
  background: rgba(255, 48, 65, .18);
  color: #ff9ca5;
  line-height: 16px;
  box-shadow: none;
}

/* Conteudo e componentes globais ---------------------------------- */

.ssp-main {
  width: min(1460px, 100%);
  max-width: 1460px;
  padding: clamp(27px, 3.4vw, 46px) clamp(18px, 3vw, 46px) 90px;
}

.ssp-h1 {
  margin-bottom: 6px;
  color: #f5f7fc;
  font-family: var(--ssp-head);
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: .015em;
  line-height: 1.15;
}

.ssp-h1 em { color: var(--blue-soft); }

.ssp-sub {
  max-width: 780px;
  margin-bottom: 24px;
  color: var(--mute);
  font-size: .78rem;
  line-height: 1.65;
}

.ssp-sec {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 31px 0 13px;
  color: #7e8da7;
  font-family: var(--ssp-head);
  font-size: .65rem;
  letter-spacing: .13em;
}

.ssp-sec::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--elite-red), #7b2030);
}

.ssp-flash,
.ssp-aviso {
  border-color: rgba(97, 146, 237, .25);
  background: linear-gradient(100deg, rgba(76, 130, 246, .1), rgba(76, 130, 246, .025));
  box-shadow: inset 3px 0 var(--blue);
}

.ssp-panel,
.cb-sec,
.ssp-ident,
.ssp-pat-card,
.ssp-pat-tablewrap {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(17, 26, 42, .94), rgba(11, 16, 26, .96));
  box-shadow: 0 15px 42px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .02);
}

.ssp-panel {
  border-radius: 14px;
  padding: 19px;
}

.ssp-panel > h3 {
  margin-bottom: 14px;
  color: #eef3fc;
  font-family: var(--ssp-head);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.ssp-panel > h3 a {
  color: #91b3f8;
  font-family: var(--ssp-body);
  font-size: .66rem;
  letter-spacing: 0;
  text-transform: none;
}

.ssp-panel > h3 a:hover { color: #fff; }

.ssp-row {
  min-height: 53px;
  border-color: rgba(150, 173, 214, .09);
  border-radius: 9px;
  background: rgba(255, 255, 255, .022);
  transition: border-color .17s ease, background .17s ease, transform .17s ease;
}

a.ssp-row:hover {
  border-color: rgba(105, 151, 238, .3);
  background: rgba(76, 130, 246, .055);
  transform: translateX(2px);
}

.ssp-row .ttl { color: #e9edf5; font-size: .83rem; }
.ssp-row .meta { color: var(--mute); font-size: .72rem; }

.ssp-pp,
.ssp-on-row .ssp-pp,
.ssp-pat-table .ssp-pp {
  border-color: rgba(111, 153, 232, .22);
  background: rgba(76, 130, 246, .09);
  color: #9dbcf9;
  font-family: "Consolas", monospace;
}

.ssp-tag { border-radius: 999px; font-size: .59rem; letter-spacing: .055em; }

.ssp-empty,
.ssp-construcao {
  color: #748199;
}

.ssp-construcao {
  border-color: var(--line2);
  background: rgba(11, 16, 26, .74);
}

.ssp-filtro,
.ssp-rh-bar,
.ssp-gestao-bar {
  border-radius: 11px;
}

input.cb-inp,
textarea.cb-inp,
.ssp-filtro input,
.ssp-filtro select,
.ssp-rh-search,
.ssp-pat-search,
.ssp-ef-busca,
.ssp-filtro-local,
.ssp-gestao-hire input,
.ssp-rh-corp-select,
.ssp-select-btn {
  border-color: var(--line);
  background-color: rgba(5, 8, 14, .66);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input.cb-inp:focus,
textarea.cb-inp:focus,
.ssp-filtro input:focus,
.ssp-filtro select:focus,
.ssp-rh-search:focus,
.ssp-pat-search:focus,
.ssp-ef-busca:focus,
.ssp-filtro-local:focus,
.ssp-gestao-hire input:focus,
.ssp-rh-corp-select:focus,
.ssp-select-btn:focus-visible {
  border-color: rgba(98, 149, 247, .68);
  background-color: rgba(9, 14, 23, .96);
  box-shadow: 0 0 0 3px rgba(76, 130, 246, .1);
}

.bo-btn,
.ssp-btn-rh,
.ssp-pager-tab,
.ssp-pager-btn {
  border-color: var(--line);
  border-radius: 8px;
  font-family: var(--ssp-head);
  font-size: .68rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.bo-btn--primary,
.ssp-btn-rh--hire,
.ssp-pager-tab.on {
  border-color: rgba(105, 151, 244, .56);
  background: linear-gradient(135deg, #4c82f6, #3264cf);
  box-shadow: 0 9px 24px rgba(49, 100, 207, .2);
}

/* Dashboard -------------------------------------------------------- */

.ssp-dashboard-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  overflow: hidden;
  min-height: 190px;
  padding: clamp(25px, 3.3vw, 39px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(540px 230px at 0 50%, rgba(63, 121, 236, .17), transparent 72%),
    radial-gradient(360px 220px at 100% 0, rgba(255, 48, 65, .07), transparent 70%),
    linear-gradient(135deg, rgba(17, 26, 42, .98), rgba(8, 12, 20, .98));
  box-shadow: var(--ssp-shadow), inset 0 1px rgba(255, 255, 255, .035);
}

.ssp-dashboard-hero::after {
  content: "SSP";
  position: absolute;
  right: 24px;
  bottom: -38px;
  color: rgba(255, 255, 255, .018);
  font-family: var(--ssp-head);
  font-size: 10rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  pointer-events: none;
}

.ssp-dashboard-copy,
.ssp-dashboard-status { position: relative; z-index: 1; }

.ssp-dashboard-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: #8eb2fb;
  font-family: var(--ssp-head);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ssp-dashboard-eyebrow i {
  width: 25px;
  height: 2px;
  background: var(--elite-red);
  box-shadow: 0 0 10px rgba(255, 48, 65, .4);
}

.ssp-dashboard-hero h1 {
  margin: 0;
  font-family: var(--ssp-head);
  font-size: clamp(2.25rem, 4.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1;
  text-transform: uppercase;
}

.ssp-dashboard-hero h1 em { color: var(--blue-soft); font-style: normal; }

.ssp-dashboard-corp {
  margin-top: 12px;
  color: var(--dim);
  font-size: .78rem;
}

.ssp-dashboard-corp strong { color: var(--gold); font-weight: 600; }

.ssp-dashboard-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
}

.ssp-dashboard-caps span {
  padding: 5px 9px;
  border: 1px solid rgba(110, 153, 234, .19);
  border-radius: 999px;
  color: #8da7d9;
  background: rgba(76, 130, 246, .06);
  font-family: var(--ssp-head);
  font-size: .58rem;
  font-weight: 500;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ssp-dashboard-status {
  display: grid;
  gap: 10px;
  width: 220px;
  padding: 16px;
  border: 1px solid rgba(111, 153, 232, .18);
  border-radius: 12px;
  background: rgba(4, 7, 12, .42);
  backdrop-filter: blur(8px);
}

.ssp-dashboard-status > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #dbe5f8;
  font-family: var(--ssp-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.ssp-dashboard-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(57, 217, 138, .75);
  animation: ssp-pulse 2.2s ease-in-out infinite;
}

.ssp-dashboard-status small {
  color: var(--mute);
  font-size: .64rem;
  line-height: 1.55;
}

.ssp-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.ssp-quick a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 65px;
  padding: 12px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(15, 22, 35, .82);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.ssp-quick a:hover {
  border-color: rgba(103, 149, 238, .37);
  background: rgba(21, 32, 51, .94);
  transform: translateY(-2px);
}

.ssp-quick-ic {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid rgba(100, 148, 238, .23);
  border-radius: 8px;
  color: #9bbafa;
  background: rgba(76, 130, 246, .08);
  font-family: var(--ssp-head);
  font-size: .67rem;
  font-style: normal;
  font-weight: 600;
}

.ssp-quick-copy { min-width: 0; }

.ssp-quick-copy b {
  display: block;
  overflow: hidden;
  color: #edf2fb;
  font-family: var(--ssp-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ssp-quick-copy small {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--mute);
  font-size: .6rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssp-stats {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.ssp-tile {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 108px;
  padding: 18px 19px;
  border-color: var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 25, 40, .94), rgba(10, 15, 24, .96));
  box-shadow: 0 13px 35px rgba(0, 0, 0, .14);
  transition: border-color .18s ease, transform .18s ease;
}

a.ssp-tile:hover {
  border-color: rgba(104, 150, 237, .34);
  transform: translateY(-2px);
}

.ssp-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 58px;
  height: 2px;
  background: var(--blue);
  opacity: .7;
}

.ssp-tile.is-bad::after { background: var(--bad); }
.ssp-tile.is-warn::after { background: var(--gold); }
.ssp-tile.is-ok::after { background: var(--ok); }

.ssp-tile .n {
  font-family: var(--ssp-head);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.ssp-tile .l {
  margin-top: 8px;
  color: #8090aa;
  font-family: var(--ssp-head);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .075em;
}

.ssp-dash { grid-template-columns: minmax(0, 1fr) 350px; gap: 13px; }
.ssp-cols { gap: 13px; }

.ssp-online-list { max-height: 520px; }

.ssp-online-c {
  border: 1px solid rgba(57, 217, 138, .2);
  background: rgba(57, 217, 138, .07);
  color: #6ee5aa;
}

.ssp-on-row {
  min-height: 54px;
  padding: 9px 6px;
  border-color: rgba(156, 177, 215, .075);
  border-radius: 7px;
  transition: background .15s ease;
}

a.ssp-on-row:hover { background: rgba(76, 130, 246, .06); }

/* Login / gates ---------------------------------------------------- */

.ssp-gate-wrap {
  position: relative;
  min-height: 100vh;
  padding: 34px;
  background:
    radial-gradient(700px 480px at 50% 0, rgba(62, 119, 232, .15), transparent 72%),
    radial-gradient(500px 380px at 100% 100%, rgba(255, 48, 65, .06), transparent 74%);
}

.ssp-gate-wrap::before {
  content: "PORTAL OPERACIONAL  /  ELITE ROLEPLAY";
  position: fixed;
  top: 28px;
  left: 32px;
  color: #6f7d95;
  font-family: var(--ssp-head);
  font-size: .61rem;
  font-weight: 600;
  letter-spacing: .13em;
}

.ssp-card {
  max-width: 470px;
  padding: 46px 39px 38px;
  border-color: rgba(108, 151, 231, .22);
  border-radius: 17px;
  background:
    radial-gradient(350px 180px at 50% 0, rgba(76, 130, 246, .11), transparent 74%),
    linear-gradient(145deg, rgba(17, 25, 40, .98), rgba(9, 13, 21, .99));
  box-shadow: 0 36px 100px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .035);
}

.ssp-card .big-shield {
  width: 72px;
  height: 72px;
  border-color: rgba(100, 148, 238, .34);
  border-radius: 16px;
  background: radial-gradient(circle at 35% 25%, rgba(80, 139, 255, .27), rgba(61, 125, 255, .035));
  box-shadow: 0 16px 35px rgba(0, 0, 0, .24);
}

.ssp-card h1 {
  margin-top: 20px;
  font-family: var(--ssp-head);
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: .045em;
}

.ssp-card p { color: #9aa8c0; font-size: .8rem; line-height: 1.7; }

.ssp-card .ssp-btn {
  min-height: 48px;
  border-color: rgba(106, 153, 245, .58);
  border-radius: 9px;
  background: linear-gradient(135deg, #557eea, #4356c7);
  box-shadow: 0 13px 30px rgba(67, 86, 199, .24);
  font-family: var(--ssp-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ssp-card .ssp-aviso {
  border-color: rgba(228, 183, 91, .22);
  background: rgba(228, 183, 91, .055);
  box-shadow: none;
  font-size: .72rem;
}

/* Touch, tabelas e responsividade ---------------------------------- */

@media (hover: none) {
  .ssp-chat-acts { position: static; opacity: 1; pointer-events: auto; box-shadow: none; }
  .ssp-chat-bubble { padding-right: 10px; }
}

@media (max-width: 1180px) {
  .ssp-top { gap: 13px; }
  .ssp-brand small { display: none; }
  .ssp-user .nm { max-width: 96px; }
  .ssp-nav > a, .ssp-navdrop-btn { padding-right: 11px; padding-left: 11px; }
  .ssp-quick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .ssp-top { flex-wrap: wrap; }
  .ssp-busca { order: 3; width: 100%; max-width: none; margin-left: 0; }
  .ssp-nav { padding-right: 18px; padding-left: 18px; }
  .ssp-dashboard-hero { grid-template-columns: 1fr; }
  .ssp-dashboard-status { width: 100%; grid-template-columns: auto 1fr; align-items: center; }
  .ssp-dashboard-status small { text-align: right; }
  .ssp-dash { grid-template-columns: 1fr; }
  .ssp-online-list { max-height: 400px; }
}

@media (max-width: 720px) {
  .ssp-top { padding: 10px 14px; }
  .ssp-brand b { font-size: .93rem; }
  .ssp-shield { width: 39px; height: 39px; }
  .ssp-user { margin-left: auto; min-height: 39px; }
  .ssp-user img { width: 28px; height: 28px; }
  .ssp-user .nm { display: none; }
  .ssp-sair { margin-left: 0; }
  .ssp-busca input, .ssp-busca button { height: 39px; }
  .ssp-busca button { padding: 0 13px; }
  .ssp-nav { min-height: 47px; padding: 0 11px; }
  .ssp-nav > a, .ssp-navdrop-btn { min-height: 46px; padding: 0 10px; font-size: .64rem; }
  .ssp-main { padding: 23px 14px 70px; }
  .ssp-h1 { font-size: 1.65rem; }
  .ssp-dashboard-hero { min-height: 0; padding: 24px 20px; border-radius: 14px; }
  .ssp-dashboard-hero h1 { font-size: 2.35rem; }
  .ssp-dashboard-status { grid-template-columns: 1fr; }
  .ssp-dashboard-status small { text-align: left; }
  .ssp-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ssp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ssp-tile { min-height: 96px; padding: 15px; }
  .ssp-tile .n { font-size: 1.8rem; }
  .ssp-panel { padding: 15px; }
  .ssp-row { flex-wrap: wrap; align-items: flex-start; }
  .ssp-row .rt { width: 100%; text-align: left; }
  .ssp-cols { grid-template-columns: minmax(0, 1fr); }
  .ssp-gate-wrap { padding: 22px 14px; }
  .ssp-gate-wrap::before { top: 18px; left: 18px; }
  .ssp-card { padding: 38px 23px 28px; }
}

@media (max-width: 440px) {
  .ssp-quick { grid-template-columns: 1fr; }
  .ssp-stats { grid-template-columns: 1fr 1fr; }
  .ssp-tile .l { font-size: .56rem; }
  .ssp-when { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Refinamento da barra superior ----------------------------------- */

/* O shell acompanha a mesma coluna visual do conteudo. Em monitores largos
   isso elimina o logo "solto" no canto e deixa o conjunto mais coeso. */
.ssp-top,
.ssp-nav {
  padding-right: max(18px, calc((100vw - 1368px) / 2));
  padding-left: max(18px, calc((100vw - 1368px) / 2));
}

.ssp-top {
  min-height: 68px;
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(6, 9, 15, .94);
}

.ssp-shield {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.ssp-brand { min-width: 224px; }
.ssp-brand b { font-size: 1rem; }
.ssp-brand small { margin-top: 3px; font-size: .57rem; }

.ssp-busca {
  width: min(510px, 42vw);
  max-width: 510px;
}

.ssp-busca input,
.ssp-busca button { height: 40px; }

.ssp-busca button { min-width: 80px; padding: 0 15px; }

.ssp-user {
  min-height: 40px;
  padding: 4px;
}

.ssp-user img { width: 30px; height: 30px; }

.ssp-nav {
  align-items: stretch;
  min-height: 46px;
  background: rgba(8, 12, 20, .97);
}

/* Links e dropdowns passam a usar exatamente a mesma linha de base. */
.ssp-nav > a,
.ssp-navdrop,
.ssp-navdrop-btn {
  min-height: 46px;
}

.ssp-nav > a,
.ssp-navdrop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  font-size: .72rem;
  line-height: 1;
}

.ssp-navdrop { flex: none; }

.ssp-nav > a.on,
.ssp-navdrop.on .ssp-navdrop-btn {
  color: #e4ecff;
  background: rgba(76, 130, 246, .07);
}

.ssp-nav > a.on::after,
.ssp-navdrop.on .ssp-navdrop-btn::after {
  right: 18%;
  left: 18%;
  height: 3px;
  filter: blur(3px);
}

/* Separa operacao de administracao sem mudar links, permissoes ou ordem. */
.ssp-nav > a[href="/ssp/gestao.php"],
.ssp-nav > a[href="/ssp/logbau.php"] {
  margin-left: auto;
}

.ssp-nav > a[href="/ssp/gestao.php"] + a[href="/ssp/logbau.php"] {
  margin-left: 0;
}

/* Dentro do tablet a largura util e menor que a viewport do jogo. */
body.ssp-ingame .ssp-top,
body.ssp-ingame .ssp-nav,
#tablet-content .ssp-top,
#tablet-content .ssp-nav {
  padding-right: clamp(18px, 3vw, 36px);
  padding-left: clamp(18px, 3vw, 36px);
}

body.ssp-ingame .ssp-nav > a[href="/ssp/gestao.php"],
body.ssp-ingame .ssp-nav > a[href="/ssp/logbau.php"],
#tablet-content .ssp-nav > a[href="/ssp/gestao.php"],
#tablet-content .ssp-nav > a[href="/ssp/logbau.php"] {
  margin-left: 0;
}

@media (max-width: 1180px) {
  .ssp-top,
  .ssp-nav {
    padding-right: 18px;
    padding-left: 18px;
  }

  .ssp-brand { min-width: 0; }
  .ssp-busca { width: auto; max-width: 500px; }

  .ssp-nav > a[href="/ssp/gestao.php"],
  .ssp-nav > a[href="/ssp/logbau.php"] {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .ssp-top { padding: 9px 14px; }
  .ssp-nav { padding: 0 11px; }
  .ssp-busca { width: 100%; max-width: none; }
}

/* Densidade e rolagem exclusivas do tablet SSP -------------------- */

/* O shell NUI recebe esta folha depois do CSS interno. Mantém o recorte
   arredondado sem a sombra preta aparecer nas quatro quinas. */
html.ssp-shell-root #tablet {
  box-shadow: 0 0 0 1px rgba(127, 176, 255, .12), 0 18px 48px rgba(37, 78, 150, .2) !important;
}

/* O shell NUI injeta o portal dentro de #tablet-content. Os seletores
   abaixo tambem cobrem o modo in-game direto, sem alterar o SSP web. */
body.ssp-ingame #ssp-tablet-scroll,
#tablet-content #ssp-tablet-scroll {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #426aa8 #080b12;
  scrollbar-gutter: stable;
}

body.ssp-ingame #ssp-tablet-scroll::-webkit-scrollbar,
#tablet-content #ssp-tablet-scroll::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

body.ssp-ingame #ssp-tablet-scroll::-webkit-scrollbar-track,
#tablet-content #ssp-tablet-scroll::-webkit-scrollbar-track {
  background: #080b12;
  box-shadow: inset 1px 0 rgba(127, 176, 255, .08);
}

body.ssp-ingame #ssp-tablet-scroll::-webkit-scrollbar-thumb,
#tablet-content #ssp-tablet-scroll::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 1px solid #080b12;
  border-radius: 999px;
  background: linear-gradient(180deg, #527fc8, #355a94);
  background-clip: padding-box;
}

body.ssp-ingame #ssp-tablet-scroll::-webkit-scrollbar-thumb:hover,
#tablet-content #ssp-tablet-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6a9bf0, #4776bd);
}

body.ssp-ingame #ssp-tablet-scroll::-webkit-scrollbar-button,
#tablet-content #ssp-tablet-scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

body.ssp-ingame #ssp-tablet-scroll::-webkit-scrollbar-corner,
#tablet-content #ssp-tablet-scroll::-webkit-scrollbar-corner {
  background: #080b12;
}

body.ssp-ingame .ssp-dashboard-hero,
#tablet-content .ssp-dashboard-hero {
  min-height: 160px;
  gap: 20px;
  align-items: center;
  padding: 20px 25px;
}

body.ssp-ingame .ssp-dashboard-hero h1,
#tablet-content .ssp-dashboard-hero h1 {
  font-size: clamp(2.15rem, 3.5vw, 3.2rem);
  line-height: .94;
}

body.ssp-ingame .ssp-dashboard-eyebrow,
#tablet-content .ssp-dashboard-eyebrow {
  margin-bottom: 7px;
}

body.ssp-ingame .ssp-dashboard-corp,
#tablet-content .ssp-dashboard-corp {
  margin-top: 8px;
}

body.ssp-ingame .ssp-dashboard-caps,
#tablet-content .ssp-dashboard-caps {
  margin-top: 11px;
}

body.ssp-ingame .ssp-dashboard-status,
#tablet-content .ssp-dashboard-status {
  width: 205px;
  gap: 8px;
  padding: 13px;
}

body.ssp-ingame .ssp-dashboard-hero::after,
#tablet-content .ssp-dashboard-hero::after {
  bottom: -28px;
  font-size: 7.5rem;
}

@media (max-width: 980px) {
  body.ssp-ingame .ssp-dashboard-status,
  #tablet-content .ssp-dashboard-status {
    width: 100%;
  }
}

/* Anuncios obrigatorios ------------------------------------------- */

.ssp-announcement-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 1;
  transition: opacity .18s ease;
}

#tablet-content .ssp-announcement-overlay {
  position: absolute;
}

.ssp-announcement-overlay.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.ssp-announcement-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(650px 360px at 50% 18%, rgba(62, 105, 194, .19), transparent 72%),
    rgba(3, 5, 9, .86);
  backdrop-filter: blur(8px) saturate(120%);
}

.ssp-announcement-dialog {
  position: relative;
  width: min(820px, calc(100% - 12px));
  max-height: calc(100% - 12px);
  display: grid;
  grid-template-rows: auto minmax(90px, 1fr) auto;
  overflow: hidden;
  color: var(--text);
  border: 1px solid rgba(117, 155, 228, .28);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(17, 27, 44, .98), rgba(8, 12, 21, .99) 62%),
    var(--panel);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .72),
    0 0 0 1px rgba(255, 255, 255, .025) inset,
    0 0 54px rgba(76, 130, 246, .09);
  transform: translateY(0) scale(1);
  animation: sspAnnEnter .22s ease-out both;
}

.ssp-announcement-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  z-index: 2;
  background: linear-gradient(90deg, var(--elite-red), #ff7884 38%, var(--blue) 82%, transparent);
}

@keyframes sspAnnEnter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
}

.ssp-announcement-head {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 48, 65, .045), transparent 55%);
}

.ssp-announcement-icon {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  color: #ff8490;
  border: 1px solid rgba(255, 79, 95, .32);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 48, 65, .18), rgba(255, 48, 65, .055));
  box-shadow: 0 10px 28px rgba(255, 48, 65, .1);
}

.ssp-announcement-icon svg { width: 23px; height: 23px; }

.ssp-announcement-heading {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ssp-announcement-heading small {
  color: #ff7b88;
  font: 700 .67rem/1 var(--ssp-head);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ssp-announcement-heading strong {
  color: #fff;
  font: 650 clamp(1.12rem, 2.3vw, 1.45rem)/1.18 var(--ssp-body);
  overflow-wrap: anywhere;
}

.ssp-announcement-heading > span:last-child {
  color: var(--mute);
  font-size: .73rem;
}

.ssp-announcement-required {
  flex: none;
  align-self: flex-start;
  padding: 6px 9px;
  color: #ffd0d4;
  border: 1px solid rgba(255, 76, 91, .24);
  border-radius: 999px;
  background: rgba(255, 48, 65, .09);
  font: 700 .61rem/1 var(--ssp-head);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ssp-announcement-scroll {
  min-height: 96px;
  max-height: min(48vh, 440px);
  overflow: auto;
  padding: 22px 24px 26px;
  scrollbar-width: thin;
  scrollbar-color: #456ca9 rgba(255, 255, 255, .025);
  overscroll-behavior: contain;
}

#tablet-content .ssp-announcement-scroll {
  max-height: min(43vh, 390px);
}

.ssp-announcement-scroll::-webkit-scrollbar { width: 7px; }
.ssp-announcement-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, .02); }
.ssp-announcement-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: #456ca9; }

.ssp-announcement-message {
  color: #d9e1ef;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: .94rem;
  line-height: 1.75;
}

.ssp-announcement-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 14, .72);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, .18);
}

.ssp-announcement-check {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dce5f4;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 650;
  user-select: none;
}

.ssp-announcement-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ssp-announcement-checkmark {
  width: 21px;
  height: 21px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(158, 181, 223, .3);
  border-radius: 6px;
  background: #080d17;
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}

.ssp-announcement-checkmark::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 0 2px 2px;
  opacity: 0;
  transform: rotate(-45deg) scale(.7);
  transition: opacity .14s ease, transform .14s ease;
}

.ssp-announcement-check input:checked + .ssp-announcement-checkmark {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(76, 130, 246, .14);
}

.ssp-announcement-check input:checked + .ssp-announcement-checkmark::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.ssp-announcement-check input:focus-visible + .ssp-announcement-checkmark {
  outline: 2px solid var(--blue-soft);
  outline-offset: 3px;
}

.ssp-announcement-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.ssp-announcement-status {
  max-width: 220px;
  color: var(--mute);
  font-size: .7rem;
  line-height: 1.35;
  text-align: right;
}

.ssp-announcement-status.is-error { color: #ff8b96; }
.ssp-announcement-status.is-success { color: var(--ok); }
.ssp-announcement-status.is-warning { color: var(--warn); }
.ssp-announcement-status.is-loading { color: var(--blue-soft); }

.ssp-announcement-confirm {
  min-width: 154px;
  padding: 11px 16px;
  color: #fff;
  border: 1px solid rgba(102, 151, 242, .62);
  border-radius: 9px;
  background: linear-gradient(145deg, #4c82f6, #305fc5);
  box-shadow: 0 9px 24px rgba(48, 95, 197, .25);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  transition: filter .14s ease, transform .08s ease, opacity .14s ease;
}

.ssp-announcement-confirm:hover:not(:disabled) { filter: brightness(1.12); }
.ssp-announcement-confirm:active:not(:disabled) { transform: translateY(1px); }
.ssp-announcement-confirm:disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: none;
  filter: saturate(.45);
}

/* Pagina de historico --------------------------------------------- */

.ann-page {
  width: min(1240px, 100%);
  margin: 0 auto;
  color: var(--text);
}

.ann-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 30px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 25px 28px;
  border: 1px solid var(--line2);
  border-radius: 15px;
  background:
    radial-gradient(520px 190px at 6% 0%, rgba(63, 115, 224, .17), transparent 76%),
    radial-gradient(360px 210px at 100% 0%, rgba(255, 48, 65, .07), transparent 76%),
    linear-gradient(145deg, #101827, #0b111c 72%);
  box-shadow: var(--ssp-shadow);
}

.ann-hero::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -80px;
  width: 270px;
  height: 270px;
  border: 45px solid rgba(108, 148, 226, .025);
  border-radius: 50%;
  pointer-events: none;
}

.ann-hero-copy { position: relative; z-index: 1; }

.ann-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--blue-soft);
  font: 700 .7rem/1 var(--ssp-head);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ann-eyebrow i {
  width: 22px;
  height: 2px;
  background: var(--elite-red);
}

.ann-hero h1 {
  margin: 0;
  color: #fff;
  font: 650 clamp(2rem, 4vw, 3.35rem)/.98 var(--ssp-head);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.ann-hero h1 em { color: #8db2ff; font-style: normal; }

.ann-hero-copy p {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--dim);
  font-size: .86rem;
  line-height: 1.55;
}

.ann-primary {
  position: relative;
  z-index: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  color: #fff;
  border: 1px solid rgba(255, 76, 91, .44);
  border-radius: 9px;
  background: linear-gradient(145deg, #e82a3c, #b91628);
  box-shadow: 0 10px 25px rgba(185, 22, 40, .23);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.ann-primary svg { width: 16px; height: 16px; }

.ann-stats {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 2px;
}

.ann-stats > span {
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(137, 164, 214, .12);
  border-radius: 9px;
  background: rgba(3, 7, 13, .38);
}

.ann-stats b { color: #fff; font: 650 1.15rem/1 var(--ssp-head); }
.ann-stats small { color: var(--mute); font-size: .67rem; }

.ann-flash {
  margin-bottom: 16px;
  padding: 12px 15px;
  color: #d8e7ff;
  border: 1px solid rgba(76, 130, 246, .28);
  border-left: 3px solid var(--blue);
  border-radius: 9px;
  background: rgba(36, 71, 137, .12);
  font-size: .78rem;
  line-height: 1.5;
}

.ann-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ann-search {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 9px;
  background: #090e17;
}

.ann-search:focus-within {
  border-color: rgba(76, 130, 246, .72);
  box-shadow: 0 0 0 3px rgba(76, 130, 246, .1);
}

.ann-search svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-left: 13px;
  color: var(--mute);
}

.ann-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 10px;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: .78rem;
}

.ann-search button {
  align-self: stretch;
  padding: 0 16px;
  color: var(--blue-soft);
  border: 0;
  border-left: 1px solid var(--line);
  background: rgba(76, 130, 246, .07);
  cursor: pointer;
  font-size: .69rem;
  font-weight: 800;
}

.ann-filters {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(9, 14, 23, .82);
}

.ann-filters a {
  padding: 7px 9px;
  color: var(--mute);
  border-radius: 6px;
  font-size: .65rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.ann-filters a:hover { color: var(--text); }
.ann-filters a.on { color: #dce8ff; background: rgba(76, 130, 246, .16); }

.ann-result-count { color: var(--mute); font-size: .68rem; white-space: nowrap; }

.ann-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.ann-history-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 17px 18px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(17, 25, 40, .96), rgba(10, 15, 24, .98));
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

.ann-history-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 46px;
  height: 2px;
  background: rgba(126, 151, 198, .28);
}

.ann-history-card.is-active { border-color: rgba(76, 130, 246, .25); }
.ann-history-card.is-active::before { background: linear-gradient(90deg, var(--elite-red), var(--blue)); }

.ann-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.ann-status,
.ann-card-read {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font: 750 .59rem/1 var(--ssp-body);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.ann-status.is-active { color: #89efbd; border: 1px solid rgba(57, 217, 138, .22); background: rgba(57, 217, 138, .08); }
.ann-status.is-inactive { color: #aab5c7; border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.ann-status.is-draft { color: #e8bf68; border: 1px solid rgba(231, 184, 90, .22); background: rgba(231, 184, 90, .07); }
.ann-card-read { padding-right: 0; color: var(--ok); }
.ann-card-read.is-pending { color: #ff8390; }

.ann-history-card h2 {
  margin: 13px 0 8px;
  color: #f6f8fc;
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ann-card-preview {
  min-height: 64px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--dim);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: .74rem;
  line-height: 1.55;
}

.ann-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 14px;
  color: var(--mute);
  font-size: .61rem;
}

.ann-card-meta span:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 2px;
  margin: 0 0 2px 10px;
  border-radius: 50%;
  background: #52617a;
}

.ann-history-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px -18px 0;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 12, .25);
}

.ann-history-card footer a {
  color: var(--blue-soft);
  font-size: .68rem;
  font-weight: 750;
  text-decoration: none;
}

.ann-history-card footer a span { margin-left: 4px; }
.ann-history-card footer .ann-edit-link { color: var(--mute); }

.ann-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  color: var(--mute);
  font-size: .69rem;
}

.ann-pagination a {
  padding: 7px 10px;
  color: var(--blue-soft);
  border: 1px solid var(--line2);
  border-radius: 7px;
  text-decoration: none;
}

.ann-empty {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 28px;
  border: 1px dashed rgba(138, 164, 213, .17);
  border-radius: 12px;
  background: rgba(10, 15, 24, .55);
  text-align: center;
}

.ann-empty > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  color: var(--blue-soft);
  border: 1px solid var(--line2);
  border-radius: 50%;
  font-weight: 800;
}

.ann-empty strong { color: #eef3fb; font-size: .9rem; }
.ann-empty p { margin: 0; color: var(--mute); font-size: .73rem; }
.ann-empty code { margin-top: 7px; padding: 6px 9px; color: #ffb5bc; border-radius: 6px; background: rgba(255, 48, 65, .07); }
.ann-empty-error { border-color: rgba(255, 93, 108, .25); }

.ann-contextbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
  color: var(--mute);
  font-size: .69rem;
}

.ann-contextbar a { color: var(--blue-soft); text-decoration: none; }

.ann-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: #0b111c;
  box-shadow: var(--ssp-shadow);
}

.ann-editor-form { padding: 22px; }

.ann-editor-form > header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.ann-editor-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--blue-soft);
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: rgba(76, 130, 246, .08);
}

.ann-editor-icon svg { width: 19px; height: 19px; }
.ann-editor-form header > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ann-editor-form header small { color: var(--mute); font: 700 .61rem/1 var(--ssp-head); letter-spacing: .1em; text-transform: uppercase; }
.ann-editor-form header strong { color: #fff; font-size: .98rem; }

.ann-editor-warning {
  margin: -3px 0 15px;
  padding: 10px 12px;
  color: #f0ca7b;
  border: 1px solid rgba(231, 184, 90, .18);
  border-left: 3px solid var(--warn);
  border-radius: 7px;
  background: rgba(231, 184, 90, .055);
  font-size: .68rem;
  line-height: 1.5;
}

.ann-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.ann-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #d9e3f2;
  font-size: .7rem;
  font-weight: 750;
}

.ann-field > span small { color: var(--mute); font-size: .59rem; font-weight: 600; }

.ann-field input,
.ann-field textarea {
  width: 100%;
  box-sizing: border-box;
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 8px;
  outline: 0;
  background: #070b12;
  font-size: .76rem;
  line-height: 1.55;
}

.ann-field input { padding: 10px 11px; }
.ann-field textarea { min-height: 310px; padding: 12px; resize: vertical; }
.ann-field input:focus,
.ann-field textarea:focus { border-color: rgba(76, 130, 246, .72); box-shadow: 0 0 0 3px rgba(76, 130, 246, .08); }
.ann-field-hint { margin-top: -2px; color: var(--mute); font-size: .59rem; line-height: 1.45; }
.ann-field-hint b { color: #aebcd4; }

.ann-field > .ann-formatbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  margin: -1px 0 0;
  padding: 5px;
  overflow-x: auto;
  color: var(--mute);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: rgba(13, 20, 32, .9);
}

.ann-formatbar + textarea {
  border-radius: 0 0 8px 8px;
}

.ann-formatbar button {
  flex: none;
  min-height: 29px;
  padding: 0 9px;
  color: #b9c6da;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-size: .61rem;
  font-weight: 700;
}

.ann-formatbar button:hover {
  color: #fff;
  border-color: var(--line2);
  background: rgba(76, 130, 246, .1);
}

/* Markdown seguro usado igualmente na previa, modal e historico. */
.ann-markdown {
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.ann-markdown > :first-child { margin-top: 0 !important; }
.ann-markdown > :last-child { margin-bottom: 0 !important; }

.ann-markdown p {
  margin: 0 0 1em;
  color: inherit;
  line-height: inherit;
}

.ann-markdown h1,
.ann-markdown h2,
.ann-markdown h3,
.ann-markdown h4,
.ann-markdown h5,
.ann-markdown h6 {
  margin: 1.25em 0 .55em;
  color: #f6f8fd;
  font-family: var(--ssp-body);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.012em;
}

.ann-markdown h1 { font-size: 1.28em; }
.ann-markdown h2 { font-size: 1.16em; color: #dce8ff; }
.ann-markdown h3 { font-size: 1.05em; color: #dce8ff; }
.ann-markdown h4,
.ann-markdown h5,
.ann-markdown h6 { font-size: 1em; }

.ann-markdown strong { color: #fff; font-weight: 800; }
.ann-markdown em { color: #dbe7fb; }
.ann-markdown del { color: var(--mute); }

.ann-markdown ul,
.ann-markdown ol {
  margin: .7em 0 1.05em;
  padding-left: 1.45em;
}

.ann-markdown li {
  margin: .38em 0;
  padding-left: .18em;
  color: inherit;
  line-height: 1.58;
}

.ann-markdown li::marker { color: #7fa8fa; font-weight: 800; }

.ann-markdown blockquote {
  margin: 1em 0;
  padding: .8em 1em;
  color: #dce7f7;
  border: 1px solid rgba(76, 130, 246, .16);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: rgba(76, 130, 246, .065);
}

.ann-markdown hr {
  height: 1px;
  margin: 1.3em 0;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 48, 65, .7), rgba(76, 130, 246, .35), transparent);
}

.ann-markdown a {
  color: #91b5ff;
  text-decoration: underline;
  text-decoration-color: rgba(145, 181, 255, .35);
  text-underline-offset: 2px;
}

.ann-markdown code {
  padding: .12em .38em;
  color: #c9dcff;
  border: 1px solid rgba(105, 148, 226, .18);
  border-radius: 5px;
  background: #070c14;
  font: 600 .88em/1.45 ui-monospace, Consolas, monospace;
}

.ann-markdown pre {
  margin: 1em 0;
  padding: 13px;
  overflow: auto;
  border: 1px solid var(--line2);
  border-radius: 8px;
  background: #060a10;
}

.ann-markdown pre code { padding: 0; border: 0; background: transparent; }

.ann-markdown img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
  border-radius: 9px;
}

.ann-markdown figure { margin: 1em 0; }
.ann-markdown figcaption { margin-top: -5px; color: var(--mute); font-size: .74em; text-align: center; }

.ann-markdown .rule-hint {
  margin: 1em 0;
  padding: .8em 1em;
  border: 1px solid rgba(231, 184, 90, .2);
  border-left: 3px solid var(--warn);
  border-radius: 0 8px 8px 0;
  background: rgba(231, 184, 90, .06);
}

.ann-markdown .rule-hint--danger {
  border-color: rgba(255, 93, 108, .22);
  border-left-color: var(--bad);
  background: rgba(255, 93, 108, .06);
}

.ann-markdown .rule-table-wrap { margin: 1em 0; overflow-x: auto; }
.ann-markdown table { width: 100%; border-collapse: collapse; font-size: .88em; }
.ann-markdown th,
.ann-markdown td { padding: .65em .8em; border: 1px solid var(--line); text-align: left; }
.ann-markdown th { color: #e7effc; background: rgba(76, 130, 246, .08); }

.ssp-announcement-message.ann-markdown,
.ann-detail-body.ann-markdown,
.ann-preview-card > div.ann-markdown {
  white-space: normal !important;
}

.ann-publish-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 16px;
  padding: 11px 12px;
  color: #dce6f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(76, 130, 246, .04);
  cursor: pointer;
}

.ann-publish-check input { margin-top: 2px; accent-color: var(--blue); }
.ann-publish-check span { display: flex; flex-direction: column; gap: 2px; }
.ann-publish-check b { font-size: .7rem; }
.ann-publish-check small { color: var(--mute); font-size: .59rem; line-height: 1.4; }

.ann-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 3px;
}

.ann-editor-actions a {
  padding: 9px 12px;
  color: var(--mute);
  font-size: .69rem;
  font-weight: 700;
  text-decoration: none;
}

.ann-editor-actions button {
  padding: 10px 15px;
  color: #fff;
  border: 1px solid rgba(76, 130, 246, .55);
  border-radius: 8px;
  background: linear-gradient(145deg, #4c82f6, #315fc1);
  cursor: pointer;
  font-size: .71rem;
  font-weight: 800;
}

.ann-live-preview {
  min-width: 0;
  padding: 22px;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(400px 210px at 90% 0%, rgba(76, 130, 246, .1), transparent 74%),
    #080d16;
}

.ann-live-preview > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #dbe5f4;
  font-size: .71rem;
  font-weight: 750;
}

.ann-live-preview > header small { color: var(--mute); font-size: .58rem; font-weight: 600; }

.ann-preview-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(122, 154, 215, .2);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 26, 42, .96), rgba(8, 12, 20, .98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, .24);
}

.ann-preview-label {
  display: block;
  padding: 14px 16px 0;
  color: #ff7b88;
  font: 700 .59rem/1 var(--ssp-head);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ann-preview-required {
  position: absolute;
  top: 11px;
  right: 13px;
  padding: 4px 7px;
  color: #ffc0c7;
  border: 1px solid rgba(255, 93, 108, .2);
  border-radius: 999px;
  background: rgba(255, 48, 65, .08);
  font: 700 .49rem/1 var(--ssp-head);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ann-preview-card h2 {
  margin: 7px 16px 5px;
  padding-right: 82px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.ann-preview-meta {
  display: block;
  margin: 0 16px 12px;
  color: var(--mute);
  font-size: .56rem;
}

.ann-preview-card > div {
  max-height: 330px;
  overflow: auto;
  padding: 14px 16px 17px;
  color: #d3ddeb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .72rem;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: #456ca9 transparent;
}

.ann-preview-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--dim);
  font-size: .66rem;
  font-weight: 650;
}

.ann-preview-card label i { width: 16px; height: 16px; border: 1px solid var(--line2); border-radius: 5px; background: #070b12; }

.ann-detail {
  overflow: hidden;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 24, 39, .98), rgba(8, 13, 21, .99));
  box-shadow: var(--ssp-shadow);
}

.ann-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 25px 20px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(500px 190px at 0 0, rgba(76, 130, 246, .1), transparent 75%);
}

.ann-detail-head h2 {
  max-width: 820px;
  margin: 11px 0 7px;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.ann-detail-head p { margin: 0; color: var(--mute); font-size: .68rem; }

.ann-read-seal {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 11px;
  color: var(--ok);
  border: 1px solid rgba(57, 217, 138, .2);
  border-radius: 8px;
  background: rgba(57, 217, 138, .055);
  font-size: .65rem;
}

.ann-read-seal small { color: var(--mute); font-size: .57rem; }
.ann-read-seal.is-pending { color: #ff8994; border-color: rgba(255, 93, 108, .2); background: rgba(255, 93, 108, .055); }

.ann-detail-body {
  min-height: 170px;
  padding: 27px 30px 34px;
  color: #dce4f1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: .88rem;
  line-height: 1.8;
}

.ann-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  color: var(--mute);
  border-top: 1px solid var(--line);
  background: rgba(4, 7, 12, .3);
  font-size: .62rem;
}

.ann-detail-foot b { color: var(--blue-soft); }

.ann-adminbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 13px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 76, 91, .16);
  border-radius: 10px;
  background: rgba(255, 48, 65, .035);
}

.ann-adminbar > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.ann-adminbar small { color: #ff7f8b; font: 700 .59rem/1 var(--ssp-head); letter-spacing: .1em; text-transform: uppercase; }
.ann-adminbar strong { color: #e8eef8; font-size: .75rem; }

.ann-admin-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.ann-admin-actions form { margin: 0; }
.ann-admin-actions a,
.ann-admin-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  color: #dce7f7;
  border: 1px solid var(--line2);
  border-radius: 7px;
  background: #0b111c;
  cursor: pointer;
  font-size: .65rem;
  font-weight: 750;
  text-decoration: none;
}

.ann-admin-actions .is-muted { color: #aab5c8; }
.ann-admin-actions .is-accent { color: #fff; border-color: rgba(255, 76, 91, .38); background: linear-gradient(145deg, rgba(220, 37, 55, .9), rgba(155, 18, 33, .92)); }

@media (max-width: 1040px) {
  .ann-toolbar { grid-template-columns: 1fr; }
  .ann-filters { width: fit-content; max-width: 100%; overflow-x: auto; }
  .ann-result-count { justify-self: end; }
  .ann-composer { grid-template-columns: 1fr; }
  .ann-live-preview { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 760px) {
  .ssp-announcement-overlay { padding: 8px; }
  .ssp-announcement-dialog { width: 100%; max-height: calc(100% - 4px); border-radius: 13px; }
  .ssp-announcement-head { padding: 15px; }
  .ssp-announcement-icon { width: 41px; height: 41px; }
  .ssp-announcement-required { display: none; }
  .ssp-announcement-scroll { padding: 17px; max-height: 48vh; }
  .ssp-announcement-foot { grid-template-columns: 1fr; gap: 11px; padding: 13px 15px; }
  .ssp-announcement-actions { justify-content: stretch; flex-direction: column; align-items: stretch; }
  .ssp-announcement-status { max-width: none; text-align: left; }
  .ssp-announcement-confirm { width: 100%; }

  .ann-hero { grid-template-columns: 1fr; padding: 20px; }
  .ann-primary { justify-self: start; }
  .ann-history { grid-template-columns: 1fr; }
  .ann-stats > span { min-width: 135px; flex: 1; }
  .ann-detail-head { flex-direction: column; }
  .ann-read-seal { align-self: flex-start; }
  .ann-detail-body { padding: 21px; }
  .ann-detail-foot,
  .ann-adminbar { align-items: flex-start; flex-direction: column; }
  .ann-admin-actions { justify-content: flex-start; }
  .ann-editor-form,
  .ann-live-preview { padding: 17px; }
}

/* Scrollbars internas do SSP: mantém editor, prévias, tabelas, menus e listas
   no mesmo padrão da rolagem principal, inclusive dentro do CEF/FiveM. */
.ssp-main,
.ssp-main *,
#tablet-content,
#tablet-content *,
.ssp-nav,
.ssp-nav * {
  scrollbar-width: thin;
  scrollbar-color: #456ca9 #080d16;
}

.ssp-main::-webkit-scrollbar,
.ssp-main *::-webkit-scrollbar,
#tablet-content::-webkit-scrollbar,
#tablet-content *::-webkit-scrollbar,
.ssp-nav::-webkit-scrollbar,
.ssp-nav *::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.ssp-main::-webkit-scrollbar-track,
.ssp-main *::-webkit-scrollbar-track,
#tablet-content::-webkit-scrollbar-track,
#tablet-content *::-webkit-scrollbar-track,
.ssp-nav::-webkit-scrollbar-track,
.ssp-nav *::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #080d16;
  box-shadow: inset 0 0 0 1px rgba(127, 176, 255, .045);
}

.ssp-main::-webkit-scrollbar-thumb,
.ssp-main *::-webkit-scrollbar-thumb,
#tablet-content::-webkit-scrollbar-thumb,
#tablet-content *::-webkit-scrollbar-thumb,
.ssp-nav::-webkit-scrollbar-thumb,
.ssp-nav *::-webkit-scrollbar-thumb {
  min-width: 30px;
  min-height: 30px;
  border: 1px solid #080d16;
  border-radius: 999px;
  background: linear-gradient(180deg, #527fc8, #355a94);
  background-clip: padding-box;
}

.ssp-main::-webkit-scrollbar-thumb:hover,
.ssp-main *::-webkit-scrollbar-thumb:hover,
#tablet-content::-webkit-scrollbar-thumb:hover,
#tablet-content *::-webkit-scrollbar-thumb:hover,
.ssp-nav::-webkit-scrollbar-thumb:hover,
.ssp-nav *::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6a9bf0, #4776bd);
}

.ssp-main::-webkit-scrollbar-button,
.ssp-main *::-webkit-scrollbar-button,
#tablet-content::-webkit-scrollbar-button,
#tablet-content *::-webkit-scrollbar-button,
.ssp-nav::-webkit-scrollbar-button,
.ssp-nav *::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

.ssp-main::-webkit-scrollbar-corner,
.ssp-main *::-webkit-scrollbar-corner,
#tablet-content::-webkit-scrollbar-corner,
#tablet-content *::-webkit-scrollbar-corner,
.ssp-nav::-webkit-scrollbar-corner,
.ssp-nav *::-webkit-scrollbar-corner {
  background: #080d16;
}

/* Aviso destacado de comunicados ainda nao lidos ----------------- */

.ssp-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ssp-nav > a.ssp-nav-announcements {
  gap: 6px;
  isolation: isolate;
}

.ssp-nav-announcements-icon {
  position: relative;
  display: none;
  width: 17px;
  height: 17px;
  flex: none;
  place-items: center;
  color: #ff8e98;
}

.ssp-nav-announcements-icon svg {
  width: 15px;
  height: 15px;
}

.ssp-announcements-badge {
  min-width: 21px;
  height: 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 7px;
  border: 1px solid rgba(255, 139, 149, .55);
  border-radius: 999px;
  background: linear-gradient(135deg, #fa3346, #bc182b);
  color: #fff;
  font-family: var(--ssp-head);
  font-size: .59rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07) inset, 0 4px 14px rgba(255, 48, 65, .25);
}

.ssp-announcements-badge[hidden] { display: none !important; }

.ssp-announcements-badge b {
  color: #fff;
  font-size: .69rem;
  line-height: 1;
}

.ssp-nav > a.ssp-nav-announcements.has-unread {
  color: #fff;
  background: linear-gradient(to top, rgba(255, 48, 65, .16), rgba(255, 48, 65, .035) 78%, transparent);
  box-shadow: inset 1px 0 rgba(255, 94, 108, .08), inset -1px 0 rgba(255, 94, 108, .08);
}

.ssp-nav > a.ssp-nav-announcements.has-unread .ssp-nav-announcements-icon {
  display: grid;
  filter: drop-shadow(0 0 7px rgba(255, 57, 73, .42));
}

.ssp-nav > a.ssp-nav-announcements.has-unread:hover {
  background: linear-gradient(to top, rgba(255, 48, 65, .22), rgba(255, 48, 65, .055) 78%, transparent);
}

.ssp-nav > a.ssp-nav-announcements:focus-visible {
  outline-offset: -3px;
}

.ssp-nav > a.ssp-nav-announcements.is-alerting .ssp-nav-announcements-icon {
  animation: sspAnnouncementNavSignal .8s ease-out 2;
}

@keyframes sspAnnouncementNavSignal {
  0% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 57, 73, .25)); }
  42% { transform: scale(1.16) rotate(-5deg); filter: drop-shadow(0 0 12px rgba(255, 57, 73, .82)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 7px rgba(255, 57, 73, .42)); }
}

@media (max-width: 1600px) {
  .ssp-announcements-badge [data-announcements-badge-label] { display: none; }
  .ssp-announcements-badge { padding-right: 6px; padding-left: 6px; }
}

@media (max-width: 720px) {
  .ssp-nav > a.ssp-nav-announcements { gap: 5px; }
  .ssp-nav-announcements-icon { width: 15px; height: 15px; }
  .ssp-nav-announcements-icon svg { width: 14px; height: 14px; }
  .ssp-announcements-badge { min-width: 19px; height: 19px; padding: 0 5px; }
}

/* Logs e auditoria: filtros independentes + categoria visível em cada registro. */
.ssp-audit-filter-wrap {
  display: block;
  margin-bottom: 16px;
}

.ssp-audit-filter {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(170px, 1fr)) repeat(2, minmax(145px, .72fr));
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(124, 158, 218, .16);
  border-radius: 12px;
  background: rgba(16, 24, 40, .5);
}

.ssp-audit-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.ssp-audit-field > span {
  color: var(--mute);
  font-family: var(--ssp-head);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ssp-audit-field > input,
.ssp-theme-select-trigger,
.ssp-theme-date-control {
  width: 100%;
  min-height: 39px;
  border: 1px solid rgba(132, 157, 205, .2);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 10, 19, .82);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}

.ssp-audit-field > input:focus,
.ssp-theme-select.is-open .ssp-theme-select-trigger,
.ssp-theme-date.is-open .ssp-theme-date-control,
.ssp-theme-date-control:focus-within {
  border-color: rgba(80, 136, 244, .8);
  box-shadow: 0 0 0 3px rgba(65, 125, 236, .12);
}

.ssp-theme-select,
.ssp-theme-date {
  position: relative;
  min-width: 0;
}

.ssp-theme-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.ssp-theme-select-trigger svg,
.ssp-theme-date-control svg,
.ssp-cal-head svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssp-theme-select-trigger svg { color: #8190aa; transition: transform .16s ease; }
.ssp-theme-select.is-open .ssp-theme-select-trigger svg { transform: rotate(180deg); color: #9cbcf8; }

.ssp-theme-select-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  left: 0;
  width: max(100%, 220px);
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgba(105, 148, 225, .28);
  border-radius: 10px;
  background: linear-gradient(155deg, #111b2c, #0a111e 78%);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .52), inset 0 1px rgba(255, 255, 255, .025);
  scrollbar-width: thin;
  scrollbar-color: #315da7 transparent;
}

.ssp-theme-select-menu[hidden],
.ssp-theme-calendar[hidden] { display: none !important; }

.ssp-theme-select-menu button {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c7d1e3;
  padding: 7px 10px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.ssp-theme-select-menu button:hover,
.ssp-theme-select-menu button:focus-visible {
  outline: 0;
  background: rgba(71, 124, 225, .12);
  color: #fff;
}

.ssp-theme-select-menu button[aria-selected="true"] {
  background: linear-gradient(100deg, rgba(75, 132, 239, .25), rgba(75, 132, 239, .08));
  color: #b9d0ff;
  box-shadow: inset 2px 0 #578cf3;
}

.ssp-theme-date-control {
  display: flex;
  align-items: center;
  padding: 0;
}

.ssp-theme-date-control input {
  width: 100%;
  min-width: 0;
  height: 37px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 8px 4px 8px 10px;
  font: inherit;
}

.ssp-theme-date-control input.is-invalid {
  color: #ff9da5;
  text-decoration: underline wavy rgba(255, 94, 108, .7);
  text-underline-offset: 4px;
}

.ssp-theme-date-control button {
  width: 38px;
  height: 37px;
  display: grid;
  flex: none;
  place-items: center;
  border: 0;
  background: transparent;
  color: #8fa1bd;
  cursor: pointer;
}

.ssp-theme-date-control button:hover { color: #b9d0ff; }

.ssp-theme-calendar {
  position: absolute;
  z-index: 95;
  top: calc(100% + 7px);
  left: 0;
  width: 294px;
  padding: 12px;
  border: 1px solid rgba(105, 148, 225, .3);
  border-radius: 11px;
  background: linear-gradient(155deg, #111b2c, #0a111e 78%);
  color: var(--text);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .03);
}

.ssp-theme-date.is-right .ssp-theme-calendar { right: 0; left: auto; }

.ssp-cal-head {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

.ssp-cal-head strong {
  color: #edf3ff;
  font-family: var(--ssp-head);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .025em;
  text-align: center;
  text-transform: capitalize;
}

.ssp-cal-head button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, .035);
  color: #8798b4;
  cursor: pointer;
}

.ssp-cal-head button:hover { background: rgba(78, 134, 239, .13); color: #bed3ff; }

.ssp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.ssp-cal-week {
  display: grid;
  height: 25px;
  place-items: center;
  color: #61708a;
  font-family: var(--ssp-head);
  font-size: .59rem;
  font-weight: 700;
}

.ssp-cal-empty { height: 34px; }

.ssp-cal-day {
  height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #c7d1e3;
  font-size: .75rem;
  cursor: pointer;
}

.ssp-cal-day:hover,
.ssp-cal-day:focus-visible {
  outline: 0;
  border-color: rgba(95, 146, 238, .28);
  background: rgba(75, 131, 236, .12);
  color: #fff;
}

.ssp-cal-day.is-today { border-color: rgba(100, 150, 243, .42); color: #a9c6ff; }
.ssp-cal-day.is-selected { background: linear-gradient(145deg, #588df3, #3268d6); color: #fff; font-weight: 750; }

.ssp-cal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(124, 153, 207, .1);
}

.ssp-cal-footer button {
  border: 0;
  background: transparent;
  color: #86aefb;
  padding: 4px 5px;
  font: 650 .68rem/1 var(--ssp-body);
  cursor: pointer;
}

.ssp-cal-footer button:hover { color: #c9dcff; }

.ssp-audit-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 9px;
}

.ssp-audit-filter-actions > button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #5689f1, #2f66d7);
  color: #fff;
  padding: 8px 24px;
  font-family: var(--ssp-head);
  font-weight: 700;
  letter-spacing: .025em;
  cursor: pointer;
}

.ssp-audit-category {
  min-width: 108px;
  justify-content: center;
  text-align: center;
}

.ssp-audit-action {
  color: #afc9f9;
  font-weight: 700;
}

.ssp-audit-row {
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.ssp-audit-summary {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 53px;
  align-items: center;
  gap: 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  padding: 10px 13px;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.ssp-audit-summary:hover,
.ssp-audit-summary:focus-visible,
.ssp-audit-row.is-open .ssp-audit-summary {
  background: linear-gradient(90deg, rgba(72, 128, 238, .07), rgba(72, 128, 238, .018));
}

.ssp-audit-summary:focus-visible { box-shadow: inset 3px 0 #568bf1; }
.ssp-audit-summary > .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ssp-audit-summary > .grow .ttl,
.ssp-audit-summary > .grow .meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ssp-audit-summary > .rt { flex: none; text-align: right; }

.ssp-audit-expand {
  width: 27px;
  height: 27px;
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid rgba(113, 151, 220, .14);
  border-radius: 7px;
  background: rgba(3, 9, 18, .3);
  color: #7890ba;
}

.ssp-audit-expand svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.ssp-audit-row.is-open {
  border-color: rgba(91, 139, 230, .28);
  background: rgba(35, 66, 119, .055);
}

.ssp-audit-row.is-open .ssp-audit-expand {
  border-color: rgba(93, 144, 239, .28);
  background: rgba(67, 124, 234, .12);
  color: #a9c5fb;
}

.ssp-audit-row.is-open .ssp-audit-expand svg { transform: rotate(90deg); }

.ssp-audit-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0 13px 13px;
  padding: 13px;
  border: 1px solid rgba(119, 151, 207, .11);
  border-radius: 9px;
  background: rgba(3, 8, 16, .36);
  box-shadow: inset 3px 0 rgba(82, 135, 235, .38);
}

.ssp-audit-details[hidden] { display: none !important; }

.ssp-audit-detail {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ssp-audit-detail > span {
  color: #667795;
  font-family: var(--ssp-head);
  font-size: .57rem;
  font-weight: 700;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.ssp-audit-detail strong {
  overflow-wrap: anywhere;
  color: #dce6f8;
  font-size: .72rem;
  font-weight: 650;
}

.ssp-audit-detail small { color: #71819c; font-size: .65rem; overflow-wrap: anywhere; }

.ssp-audit-detail code {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid rgba(104, 142, 211, .13);
  border-radius: 5px;
  background: rgba(67, 116, 211, .07);
  color: #89a9e6;
  padding: 2px 5px;
  font: .61rem/1.25 "Consolas", monospace;
}

.ssp-audit-detail--full {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid rgba(124, 153, 207, .09);
}

.ssp-audit-detail p {
  margin: 0;
  color: #aebbd1;
  font-size: .72rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 1250px) {
  .ssp-audit-filter { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
}

@media (max-width: 760px) {
  .ssp-audit-filter { grid-template-columns: 1fr; padding: 11px; }
  .ssp-audit-filter-actions { grid-column: auto; flex-wrap: wrap; }
  .ssp-audit-filter-actions > button,
  .ssp-audit-filter-actions > .bo-btn { flex: 1; justify-content: center; }
  .ssp-audit-summary { align-items: flex-start; flex-wrap: wrap; }
  .ssp-audit-summary > .grow { min-width: calc(100% - 155px); }
  .ssp-audit-summary > .rt { width: 100%; padding-left: 119px; text-align: left; }
  .ssp-audit-expand { position: absolute; right: 12px; }
  .ssp-audit-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ssp-theme-select-menu { width: 100%; }
  .ssp-theme-calendar,
  .ssp-theme-date.is-right .ssp-theme-calendar { right: auto; left: 0; width: min(294px, calc(100vw - 54px)); }
}

@media (max-width: 480px) {
  .ssp-audit-details { grid-template-columns: 1fr; }
  .ssp-audit-detail--full { grid-column: auto; }
}

/* Motivo obrigatório nas ações sensíveis da ficha. */
body.ssp-reason-open { overflow: hidden; }

.ssp-reason-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ssp-reason-modal[hidden] { display: none !important; }

.ssp-reason-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 12, .82);
  backdrop-filter: blur(5px);
}

.ssp-reason-dialog {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(113, 151, 219, .24);
  border-radius: 15px;
  background: linear-gradient(145deg, #111b2c, #0a111e 72%);
  color: var(--text);
  padding: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62), 0 0 0 1px rgba(255, 255, 255, .025) inset;
}

.ssp-reason-close {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #aebbd1;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ssp-reason-kicker {
  display: block;
  margin-bottom: 8px;
  color: #76a7ff;
  font-family: var(--ssp-head);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ssp-reason-dialog h2 {
  margin: 0 36px 8px 0;
  font-family: var(--ssp-head);
  font-size: 1.35rem;
  letter-spacing: .02em;
}

.ssp-reason-dialog > p {
  margin: 0 0 18px;
  color: #93a1b8;
  font-size: .86rem;
  line-height: 1.55;
}

.ssp-reason-warning {
  margin: -5px 0 16px;
  border: 1px solid rgba(255, 83, 96, .28);
  border-radius: 8px;
  background: rgba(185, 27, 42, .13);
  color: #ff9da5;
  padding: 9px 11px;
  font-size: .76rem;
  font-weight: 650;
}

.ssp-reason-dialog > label {
  display: block;
  margin-bottom: 7px;
  color: #c6d1e4;
  font-family: var(--ssp-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ssp-reason-dialog textarea {
  width: 100%;
  min-height: 116px;
  resize: vertical;
  border: 1px solid rgba(125, 153, 202, .23);
  border-radius: 10px;
  outline: 0;
  background: rgba(3, 8, 16, .72);
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
  line-height: 1.45;
}

.ssp-reason-dialog textarea:focus {
  border-color: rgba(83, 139, 245, .85);
  box-shadow: 0 0 0 3px rgba(65, 125, 236, .13);
}

.ssp-reason-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 15px;
}

.ssp-reason-error {
  margin-right: auto;
  color: #ff929c;
  font-size: .75rem;
}

.ssp-reason-submit {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #5689f1, #2f66d7);
  color: #fff;
  padding: 8px 17px;
  font-family: var(--ssp-head);
  font-weight: 700;
  cursor: pointer;
}

.ssp-reason-submit.is-danger { background: linear-gradient(135deg, #ef5160, #b91f31); }
.ssp-reason-submit:disabled { opacity: .65; cursor: wait; }

@media (max-width: 560px) {
  .ssp-reason-modal { padding: 8px; align-items: end; }
  .ssp-reason-dialog { border-radius: 14px 14px 8px 8px; padding: 20px 16px 16px; }
  .ssp-reason-footer { flex-wrap: wrap; }
  .ssp-reason-error { width: 100%; }
  .ssp-reason-footer > button { flex: 1; justify-content: center; }
}

/* Alerta operacional ao localizar pessoa ou veículo procurado. */
body.ssp-wanted-alert-open { overflow: hidden; }

.ssp-wanted-alert {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 1;
  transition: opacity .17s ease;
}

#tablet-content .ssp-wanted-alert { position: absolute; }
.ssp-wanted-alert.is-leaving { opacity: 0; pointer-events: none; }

.ssp-wanted-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 9, .88);
  backdrop-filter: blur(7px);
}

.ssp-wanted-alert-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid rgba(255, 83, 101, .48);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(198, 32, 52, .2), transparent 42%),
    linear-gradient(145deg, #151824, #090e18 72%);
  color: var(--text);
  box-shadow: 0 35px 110px rgba(0, 0, 0, .72), 0 0 0 1px rgba(255, 255, 255, .025) inset;
  animation: sspWantedAlertEnter .2s ease-out both;
}

.ssp-wanted-alert-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ff4054, #ff7884 52%, transparent);
}

@keyframes sspWantedAlertEnter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
}

.ssp-wanted-alert-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 24px 13px;
}

.ssp-wanted-alert-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  flex: none;
  border: 1px solid rgba(255, 99, 113, .55);
  border-radius: 13px;
  background: rgba(205, 35, 54, .2);
  color: #ff8e99;
  font: 800 1.45rem/1 var(--ssp-head);
  box-shadow: 0 0 28px rgba(222, 40, 59, .18);
}

.ssp-wanted-alert-head small {
  display: block;
  margin-bottom: 4px;
  color: #ff818e;
  font: 700 .65rem/1 var(--ssp-head);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ssp-wanted-alert-head h2 {
  margin: 0;
  color: #fff;
  font: 650 1.45rem/1.15 var(--ssp-head);
  letter-spacing: .025em;
  text-transform: uppercase;
}

.ssp-wanted-alert-intro {
  margin: 0;
  padding: 0 24px 17px;
  color: #aeb9cc;
  font-size: .86rem;
  line-height: 1.55;
}

.ssp-wanted-alert-list {
  display: grid;
  gap: 9px;
  max-height: min(390px, 45vh);
  overflow-y: auto;
  padding: 0 24px 4px;
}

.ssp-wanted-alert-item {
  border: 1px solid rgba(255, 87, 103, .24);
  border-left: 3px solid #f14d5e;
  border-radius: 10px;
  background: rgba(139, 23, 39, .13);
  padding: 12px 13px;
}

.ssp-wanted-alert-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.ssp-wanted-alert-item-head a {
  color: #8bb4ff;
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}

.ssp-wanted-alert-item > strong {
  display: block;
  color: #fff;
  font-size: .97rem;
}

.ssp-wanted-alert-item > p {
  margin: 5px 0 7px;
  color: #d8dee9;
  font-size: .84rem;
  line-height: 1.45;
}

.ssp-wanted-alert-item .meta {
  color: #8f9cb2;
  font-size: .72rem;
}

.ssp-wanted-alert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 24px 22px;
}

.ssp-wanted-alert-footer > span {
  color: #7f8ba0;
  font: 650 .65rem/1 var(--ssp-head);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ssp-wanted-alert-footer button {
  min-height: 42px;
  border: 1px solid rgba(255, 118, 130, .62);
  border-radius: 9px;
  background: linear-gradient(135deg, #ef5362, #b91f31);
  color: #fff;
  padding: 9px 18px;
  font-family: var(--ssp-head);
  font-weight: 700;
  letter-spacing: .025em;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(163, 22, 40, .25);
}

.ssp-wanted-alert-footer button:hover { filter: brightness(1.08); }
.ssp-wanted-alert-footer button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.ssp-row.is-wanted-result {
  border-color: rgba(255, 83, 101, .38);
  background: linear-gradient(90deg, rgba(140, 24, 40, .13), var(--panel));
}

.ssp-row.is-wanted-result:hover { border-color: rgba(255, 103, 118, .62); }

@media (max-width: 560px) {
  .ssp-wanted-alert { padding: 8px; align-items: end; }
  .ssp-wanted-alert-dialog { max-height: calc(100vh - 16px); border-radius: 15px 15px 8px 8px; }
  .ssp-wanted-alert-head { padding: 21px 17px 12px; }
  .ssp-wanted-alert-head h2 { font-size: 1.18rem; }
  .ssp-wanted-alert-intro { padding: 0 17px 15px; }
  .ssp-wanted-alert-list { padding: 0 17px 4px; }
  .ssp-wanted-alert-footer { align-items: stretch; flex-direction: column; padding: 15px 17px 17px; }
  .ssp-wanted-alert-footer button { width: 100%; }
}

/* Procurados: pessoas e veículos acessíveis sem uma lista esconder a outra. */
.ssp-proc-tabs {
  gap: 8px;
  margin: 24px 0 22px;
}

.ssp-proc-tabs .ssp-subnav-tab {
  min-width: 150px;
  justify-content: center;
  border: 1px solid rgba(105, 137, 194, .18);
  border-bottom: 2px solid transparent;
  border-radius: 10px 10px 0 0;
  background: rgba(13, 20, 33, .62);
  padding: 11px 18px 12px;
  text-decoration: none;
}

.ssp-proc-tabs .ssp-subnav-tab:hover {
  border-color: rgba(91, 139, 231, .32);
  background: rgba(23, 34, 54, .74);
}

.ssp-proc-tabs .ssp-subnav-tab.on {
  border-color: rgba(83, 135, 239, .35);
  border-bottom-color: var(--blue);
  background: linear-gradient(180deg, rgba(41, 68, 116, .42), rgba(20, 30, 48, .8));
}

.ssp-proc-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  height: 20px;
  border: 1px solid rgba(112, 153, 231, .26);
  border-radius: 999px;
  background: rgba(5, 10, 18, .54);
  color: #9fbfff;
  padding: 0 7px;
  font-size: .68rem;
  line-height: 1;
}

.ssp-proc-tabs .on .ssp-proc-tab-count {
  border-color: rgba(116, 164, 255, .44);
  background: rgba(58, 103, 193, .22);
  color: #d7e5ff;
}

.ssp-proc-form-row {
  grid-template-columns: 180px minmax(0, 1fr) !important;
}

@media (max-width: 640px) {
  .ssp-proc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .ssp-proc-tabs .ssp-subnav-tab { min-width: 0; padding-inline: 10px; }
  .ssp-proc-form-row { grid-template-columns: 1fr !important; }
}

/* Ficha operacional do veículo. */
.veh-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(60, 105, 187, .13), transparent 38%),
    linear-gradient(170deg, var(--panel2), var(--panel));
}

.veh-head.is-wanted {
  border-color: rgba(255, 84, 104, .5);
  background:
    radial-gradient(circle at 100% 0, rgba(194, 34, 53, .15), transparent 40%),
    linear-gradient(170deg, var(--panel2), var(--panel));
}

.veh-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  flex: none;
  border: 1px solid rgba(102, 148, 232, .3);
  border-radius: 13px;
  background: rgba(6, 12, 22, .68);
  color: #91b7ff;
}

.veh-head.is-wanted .veh-icon {
  border-color: rgba(255, 92, 108, .38);
  color: #ff8793;
  background: rgba(105, 17, 31, .18);
}

.veh-icon svg { width: 42px; height: 42px; }

.veh-kicker {
  display: block;
  margin-bottom: 5px;
  color: #7894c2;
  font: 700 .63rem/1 var(--ssp-head);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.veh-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
}

.veh-head h1 .pp {
  display: inline-block;
  margin-left: 7px;
  color: #a7c2f5;
  font: 650 .78rem/1 Consolas, monospace;
  vertical-align: middle;
}

.veh-head .meta {
  margin-top: 6px;
  color: var(--dim);
  font-size: .86rem;
}

.veh-head .meta a,
.veh-summary a,
.veh-insurance-active a,
.veh-history-list a { color: var(--blue-soft); text-decoration: none; }

.veh-head-tags {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
  max-width: 300px;
}

.veh-wanted p + .sub { display: block; margin-top: 2px; }

.veh-wanted-control {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.veh-wanted-control > .grow {
  display: flex;
  min-width: 240px;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.veh-wanted-control strong { color: #ff9aa6; font-size: .88rem; }
.veh-wanted-control .meta { color: var(--dim); font-size: .8rem; }

.veh-wanted-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: center;
  width: 100%;
  max-width: none;
  gap: 10px;
}

.veh-wanted-form .bo-btn { min-height: 42px; }

.veh-control-note {
  width: 100%;
  margin: 0;
  border-left: 2px solid var(--warn);
  color: #c2a769;
  padding: 2px 0 2px 10px;
  font-size: .75rem;
}

.veh-summary { margin-top: 16px; }

.veh-insurance-active {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
  border: 1px solid rgba(255, 83, 96, .24);
  border-radius: 10px;
  background: rgba(152, 21, 39, .1);
  padding: 12px 13px;
}

.veh-insurance-active strong {
  display: block;
  color: #ffd5d9;
  font-size: .88rem;
}

.veh-insurance-active p {
  margin: 5px 0 0;
  color: var(--dim);
  font-size: .78rem;
}

.veh-history-list:not(:first-child) { margin-top: 10px; }

@media (max-width: 700px) {
  .veh-head { align-items: flex-start; flex-wrap: wrap; padding: 17px; }
  .veh-icon { width: 58px; height: 58px; }
  .veh-icon svg { width: 32px; height: 32px; }
  .veh-head-tags { width: 100%; max-width: none; justify-content: flex-start; }
  .veh-wanted-form { grid-template-columns: 1fr; }
  .veh-wanted-form .bo-btn { width: 100%; }
}

/* Central de Debates ------------------------------------------------ */

.dbt-app {
  --dbt-bg: #080c13;
  --dbt-surface: rgba(13, 19, 31, .92);
  --dbt-surface-2: rgba(17, 26, 42, .76);
  --dbt-border: rgba(151, 178, 225, .13);
  --dbt-border-strong: rgba(101, 149, 239, .32);
  --dbt-blue: #5a91ff;
  --dbt-blue-soft: #aac7ff;
  --dbt-violet: #8c7bff;
  width: min(100%, 1480px);
  margin: 0 auto;
  color: var(--text);
}

.dbt-app *,
.dbt-app *::before,
.dbt-app *::after { box-sizing: border-box; }
.dbt-app [hidden] { display: none !important; }

.dbt-app button,
.dbt-app a,
.dbt-app input,
.dbt-app textarea,
.dbt-app select { -webkit-tap-highlight-color: transparent; }

.dbt-primary,
.dbt-secondary {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 17px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.dbt-primary {
  border-color: rgba(114, 160, 255, .52);
  color: #fff;
  background: linear-gradient(135deg, #5a91ff, #386cdb);
  box-shadow: 0 12px 28px rgba(45, 100, 220, .26), inset 0 1px rgba(255, 255, 255, .14);
}

.dbt-primary svg { width: 17px; height: 17px; }
.dbt-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(45, 100, 220, .34), inset 0 1px rgba(255, 255, 255, .16); }
.dbt-primary:disabled,
.dbt-secondary:disabled { cursor: wait; opacity: .62; }
.dbt-primary.is-loading i {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dbt-spin .7s linear infinite;
}

.dbt-secondary {
  border-color: var(--dbt-border);
  color: var(--dim);
  background: rgba(255, 255, 255, .035);
}

.dbt-secondary:hover { border-color: var(--dbt-border-strong); color: #fff; background: rgba(77, 127, 226, .08); }

@keyframes dbt-spin { to { transform: rotate(360deg); } }

.dbt-hero {
  position: relative;
  display: grid;
  min-height: 270px;
  grid-template-columns: minmax(0, 1fr) minmax(450px, .72fr);
  align-items: end;
  gap: 38px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid var(--dbt-border);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 50px);
  background:
    linear-gradient(115deg, rgba(15, 27, 48, .98) 0%, rgba(10, 15, 25, .96) 58%, rgba(14, 18, 30, .98) 100%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24), inset 0 1px rgba(255, 255, 255, .035);
}

.dbt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(116, 155, 224, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 155, 224, .05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.dbt-hero::after {
  content: "";
  position: absolute;
  top: -35%;
  right: -8%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(103, 149, 235, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 75px rgba(67, 111, 201, .025), 0 0 0 150px rgba(67, 111, 201, .018);
}

.dbt-hero-glow {
  position: absolute;
  top: -190px;
  left: 16%;
  width: 540px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(61, 117, 232, .18);
  filter: blur(90px);
}

.dbt-hero-copy { position: relative; z-index: 2; }

.dbt-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 13px;
  color: #98b9fb;
  font-family: var(--ssp-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.dbt-eyebrow i {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dbt-blue), transparent);
  box-shadow: 0 0 14px rgba(90, 145, 255, .65);
}

.dbt-hero h1 {
  max-width: 720px;
  margin: 0;
  color: #f4f7fd;
  font-family: var(--ssp-head);
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.01;
}

.dbt-hero h1 em {
  color: #8fb5ff;
  font-style: normal;
  text-shadow: 0 0 34px rgba(74, 128, 239, .22);
}

.dbt-hero-copy > p {
  max-width: 680px;
  margin: 17px 0 24px;
  color: #9eacc2;
  font-size: .87rem;
  line-height: 1.65;
}

.dbt-hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(142, 174, 232, .13);
  border-radius: 14px;
  background: rgba(4, 8, 15, .42);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(14px);
}

.dbt-hero-stats span {
  min-height: 90px;
  padding: 18px 20px;
}

.dbt-hero-stats span:nth-child(odd) { border-right: 1px solid rgba(142, 174, 232, .1); }
.dbt-hero-stats span:nth-child(-n+2) { border-bottom: 1px solid rgba(142, 174, 232, .1); }
.dbt-hero-stats b {
  display: block;
  color: #dbe7ff;
  font-family: var(--ssp-head);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.dbt-hero-stats small { display: block; margin-top: 4px; color: #7889a4; font-size: .67rem; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }

.dbt-system-state,
.dbt-archive-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(232, 184, 90, .25);
  border-radius: 12px;
  padding: 15px 17px;
  color: #ead8ab;
  background: rgba(137, 93, 14, .1);
}

.dbt-system-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(232, 184, 90, .35);
  border-radius: 50%;
  font-weight: 800;
}

.dbt-system-state strong,
.dbt-archive-banner strong { display: block; color: #f6e8c7; font-size: .82rem; }
.dbt-system-state p,
.dbt-archive-banner span { margin: 3px 0 0; color: #aa9d80; font-size: .74rem; }
.dbt-system-state code { margin-left: auto; border: 1px solid rgba(232, 184, 90, .2); border-radius: 6px; padding: 6px 9px; color: #d9bc7e; background: rgba(0, 0, 0, .2); }

.dbt-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}

.dbt-section-title > span {
  display: block;
  color: #e6edf9;
  font-family: var(--ssp-head);
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.dbt-section-title > small { display: block; margin-top: 3px; color: var(--mute); font-size: .7rem; }

.dbt-filters {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
}

.dbt-search {
  position: relative;
  display: flex;
  width: min(26vw, 310px);
  min-width: 190px;
  height: 42px;
  align-items: center;
}

.dbt-search svg {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #697a96;
  pointer-events: none;
}

.dbt-search input,
.dbt-select select,
.dbt-field input,
.dbt-field textarea,
.dbt-field select {
  width: 100%;
  border: 1px solid var(--dbt-border);
  border-radius: 9px;
  color: #e9eef8;
  background: rgba(11, 17, 28, .9);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.dbt-search input {
  height: 42px;
  padding: 0 12px 0 36px;
  font-size: .74rem;
}

.dbt-search input::placeholder,
.dbt-field input::placeholder,
.dbt-field textarea::placeholder { color: #5f6d83; }

.dbt-search input:focus,
.dbt-select select:focus,
.dbt-field input:focus,
.dbt-field textarea:focus,
.dbt-field select:focus {
  outline: 0;
  border-color: rgba(89, 144, 255, .7);
  background: rgba(13, 21, 35, .98);
  box-shadow: 0 0 0 3px rgba(76, 130, 246, .11);
}

.dbt-select { display: flex; flex-direction: column; gap: 5px; }
.dbt-select > span { padding-left: 3px; color: #687791; font-size: .58rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.dbt-select select {
  height: 42px;
  min-width: 132px;
  appearance: none;
  padding: 0 32px 0 11px;
  font-size: .7rem;
  background-image:
    linear-gradient(45deg, transparent 50%, #7a8ba8 50%),
    linear-gradient(135deg, #7a8ba8 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 12px) 18px;
  background-repeat: no-repeat;
  background-size: 4px 4px, 4px 4px;
}

.dbt-filter-submit {
  height: 42px;
  border: 1px solid var(--dbt-border-strong);
  border-radius: 9px;
  padding: 0 14px;
  cursor: pointer;
  color: #c5d7f8;
  background: rgba(69, 113, 205, .11);
  font-size: .7rem;
  font-weight: 700;
}

.dbt-filter-submit:hover { color: #fff; background: rgba(69, 113, 205, .2); }

.dbt-feed { display: grid; gap: 10px; }

.dbt-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--dbt-border);
  border-radius: 13px;
  background:
    linear-gradient(115deg, rgba(15, 22, 35, .94), rgba(10, 15, 24, .94));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12), inset 0 1px rgba(255, 255, 255, .025);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dbt-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  opacity: 0;
  background: linear-gradient(180deg, var(--dbt-blue), var(--dbt-violet));
  transition: opacity .2s ease;
}

.dbt-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 150, 239, .3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .2), 0 0 0 1px rgba(73, 123, 224, .045);
}

.dbt-card:hover::before,
.dbt-card.is-pinned::before { opacity: 1; }
.dbt-card.is-archived { opacity: .7; }

.dbt-card-main {
  display: block;
  padding: 19px 22px 16px;
  color: inherit;
  text-decoration: none;
}

.dbt-card-top,
.dbt-topic-badges {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.dbt-category,
.dbt-status,
.dbt-pinned,
.dbt-archived,
.dbt-private-scope {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: .58rem;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.dbt-category { border: 1px solid rgba(86, 137, 236, .24); color: #96b9fb; background: rgba(53, 96, 181, .1); }
.dbt-category.is-operacional { border-color: rgba(52, 206, 151, .22); color: #73ddb7; background: rgba(25, 139, 100, .09); }
.dbt-category.is-viaturas { border-color: rgba(107, 191, 225, .22); color: #88d1ef; background: rgba(39, 130, 166, .09); }
.dbt-category.is-armamento { border-color: rgba(241, 128, 102, .24); color: #f3a28e; background: rgba(174, 68, 43, .1); }
.dbt-category.is-treinamento { border-color: rgba(188, 135, 241, .24); color: #c7a0ed; background: rgba(116, 58, 176, .1); }
.dbt-category.is-gestao { border-color: rgba(232, 184, 90, .24); color: #e6c47e; background: rgba(154, 105, 24, .1); }
.dbt-category.is-sugestoes { border-color: rgba(236, 113, 179, .22); color: #eca0c8; background: rgba(162, 46, 108, .09); }

.dbt-status { gap: 6px; border: 1px solid rgba(123, 141, 173, .18); color: #9ca9bd; background: rgba(102, 118, 147, .08); }
.dbt-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.dbt-status.is-open { border-color: rgba(56, 214, 139, .2); color: #5ddfa1; background: rgba(31, 145, 92, .08); }
.dbt-status.is-voting { border-color: rgba(92, 144, 250, .24); color: #89adfb; background: rgba(53, 99, 190, .1); }
.dbt-status.is-decided { border-color: rgba(231, 184, 90, .25); color: #eac36f; background: rgba(152, 104, 19, .1); }
.dbt-pinned { color: #b4c9ef; background: rgba(80, 119, 190, .1); }
.dbt-archived { color: #f199a3; background: rgba(173, 48, 61, .11); }
.dbt-private-scope { color: #a9b5c8; background: rgba(255, 255, 255, .04); }

.dbt-card h2 {
  margin: 12px 0 7px;
  color: #edf2fb;
  font-family: var(--ssp-head);
  font-size: 1.22rem;
  font-weight: 580;
  letter-spacing: .005em;
  line-height: 1.25;
}

.dbt-card-main > p {
  display: -webkit-box;
  overflow: hidden;
  max-width: 1120px;
  margin: 0;
  color: #8997ac;
  font-size: .76rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dbt-card-author,
.dbt-topic-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dbt-card-author { margin-top: 15px; }

.dbt-avatar {
  --avatar-h: 218;
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid hsla(var(--avatar-h), 75%, 70%, .28);
  border-radius: 10px;
  color: hsl(var(--avatar-h), 85%, 85%);
  background:
    radial-gradient(circle at 25% 15%, hsla(var(--avatar-h), 86%, 68%, .28), transparent 58%),
    hsl(var(--avatar-h), 28%, 15%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
  font-family: var(--ssp-head);
  font-size: .68rem;
  font-style: normal;
  font-weight: 650;
  letter-spacing: .04em;
}

.dbt-author-copy { min-width: 0; }
.dbt-author-copy b,
.dbt-topic-author b,
.dbt-comment header b {
  display: block;
  overflow: hidden;
  color: #cfd9e9;
  font-size: .7rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dbt-author-copy b small,
.dbt-topic-author b small,
.dbt-comment header b small { color: #73829a; font-size: .62rem; font-weight: 550; }
.dbt-author-copy em,
.dbt-topic-author em,
.dbt-comment header em {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: #69778d;
  font-size: .62rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dbt-card-time { margin-left: auto; color: #5f6c81; font-size: .62rem; }

.dbt-card-footer {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 17px;
  border-top: 1px solid rgba(151, 178, 225, .08);
  padding: 0 22px;
  background: rgba(4, 8, 14, .21);
}

.dbt-scope,
.dbt-card-metrics,
.dbt-card-metrics > span,
.dbt-card-open {
  display: inline-flex;
  align-items: center;
}

.dbt-scope { gap: 7px; color: #78879e; font-size: .63rem; }
.dbt-scope svg { width: 14px; height: 14px; }
.dbt-card-metrics { gap: 13px; }
.dbt-card-metrics > span { gap: 5px; color: #8998ae; font-size: .63rem; }
.dbt-card-metrics svg { width: 14px; height: 14px; color: #667895; }
.dbt-card-open { gap: 7px; margin-left: auto; color: #86aef9; font-size: .65rem; font-weight: 700; text-decoration: none; }
.dbt-card-open span { transition: transform .18s ease; }
.dbt-card-open:hover span { transform: translateX(3px); }

.dbt-empty,
.dbt-not-found {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(137, 163, 207, .18);
  border-radius: 14px;
  padding: 34px;
  text-align: center;
  background: rgba(12, 18, 29, .55);
}

.dbt-empty-art { display: flex; align-items: flex-end; gap: 5px; height: 42px; margin-bottom: 15px; }
.dbt-empty-art i { width: 9px; border-radius: 4px 4px 2px 2px; background: linear-gradient(#709df4, #385b9e); opacity: .65; }
.dbt-empty-art i:nth-child(1) { height: 21px; }
.dbt-empty-art i:nth-child(2) { height: 37px; }
.dbt-empty-art i:nth-child(3) { height: 28px; }
.dbt-empty strong,
.dbt-not-found h1 { color: #dfe7f4; font-family: var(--ssp-head); font-size: 1.2rem; font-weight: 600; }
.dbt-empty p,
.dbt-not-found p { margin: 7px 0 16px; color: #78869b; font-size: .75rem; }
.dbt-empty button,
.dbt-not-found a { border: 0; cursor: pointer; color: #91b4f8; background: none; font-size: .7rem; font-weight: 700; text-decoration: none; }

.dbt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.dbt-pagination a { border: 1px solid var(--dbt-border); border-radius: 8px; padding: 8px 11px; color: #a9b9d2; font-size: .67rem; text-decoration: none; }
.dbt-pagination a[aria-disabled="true"] { pointer-events: none; opacity: .35; }
.dbt-pagination span { color: #6f7d93; font-size: .65rem; }

/* Composer e modais */

body.dbt-modal-open { overflow: hidden; }

.dbt-modal[hidden] { display: none !important; }
.dbt-modal {
  position: fixed;
  z-index: 10000;
  display: grid;
  inset: 0;
  place-items: center;
  padding: 20px;
}

.dbt-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: default;
  opacity: 0;
  background: rgba(2, 5, 9, .78);
  backdrop-filter: blur(9px);
  transition: opacity .18s ease;
}

.dbt-create-dialog,
.dbt-small-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 34px));
  max-height: min(880px, calc(100vh - 34px));
  overflow: auto;
  transform: translateY(12px) scale(.985);
  opacity: 0;
  border: 1px solid rgba(134, 166, 223, .2);
  border-radius: 16px;
  background: #0b111c;
  box-shadow: 0 34px 110px rgba(0, 0, 0, .62), inset 0 1px rgba(255, 255, 255, .035);
  transition: transform .2s ease, opacity .2s ease;
}

.dbt-small-dialog { width: min(700px, calc(100vw - 34px)); }
.dbt-modal.is-open .dbt-modal-backdrop { opacity: 1; }
.dbt-modal.is-open .dbt-create-dialog,
.dbt-modal.is-open .dbt-small-dialog { transform: translateY(0) scale(1); opacity: 1; }

.dbt-modal-head {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dbt-border);
  padding: 14px 20px;
  background: rgba(10, 16, 26, .96);
  backdrop-filter: blur(14px);
}

.dbt-modal-head span { display: block; color: #7182a0; font-size: .58rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.dbt-modal-head h2 { margin: 3px 0 0; color: #edf3fc; font-family: var(--ssp-head); font-size: 1.22rem; font-weight: 600; }
.dbt-modal-head > button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--dbt-border);
  border-radius: 9px;
  cursor: pointer;
  color: #8795a9;
  background: rgba(255, 255, 255, .025);
  font-size: 1.25rem;
}
.dbt-modal-head > button:hover { border-color: rgba(255, 91, 107, .25); color: #ff8995; background: rgba(177, 35, 51, .08); }

.dbt-create-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr);
  gap: 0;
}

.dbt-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px;
  border-right: 1px solid var(--dbt-border);
  padding: 23px;
}

.dbt-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.dbt-field-wide { grid-column: 1 / -1; }
.dbt-field > span,
.dbt-vote-mode legend {
  color: #aab7cb;
  font-size: .66rem;
  font-weight: 700;
}
.dbt-field > span small { float: right; color: #66758e; font-size: .57rem; font-weight: 550; }
.dbt-field input,
.dbt-field select { height: 42px; padding: 0 12px; font-size: .73rem; }
.dbt-field textarea { min-height: 170px; resize: vertical; padding: 12px; font-size: .73rem; line-height: 1.55; }
.dbt-field-body > textarea { border-radius: 0 0 9px 9px; }
.dbt-field-hint { color: #64728a; font-size: .59rem; line-height: 1.45; }

.dbt-formatbar {
  display: flex !important;
  gap: 5px;
  border: 1px solid var(--dbt-border);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  padding: 7px;
  background: rgba(255, 255, 255, .025);
}

.dbt-formatbar button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  color: #8998af;
  background: transparent;
  font-size: .59rem;
}
.dbt-formatbar button:hover { border-color: var(--dbt-border); color: #d4e0f2; background: rgba(83, 127, 216, .08); }

.dbt-vote-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  border: 0;
  padding: 0;
}
.dbt-vote-mode legend { margin-bottom: 7px; }
.dbt-vote-mode label { position: relative; min-width: 0; cursor: pointer; }
.dbt-vote-mode input { position: absolute; opacity: 0; pointer-events: none; }
.dbt-vote-mode label > span {
  display: flex;
  min-height: 80px;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--dbt-border);
  border-radius: 9px;
  padding: 12px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.dbt-vote-mode label > span b { color: #bac7d9; font-size: .67rem; }
.dbt-vote-mode label > span small { color: #68768d; font-size: .57rem; line-height: 1.4; }
.dbt-vote-mode input:checked + span { border-color: rgba(91, 145, 255, .56); background: rgba(62, 108, 200, .11); box-shadow: 0 0 0 3px rgba(72, 124, 231, .08); }
.dbt-vote-mode input:checked + span b { color: #bcd1ff; }

.dbt-poll-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid rgba(104, 151, 240, .15);
  border-radius: 11px;
  padding: 15px;
  background: rgba(63, 103, 183, .055);
}
.dbt-poll-fields[hidden] { display: none; }
.dbt-poll-fields textarea { min-height: 96px; border-radius: 9px; }

.dbt-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid rgba(151, 178, 225, .09);
  margin-top: 2px;
  padding-top: 17px;
}

.dbt-live-preview {
  min-width: 0;
  padding: 23px;
  background:
    radial-gradient(420px 300px at 100% 0, rgba(67, 115, 218, .08), transparent 75%),
    rgba(7, 11, 18, .4);
}
.dbt-live-preview > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.dbt-live-preview > header span { color: #a9b7ca; font-size: .65rem; font-weight: 700; }
.dbt-live-preview > header small { color: #617089; font-size: .57rem; }
.dbt-live-preview article {
  position: sticky;
  top: 94px;
  overflow: hidden;
  border: 1px solid rgba(143, 174, 228, .15);
  border-radius: 12px;
  padding: 18px;
  background: rgba(14, 21, 34, .92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
}
.dbt-preview-tags { display: flex; gap: 6px; }
.dbt-preview-tags span,
.dbt-preview-tags em { border-radius: 999px; padding: 5px 8px; font-size: .54rem; font-style: normal; font-weight: 700; text-transform: uppercase; }
.dbt-preview-tags span { color: #9bbcff; background: rgba(65, 111, 203, .11); }
.dbt-preview-tags em { color: #69dda6; background: rgba(42, 151, 103, .09); }
.dbt-live-preview h3 { margin: 13px 0; color: #e8eef8; font-family: var(--ssp-head); font-size: 1.25rem; font-weight: 580; line-height: 1.25; }
.dbt-live-preview article > footer { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--dbt-border); margin-top: 18px; padding-top: 13px; }
.dbt-live-preview article > footer span:last-child b { display: block; color: #c0ccdd; font-size: .66rem; }
.dbt-live-preview article > footer span:last-child small { display: block; margin-top: 2px; color: #64738a; font-size: .56rem; }

.dbt-small-dialog > form { padding: 21px; }
.dbt-small-dialog > form > .dbt-field + .dbt-field { margin-top: 14px; }
.dbt-small-dialog > form > footer { display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--dbt-border); margin-top: 18px; padding-top: 17px; }
.dbt-decision-warning { margin-bottom: 14px; border: 1px solid rgba(232, 184, 90, .2); border-radius: 9px; padding: 10px 12px; color: #cfb779; background: rgba(144, 96, 17, .08); font-size: .66rem; line-height: 1.45; }

/* Detalhe do debate */

.dbt-detail-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.dbt-back { color: #8da9d8; font-size: .69rem; font-weight: 680; text-decoration: none; }
.dbt-back:hover { color: #c7d9fb; }
.dbt-detail-head-actions { display: flex; gap: 7px; }
.dbt-detail-head-actions button {
  display: inline-flex;
  height: 35px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--dbt-border);
  border-radius: 8px;
  padding: 0 11px;
  cursor: pointer;
  color: #8e9db3;
  background: rgba(255, 255, 255, .025);
  font-size: .62rem;
  font-weight: 680;
}
.dbt-detail-head-actions button:hover,
.dbt-detail-head-actions button.is-active { border-color: var(--dbt-border-strong); color: #acc8ff; background: rgba(64, 109, 200, .1); }
.dbt-detail-head-actions svg { width: 14px; height: 14px; }
.dbt-archive-banner { margin-bottom: 12px; }

.dbt-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 14px;
}

.dbt-detail-main { display: grid; min-width: 0; gap: 12px; }

.dbt-topic,
.dbt-poll,
.dbt-discussion,
.dbt-side-card {
  border: 1px solid var(--dbt-border);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(14, 21, 34, .96), rgba(9, 14, 23, .96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16), inset 0 1px rgba(255, 255, 255, .022);
}

.dbt-topic {
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr);
  overflow: hidden;
}

.dbt-vote-rail {
  display: flex;
  justify-content: center;
  border-right: 1px solid rgba(151, 178, 225, .09);
  padding: 21px 10px;
  background: rgba(4, 8, 15, .23);
}

.dbt-vote-rail button {
  display: flex;
  height: fit-content;
  flex-direction: column;
  align-items: center;
  border: 0;
  cursor: pointer;
  color: #71829e;
  background: none;
}
.dbt-vote-rail button svg { width: 28px; height: 28px; transition: transform .18s ease, color .18s ease; }
.dbt-vote-rail button:hover svg { transform: translateY(-2px); color: #93b6fc; }
.dbt-vote-rail button b { margin-top: 2px; color: #b7c4d8; font-family: var(--ssp-head); font-size: 1.05rem; font-weight: 600; }
.dbt-vote-rail button small { margin-top: 1px; color: #59677d; font-size: .52rem; text-transform: uppercase; }
.dbt-vote-rail button.is-active { color: #78a5ff; }
.dbt-vote-rail button.is-active b { color: #a8c4ff; }

.dbt-topic-content { min-width: 0; padding: clamp(22px, 3.5vw, 38px); }
.dbt-topic-header { border-bottom: 1px solid rgba(151, 178, 225, .1); margin-bottom: 25px; padding-bottom: 20px; }
.dbt-topic-header h1 {
  max-width: 1050px;
  margin: 14px 0 17px;
  color: #f0f4fb;
  font-family: var(--ssp-head);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 590;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.dbt-topic-author { position: relative; }
.dbt-topic-author > span:nth-child(2) { min-width: 0; }
.dbt-edited { margin-left: auto; color: #5e6c81; font-size: .58rem; font-style: italic; }
.dbt-text-action { margin-left: 5px; border: 0; cursor: pointer; color: #7898ce; background: none; font-size: .61rem; font-weight: 650; }
.dbt-text-action:hover { color: #afc8f5; }

.dbt-markdown {
  color: #bcc6d5;
  font-size: .79rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
.dbt-markdown > *:first-child { margin-top: 0; }
.dbt-markdown > *:last-child { margin-bottom: 0; }
.dbt-markdown p { margin: 0 0 1em; }
.dbt-markdown h1,
.dbt-markdown h2,
.dbt-markdown h3,
.dbt-markdown h4 { margin: 1.35em 0 .55em; color: #e8eef8; font-family: var(--ssp-head); font-weight: 580; line-height: 1.25; }
.dbt-markdown h1 { font-size: 1.5rem; }
.dbt-markdown h2 { font-size: 1.28rem; }
.dbt-markdown h3 { font-size: 1.08rem; }
.dbt-markdown strong { color: #e4ebf6; font-weight: 720; }
.dbt-markdown em { color: #cbd6e7; }
.dbt-markdown a { color: #80aafa; text-decoration-color: rgba(128, 170, 250, .4); text-underline-offset: 2px; }
.dbt-markdown ul,
.dbt-markdown ol { margin: .75em 0 1em; padding-left: 1.5em; }
.dbt-markdown li { margin: .35em 0; }
.dbt-markdown blockquote {
  margin: 1em 0;
  border-left: 3px solid rgba(92, 145, 250, .7);
  border-radius: 0 8px 8px 0;
  padding: 10px 13px;
  color: #aebed5;
  background: rgba(63, 107, 195, .08);
}
.dbt-markdown code { border: 1px solid rgba(139, 164, 206, .12); border-radius: 5px; padding: 2px 5px; color: #cbdcff; background: rgba(0, 0, 0, .25); font-size: .86em; }
.dbt-markdown pre { overflow: auto; border: 1px solid var(--dbt-border); border-radius: 9px; padding: 12px; background: #070b12; }
.dbt-markdown pre code { border: 0; padding: 0; background: none; }

.dbt-decision {
  display: flex;
  gap: 15px;
  overflow: hidden;
  border: 1px solid rgba(232, 184, 90, .24);
  border-radius: 13px;
  padding: 19px;
  background:
    radial-gradient(380px 180px at 0 0, rgba(228, 183, 91, .1), transparent 70%),
    linear-gradient(135deg, rgba(44, 35, 18, .7), rgba(15, 17, 21, .96));
}
.dbt-decision-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(232, 184, 90, .26);
  border-radius: 11px;
  color: #e9c36f;
  background: rgba(151, 103, 24, .1);
}
.dbt-decision-icon svg { width: 23px; height: 23px; }
.dbt-decision > div:last-child { min-width: 0; }
.dbt-decision > div > span { display: block; margin-bottom: 9px; color: #e9c978; font-family: var(--ssp-head); font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }

.dbt-poll { overflow: hidden; }
.dbt-poll > header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--dbt-border);
  padding: 17px 19px;
  background: rgba(59, 103, 193, .055);
}
.dbt-poll-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(92, 145, 250, .22);
  border-radius: 10px;
  color: #8eaff4;
  background: rgba(57, 100, 186, .1);
}
.dbt-poll-icon svg { width: 20px; height: 20px; }
.dbt-poll header small { display: block; color: #7694cf; font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dbt-poll header h2 { margin: 3px 0 0; color: #dfe7f4; font-family: var(--ssp-head); font-size: 1.04rem; font-weight: 580; }
.dbt-poll-total { margin-left: auto; color: #687994; font-size: .62rem; }
.dbt-poll-total b { color: #9eb9ec; font-family: var(--ssp-head); font-size: 1rem; }
.dbt-poll form { padding: 17px 19px; }
.dbt-stance-options,
.dbt-custom-options { display: grid; gap: 8px; }
.dbt-stance-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dbt-stance-options label,
.dbt-custom-options label {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid var(--dbt-border);
  border-radius: 9px;
  padding: 10px 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, .018);
}
.dbt-stance-options input,
.dbt-custom-options input { position: absolute; opacity: 0; }
.dbt-poll-option-bg {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--poll-pct);
  opacity: .22;
  background: linear-gradient(90deg, rgba(79, 130, 231, .38), rgba(79, 130, 231, .05));
}
.dbt-poll-check {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 1px solid #53637c;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #0d1522;
}
.dbt-stance-options input:checked ~ .dbt-poll-check,
.dbt-custom-options input:checked ~ .dbt-poll-check { border-color: #8cb1fb; background: #5b8ff5; }
.dbt-stance-options label b,
.dbt-custom-options label b { position: relative; z-index: 1; color: #b9c5d8; font-size: .68rem; font-weight: 680; }
.dbt-stance-options label em,
.dbt-custom-options label em { position: relative; z-index: 1; color: #b3c9f5; font-family: var(--ssp-head); font-size: .94rem; font-style: normal; }
.dbt-stance-options label small,
.dbt-custom-options label small { position: relative; z-index: 1; grid-column: 2 / 4; color: #65748c; font-size: .55rem; }
.dbt-stance-options label:hover,
.dbt-custom-options label:hover { border-color: rgba(103, 150, 239, .32); }
.dbt-poll.is-closed label { cursor: default; }
.dbt-poll form > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid rgba(151, 178, 225, .08); margin-top: 14px; padding-top: 14px; }
.dbt-poll form > footer span { color: #67758b; font-size: .58rem; }
.dbt-poll form > footer button { min-height: 36px; border: 1px solid rgba(96, 145, 239, .4); border-radius: 8px; padding: 0 14px; cursor: pointer; color: #dbe7ff; background: linear-gradient(135deg, #4b7ee7, #3565c8); font-size: .65rem; font-weight: 700; }

.dbt-discussion { overflow: hidden; }
.dbt-discussion-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--dbt-border);
  padding: 17px 19px;
}
.dbt-discussion-head > div > span { display: block; color: #7184a5; font-size: .56rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.dbt-discussion-head h2 { margin: 3px 0 0; color: #dfe7f4; font-family: var(--ssp-head); font-size: 1.08rem; font-weight: 580; }
.dbt-discussion-head > span { color: #65738a; font-size: .59rem; }

.dbt-comment-composer {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-bottom: 1px solid var(--dbt-border);
  padding: 17px 19px;
  background: rgba(59, 103, 193, .035);
}
.dbt-comment-composer > div { min-width: 0; flex: 1; }
.dbt-comment-composer textarea {
  width: 100%;
  min-height: 74px;
  max-height: 240px;
  resize: vertical;
  border: 1px solid var(--dbt-border);
  border-radius: 9px;
  padding: 11px 12px;
  color: #dce4f0;
  background: rgba(6, 10, 17, .65);
  font-size: .72rem;
  line-height: 1.5;
}
.dbt-comment-composer textarea:focus { outline: 0; border-color: rgba(91, 145, 255, .6); box-shadow: 0 0 0 3px rgba(76, 130, 246, .09); }
.dbt-comment-composer > div > footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.dbt-comment-composer footer small { color: #5c6a80; font-size: .56rem; }
.dbt-comment-composer footer button { min-height: 34px; border: 1px solid rgba(96, 145, 239, .42); border-radius: 8px; padding: 0 13px; cursor: pointer; color: #dbe7ff; background: rgba(58, 105, 203, .72); font-size: .62rem; font-weight: 700; }
.dbt-replying { display: flex; align-items: center; gap: 5px; border: 1px solid rgba(91, 145, 255, .2); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 7px 10px; color: #7184a4; background: rgba(58, 99, 184, .09); font-size: .59rem; }
.dbt-replying + textarea { border-radius: 0 0 9px 9px; }
.dbt-replying b { color: #a8c1f1; }
.dbt-replying button { margin-left: auto; border: 0; cursor: pointer; color: #8392a9; background: none; font-size: .9rem; }

.dbt-comments { padding: 0 19px; }
.dbt-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  border-bottom: 1px solid rgba(151, 178, 225, .08);
  padding: 18px 0;
}
.dbt-comment:last-child { border-bottom: 0; }
.dbt-comment-content { min-width: 0; }
.dbt-comment header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dbt-comment header > span { min-width: 0; }
.dbt-comment time { flex: 0 0 auto; color: #5c6a80; font-size: .57rem; }
.dbt-comment-body { margin-top: 10px; color: #aeb9ca; font-size: .72rem; line-height: 1.62; }
.dbt-comment-content > footer { display: flex; align-items: center; gap: 5px; margin-top: 10px; }
.dbt-comment-content > footer button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 7px;
  cursor: pointer;
  color: #66758c;
  background: transparent;
  font-size: .57rem;
  font-weight: 650;
}
.dbt-comment-content > footer button svg { width: 13px; height: 13px; }
.dbt-comment-content > footer button:hover,
.dbt-comment-content > footer button.is-active { border-color: var(--dbt-border); color: #91b1ed; background: rgba(68, 112, 201, .07); }
.dbt-comment-content > footer button b { color: inherit; font-size: .58rem; }
.dbt-comment-content > footer .dbt-mod-inline { margin-left: auto; color: #d08089; }
.dbt-comment-reply-ref { display: block; margin-top: 9px; border-left: 2px solid rgba(89, 144, 255, .4); padding: 6px 9px; color: inherit; background: rgba(59, 101, 188, .055); text-decoration: none; }
.dbt-comment-reply-ref span { display: block; color: #7c9bda; font-size: .55rem; font-weight: 700; }
.dbt-comment-reply-ref small { display: block; overflow: hidden; margin-top: 3px; color: #66758c; font-size: .56rem; text-overflow: ellipsis; white-space: nowrap; }
.dbt-comment.is-hidden { opacity: .72; }
.dbt-comment-hidden { margin-top: 10px; border: 1px dashed rgba(218, 112, 124, .2); border-radius: 8px; padding: 10px; color: #bc7c84; background: rgba(140, 39, 51, .055); font-size: .63rem; }
.dbt-comment-hidden b { display: block; }
.dbt-comment-hidden > span { display: block; margin-top: 3px; color: #7f6c72; font-size: .57rem; }
.dbt-comment-hidden .dbt-markdown { margin-top: 10px; color: #9f9295; }
.dbt-comments-empty { display: flex; min-height: 135px; flex-direction: column; align-items: center; justify-content: center; color: #75839a; text-align: center; }
.dbt-comments-empty strong { color: #aab6c8; font-family: var(--ssp-head); font-size: .9rem; font-weight: 550; }
.dbt-comments-empty span { margin-top: 5px; font-size: .62rem; }
.dbt-closed-note { display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--dbt-border); padding: 15px 19px; color: #7d8ca3; background: rgba(255, 255, 255, .018); }
.dbt-closed-note svg { width: 22px; height: 22px; }
.dbt-closed-note b { display: block; color: #a7b3c5; font-size: .68rem; }
.dbt-closed-note small { display: block; margin-top: 2px; font-size: .57rem; }

.dbt-detail-side { position: sticky; top: 92px; display: grid; gap: 10px; }
.dbt-side-card { overflow: hidden; }
.dbt-side-card > header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dbt-border); padding: 12px 14px; }
.dbt-side-card > header span { color: #c9d4e4; font-family: var(--ssp-head); font-size: .78rem; font-weight: 580; }
.dbt-side-card > header small { color: #6881ae; font-size: .53rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.dbt-about-card dl { margin: 0; padding: 7px 14px; }
.dbt-about-card dl > div { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid rgba(151, 178, 225, .07); }
.dbt-about-card dl > div:last-child { border-bottom: 0; }
.dbt-about-card dt { color: #64738a; font-size: .59rem; }
.dbt-about-card dd { margin: 0; color: #aeb9ca; font-size: .61rem; text-align: right; }
.dbt-about-card .dbt-status { min-height: 21px; font-size: .51rem; }
.dbt-side-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--dbt-border); background: rgba(5, 9, 15, .25); }
.dbt-side-metrics span { padding: 12px 5px; text-align: center; }
.dbt-side-metrics span + span { border-left: 1px solid rgba(151, 178, 225, .08); }
.dbt-side-metrics b { display: block; color: #bdcce4; font-family: var(--ssp-head); font-size: .95rem; font-weight: 580; }
.dbt-side-metrics small { display: block; margin-top: 2px; color: #5f6e85; font-size: .5rem; text-transform: uppercase; }

.dbt-conduct-card { display: flex; gap: 11px; padding: 14px; background: linear-gradient(135deg, rgba(32, 54, 91, .6), rgba(10, 15, 24, .96)); }
.dbt-conduct-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(101, 149, 239, .2); border-radius: 9px; color: #84a7ea; background: rgba(60, 103, 190, .1); }
.dbt-conduct-icon svg { width: 18px; height: 18px; }
.dbt-conduct-card b { display: block; color: #b9cae3; font-size: .65rem; }
.dbt-conduct-card p { margin: 4px 0 0; color: #6e7f99; font-size: .56rem; line-height: 1.45; }

.dbt-admin-actions { display: grid; gap: 5px; padding: 9px; }
.dbt-admin-actions button {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 9px;
  cursor: pointer;
  color: #8798b1;
  background: transparent;
  font-size: .59rem;
  text-align: left;
}
.dbt-admin-actions button svg { width: 15px; height: 15px; color: #6f86ae; }
.dbt-admin-actions button:hover { border-color: var(--dbt-border); color: #c5d5ed; background: rgba(69, 112, 201, .07); }
.dbt-admin-actions button.is-decision { color: #c6ae72; }
.dbt-admin-actions button.is-decision svg { color: #bf9d4d; }
.dbt-admin-actions button.is-danger { color: #bd7d85; }
.dbt-admin-actions button.is-danger svg { color: #b46670; }

.dbt-history-card summary { display: flex; min-height: 43px; align-items: center; justify-content: space-between; padding: 0 14px; cursor: pointer; color: #8d9cb3; font-size: .61rem; list-style: none; }
.dbt-history-card summary::-webkit-details-marker { display: none; }
.dbt-history-card summary span { font-size: .9rem; transition: transform .18s ease; }
.dbt-history-card[open] summary span { transform: rotate(45deg); }
.dbt-history-card > div { max-height: 280px; overflow: auto; border-top: 1px solid var(--dbt-border); padding: 6px 12px 10px; }
.dbt-history-card p { margin: 0; border-bottom: 1px solid rgba(151, 178, 225, .07); padding: 8px 0; }
.dbt-history-card p:last-child { border-bottom: 0; }
.dbt-history-card p b { display: block; color: #a8b5c8; font-size: .57rem; }
.dbt-history-card p span { display: block; margin-top: 2px; color: #637188; font-size: .52rem; }
.dbt-history-card p small { display: block; margin-top: 3px; color: #7b879a; font-size: .52rem; line-height: 1.4; }

.dbt-not-found { min-height: 480px; }
.dbt-not-found > span { color: rgba(101, 149, 239, .32); font-family: var(--ssp-head); font-size: 4rem; font-weight: 700; line-height: 1; }
.dbt-not-found h1 { margin: 10px 0 0; }

/* Feedback */

.dbt-toast-region {
  position: fixed;
  z-index: 12000;
  display: grid;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100vw - 32px));
  gap: 8px;
  pointer-events: none;
}
.dbt-toast {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  transform: translateY(10px);
  opacity: 0;
  border: 1px solid rgba(108, 151, 229, .24);
  border-radius: 10px;
  padding: 12px;
  color: #c9d5e7;
  background: rgba(12, 19, 31, .98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .42);
  pointer-events: auto;
  transition: opacity .2s ease, transform .2s ease;
}
.dbt-toast.is-visible { transform: translateY(0); opacity: 1; }
.dbt-toast i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dbt-toast.is-error { border-color: rgba(255, 93, 108, .26); }
.dbt-toast.is-error i { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dbt-toast span { font-size: .67rem; line-height: 1.4; }
.dbt-toast button { border: 0; cursor: pointer; color: #77869c; background: none; font-size: .9rem; }

/* Navegação e responsividade */

.ssp-nav > a .dbt-nav-badge {
  display: inline-grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  margin-left: 6px;
  border: 1px solid rgba(102, 150, 239, .35);
  border-radius: 999px;
  padding: 0 4px;
  color: #d9e6ff;
  background: #315ea9;
  font-size: .52rem;
  font-weight: 750;
}

body.ssp-ingame .dbt-app { width: 100%; }
body.ssp-ingame .dbt-hero { min-height: 230px; }
body.ssp-ingame .dbt-detail-side { top: 12px; }
body.ssp-ingame .dbt-modal { padding: 12px; }
body.ssp-ingame .dbt-create-dialog,
body.ssp-ingame .dbt-small-dialog {
  width: min(1180px, calc(100% - 24px));
  max-height: calc(100% - 24px);
}
body.ssp-ingame .dbt-small-dialog { width: min(700px, calc(100% - 24px)); }

@media (max-width: 1180px) {
  .dbt-hero { grid-template-columns: minmax(0, 1fr) 420px; }
  .dbt-toolbar { align-items: stretch; flex-direction: column; }
  .dbt-filters { justify-content: flex-start; flex-wrap: wrap; }
  .dbt-search { width: min(100%, 360px); }
  .dbt-detail-grid { grid-template-columns: minmax(0, 1fr) 270px; }
  .dbt-create-grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

@media (max-width: 920px) {
  .dbt-hero { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .dbt-hero-stats { max-width: 620px; }
  .dbt-detail-grid { grid-template-columns: 1fr; }
  .dbt-detail-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbt-admin-card,
  .dbt-history-card { grid-column: 1 / -1; }
  .dbt-create-grid { grid-template-columns: 1fr; }
  .dbt-create-form { border-right: 0; border-bottom: 1px solid var(--dbt-border); }
  .dbt-live-preview article { position: static; }
}

@media (max-width: 720px) {
  .dbt-app { width: 100%; }
  .dbt-hero { min-height: 0; border-radius: 13px; padding: 23px 19px; }
  .dbt-hero h1 { font-size: 2rem; }
  .dbt-hero-copy > p { font-size: .78rem; }
  .dbt-hero-stats span { min-height: 76px; padding: 14px; }
  .dbt-hero-stats b { font-size: 1.35rem; }
  .dbt-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dbt-search { width: 100%; grid-column: 1 / -1; }
  .dbt-select select { min-width: 0; }
  .dbt-filter-submit { grid-column: 1 / -1; }
  .dbt-card-main { padding: 17px; }
  .dbt-card h2 { font-size: 1.08rem; }
  .dbt-card-footer { min-height: 48px; gap: 11px; padding: 0 17px; }
  .dbt-scope { display: none; }
  .dbt-card-open { margin-left: auto; }
  .dbt-modal { padding: 0; }
  .dbt-create-dialog,
  .dbt-small-dialog { width: 100vw; max-height: 100vh; min-height: 100vh; border: 0; border-radius: 0; }
  .dbt-create-form { grid-template-columns: 1fr; padding: 18px; }
  .dbt-field-wide { grid-column: 1; }
  .dbt-vote-mode { grid-template-columns: 1fr; }
  .dbt-vote-mode label > span { min-height: 62px; }
  .dbt-poll-fields { grid-template-columns: 1fr; }
  .dbt-live-preview { padding: 18px; }
  .dbt-detail-head { align-items: flex-start; }
  .dbt-detail-head-actions button { width: 36px; justify-content: center; padding: 0; }
  .dbt-detail-head-actions button span,
  .dbt-detail-head-actions button:not([data-dbt-follow]) { font-size: 0; }
  .dbt-detail-head-actions button:not([data-dbt-follow]) svg { margin: 0; }
  .dbt-topic { grid-template-columns: 1fr; }
  .dbt-vote-rail { justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(151, 178, 225, .09); padding: 9px 17px; }
  .dbt-vote-rail button { flex-direction: row; gap: 5px; }
  .dbt-vote-rail button svg { width: 21px; height: 21px; }
  .dbt-vote-rail button small { margin-left: 2px; }
  .dbt-topic-content { padding: 20px 18px; }
  .dbt-topic-header h1 { font-size: 1.72rem; }
  .dbt-stance-options { grid-template-columns: 1fr; }
  .dbt-discussion-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .dbt-discussion-head > span { line-height: 1.4; }
  .dbt-comments { padding: 0 15px; }
  .dbt-comment { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
  .dbt-comment .dbt-avatar { width: 30px; height: 30px; }
  .dbt-comment header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .dbt-comment-content > footer { flex-wrap: wrap; }
  .dbt-comment-content > footer .dbt-mod-inline { margin-left: 0; }
  .dbt-detail-side { grid-template-columns: 1fr; }
  .dbt-admin-card,
  .dbt-history-card { grid-column: auto; }
}

@media (max-width: 460px) {
  .dbt-hero-stats { grid-template-columns: 1fr; }
  .dbt-hero-stats span { min-height: 66px; border-right: 0 !important; border-bottom: 1px solid rgba(142, 174, 232, .1); }
  .dbt-hero-stats span:last-child { border-bottom: 0; }
  .dbt-card-footer { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .dbt-card-open { width: 100%; justify-content: flex-end; border-top: 1px solid rgba(151, 178, 225, .07); padding-top: 7px; }
  .dbt-filters { grid-template-columns: 1fr; }
  .dbt-search,
  .dbt-filter-submit { grid-column: 1; }
  .dbt-topic-author { align-items: flex-start; flex-wrap: wrap; }
  .dbt-edited { margin-left: 0; }
  .dbt-poll > header { align-items: flex-start; flex-wrap: wrap; }
  .dbt-poll-total { width: 100%; margin-left: 50px; }
  .dbt-comment-composer { padding: 14px; }
  .dbt-comment-composer > .dbt-avatar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dbt-app *,
  .dbt-app *::before,
  .dbt-app *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
