:root {
  --navy-950: #04121f;
  --navy-900: #071c2c;
  --navy-850: #0a2538;
  --navy-800: #0d2e43;
  --navy-700: #17455d;
  --cyan-500: #14c9d4;
  --cyan-400: #4ee1e6;
  --green-500: #79dc82;
  --green-400: #a5ed8d;
  --yellow-400: #f3ca58;
  --white: #f7fbfc;
  --paper: #ffffff;
  --ink: #0e2634;
  --muted: #637b87;
  --line: #d9e7eb;
  --soft: #edf6f7;
  --danger: #c04457;
  --success: #207a57;
  --shadow: 0 20px 60px rgba(2, 23, 35, 0.12);
  --shadow-soft: 0 12px 35px rgba(2, 23, 35, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: #f5fafb;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.auth-loading-screen {
  display: none;
}

html.auth-pending body {
  overflow: hidden;
}

html.auth-pending body > :not(.auth-loading-screen) {
  visibility: hidden !important;
}

html.auth-pending .auth-loading-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(49, 221, 178, 0.13), transparent 32%),
    #f5fafb;
}

.auth-loading-content {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy-900);
}

.auth-loading-content .brand-mark {
  animation: auth-loading-pulse 1.15s ease-in-out infinite alternate;
}

.auth-loading-content > span:last-child {
  display: grid;
  gap: 1px;
}

.auth-loading-content strong {
  font-size: 0.9rem;
}

.auth-loading-content small {
  color: var(--muted);
  font-size: 0.72rem;
}

@keyframes auth-loading-pulse {
  from {
    opacity: 0.58;
    transform: scale(0.94);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 18, 31, 0.92);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 36px), var(--max-width));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.dialog-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--green-400), var(--cyan-500));
  color: var(--navy-950);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(20, 201, 212, 0.26);
}

.brand strong,
.dialog-brand strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand small,
.dialog-brand small {
  display: block;
  margin-top: -3px;
  color: #9fc1ca;
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav > a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #c5d9de;
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav > a:hover,
.main-nav > a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.main-nav > a.external-site-link {
  margin-right: 5px;
  border: 1px solid rgba(165, 237, 141, 0.25);
  background: rgba(165, 237, 141, 0.07);
  color: var(--green-400);
}

.main-nav > a.external-site-link:hover,
.main-nav > a.external-site-link:focus-visible {
  background: rgba(165, 237, 141, 0.14);
  color: var(--white);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-400), var(--cyan-400));
  color: var(--navy-950);
  box-shadow: 0 12px 28px rgba(31, 204, 193, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(31, 204, 193, 0.28);
}

.btn-outline {
  min-height: 40px;
  margin-left: 6px;
  border-color: rgba(78, 225, 230, 0.48);
  background: rgba(78, 225, 230, 0.08);
  color: var(--cyan-400);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

.btn-small {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--white);
  font-size: 0.84rem;
}

.user-menu-button {
  min-height: 44px;
  padding: 4px 10px 4px 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 110px max(30px, calc((100% - var(--max-width)) / 2)) 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(31, 164, 179, 0.15), transparent 30%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 55%, #073648);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(78, 225, 230, 0.5), transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  pointer-events: none;
}

.hero-glow-one {
  top: -120px;
  right: 15%;
  width: 360px;
  height: 360px;
  background: rgba(78, 225, 230, 0.09);
}

.hero-glow-two {
  bottom: -240px;
  left: 30%;
  width: 520px;
  height: 520px;
  background: rgba(121, 220, 130, 0.07);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--cyan-500);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--cyan-400);
}

.hero h1 {
  max-width: 760px;
  margin: 22px 0;
  font-size: clamp(2.8rem, 5.4vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  background: linear-gradient(90deg, var(--green-400), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.hero-content > p {
  max-width: 670px;
  color: #bfd2d8;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #9ebac2;
  font-size: 0.84rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 5px rgba(165, 237, 141, 0.09);
}

.hero-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.hero-card-top {
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #c9dce1;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pill {
  padding: 5px 10px;
  border: 1px solid rgba(78, 225, 230, 0.25);
  border-radius: 99px;
  background: rgba(78, 225, 230, 0.08);
  color: var(--cyan-400);
  font-size: 0.67rem;
}

.flow-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-list li:last-child {
  padding-bottom: 4px;
  border-bottom: 0;
}

.flow-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(78, 225, 230, 0.1);
  color: var(--cyan-400);
  font-size: 0.74rem;
  font-weight: 900;
}

.flow-list strong {
  display: block;
  color: var(--white);
}

.flow-list p {
  margin: 4px 0 0;
  color: #9ebbc3;
  font-size: 0.87rem;
}

.public-section,
.private-area,
.new-post-section,
.locked-section {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  padding: 90px 0;
}

.section-heading,
.dashboard-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.section-heading h2,
.dashboard-heading h2 {
  margin: 7px 0 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.section-heading > p,
.dashboard-heading > div > p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
}

.public-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 26px;
}

.panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

form label {
  margin-bottom: 20px;
  display: block;
  color: #28424f;
  font-size: 0.83rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cddde2;
  border-radius: 12px;
  outline: 0;
  background: #fbfdfd;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

input,
select {
  min-height: 49px;
  padding: 0 14px;
}

.category-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
  padding-right: 14px;
}

textarea {
  min-height: 120px;
  padding: 13px 14px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan-500);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(20, 201, 212, 0.1);
}

.field-hint {
  margin-top: 6px;
  display: block;
  color: #80939b;
  font-size: 0.72rem;
  font-weight: 500;
  text-align: right;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.consent-row input {
  width: 18px;
  min-height: auto;
  height: 18px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--cyan-500);
}

.consent-row a,
.login-help a {
  color: #087b85;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-footer {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.form-footer p {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.privacy-card {
  position: sticky;
  top: 106px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow);
}

.privacy-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--green-400), var(--cyan-400));
  color: var(--navy-950);
  font-weight: 950;
}

.privacy-card h3 {
  margin: 22px 0 10px;
  font-size: 1.45rem;
}

.privacy-card p {
  color: #aac2c9;
  font-size: 0.9rem;
}

.privacy-card ul {
  margin: 23px 0;
  padding: 20px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  list-style: none;
}

.privacy-card li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: #c7dadd;
  font-size: 0.83rem;
}

.privacy-card li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
}

.privacy-card-link {
  display: inline-block;
  margin: -3px 0 22px;
  color: var(--green-400);
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan-400);
  font-weight: 800;
}

.text-button span {
  margin-left: 5px;
}

.private-area {
  max-width: var(--max-width);
  padding-top: 90px;
}

.is-authenticated .private-area {
  padding-top: 54px;
}

.is-authenticated .private-area::before {
  display: none;
}

.private-area::before,
.new-post-section::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-bottom: 90px;
  background: var(--line);
}

.stats-grid {
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  box-shadow: 0 8px 25px rgba(2, 23, 35, 0.045);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
}

.stat-card small {
  color: #82949c;
}

.feed-toolbar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.feed-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.feed-title h3 {
  margin: 0;
  font-size: 1.35rem;
}

.feed-title span {
  color: var(--muted);
  font-size: 0.8rem;
}

.feed-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.feed-controls label {
  margin: 0;
}

.feed-controls input,
.feed-controls select {
  min-height: 42px;
  margin: 0;
  background: var(--paper);
  font-size: 0.82rem;
}

.search-box {
  position: relative;
}

.search-box span[aria-hidden] {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input {
  width: 190px;
  padding-left: 33px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.15rem;
}

.feed-list {
  display: grid;
  gap: 18px;
}

.feed-empty,
.feed-loading {
  min-height: 280px;
  padding: 45px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed #bcd1d6;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.empty-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--soft);
  color: var(--cyan-500);
  font-size: 1.6rem;
  font-weight: 950;
}

.feed-empty h3 {
  margin: 17px 0 5px;
}

.feed-empty p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
}

.feed-loading::before {
  content: "";
  width: 36px;
  height: 36px;
  border: 4px solid #d9eaed;
  border-top-color: var(--cyan-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 8px 32px rgba(2, 23, 35, 0.055);
}

.post-header,
.post-footer {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.post-header {
  border-bottom: 1px solid #e5eef0;
}

.post-author,
.account-summary {
  display: flex;
  align-items: center;
  gap: 11px;
}

.avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--navy-800), var(--cyan-500));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.avatar-small {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.68rem;
}

.post-author strong,
.account-summary strong {
  display: block;
  font-size: 0.9rem;
}

.post-author small,
.account-summary small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
}

.category-badge {
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--navy-700);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.category-badge[data-kind="noticia"] { background: #e8f7ec; color: #287042; }
.category-badge[data-kind="problema"] { background: #fbecef; color: #a03549; }
.category-badge[data-kind="jogo"] { background: #e9f5fb; color: #1c6686; }
.category-badge[data-kind="melhoria"] { background: #fff5d9; color: #866319; }

.post-content {
  padding: 26px 24px;
}

.post-content h3 {
  margin: 0 0 10px;
  font-size: 1.32rem;
  letter-spacing: -0.025em;
}

.post-body {
  margin: 0;
  color: #405964;
  white-space: pre-wrap;
}

.post-image-wrap {
  margin-top: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--soft);
}

.post-image {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.post-footer {
  border-top: 1px solid #e5eef0;
  background: #fbfdfd;
}

.comment-toggle {
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.delete-button {
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--danger);
  font-size: 0.76rem;
  font-weight: 850;
  transition: background 0.2s ease, color 0.2s ease;
}

.delete-button:hover,
.delete-button:focus-visible {
  background: #fae9ed;
  color: #9f273d;
}

.delete-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.comments-panel {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: #f7fbfb;
}

.comments-list {
  display: grid;
  gap: 11px;
}

.comment {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
}

.comment-meta {
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-meta strong {
  font-size: 0.78rem;
}

.comment-meta time {
  color: #899ba2;
  font-size: 0.68rem;
}

.comment-meta-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.delete-comment-button {
  padding: 3px 7px;
  font-size: 0.68rem;
}

.comment p {
  margin: 0;
  color: #425b66;
  font-size: 0.84rem;
  white-space: pre-wrap;
}

.comments-empty {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.comment-form {
  margin-top: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 9px;
}

.comment-form label {
  margin: 0;
}

.comment-form textarea {
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
}

.new-post-section {
  padding-top: 0;
}

.new-post-section > .section-heading,
.post-form {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.upload-box {
  min-height: 96px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px dashed #a9c7ce;
  border-radius: 16px;
  background: #f7fbfb;
  cursor: pointer;
}

.upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e4f5f5;
  color: var(--cyan-500);
  font-size: 1.3rem;
}

.upload-box strong,
.upload-box small {
  display: block;
}

.upload-box small,
.upload-name {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.image-preview {
  position: relative;
  width: min(100%, 520px);
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--soft);
}

.image-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.image-preview .icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(4, 18, 31, 0.8);
  color: var(--white);
}

.locked-section {
  padding-top: 0;
}

.locked-card {
  padding: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
}

.lock-symbol {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(145deg, var(--green-400), var(--cyan-400));
  color: var(--navy-950);
  font-size: 1.8rem;
  font-weight: 950;
}

.locked-card h2 {
  margin: 5px 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
}

.locked-card p {
  margin: 0;
  color: #a9c1c8;
}

.site-footer {
  padding: 50px max(30px, calc((100% - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  background: var(--navy-950);
  color: var(--white);
}

.site-footer strong {
  font-size: 1.1rem;
}

.site-footer p {
  margin: 5px 0 0;
  color: #8eabb4;
  font-size: 0.82rem;
}

.site-footer > div p a {
  color: var(--cyan-400);
  font-weight: 750;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: #bed1d7;
  font-size: 0.85rem;
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.login-dialog {
  width: min(calc(100% - 32px), 460px);
  padding: 34px;
  border: 0;
  border-radius: 26px;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
}

.login-dialog::backdrop {
  background: rgba(1, 12, 20, 0.74);
  backdrop-filter: blur(6px);
}

.confirmation-dialog {
  width: min(calc(100% - 32px), 470px);
  padding: 36px;
  border: 1px solid rgba(192, 68, 87, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 0, rgba(192, 68, 87, 0.09), transparent 38%),
    var(--paper);
  color: var(--ink);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.confirmation-dialog::backdrop {
  background: rgba(1, 12, 20, 0.74);
  backdrop-filter: blur(6px);
}

.confirmation-icon {
  width: 62px;
  height: 62px;
  margin: 4px auto 20px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #fae9ed;
  color: var(--danger);
  font-size: 1.75rem;
  font-weight: 950;
  box-shadow: 0 12px 28px rgba(192, 68, 87, 0.12);
}

.confirmation-dialog h2 {
  margin: 8px 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.confirmation-dialog > p {
  margin: 0 auto;
  max-width: 360px;
  color: var(--muted);
}

.confirmation-actions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.btn-cancel {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
}

.btn-danger {
  background: linear-gradient(135deg, #d25568, #ad3047);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(173, 48, 71, 0.22);
}

.btn-danger:hover {
  box-shadow: 0 16px 34px rgba(173, 48, 71, 0.3);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  font-size: 1.35rem;
}

.dialog-brand {
  margin-bottom: 28px;
}

.dialog-brand small {
  color: var(--muted);
}

.login-dialog h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.login-dialog > p {
  margin: 6px 0 26px;
  color: var(--muted);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 78px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy-700);
  font-size: 0.7rem;
  font-weight: 800;
  transform: translateY(-40%);
}

.login-help {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 0.75rem;
}

.form-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 0.8rem;
  text-align: center;
}

.account-menu {
  position: fixed;
  z-index: 120;
  top: 68px;
  right: max(18px, calc((100% - var(--max-width)) / 2));
  width: 270px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.account-menu button {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: #faeef0;
  color: var(--danger);
  font-weight: 800;
}

.setup-banner {
  position: fixed;
  z-index: 130;
  right: 18px;
  bottom: 18px;
  max-width: 390px;
  padding: 13px 16px;
  display: grid;
  border: 1px solid #e7cb79;
  border-radius: 14px;
  background: #fff8df;
  color: #725b1a;
  box-shadow: var(--shadow);
  font-size: 0.78rem;
}

.toast-region {
  position: fixed;
  z-index: 150;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 9px;
}

.toast {
  min-width: 290px;
  max-width: 420px;
  padding: 13px 16px;
  border-left: 4px solid var(--success);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
}

.toast.error {
  border-left-color: var(--danger);
}

.toast strong {
  display: block;
  font-size: 0.84rem;
}

.toast span {
  color: var(--muted);
  font-size: 0.76rem;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    padding: 16px 18px 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--navy-950);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a {
    padding: 12px;
  }

  .main-nav > a.external-site-link {
    margin-right: 0;
  }

  .main-nav .btn,
  .user-menu-button {
    width: 100%;
    margin: 4px 0 0;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-card {
    max-width: 620px;
  }

  .public-grid {
    grid-template-columns: 1fr;
  }

  .privacy-card {
    position: static;
  }

  .feed-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-controls {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  .nav-shell {
    min-height: 68px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 82px 20px 68px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .public-section,
  .private-area,
  .new-post-section,
  .locked-section {
    width: min(calc(100% - 28px), var(--max-width));
    padding: 70px 0;
  }

  .section-heading,
  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .panel {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .feed-controls {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .feed-controls label:first-child {
    grid-column: 1 / -1;
  }

  .search-box input {
    width: 100%;
  }

  .post-header,
  .post-footer,
  .post-content,
  .comments-panel {
    padding-right: 17px;
    padding-left: 17px;
  }

  .post-header {
    align-items: flex-start;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-form .avatar {
    display: none;
  }

  .comment-form .btn {
    justify-self: end;
  }

  .upload-box {
    grid-template-columns: auto 1fr;
  }

  .upload-name {
    grid-column: 1 / -1;
  }

  .locked-card {
    padding: 30px 22px;
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .login-dialog {
    padding: 28px 22px;
  }

  .confirmation-dialog {
    padding: 30px 20px 22px;
  }

  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .setup-banner,
  .toast-region {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .toast {
    min-width: 0;
  }
}

.survey-invite {
  width: min(100%, 690px);
  margin-top: 22px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.survey-invite div {
  display: grid;
  gap: 4px;
}

.survey-invite strong {
  color: var(--white);
  font-size: 0.92rem;
}

.survey-invite span {
  color: #b9d0d8;
  font-size: 0.78rem;
}

.btn-survey {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.24);
  background: var(--white);
  color: var(--navy-900);
}

.btn-survey:hover {
  background: var(--green-300);
  color: var(--navy-950);
}

.survey-results-panel {
  margin: 34px 0 42px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(49, 221, 178, 0.11), transparent 34%),
    var(--white);
  box-shadow: var(--shadow-sm);
}

.survey-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.survey-results-header h3 {
  margin: 8px 0 6px;
  color: var(--navy-900);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

.survey-results-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.survey-refresh-area {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.survey-dashboard-message {
  margin: 24px 0 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.survey-overview-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.survey-metric {
  min-width: 0;
  padding: 20px;
  border: 1px solid #dbe8eb;
  border-radius: 18px;
  background: #f9fcfc;
}

.metric-title-row,
.chart-title-row,
.chart-label-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.metric-title-row,
.chart-title-row {
  justify-content: space-between;
}

.metric-title-row > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-help {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
}

.metric-help[open] {
  z-index: 100;
}

.metric-help summary {
  position: relative;
  z-index: 1;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #afcbd0;
  border-radius: 50%;
  background: #ffffff;
  color: #176873;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.metric-help summary::-webkit-details-marker {
  display: none;
}

.metric-help summary:hover,
.metric-help summary:focus-visible,
.metric-help[open] summary {
  border-color: var(--cyan-500);
  background: #e9fbf7;
  color: #07584d;
  outline: none;
}

.metric-help summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(20, 201, 212, 0.18);
}

.metric-help p {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 2;
  width: min(270px, calc(100vw - 48px));
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #c7dfe3;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(7, 38, 49, 0.16);
  color: #36505b;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
}

.chart-label-wrap .metric-help p {
  right: auto;
  left: 0;
}

.survey-metric > strong {
  margin: 8px 0 2px;
  display: block;
  color: var(--navy-900);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.survey-metric > strong small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.survey-metric > small {
  color: #82949b;
  font-size: 0.7rem;
}

.survey-score-card,
.survey-chart-card {
  border: 1px solid #dbe8eb;
  border-radius: 20px;
  background: var(--white);
}

.survey-score-card {
  margin-top: 18px;
  padding: 24px;
}

.chart-card-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chart-card-heading h4,
.survey-chart-card h4 {
  margin: 0;
  color: var(--navy-900);
  font-size: 0.98rem;
}

.chart-card-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.chart-scale-label {
  padding: 6px 9px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.score-chart,
.distribution-chart {
  display: grid;
  gap: 13px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.25fr) minmax(120px, 3fr) 54px;
  align-items: center;
  gap: 12px;
}

.chart-row-label {
  min-width: 0;
  color: #36505b;
  font-size: 0.75rem;
  font-weight: 700;
}

.chart-label-wrap .chart-row-label {
  overflow-wrap: anywhere;
}

.chart-bar-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid #d5e9e3;
  border-radius: 99px;
  background: #ffffff;
  box-shadow: inset 0 1px 3px rgba(7, 88, 77, 0.08);
}

.chart-bar-fill {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f9f86 0%, var(--green-400) 56%, #86e9b7 100%);
  box-shadow: 0 0 10px rgba(49, 221, 178, 0.22);
  transition: width 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-row-value {
  color: var(--navy-900);
  font-size: 0.75rem;
  font-weight: 900;
  text-align: right;
}

.survey-charts-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.survey-chart-card {
  padding: 22px;
}

.survey-chart-card .chart-title-row {
  margin-bottom: 18px;
}

.survey-chart-card .chart-title-row h4 {
  margin: 0;
}

.survey-chart-card .chart-row {
  grid-template-columns: minmax(105px, 1.3fr) minmax(90px, 2fr) 60px;
}

.chart-empty {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.survey-details-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.survey-details-toggle {
  min-width: 210px;
}

.survey-admin-panel {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid #bad9dd;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(20, 201, 212, 0.07), rgba(49, 221, 178, 0.04)),
    #f9fcfc;
}

.survey-admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.admin-badge {
  width: fit-content;
  padding: 5px 9px;
  display: inline-flex;
  border-radius: 99px;
  border: 1px solid #89d5bf;
  background: #dcf8ee;
  color: #07584d;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.survey-admin-heading h4 {
  margin: 9px 0 5px;
  color: var(--navy-900);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.survey-admin-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.btn-outline-dark {
  flex: 0 0 auto;
  border: 1px solid #b7d0d5;
  background: var(--white);
  color: var(--navy-900);
}

.btn-outline-dark:hover {
  border-color: var(--cyan-500);
  background: var(--navy-900);
  color: var(--white);
}

.survey-admin-content {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #d6e5e8;
}

.survey-admin-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.survey-admin-toolbar > span {
  color: var(--navy-900);
  font-size: 0.76rem;
  font-weight: 900;
}

.survey-admin-message {
  margin: 0;
  padding: 16px;
  border-radius: 13px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.survey-admin-list {
  display: grid;
  gap: 12px;
}

.survey-admin-pagination {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr);
  align-items: center;
  gap: 14px;
}

.survey-admin-pagination .btn:first-child {
  justify-self: start;
}

.survey-admin-pagination .btn:last-child {
  justify-self: end;
}

.survey-admin-pagination > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.survey-admin-pagination .btn:disabled {
  border-color: #dbe6e8;
  background: #f3f7f7;
  color: #a2b0b5;
  cursor: not-allowed;
}

.survey-export-area {
  margin-top: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #a9ddcc;
  border-radius: 16px;
  background: linear-gradient(135deg, #edfbf6, #f8fdfb);
}

.survey-export-area strong {
  display: block;
  color: var(--navy-900);
  font-size: 0.86rem;
}

.survey-export-area p {
  max-width: 610px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.survey-export-area .btn {
  flex: 0 0 auto;
}

.survey-response-card {
  overflow: hidden;
  border: 1px solid #d4e3e6;
  border-radius: 16px;
  background: var(--white);
}

.survey-response-card summary {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}

.survey-response-card summary::-webkit-details-marker {
  display: none;
}

.survey-response-card summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 900;
}

.survey-response-card[open] summary::after {
  content: "−";
}

.survey-response-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.survey-response-identity strong {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-response-identity small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-response-date {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}

.survey-response-details {
  padding: 20px 18px;
  border-top: 1px solid #e1ebed;
  background: #fbfdfd;
}

.survey-response-section + .survey-response-section {
  margin-top: 20px;
}

.survey-response-section h5 {
  margin: 0 0 10px;
  color: var(--navy-900);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.survey-response-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.survey-response-field {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e0eaec;
  border-radius: 11px;
  background: var(--white);
}

.survey-response-field span,
.survey-response-field strong {
  display: block;
}

.survey-response-field span {
  margin-bottom: 3px;
  color: #87979d;
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.survey-response-field strong {
  overflow-wrap: anywhere;
  color: #304a55;
  font-size: 0.76rem;
}

.survey-response-actions {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #e1ebed;
}

.survey-response-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.survey-response-actions .delete-button {
  flex: 0 0 auto;
}

.survey-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(20, 201, 212, 0.1), transparent 30%),
    #f4f8f8;
}

.survey-topbar {
  width: min(calc(100% - 40px), 1040px);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.survey-topbar .brand {
  color: var(--navy-900);
}

.survey-shell {
  width: min(calc(100% - 40px), 900px);
  margin: 32px auto 80px;
}

.survey-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 0;
  text-align: center;
}

.survey-intro h1 {
  margin: 10px 0 14px;
  color: var(--navy-900);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.survey-intro > p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.96rem;
}

.survey-privacy-note {
  width: fit-content;
  max-width: 680px;
  margin: 20px auto 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d7e6e8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.survey-privacy-note > span {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #daf6e7;
  color: #23714b;
  font-size: 0.72rem;
  font-weight: 900;
}

.survey-privacy-note p {
  margin: 0;
  color: #607982;
  font-size: 0.76rem;
  text-align: left;
}

.survey-form {
  padding: 32px;
}

.survey-access-message {
  margin: 0;
  padding: 22px;
  border: 1px solid #d9e7e9;
  border-radius: 16px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.survey-access-message.error {
  border-color: #efd3d9;
  background: #fff7f8;
  color: #a33b4e;
}

.survey-progress {
  position: sticky;
  z-index: 4;
  top: 82px;
  margin: -10px 0 30px;
  padding: 14px 16px;
  border: 1px solid #d9e7e9;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 25px rgba(12, 46, 60, 0.08);
  backdrop-filter: blur(10px);
}

.survey-progress > div:first-child {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.72rem;
}

.survey-progress strong {
  color: var(--navy-900);
}

.survey-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6eff1;
}

.survey-progress-track span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-500), var(--green-400));
  transition: width 0.25s ease;
}

.survey-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.survey-group + .survey-group {
  margin-top: 42px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.survey-group > legend {
  padding: 0;
  color: var(--navy-900);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.survey-group-description {
  margin: 5px 0 24px;
  color: var(--muted);
  font-size: 0.8rem;
}

.survey-question {
  margin: 0 0 26px;
  display: block;
}

.survey-question > span,
.survey-question > legend {
  margin-bottom: 9px;
  display: block;
  color: #28424f;
  font-size: 0.9rem;
  font-weight: 800;
}

.survey-question b {
  width: 25px;
  height: 25px;
  margin-right: 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f5f5;
  color: var(--cyan-600);
  font-size: 0.7rem;
  vertical-align: middle;
}

.scale-question,
.choice-question {
  padding: 0;
  border: 0;
}

.scale-options {
  display: grid;
  grid-template-columns: repeat(10, minmax(34px, 1fr));
  gap: 7px;
}

.scale-options label,
.choice-options label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.scale-options input,
.choice-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.scale-options label > span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cedde1;
  border-radius: 10px;
  background: #fbfdfd;
  color: #526a73;
  font-size: 0.8rem;
  font-weight: 900;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.scale-options label:hover > span,
.choice-options label:hover > span {
  border-color: var(--cyan-500);
  transform: translateY(-1px);
}

.scale-options input:focus-visible + span,
.choice-options input:focus-visible + span {
  outline: 3px solid rgba(20, 201, 212, 0.2);
  outline-offset: 2px;
}

.scale-options input:checked + span,
.choice-options input:checked + span {
  border-color: var(--cyan-500);
  background: var(--navy-900);
  color: var(--white);
}

.scale-legend {
  margin-top: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #87989e;
  font-size: 0.64rem;
}

.choice-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-options label > span {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid #cedde1;
  border-radius: 12px;
  background: #fbfdfd;
  color: #526a73;
  font-size: 0.8rem;
  font-weight: 800;
}

.survey-consent {
  margin-top: 34px;
  padding: 18px;
  border-radius: 14px;
  background: #f1f7f7;
}

.survey-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.survey-submit-area {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.survey-submit-area p {
  flex: 1;
  margin: 0;
  color: #a33b4e;
  font-size: 0.78rem;
}

.survey-success,
.survey-member-notice {
  padding: 48px 34px;
  text-align: center;
}

.survey-success-mark {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-300), var(--cyan-400));
  color: var(--navy-950);
  font-size: 1.8rem;
  font-weight: 900;
}

.survey-success h2,
.survey-member-notice h2 {
  margin: 0 0 8px;
  color: var(--navy-900);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.survey-success p,
.survey-member-notice p {
  margin: 0 auto;
  color: var(--muted);
}

.survey-success > div {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.survey-member-notice .lock-symbol {
  margin: 0 auto 18px;
}

.survey-member-notice .btn {
  margin-top: 22px;
}

.survey-footer {
  padding: 34px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--navy-950);
  color: #adc3ca;
  font-size: 0.76rem;
}

.survey-footer a {
  color: var(--white);
  font-weight: 900;
}

.survey-footer p {
  margin: 0;
}

.survey-footer nav {
  display: flex;
  gap: 14px;
}

.survey-footer nav a {
  color: #adc3ca;
  font-weight: 750;
}

.survey-footer nav a:hover,
.survey-footer nav a:focus-visible {
  color: var(--cyan-400);
}

.survey-legal-note {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(20, 201, 212, 0.22);
  border-radius: 16px;
  background: #effafb;
}

.survey-legal-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy-900);
}

.survey-legal-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .survey-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .survey-invite,
  .survey-results-header,
  .survey-submit-area,
  .survey-success > div,
  .survey-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-invite .btn {
    width: 100%;
  }

  .survey-results-panel {
    padding: 22px 16px;
  }

  .survey-admin-heading,
  .survey-response-actions,
  .survey-export-area {
    align-items: stretch;
    flex-direction: column;
  }

  .survey-admin-heading .btn,
  .survey-response-actions .delete-button,
  .survey-export-area .btn {
    width: 100%;
  }

  .survey-response-card summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .survey-response-date {
    display: none;
  }

  .survey-admin-pagination {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .survey-admin-pagination > span {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: normal;
  }

  .survey-admin-pagination .btn {
    width: 100%;
  }

  .survey-admin-pagination .btn:first-child,
  .survey-admin-pagination .btn:last-child {
    justify-self: stretch;
  }

  .survey-response-grid {
    grid-template-columns: 1fr;
  }

  .survey-refresh-area {
    justify-content: space-between;
  }

  .survey-overview-grid {
    grid-template-columns: 1fr;
  }

  .chart-row,
  .survey-chart-card .chart-row {
    grid-template-columns: minmax(95px, 1.2fr) minmax(70px, 2fr) 52px;
    gap: 8px;
  }

  .survey-topbar,
  .survey-shell {
    width: min(calc(100% - 24px), 900px);
  }

  .survey-topbar {
    min-height: 72px;
  }

  .survey-topbar .brand small {
    display: none;
  }

  .survey-topbar .btn {
    padding-right: 13px;
    padding-left: 13px;
  }

  .survey-shell {
    margin-top: 20px;
  }

  .survey-form {
    padding: 22px 16px;
  }

  .survey-progress {
    top: 70px;
  }

  .scale-options {
    grid-template-columns: repeat(5, minmax(38px, 1fr));
  }

  .choice-options {
    grid-template-columns: 1fr;
  }

  .survey-submit-area .btn {
    width: 100%;
  }

  .survey-success,
  .survey-member-notice {
    padding: 38px 20px;
  }

  .survey-success > div .btn {
    width: 100%;
  }

  .survey-footer {
    gap: 6px;
    text-align: center;
  }
}

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

/* Páginas institucionais */
.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 8%, rgba(20, 201, 212, 0.09), transparent 25%),
    #f5fafb;
}

.legal-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 76px;
  padding: 0 max(24px, calc((100% - var(--max-width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 18, 31, 0.95);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-nav > a:not(.btn) {
  padding: 9px 12px;
  border-radius: 10px;
  color: #c3d8de;
  font-size: 0.85rem;
  font-weight: 750;
}

.legal-nav > a:not(.btn):hover,
.legal-nav > a:not(.btn):focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.legal-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 44px auto 80px;
}

.legal-hero {
  position: relative;
  padding: clamp(36px, 6vw, 68px);
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 88% 16%, rgba(121, 220, 130, 0.17), transparent 24%),
    linear-gradient(145deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  box-shadow: var(--shadow);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(78, 225, 230, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(78, 225, 230, 0.035),
    0 0 0 68px rgba(78, 225, 230, 0.025);
}

.legal-hero .section-kicker,
.legal-hero h1,
.legal-hero > p,
.legal-hero .legal-meta,
.legal-hero .about-actions {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  max-width: 850px;
  margin: 10px 0 14px;
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.legal-hero > p {
  max-width: 780px;
  margin: 0;
  color: #c3d9df;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
}

.legal-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.legal-meta span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #bcd3d9;
  font-size: 0.74rem;
  font-weight: 750;
}

.legal-layout {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.legal-summary {
  position: sticky;
  top: 105px;
  padding: 25px;
  border: 1px solid rgba(20, 201, 212, 0.18);
  border-radius: 22px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.legal-summary > strong {
  font-size: 1.05rem;
}

.legal-summary ul {
  margin: 18px 0 20px;
  padding: 18px 0;
  display: grid;
  gap: 10px;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
  list-style: none;
}

.legal-summary li {
  position: relative;
  padding-left: 18px;
  color: #bed2d8;
  font-size: 0.79rem;
}

.legal-summary li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-400);
}

.legal-summary > a {
  color: var(--cyan-400);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-content {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.legal-section + .legal-section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--navy-900);
  font-size: clamp(1.28rem, 2.5vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-section h3 {
  margin: 24px 0 6px;
  color: var(--navy-800);
  font-size: 1rem;
}

.legal-section p {
  margin: 0;
  color: #526d79;
}

.legal-section p + p {
  margin-top: 13px;
}

.legal-section ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: #526d79;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: #087b85;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-highlight {
  padding: 26px !important;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  border: 1px solid rgba(20, 201, 212, 0.25) !important;
  border-radius: 20px;
  background: linear-gradient(145deg, #edfafa, #f6fcf6);
}

.legal-highlight-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--green-400), var(--cyan-400));
  color: var(--navy-950);
  font-weight: 950;
}

.legal-highlight h2 {
  margin-top: 4px;
}

.legal-reference-list {
  list-style: none;
  padding-left: 0 !important;
}

.legal-reference-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fcfc;
}

.legal-footer {
  padding: 38px max(24px, calc((100% - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 28px;
  background: var(--navy-950);
  color: var(--white);
}

.legal-footer strong {
  font-size: 1.05rem;
}

.legal-footer p {
  margin: 3px 0 0;
  color: #91abb4;
  font-size: 0.78rem;
}

.legal-footer > p {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.legal-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #c1d5da;
  font-size: 0.82rem;
  font-weight: 750;
}

.legal-footer a:hover,
.legal-footer a:focus-visible {
  color: var(--cyan-400);
}

.about-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-actions .btn-outline {
  margin-left: 0;
}

.about-grid {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.about-grid article > span {
  color: #0c8992;
  font-size: 0.75rem;
  font-weight: 900;
}

.about-grid h2 {
  margin: 10px 0 7px;
  color: var(--navy-900);
  font-size: 1.22rem;
  letter-spacing: -0.035em;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.about-content {
  max-width: 890px;
  margin: 0 auto;
}

.about-contact {
  padding: 28px !important;
  border: 0 !important;
  border-radius: 20px;
  background: var(--navy-900);
}

.about-contact h2,
.about-contact p {
  color: var(--white);
}

.about-contact p {
  color: #bcd1d7;
}

.about-contact > a {
  display: inline-block;
  margin-top: 16px;
  color: var(--green-400);
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-summary {
    position: static;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .legal-topbar {
    min-height: 70px;
    padding: 10px 14px;
  }

  .legal-topbar .brand small {
    display: none;
  }

  .legal-nav > a:not(.btn) {
    display: none;
  }

  .legal-nav .btn {
    min-height: 40px;
    margin-left: 0;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .legal-shell {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 20px auto 46px;
  }

  .legal-hero {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .legal-hero h1 {
    font-size: clamp(2.2rem, 14vw, 3.25rem);
  }

  .legal-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-content {
    padding: 28px 20px;
    border-radius: 22px;
  }

  .legal-highlight {
    grid-template-columns: 1fr;
    padding: 20px !important;
  }

  .legal-footer {
    grid-template-columns: 1fr;
  }

  .legal-footer nav {
    gap: 8px 14px;
  }

  .legal-footer > p {
    grid-column: auto;
  }

  .about-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .about-actions .btn {
    width: 100%;
  }

  .about-grid article {
    padding: 23px;
  }

  .survey-footer nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.admin-users-panel {
  margin: 34px 0 42px;
  padding: 30px;
  border: 1px solid #b9d9d4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(49, 221, 178, 0.12), transparent 34%),
    linear-gradient(135deg, #f8fcfb, #f2f9f9);
  box-shadow: var(--shadow-soft);
}

.admin-users-heading,
.admin-users-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.admin-users-heading h3 {
  margin: 9px 0 5px;
  color: var(--navy-900);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
}

.admin-users-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-users-content {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid #d3e5e3;
}

.admin-users-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 22px;
}

.admin-user-form,
.admin-users-directory {
  padding: 24px;
  border: 1px solid #d5e5e5;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(2, 23, 35, 0.055);
}

.admin-form-heading {
  margin-bottom: 22px;
}

.admin-form-heading h4,
.admin-users-toolbar h4 {
  margin: 6px 0 4px;
  color: var(--navy-900);
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.admin-form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-user-form label {
  margin-bottom: 16px;
}

.admin-field-hint {
  text-align: left;
}

.admin-form-message {
  text-align: left;
}

.admin-users-toolbar {
  margin-bottom: 16px;
}

.admin-users-toolbar > div {
  min-width: 0;
}

.admin-users-toolbar > div > span:last-child {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.admin-users-message {
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.admin-users-list {
  display: grid;
  gap: 10px;
}

.admin-user-card {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(210px, 1.25fr) minmax(170px, 0.9fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #dbe8e8;
  border-radius: 16px;
  background: #fbfdfd;
}

.admin-user-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-identity .avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.admin-user-identity > div {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.admin-user-identity strong,
.admin-user-identity span,
.admin-user-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-identity strong {
  color: var(--navy-900);
  font-size: 0.84rem;
}

.admin-user-identity span {
  color: #3b5965;
  font-size: 0.72rem;
}

.admin-user-identity small {
  color: var(--muted);
  font-size: 0.68rem;
}

.admin-user-details {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 3px;
}

.admin-user-details small {
  color: var(--muted);
  font-size: 0.65rem;
}

.user-role-badge,
.current-user-label {
  width: fit-content;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 900;
}

.user-role-badge {
  margin-bottom: 3px;
  border: 1px solid #cddfe3;
  background: #eef6f7;
  color: #315966;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-role-badge.is-admin {
  border-color: #8bd4be;
  background: #dff8ef;
  color: #07584d;
}

.admin-user-actions {
  display: flex;
  justify-content: flex-end;
}

.current-user-label {
  background: #e7f5f2;
  color: #17695c;
}

.btn-user-danger {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e8bec5;
  background: #fff4f5;
  color: #a63348;
  font-size: 0.7rem;
}

.btn-user-danger:hover {
  border-color: #c04457;
  background: #c04457;
  color: var(--white);
}

.admin-users-pagination {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  gap: 12px;
}

.admin-users-pagination .btn:first-child {
  justify-self: start;
}

.admin-users-pagination .btn:last-child {
  justify-self: end;
}

.admin-users-pagination > span {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.admin-users-pagination .btn:disabled {
  border-color: #dbe6e8;
  background: #f3f7f7;
  color: #a2b0b5;
  cursor: not-allowed;
}

.admin-users-security-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(7, 88, 77, 0.07);
  color: #3b6962;
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 960px) {
  .admin-users-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-users-panel {
    padding: 22px 18px;
  }

  .admin-users-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-users-heading .btn {
    width: 100%;
  }

  .admin-user-form,
  .admin-users-directory {
    padding: 19px 15px;
  }

  .admin-user-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .admin-user-details {
    padding-left: 54px;
  }

  .admin-user-actions {
    justify-content: stretch;
  }

  .admin-user-actions .btn,
  .current-user-label {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .admin-users-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .admin-users-pagination > span {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: normal;
  }

  .admin-users-pagination .btn {
    width: 100%;
  }
}

/* Fluxo editorial entre FitoFeedbacks e fitogames.com.br */
body:not(.editorial-page) .editorial-route-only {
  display: none !important;
}

body.editorial-page main > :not(.editorial-route-only):not(.locked-section) {
  display: none !important;
}

.editorial-access-section {
  width: min(calc(100% - 36px), var(--max-width));
  margin: 0 auto;
  padding: 0 0 90px;
}

.editorial-access-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 34px 38px;
  border: 1px solid rgba(13, 46, 67, 0.1);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 0%, rgba(121, 220, 130, 0.2), transparent 34%),
    linear-gradient(135deg, #f7fcfc 0%, #eaf6f5 100%);
  box-shadow: 0 20px 50px rgba(7, 28, 44, 0.08);
}

.editorial-access-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(145deg, var(--green-400), var(--cyan-400));
  color: var(--navy-950);
  font-size: 1.75rem;
  font-weight: 950;
}

.editorial-access-card h2 {
  margin: 6px 0 8px;
  color: var(--navy-900);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.editorial-access-card p {
  max-width: 760px;
  margin: 0;
  color: var(--slate-600);
  line-height: 1.65;
}

.editorial-access-card .btn {
  white-space: nowrap;
}

body.editorial-page .site-publication-section {
  min-height: calc(100vh - 168px);
}

body.editorial-page .locked-section {
  padding-top: 74px;
  padding-bottom: 74px;
}

body.editorial-page .main-nav a[aria-current="page"] {
  border-color: rgba(121, 220, 130, 0.42);
  background: rgba(121, 220, 130, 0.12);
  color: var(--green-300);
}

body.editorial-page .site-publication-heading::before {
  content: "Área exclusiva dos membros";
  display: block;
  width: max-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(13, 46, 67, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--navy-700);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-publication-section {
  position: relative;
  padding: 74px clamp(24px, 6vw, 88px);
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(121, 220, 130, 0.18), transparent 28%),
    linear-gradient(180deg, #f5fbfb 0%, #eaf5f5 100%);
}

.site-publication-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 28, 44, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 28, 44, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
}

.site-publication-heading,
.editorial-workspace {
  position: relative;
  z-index: 1;
}

.editorial-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 26px;
}

.site-publication-form,
.editorial-queue,
.live-publications-admin {
  border: 1px solid rgba(13, 46, 67, 0.09);
  box-shadow: 0 22px 56px rgba(7, 28, 44, 0.08);
}

.editorial-form-intro,
.editorial-form-intro > div,
.editorial-queue-header,
.site-publication-card__meta,
.site-publication-card__actions,
.publication-review-actions {
  display: flex;
  align-items: center;
}

.editorial-form-intro {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dce9e9;
}

.editorial-form-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.editorial-cancel-edit {
  border-color: #d4e3e5;
  background: var(--white);
  color: var(--navy-800);
}

.editorial-form-intro > div {
  min-width: 0;
  gap: 12px;
}

.editorial-form-intro h3,
.editorial-queue h3 {
  margin: 0;
  color: var(--navy-900);
}

.editorial-form-intro p,
.editorial-queue-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.editorial-step {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green-400), var(--cyan-400));
  color: var(--navy-950);
  font-size: 0.75rem;
  font-weight: 900;
}

.editorial-status-badge {
  padding: 7px 11px;
  border: 1px solid #d9e5e7;
  border-radius: 99px;
  background: #f1f7f7;
  color: #4a6873;
  font-size: 0.65rem;
  font-weight: 900;
  white-space: nowrap;
}

.editorial-main-fields {
  grid-template-columns: minmax(190px, 0.55fr) minmax(300px, 1.45fr);
  align-items: stretch;
  margin-bottom: 18px;
}

.editorial-cover-upload {
  min-height: 92px;
  margin: 0;
}

.editorial-cover-preview {
  max-width: none;
  margin: 0 0 24px;
  aspect-ratio: 16 / 7;
}

.editorial-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.language-editor {
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid #d9e6e7;
  border-radius: 17px;
  background: #f8fbfb;
}

.language-editor legend {
  padding: 0 7px;
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 900;
}

.language-editor legend span {
  margin-right: 5px;
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--navy-800);
  color: var(--green-400);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.language-editor label {
  margin-bottom: 13px;
  font-size: 0.7rem;
}

.language-editor label:last-child {
  margin-bottom: 0;
}

.language-editor input,
.language-editor textarea {
  background: var(--white);
}

.language-editor textarea {
  min-height: 216px;
  resize: vertical;
}

.editorial-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--green-500);
  border-radius: 5px 13px 13px 5px;
  background: rgba(121, 220, 130, 0.11);
}

.editorial-notice strong {
  color: var(--navy-800);
  font-size: 0.72rem;
}

.editorial-notice p {
  margin: 3px 0 0;
  color: #486570;
  font-size: 0.69rem;
  line-height: 1.55;
}

.site-publication-form-message {
  max-width: 620px;
  margin: 0;
  color: #407064;
  font-size: 0.72rem;
  line-height: 1.45;
}

.site-publication-form-message.is-error,
.site-publications-message.is-error,
.publication-review-message.is-error {
  color: #ac3549;
}

.editorial-queue {
  position: static;
  padding: 24px;
}

.live-publications-admin {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(121, 220, 130, 0.13), transparent 30%),
    var(--white);
}

.editorial-queue-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.editorial-queue-summary {
  margin: 20px 0 15px;
  padding: 15px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), #0a3b4b);
  color: var(--white);
}

.editorial-queue-summary strong {
  color: var(--green-400);
  font-size: 1.7rem;
}

.editorial-queue-summary span {
  font-size: 0.68rem;
  line-height: 1.35;
}

.site-publications-message {
  margin: 0;
  padding: 18px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.site-publications-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 12px;
}

.site-publication-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dbe7e8;
  border-radius: 15px;
  background: #fbfdfd;
}

.site-publication-card__cover {
  min-height: 142px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--navy-800), #0d5561);
  color: var(--green-400);
  font-size: 1rem;
  font-weight: 900;
}

.site-publication-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-publication-card__content {
  min-width: 0;
  padding: 14px;
}

.site-publication-card__meta {
  flex-wrap: wrap;
  gap: 5px;
}

.editorial-type-badge,
.editorial-state-badge {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 99px;
  font-size: 0.55rem;
  font-weight: 900;
  line-height: 1;
}

.editorial-type-badge {
  background: #e8f1f3;
  color: #345967;
  text-transform: uppercase;
}

.editorial-state-badge--pending {
  background: #fff4d6;
  color: #815b09;
}

.editorial-state-badge--published {
  background: #ddf7e9;
  color: #176649;
}

.editorial-state-badge--rejected {
  background: #fee8eb;
  color: #a03449;
}

.editorial-state-badge--paused {
  background: #e8edf0;
  color: #526772;
}

.site-publication-card h4 {
  margin: 9px 0 5px;
  overflow-wrap: anywhere;
  color: var(--navy-900);
  font-size: 0.83rem;
  line-height: 1.35;
}

.site-publication-card__details {
  margin: 0;
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.45;
}

.editorial-feedback {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff1f3;
}

.editorial-feedback strong {
  display: block;
  color: #9b3145;
  font-size: 0.61rem;
}

.editorial-feedback p {
  margin: 3px 0 0;
  color: #76505a;
  font-size: 0.63rem;
  line-height: 1.45;
}

.site-publication-card__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 11px;
}

.site-publication-card__actions small {
  color: var(--muted);
  font-size: 0.61rem;
  line-height: 1.4;
  text-align: right;
}

.site-publication-card__actions .btn {
  min-height: 34px;
  padding: 0 10px;
  text-decoration: none;
}

.btn-review {
  background: #0d5361;
}

.btn-edit-publication {
  background: linear-gradient(135deg, #278866, #1b717c);
}

.live-publications-summary {
  margin: 20px 0 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
}

.live-publications-summary > div {
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid #dce8e8;
  border-radius: 14px;
  background: #f5fafa;
}

.live-publications-summary strong {
  color: var(--navy-900);
  font-size: 1.55rem;
}

.live-publications-summary span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.live-publications-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
  gap: 12px;
}

.live-publication-card {
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.live-publication-card:hover {
  border-color: #b9d7d9;
  box-shadow: 0 14px 30px rgba(7, 28, 44, 0.08);
}

.live-publication-card.is-paused {
  border-style: dashed;
  background: #f4f7f7;
}

.live-publication-card.is-paused .site-publication-card__cover img {
  filter: grayscale(0.78);
  opacity: 0.68;
}

.live-publication-card__date {
  margin: 7px 0 0;
  color: #4b6974;
  font-size: 0.61rem;
  line-height: 1.45;
}

.btn-live-edit {
  background: linear-gradient(135deg, #0d5361, #16717d);
}

.btn-live-pause {
  border: 1px solid #d2dfe1;
  background: var(--white);
  color: var(--navy-800);
}

.btn-live-resume {
  background: linear-gradient(135deg, #37a66f, #1d8069);
  color: var(--white);
}

.btn-danger-outline {
  border: 1px solid #e3adb7;
  background: #fff5f6;
  color: #a63348;
}

.btn-danger-outline:hover {
  border-color: #ad3c50;
  background: #ad3c50;
  color: var(--white);
}

.publication-review-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: min(900px, calc(100vh - 34px));
  padding: 30px;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 34px 90px rgba(4, 18, 31, 0.35);
}

.publication-review-dialog::backdrop {
  background: rgba(4, 18, 31, 0.78);
  backdrop-filter: blur(5px);
}

.publication-review-header {
  max-width: 780px;
  margin-bottom: 24px;
}

.publication-review-header h2 {
  margin: 5px 0;
  color: var(--navy-900);
}

.publication-review-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.live-publication-dialog__header {
  max-width: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-right: 42px;
}

.live-publication-dialog__header > div {
  max-width: 780px;
}

.review-cover-wrap {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: var(--navy-800);
  font-size: 0.72rem;
  font-weight: 800;
}

.review-cover-wrap img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  border-radius: 13px;
  background: var(--soft);
}

.editorial-language-grid--review {
  margin: 20px 0;
}

.publication-review-message {
  min-height: 18px;
  margin: 14px 0 0;
}

.publication-review-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.live-publication-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.live-publication-actions > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-review-reject {
  border: 1px solid #e3adb7;
  background: #fff5f6;
  color: #a63348;
}

.btn-review-reject:hover {
  border-color: #ad3c50;
  background: #ad3c50;
  color: var(--white);
}

@media (max-width: 900px) {
  .editorial-language-grid {
    grid-template-columns: 1fr;
  }

  .site-publications-list {
    grid-template-columns: 1fr;
  }

  .language-editor textarea {
    min-height: 180px;
  }
}

@media (max-width: 700px) {
  .editorial-access-section {
    width: min(calc(100% - 32px), var(--max-width));
    padding-bottom: 58px;
  }

  .editorial-access-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 25px 20px;
  }

  .editorial-access-card .btn {
    width: 100%;
  }

  .site-publication-section {
    padding: 52px 16px;
  }

  .site-publication-heading {
    align-items: flex-start;
  }

  .site-publication-form,
  .editorial-queue,
  .live-publications-admin {
    padding: 20px 15px;
  }

  .editorial-form-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .editorial-form-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .editorial-form-actions .btn {
    width: 100%;
  }

  .editorial-main-fields {
    grid-template-columns: 1fr;
  }

  .editorial-cover-upload {
    width: 100%;
  }

  .site-publication-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .site-publication-card__cover {
    min-height: 154px;
  }

  .publication-review-dialog {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    padding: 24px 15px 18px;
    border-radius: 17px;
  }

  .live-publications-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .live-publication-dialog__header,
  .live-publication-actions,
  .live-publication-actions > div {
    align-items: stretch;
    flex-direction: column;
  }

  .live-publication-actions .btn {
    width: 100%;
  }

  .publication-review-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .publication-review-actions .btn {
    width: 100%;
  }
}
