:root {
  --night: #090a13;
  --panel: #11121d;
  --paper: #f4f3ef;
  --white: #fff;
  --red: #ff253d;
  --blue: #159ed6;
  --purple: #a454c5;
  --muted: #777985;
  --border: #e2dfd8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  color: var(--night);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.admin-topbar {
  height: 78px;
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--night);
  color: #fff;
  border-bottom: 1px solid #252631;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-brand img {
  width: 155px;
  height: 52px;
  object-fit: contain;
}
.admin-brand > span {
  padding-left: 16px;
  border-left: 1px solid #33343f;
  color: #777985;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 0.13em;
  line-height: 1.4;
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 18px;
}
.admin-user > div {
  display: flex;
  flex-direction: column;
  text-align: right;
}
.admin-user strong {
  font-size: 12px;
}
.admin-user span {
  margin-top: 3px;
  color: #787985;
  font-size: 9px;
}
.admin-user button {
  border: 1px solid #393a46;
  background: transparent;
  color: #fff;
  padding: 9px 13px;
  font-size: 10px;
}
.admin-sidebar {
  position: fixed;
  z-index: 20;
  left: 0;
  top: 78px;
  bottom: 0;
  width: 245px;
  padding: 28px 18px;
  background: #0d0e17;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  color: #8b8c98;
  font-size: 11px;
  font-weight: 700;
  border-left: 2px solid transparent;
}
.admin-sidebar nav a i {
  width: 20px;
  font-style: normal;
  text-align: center;
  font-size: 15px;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #fff;
  background: #171823;
  border-left-color: var(--red);
}
.sidebar-note {
  padding: 18px;
  background: #151620;
  border: 1px solid #262732;
  display: flex;
  flex-direction: column;
}
.sidebar-note span {
  color: #6f707c;
  text-transform: uppercase;
  font-size: 7px;
  letter-spacing: 0.13em;
}
.sidebar-note strong {
  margin-top: 7px;
  font-size: 10px;
}
.admin-main {
  min-height: 100vh;
  margin-left: 245px;
  padding: 126px clamp(25px, 5vw, 75px) 75px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 40px;
}
.page-heading.compact {
  align-items: flex-start;
}
.page-heading > div > span,
.page-heading > div > .back-admin {
  display: block;
  color: #92939e;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 8px;
  font-weight: 800;
}
.page-heading h1 {
  font-size: clamp(40px, 4.5vw, 62px);
  letter-spacing: -0.06em;
  margin: 10px 0 8px;
}
.page-heading p {
  max-width: 650px;
  margin: 0;
  color: #797a84;
  font-size: 13px;
  line-height: 1.6;
}
.admin-primary {
  min-height: 48px;
  padding: 0 19px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}
.button-link {
  width: fit-content;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}
.stats-grid article {
  min-height: 160px;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.stats-grid span {
  color: #8c8d96;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 8px;
  font-weight: 800;
}
.stats-grid strong {
  font-size: 52px;
  letter-spacing: -0.06em;
  margin: auto 0 5px;
}
.stats-grid small {
  color: #a0a0a7;
  font-size: 9px;
}
.admin-section {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--border);
}
.admin-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.admin-section-heading span {
  color: #999aa3;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 8px;
}
.admin-section-heading h2 {
  font-size: 25px;
  margin: 7px 0 0;
}
.admin-section-heading > a {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th {
  text-align: left;
  padding: 13px 15px;
  background: #f3f2ee;
  color: #8a8b94;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 7px;
}
td {
  padding: 17px 15px;
  border-bottom: 1px solid #eeece7;
  color: #565761;
  font-size: 11px;
}
td strong,
td small {
  display: block;
}
td strong {
  color: #161720;
  font-size: 11px;
}
td small {
  margin-top: 5px;
  color: #999aa3;
  font-size: 8px;
}
.status-badge {
  display: inline-flex !important;
  width: fit-content;
  padding: 6px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  font-size: 7px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.status-badge.published {
  color: #187d4a;
  background: #e7f7ef;
}
.status-badge.draft {
  color: #9d6900;
  background: #fff4d6;
}
.status-badge.disabled {
  color: #8c8d95;
  background: #eeeeef;
}
.table-link,
.row-actions > a,
.row-actions button {
  color: #171821;
  font-size: 9px;
  font-weight: 800;
}
.row-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.row-actions form {
  margin: 0;
}
.row-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #bd2736;
}
.admin-empty {
  padding: 60px 20px;
  text-align: center;
  color: #888994;
}
.admin-empty h3 {
  color: #171821;
  font-size: 22px;
}
.form-alert {
  margin: 0 0 25px;
  padding: 14px 17px;
  border-left: 3px solid;
  font-size: 11px;
}
.form-alert.error {
  background: #fff0f2;
  border-color: var(--red);
  color: #8e1c29;
}
.form-alert.success {
  background: #e8f8f0;
  border-color: #1d9b60;
  color: #176d47;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.75fr;
  gap: 24px;
  align-items: start;
}
.editor-card,
.single-form-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
}
.editor-card h2 {
  font-size: 22px;
  margin: 0 0 25px;
}
.editor-card label,
.single-form-card label,
.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  color: #565761;
  font-size: 10px;
  font-weight: 800;
}
.editor-card input,
.editor-card textarea,
.editor-card select,
.single-form-card input,
.single-form-card select,
.auth-card input {
  width: 100%;
  border: 1px solid #d9d6cf;
  background: #faf9f6;
  padding: 13px 14px;
  color: #191a22;
  outline: 0;
  font-size: 12px;
}
.editor-card textarea {
  resize: vertical;
  line-height: 1.6;
}
.editor-card input:focus,
.editor-card textarea:focus,
.editor-card select:focus,
.single-form-card input:focus,
.single-form-card select:focus,
.auth-card input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 37, 61, 0.08);
}
.editor-card label small,
.single-form-card label small,
.auth-card label small {
  color: #9c9da5;
  font-size: 8px;
  font-weight: 400;
}
.settings-card {
  position: sticky;
  top: 105px;
}
.settings-card hr {
  border: 0;
  border-top: 1px solid #e8e5df;
  margin: 25px 0;
}
.full-button {
  width: 100%;
  margin-top: 10px;
}
.single-form-card {
  max-width: 650px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 60px clamp(30px, 6vw, 90px);
  background:
    radial-gradient(
      circle at 72% 20%,
      rgba(164, 84, 197, 0.23),
      transparent 32%
    ),
    var(--night);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand-panel:after {
  content: "";
  position: absolute;
  width: 530px;
  height: 530px;
  left: -230px;
  bottom: -260px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 85px rgba(255, 255, 255, 0.015),
    0 0 0 170px rgba(255, 255, 255, 0.009);
}
.auth-brand-panel > img {
  width: 220px;
  height: 75px;
  object-fit: contain;
}
.auth-brand-panel > div {
  position: relative;
  z-index: 2;
}
.auth-brand-panel > div > span {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 8px;
  font-weight: 900;
}
.auth-brand-panel h1 {
  font-size: clamp(52px, 6vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.07em;
  margin: 20px 0;
}
.auth-brand-panel p {
  max-width: 480px;
  color: #92939e;
  font-size: 14px;
  line-height: 1.7;
}
.auth-brand-panel > small {
  position: relative;
  z-index: 2;
  color: #5e5f6a;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 7px;
}
.setup-panel {
  background:
    radial-gradient(
      circle at 72% 20%,
      rgba(21, 158, 214, 0.23),
      transparent 32%
    ),
    var(--night);
}
.auth-form-panel {
  display: grid;
  place-items: center;
  padding: 40px;
}
.auth-card {
  width: min(100%, 470px);
  padding: 45px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(12, 13, 22, 0.08);
}
.form-kicker {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 8px;
  font-weight: 900;
}
.auth-card h2 {
  font-size: 35px;
  letter-spacing: -0.05em;
  margin: 12px 0 8px;
}
.auth-card > p {
  color: #868790;
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 25px;
}
.return-site {
  display: block;
  text-align: center;
  margin-top: 23px;
  color: #858690;
  font-size: 9px;
}
.setup-hint {
  display: block;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid #ece9e3;
  color: #a0a1a7;
  font-size: 8px;
  line-height: 1.5;
}
.admin-status {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.admin-status > span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff0f2;
  color: var(--red);
  font-size: 24px;
}
.admin-status h1 {
  font-size: 45px;
  letter-spacing: -0.055em;
  margin: 20px 0 10px;
}
.admin-status p {
  max-width: 520px;
  color: #777884;
  margin: 0 0 25px;
  line-height: 1.6;
}
@media (max-width: 1050px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .settings-card {
    position: static;
  }
  .auth-layout {
    grid-template-columns: 0.85fr 1.15fr;
  }
}
@media (max-width: 760px) {
  .admin-topbar {
    height: 68px;
    padding: 0 16px;
  }
  .admin-brand img {
    width: 130px;
  }
  .admin-brand > span {
    display: none;
  }
  .admin-user > div {
    display: none;
  }
  .admin-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    width: auto;
    height: 66px;
    padding: 7px 10px;
    display: block;
    overflow-x: auto;
  }
  .admin-sidebar nav {
    flex-direction: row;
    gap: 4px;
  }
  .admin-sidebar nav a {
    min-width: 58px;
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    border-left: 0;
    border-bottom: 2px solid transparent;
    font-size: 7px;
    white-space: nowrap;
  }
  .admin-sidebar nav a.active {
    border-left: 0;
    border-bottom-color: var(--red);
  }
  .admin-sidebar nav a:nth-child(n + 5) {
    display: none;
  }
  .sidebar-note {
    display: none;
  }
  .admin-main {
    margin-left: 0;
    padding: 98px 17px 95px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid article {
    min-height: 135px;
    padding: 20px;
  }
  .stats-grid strong {
    font-size: 42px;
  }
  .admin-section {
    padding: 18px;
  }
  .editor-card,
  .single-form-card {
    padding: 23px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-brand-panel {
    min-height: 330px;
    padding: 38px 25px;
  }
  .auth-brand-panel > img {
    width: 175px;
  }
  .auth-brand-panel h1 {
    font-size: 50px;
  }
  .auth-brand-panel p {
    font-size: 12px;
  }
  .auth-form-panel {
    padding: 25px 17px 50px;
  }
  .auth-card {
    padding: 30px 23px;
  }
  .admin-status h1 {
    font-size: 38px;
  }
}

/* Painel 2026 — rústico moderno com acrílico fosco */
:root {
  --admin-bg: #0c0b0a;
  --admin-wood: #241a12;
  --admin-glass: rgba(255, 255, 255, 0.072);
  --admin-glass-strong: rgba(255, 255, 255, 0.105);
  --admin-line: rgba(255, 255, 255, 0.14);
  --admin-copy: #aaa39b;
  --admin-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}
.admin-body {
  min-height: 100vh;
  color: #f5f0e9;
  background:
    linear-gradient(rgba(11, 10, 10, 0.9), rgba(11, 10, 10, 0.96)),
    repeating-linear-gradient(93deg, #302217 0, #302217 2px, #1b130e 2px, #1b130e 9px);
}
.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 4%, rgba(164, 84, 197, 0.12), transparent 24%), radial-gradient(circle at 20% 78%, rgba(255, 37, 61, 0.09), transparent 28%);
}
.admin-topbar {
  height: 84px;
  padding: 0 32px;
  background: rgba(10, 9, 10, 0.72);
  border-bottom-color: var(--admin-line);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.24);
}
.admin-brand img { width: 175px; }
.admin-brand > span { color: #aaa39b; border-left-color: rgba(255, 255, 255, 0.16); }
.admin-user span { color: #aaa39b; }
.admin-user button {
  border-color: var(--admin-line);
  border-radius: 8px 2px 8px 2px;
  background: var(--admin-glass);
  backdrop-filter: blur(12px);
}
.admin-sidebar {
  top: 84px;
  width: 270px;
  padding: 32px 20px;
  background: rgba(12, 11, 12, 0.68);
  border-right: 1px solid var(--admin-line);
  backdrop-filter: blur(25px) saturate(135%);
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.18);
}
.admin-sidebar nav { gap: 9px; }
.admin-sidebar nav a {
  min-height: 50px;
  padding: 11px 15px;
  color: #aaa39b;
  border: 1px solid transparent;
  border-left: 1px solid transparent;
  border-radius: 10px 2px 10px 2px;
}
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: #fff;
  border-color: var(--admin-line);
  border-left-color: var(--red);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
}
.admin-sidebar nav a.leadership-nav-link {
  border-color: rgba(255, 37, 61, 0.23);
  background: linear-gradient(120deg, rgba(255, 37, 61, 0.13), rgba(255, 255, 255, 0.035));
}
.leadership-nav-link > span { display: flex; flex-direction: column; gap: 3px; }
.leadership-nav-link small { color: #8c8580; font-size: 7px; font-weight: 400; }
.sidebar-note {
  border-color: var(--admin-line);
  border-radius: 12px 3px 12px 3px;
  background: var(--admin-glass);
  backdrop-filter: blur(15px);
}
.admin-main {
  position: relative;
  margin-left: 270px;
  padding: 140px clamp(26px, 4.5vw, 72px) 80px;
}
.page-heading > div > span,
.page-heading > div > .back-admin { color: #b5a999; }
.page-heading h1 { color: #fff; text-shadow: 0 16px 42px rgba(0, 0, 0, 0.3); }
.page-heading p { color: var(--admin-copy); }
.heading-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.admin-primary,
.admin-secondary {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 9px 2px 9px 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255, 255, 255, 0.18);
}
.admin-primary { background: linear-gradient(135deg, #ff3047, #b9132a); }
.admin-secondary { display: flex; align-items: center; justify-content: space-between; gap: 22px; border: 1px solid var(--admin-line); background: var(--admin-glass-strong); backdrop-filter: blur(16px); }
.stats-grid article,
.admin-section,
.editor-card,
.single-form-card,
.auth-card,
.leadership-editor-section {
  color: #f5f0e9;
  border: 1px solid var(--admin-line);
  background: linear-gradient(145deg, var(--admin-glass-strong), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: var(--admin-shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}
.stats-grid article { border-radius: 15px 3px 15px 3px; }
.stats-grid span,
.stats-grid small { color: #a9a198; }
.admin-section,
.editor-card,
.single-form-card,
.auth-card,
.leadership-editor-section { border-radius: 18px 3px 18px 3px; }
.admin-section-heading span { color: #a9a198; }
.admin-section-heading h2 { color: #fff; }
.admin-section-heading > p { margin: 0; color: #918a83; font-size: 9px; }
th { color: #a49c94; background: rgba(255, 255, 255, 0.07); }
td { color: #bcb5ad; border-bottom-color: rgba(255, 255, 255, 0.09); }
td strong { color: #fff; }
td small { color: #8d8782; }
.table-link,
.row-actions > a { color: #fff; }
.editor-card h2,
.auth-card h2 { color: #fff; }
.editor-card label,
.single-form-card label,
.auth-card label,
.person-editor-fields label,
.department-editor-fields label { color: #d2cbc3; }
.editor-card input,
.editor-card textarea,
.editor-card select,
.single-form-card input,
.single-form-card select,
.auth-card input,
.person-editor-fields input,
.department-editor-fields input {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px 2px 8px 2px;
  background: rgba(7, 7, 9, 0.48);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}
.editor-card input:focus,
.editor-card textarea:focus,
.editor-card select:focus,
.single-form-card input:focus,
.single-form-card select:focus,
.auth-card input:focus,
.person-editor-fields input:focus,
.department-editor-fields input:focus { border-color: rgba(255, 73, 93, 0.75); box-shadow: 0 0 0 4px rgba(255, 37, 61, 0.1); }
.editor-card label small,
.single-form-card label small,
.auth-card label small { color: #8f8881; }
.settings-card hr { border-top-color: rgba(255, 255, 255, 0.1); }
.form-alert.success { color: #c9ffe1; border-color: #31c379; background: rgba(29, 155, 96, 0.14); backdrop-filter: blur(14px); }
.form-alert.error { color: #ffd0d5; border-color: var(--red); background: rgba(255, 37, 61, 0.12); }
.auth-layout { background: #0b0a0a; }
.auth-form-panel { background: linear-gradient(rgba(15, 12, 10, 0.84), rgba(15, 12, 10, 0.94)), repeating-linear-gradient(90deg, #38271a 0, #38271a 3px, #21160f 3px, #21160f 10px); }
.auth-card > p,
.return-site,
.setup-hint { color: var(--admin-copy); }

/* Atalho visível na visão geral */
.leadership-shortcut {
  min-height: 280px;
  margin-bottom: 28px;
  padding: clamp(28px, 4vw, 50px);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px 4px 22px 4px;
  background: linear-gradient(125deg, rgba(255, 37, 61, 0.17), rgba(255, 255, 255, 0.075) 48%, rgba(164, 84, 197, 0.12));
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow: var(--admin-shadow), inset 0 1px rgba(255, 255, 255, 0.12);
}
.shortcut-copy > span { color: #ff6a7c; font-size: 8px; font-weight: 900; letter-spacing: 0.17em; text-transform: uppercase; }
.shortcut-copy h2 { max-width: 620px; margin: 13px 0; font-size: clamp(32px, 4vw, 52px); line-height: 0.98; letter-spacing: -0.055em; }
.shortcut-copy p { max-width: 630px; color: #b1aaa2; font-size: 12px; line-height: 1.7; }
.shortcut-copy a { width: fit-content; margin-top: 15px; padding: 13px 0; display: flex; gap: 44px; border-bottom: 1px solid #ff5367; font-size: 10px; font-weight: 900; }
.shortcut-copy a b { color: #ff5367; }
.shortcut-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; transform: rotate(-3deg); }
.shortcut-logos div { min-height: 102px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 13px 2px 13px 2px; background: rgba(6, 6, 9, 0.5); backdrop-filter: blur(12px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22); }
.shortcut-logos img { width: 72%; height: 72px; object-fit: contain; }

/* Fluxo de cadastro de lideranças */
.leadership-howto {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.leadership-howto > div { min-height: 110px; padding: 20px; display: grid; grid-template-columns: 40px 1fr; align-content: center; gap: 3px 13px; border: 1px solid var(--admin-line); border-radius: 13px 3px 13px 3px; background: var(--admin-glass); backdrop-filter: blur(18px); }
.leadership-howto span { grid-row: 1/3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #ff3047, #981126); font-size: 9px; font-weight: 900; }
.leadership-howto strong { font-size: 11px; }
.leadership-howto small { color: #8f8881; font-size: 8px; }
.leadership-editor-section { padding: clamp(22px, 3vw, 38px); }
.leadership-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person-editor-card,
.department-leader-editor {
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 18px 3px 18px 3px;
  background: rgba(6, 6, 8, 0.4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.06);
}
.person-editor-tag { min-height: 74px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, 0.055); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.person-editor-tag span { font-size: 15px; font-weight: 900; }
.person-editor-tag small { color: #918a83; font-size: 7px; letter-spacing: 0.12em; text-transform: uppercase; }
.photo-dropzone { display: block; margin: 18px; cursor: pointer; }
.leader-upload-preview {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px 3px 14px 3px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 37, 61, 0.18), transparent 27%), linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
}
.leader-upload-preview::after { inset: 14px; border-color: rgba(255, 255, 255, 0.07); }
.leader-upload-preview img { z-index: 1; object-fit: cover; }
.leader-upload-preview span,
.leader-upload-preview i,
.leader-upload-preview small { position: relative; z-index: 2; }
.leader-upload-preview span { font-size: 9px; letter-spacing: 0.15em; }
.leader-upload-preview i { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-size: 18px; font-weight: 900; background: rgba(255, 37, 61, 0.86); box-shadow: 0 12px 28px rgba(255, 37, 61, 0.22); }
.leader-upload-preview small { color: #98918a; font-size: 8px; }
.photo-action { min-height: 66px; margin-top: 9px; padding: 12px 15px; display: grid; grid-template-columns: 34px 1fr; align-content: center; gap: 2px 10px; border: 1px solid var(--admin-line); border-radius: 10px 2px 10px 2px; background: var(--admin-glass); }
.photo-action > b { grid-row: 1/3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.photo-action > span { font-size: 9px; font-weight: 900; }
.photo-action > small { color: #8d8680; font-size: 7px; }
.person-name-preview { padding: 2px 22px 20px; color: #fff; text-align: center; font-size: 25px; font-weight: 900; letter-spacing: -0.035em; }
.person-editor-fields,
.department-editor-fields { padding: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.035); }
.person-editor-fields label,
.department-editor-fields label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; font-size: 9px; font-weight: 900; }
.person-editor-fields input,
.department-editor-fields input { width: 100%; padding: 13px 14px; outline: 0; font-size: 11px; }
.remove-photo { color: #d8a3aa !important; }
.leadership-save { grid-column: 1/-1; justify-self: end; }
.department-editor-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.department-leader-editor { padding: 0; border-top: 4px solid var(--editor-accent); }
.department-editor-brand {
  height: 122px;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  color: #fff;
  background: rgba(5, 5, 8, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.department-editor-brand > span { grid-row: 1/3; align-self: start; color: #77716c; font-size: 8px; }
.department-editor-brand img { width: 100%; height: 65px; object-fit: contain; }
.department-editor-brand small { text-align: center; color: #a9a19a; font-size: 8px; font-weight: 900; }
.department-photo-dropzone { margin: 14px; }
.leader-upload-preview.compact { min-height: 340px; margin: 0; }
.department-leader-editor .leader-upload-preview i,
.department-leader-editor .admin-primary { background: var(--editor-accent); }
.department-name-preview { min-height: 64px; padding: 4px 18px 18px; font-size: 22px; }
.department-editor-fields { padding: 18px; }
@media (max-width: 1350px) {
  .department-editor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .leadership-shortcut { grid-template-columns: 1fr; }
  .leadership-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin-topbar { height: 70px; padding: 0 16px; }
  .admin-sidebar { top: auto; width: auto; padding: 7px 10px; background: rgba(8, 8, 10, 0.9); }
  .admin-main { margin-left: 0; padding: 104px 17px 105px; }
  .heading-actions { width: 100%; justify-content: stretch; }
  .heading-actions a { flex: 1; }
  .leadership-shortcut { padding: 25px; }
  .leadership-howto { grid-template-columns: 1fr; }
  .department-editor-grid { grid-template-columns: 1fr; }
  .leader-upload-preview,
  .leader-upload-preview.compact { min-height: 430px; }
  .leadership-save { width: 100%; }
  .admin-sidebar nav a:nth-child(n + 5) { display: flex; }
  .leadership-nav-link small { display: none; }
}
@media (max-width: 430px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid article {
    min-height: 120px;
  }
  .button-link {
    width: 100%;
  }
}

/* Editor de lideranças */
.leadership-editor-section { padding: 30px; margin-bottom: 26px; background: #fff; border: 1px solid var(--border); }
.leadership-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.leader-editor-card { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 20px; background: #f6f4ef; border: 1px solid #e4e1da; }
.leader-upload-preview { position: relative; min-height: 310px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; background: linear-gradient(145deg, #232431, #10111a); color: #fff; }
.leader-upload-preview::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255, 255, 255, 0.08); }
.leader-upload-preview img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.leader-upload-preview span,
.leader-upload-preview small { position: relative; z-index: 2; }
.leader-upload-preview span { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; }
.leader-upload-preview small { color: #858690; font-size: 8px; }
.leader-editor-fields { padding: 9px 0; }
.leader-editor-fields h3 { font-size: 27px; letter-spacing: -0.04em; margin: 0 0 22px; }
.leader-editor-fields label,
.department-leader-editor > label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; color: #565761; font-size: 9px; font-weight: 800; }
.leader-editor-fields input,
.department-leader-editor > label input { width: 100%; padding: 11px 12px; border: 1px solid #d9d6cf; background: #fff; outline: 0; font-size: 11px; }
.leader-editor-fields input:focus,
.department-leader-editor > label input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 37, 61, 0.08); }
.leader-editor-fields label small,
.department-leader-editor label small { color: #999aa2; font-size: 7px; font-weight: 400; }
.remove-photo { display: block !important; color: #8d5360 !important; font-size: 8px !important; }
.remove-photo input { width: auto !important; margin-right: 6px; }
.leadership-save { grid-column: 1/-1; justify-self: end; }
.department-editor-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.department-leader-editor { position: relative; padding: 18px; background: #f6f4ef; border: 1px solid #e2dfd8; }
.department-leader-editor::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--editor-accent); }
.department-editor-brand { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; padding: 10px; background: #10111a; color: #fff; }
.department-editor-brand img { width: 48%; height: 52px; object-fit: contain; }
.department-editor-brand strong { font-size: 9px; text-align: right; }
.leader-upload-preview.compact { min-height: 270px; margin-bottom: 18px; }
.department-leader-editor .admin-primary { background: var(--editor-accent); }
@media (max-width: 1350px) {
  .leadership-form-grid { grid-template-columns: 1fr; }
  .department-editor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .leader-editor-card { grid-template-columns: 180px 1fr; }
  .department-editor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .leadership-editor-section { padding: 18px; }
  .leader-editor-card { grid-template-columns: 1fr; }
  .leader-upload-preview { min-height: 380px; }
  .department-editor-grid { grid-template-columns: 1fr; }
  .leader-upload-preview.compact { min-height: 390px; }
  .leadership-save { width: 100%; }
  .admin-sidebar nav a:nth-child(n + 5) { display: flex; }
}

/* Precedência final do novo editor visual */
.leadership-editor-section {
  padding: clamp(22px, 3vw, 38px);
  margin-bottom: 26px;
  color: #f5f0e9;
  border: 1px solid var(--admin-line);
  border-radius: 18px 3px 18px 3px;
  background: linear-gradient(145deg, var(--admin-glass-strong), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: var(--admin-shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}
.leader-upload-preview {
  min-height: 420px;
  gap: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 14px 3px 14px 3px;
  background: radial-gradient(circle at 50% 30%, rgba(255, 37, 61, 0.18), transparent 27%), linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
}
.leader-upload-preview.compact { min-height: 340px; margin: 0; }
.department-leader-editor {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-top: 4px solid var(--editor-accent);
  border-radius: 18px 3px 18px 3px;
  background: rgba(6, 6, 8, 0.4);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.06);
}
.department-editor-brand {
  height: 122px;
  margin: 0;
  padding: 16px;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  color: #fff;
  background: rgba(5, 5, 8, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.department-editor-brand img { width: 100%; height: 65px; object-fit: contain; }
@media (max-width: 760px) {
  .leader-upload-preview,
  .leader-upload-preview.compact { min-height: 430px; }
}

/* Ações explícitas e configurações gerais */
.remove-photo-button {
  width: 100%;
  min-height: 48px;
  margin: 2px 0 16px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffabb5;
  border: 1px solid rgba(255, 66, 88, 0.52);
  border-radius: 9px 2px 9px 2px;
  background: rgba(255, 37, 61, 0.11);
  font-size: 10px;
  font-weight: 900;
}
.remove-photo-button:hover { color: #fff; background: rgba(255, 37, 61, 0.3); }
.remove-photo-button span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 37, 61, 0.28); font-size: 16px; }
.site-info-shortcut {
  margin: -8px 0 28px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px 3px 16px 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(164, 84, 197, 0.1));
  backdrop-filter: blur(18px);
  box-shadow: var(--admin-shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}
.site-info-shortcut > div > span { color: #ff6d7e; font-size: 8px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.site-info-shortcut h2 { margin: 8px 0; color: #fff; font-size: 25px; letter-spacing: -0.04em; }
.site-info-shortcut p { margin: 0; color: #a9a198; font-size: 10px; line-height: 1.55; }
.site-settings-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-editor-panel {
  padding: clamp(22px, 3vw, 34px);
  color: #f6f1eb;
  border: 1px solid var(--admin-line);
  border-radius: 18px 3px 18px 3px;
  background: linear-gradient(145deg, var(--admin-glass-strong), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(22px) saturate(135%);
  box-shadow: var(--admin-shadow), inset 0 1px rgba(255, 255, 255, 0.08);
}
.settings-editor-panel label { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; color: #d5cec6; font-size: 9px; font-weight: 900; }
.settings-editor-panel input,
.settings-editor-panel textarea {
  width: 100%;
  padding: 14px 15px;
  resize: vertical;
  outline: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px 2px 9px 2px;
  background: rgba(7, 7, 9, 0.5);
  font-size: 11px;
  line-height: 1.5;
}
.settings-editor-panel input:focus,
.settings-editor-panel textarea:focus { border-color: rgba(255, 73, 93, 0.8); box-shadow: 0 0 0 4px rgba(255, 37, 61, 0.1); }
.settings-editor-panel label > small { color: #8f8881; font-size: 8px; font-weight: 400; }
.settings-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.official-channel-lock { margin-top: 23px; padding: 16px; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(64, 181, 110, 0.35); border-radius: 11px 2px 11px 2px; background: rgba(38, 152, 86, 0.09); }
.official-channel-lock > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #238b52; font-weight: 900; }
.official-channel-lock > div { display: flex; flex-direction: column; gap: 3px; }
.official-channel-lock strong { font-size: 10px; }
.official-channel-lock small { color: #93aa9c; font-size: 8px; }
.settings-save-bar { grid-column: 1/-1; position: sticky; z-index: 5; bottom: 18px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid rgba(255, 255, 255, 0.17); border-radius: 15px 3px 15px 3px; background: rgba(10, 9, 10, 0.88); backdrop-filter: blur(24px); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42); }
.settings-save-bar > div { display: flex; flex-direction: column; gap: 3px; }
.settings-save-bar strong { color: #fff; font-size: 11px; }
.settings-save-bar > div span { color: #8f8881; font-size: 8px; }
@media (max-width: 1050px) {
  .site-settings-form { grid-template-columns: 1fr; }
  .settings-save-bar { grid-column: auto; }
}
@media (max-width: 760px) {
  .site-info-shortcut,
  .settings-save-bar { align-items: stretch; flex-direction: column; }
  .settings-field-grid { grid-template-columns: 1fr; }
  .settings-save-bar .admin-primary { width: 100%; }
  .admin-sidebar { overflow-x: auto; }
  .admin-sidebar nav { min-width: max-content; }
}
