/*
 * 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; }
}
