:root {
  --app-bg: #fbfbff;
  --app-white: #ffffff;
  --text-primary: #1d1d1f;
  --text-muted: rgba(29, 29, 31, 0.56);
  --card-radius: 20px;
  --liquid-glass-bg: rgba(255, 255, 255, 0.4);
  --grad-cyan: linear-gradient(135deg, #00d2ff 0%, #2d5bff 100%);
  --grad-warm: linear-gradient(135deg, #ff4b8b 0%, #ffb800 100%);
  --spectrum: linear-gradient(90deg, #ffb800 0%, #ff7a00 18%, #ff4b8b 40%, #8a2be2 62%, #2d5bff 82%, #00d2ff 100%);
  --focus: #2d5bff;
  --header-h: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.app-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  background: var(--app-bg);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.app-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 8% -4%, rgba(0, 210, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 48% 38% at 96% 4%, rgba(138, 43, 226, 0.14), transparent 52%),
    radial-gradient(ellipse 42% 36% at 88% 92%, rgba(255, 75, 139, 0.16), transparent 55%),
    radial-gradient(ellipse 38% 30% at 6% 96%, rgba(255, 184, 0, 0.16), transparent 50%);
}

.page-shell {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 0.85rem;
  top: -3.2rem;
  z-index: 80;
  border-radius: 999px;
  background: var(--text-primary);
  color: #fff;
  padding: 0.5rem 0.9rem;
}

.skip-link:focus {
  top: 0.85rem;
}

.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;
}

.hidden {
  display: none !important;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: visible;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(255, 255, 255, 0.38);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--spectrum);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--header-h);
  padding: 0.65rem 0;
}

.header-inner > .btn {
  margin-left: auto;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(280px, 36vw);
  object-fit: contain;
}

.header-search {
  flex: 1;
  min-width: 0;
  max-width: 28rem;
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  color: var(--text-primary);
  cursor: pointer;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.62);
}

.auth-slot {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.liquid-card {
  background: var(--liquid-glass-bg);
  border-radius: var(--card-radius);
  backdrop-filter: blur(25px) saturate(220%);
  -webkit-backdrop-filter: blur(25px) saturate(220%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.liquid-card:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 2px 2px 0 rgba(255, 255, 255, 0.4),
    0 12px 48px 0 rgba(31, 38, 135, 0.1);
}

.liquid-card:focus-within:not(.search-shell) {
  outline: 2px solid rgba(63, 94, 251, 0.35);
  outline-offset: 3px;
}

.category-ideia {
  background:
    linear-gradient(135deg, rgba(36, 198, 220, 0.2) 0%, rgba(63, 94, 251, 0.1) 100%),
    var(--liquid-glass-bg);
  border: 1px solid rgba(36, 198, 220, 0.3);
}

.category-reclamacao {
  background:
    linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 217, 61, 0.1) 100%),
    var(--liquid-glass-bg);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-ideia {
  color: #1b6f9a;
}

.badge-reclamacao {
  color: #c94a4a;
}

.trending-card:hover {
  transform: none;
}

.trending-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b21a8;
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  color: #6b21a8;
  background: rgba(138, 43, 226, 0.1);
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.topic-chip:hover,
.topic-chip.is-active {
  background: rgba(138, 43, 226, 0.2);
}

.topic-count {
  border-radius: 999px;
  background: rgba(138, 43, 226, 0.18);
  color: #5b21b6;
  padding: 0.05rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.compose-bar {
  padding: 0.85rem 0 0;
}

.compose-shell {
  position: relative;
}

.compose-card {
  padding: 1rem 1.1rem;
}

.compose-card:hover {
  transform: none;
}

.compose-lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.15rem 1.25rem;
  text-align: center;
  border-radius: var(--card-radius);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(18px) saturate(200%);
  -webkit-backdrop-filter: blur(18px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.compose-lock p {
  margin: 0;
  max-width: 22rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.compose-lock.hidden {
  display: none;
}

.compose-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .compose-grid {
    grid-template-columns: 10.5rem 1fr auto;
  }
}

.field,
.glass-select,
.glass-textarea,
.glass-input {
  width: 100%;
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-primary);
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.glass-textarea {
  resize: vertical;
  min-height: 2.75rem;
}

.glass-input {
  letter-spacing: 0.04em;
}

.btn:disabled,
.glass-select:disabled,
.glass-textarea:disabled,
.glass-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--grad-cyan);
  box-shadow: 0 8px 20px rgba(63, 94, 251, 0.18);
}

.btn-warm {
  color: #fff;
  background: var(--grad-warm);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-support {
  background: rgba(36, 198, 220, 0.1);
  color: #1b6f9a;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.btn-support:hover,
.btn-support[aria-pressed="true"] {
  background: rgba(36, 198, 220, 0.2);
}

.btn-support[aria-pressed="true"] {
  color: #3f5efb;
}

.btn-text {
  background: none;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.share-wrap {
  position: relative;
  display: inline-flex;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font: inherit;
}

.btn-share:hover,
.btn-share[aria-expanded="true"] {
  color: #1b6f9a;
  background: rgba(36, 198, 220, 0.16);
}

.share-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.share-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 0.45rem);
  bottom: auto;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 13.5rem;
  max-width: min(16rem, calc(100vw - 2rem));
  padding: 0.45rem;
  border-radius: 1rem;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.55),
    0 16px 36px rgba(31, 38, 135, 0.18);
}

body > .share-popover {
  position: fixed;
  z-index: 80;
}

.share-popover.hidden {
  display: none;
}

[data-post-card].is-share-open,
[data-post-card]:has([data-share][aria-expanded="true"]) {
  position: relative;
  z-index: 50;
  isolation: isolate;
}

[data-post-card].is-share-open:hover,
[data-post-card]:has([data-share][aria-expanded="true"]):hover {
  transform: none;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.share-option:hover,
.share-option:focus-visible {
  background: rgba(255, 255, 255, 0.58);
}

.share-option-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.share-option-whatsapp {
  color: #128c7e;
}

.share-option-instagram {
  color: #e4405f;
}

.share-option-linkedin {
  color: #0a66c2;
}

.share-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 80;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(29, 29, 31, 0.28);
  font-size: 0.875rem;
  font-weight: 500;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes shared-glow {
  0%,
  100% {
    box-shadow:
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
      0 0 0 0 rgba(63, 94, 251, 0);
  }
  40% {
    box-shadow:
      inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
      0 0 0 4px rgba(63, 94, 251, 0.38),
      0 0 40px 10px rgba(36, 198, 220, 0.42);
  }
}

.liquid-card.is-shared-highlight {
  outline: 3px solid rgba(45, 91, 255, 0.72);
  outline-offset: 5px;
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
    0 0 0 6px rgba(63, 94, 251, 0.2),
    0 0 44px 12px rgba(36, 198, 220, 0.42);
  animation: shared-glow 1.15s ease-in-out 3;
}

.btn-danger {
  color: #fff;
  background: var(--grad-warm);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  border: 0;
  cursor: pointer;
}

.admin-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c94a4a;
  background: rgba(255, 107, 107, 0.12);
}

.title-xl {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0.4rem 0 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.feed-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.feed-grid {
  display: grid;
  gap: 1.15rem;
}

#feed > [data-post-card] {
  position: relative;
  z-index: 1;
}

#feed > [data-post-card]:hover {
  transform: none;
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.feed-search-block {
  margin: 0 0 1.15rem;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 20px 0 rgba(31, 38, 135, 0.06);
}

.header-search .search-shell.liquid-card:focus-within {
  outline: none;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 1px rgba(29, 29, 31, 0.06),
    0 8px 22px rgba(31, 38, 135, 0.08);
}

.search-shell:hover,
.feed-search-empty:hover {
  transform: none;
}

.search-icon {
  display: inline-flex;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  padding: 0.35rem 0;
  outline: none;
}

.search-input:focus,
.search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.search-input::selection {
  background: rgba(29, 29, 31, 0.1);
  color: inherit;
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-clear {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.08);
  color: var(--text-primary);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.search-clear:hover {
  background: rgba(29, 29, 31, 0.14);
}

.search-status {
  min-height: 0;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.search-status:empty {
  display: none;
}

.feed-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.feed-search-empty.hidden {
  display: none !important;
}

.feed-search-empty-title {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 500;
}

.card-title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.card-body {
  margin: 0 0 1.35rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(29, 29, 31, 0.9);
  white-space: pre-wrap;
}

.meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.comment-item {
  padding: 0.85rem 1rem;
  border-radius: 16px;
}

.comment-thread {
  display: grid;
  gap: 0.65rem;
}

.comment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.comment-replies {
  margin: 0.65rem 0 0.15rem 0.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(45, 91, 255, 0.28);
  display: grid;
  gap: 0.55rem;
}

.comment-reply {
  padding: 0.7rem 0.85rem;
}

.reply-form {
  margin-top: 0.65rem;
  padding: 0.7rem 0.75rem 0.75rem 0.85rem;
  border-left: 2px solid rgba(36, 198, 220, 0.45);
  display: grid;
  gap: 0.5rem;
}

.reply-form.hidden {
  display: none;
}

.card-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem 0.85rem;
}

.btn-follow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.32);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font: inherit;
}

.btn-follow:hover,
.btn-follow[aria-pressed="true"] {
  color: #1b6f9a;
  background: rgba(36, 198, 220, 0.16);
}

.follow-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.notify-host {
  display: contents;
}

.header-notify {
  position: relative;
  flex-shrink: 0;
}

.notify-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  color: var(--text-primary);
  cursor: pointer;
}

.notify-bell:hover,
.notify-bell[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.66);
}

.notify-bell-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.notify-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.notify-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 60;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(22rem, 70vh);
  overflow: auto;
  padding: 0.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.55),
    0 16px 36px rgba(31, 38, 135, 0.16);
}

.notify-menu.hidden {
  display: none;
}

.notify-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 0.75rem;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
}

.notify-item:hover,
.notify-item:focus-visible {
  background: rgba(255, 255, 255, 0.62);
}

.notify-item.is-unread {
  background: rgba(36, 198, 220, 0.12);
}

.notify-empty {
  padding: 0.85rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.user-menu-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.user-menu-wrap {
  position: relative;
  flex-shrink: 0;
}

.user-menu-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  color: var(--text-primary);
  cursor: pointer;
}

.user-menu-btn:hover,
.user-menu-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.66);
}

.user-menu-gear {
  width: 1.15rem;
  height: 1.15rem;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 70;
  width: min(17.5rem, calc(100vw - 1.5rem));
  padding: 0.4rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.55),
    0 18px 40px rgba(31, 38, 135, 0.16);
}

.user-dropdown.hidden {
  display: none;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 0.8rem;
  padding: 0.72rem 0.75rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
}

.user-dropdown-item:hover,
.user-dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.62);
}

.user-dropdown-sep {
  height: 1px;
  margin: 0.25rem 0.45rem;
  background: rgba(29, 29, 31, 0.08);
}

.user-dropdown-danger {
  color: #9f1239;
}

.user-dropdown-danger:hover,
.user-dropdown-danger:focus-visible {
  background: rgba(255, 75, 139, 0.14);
}

#confirm-message.is-danger {
  color: #9f1239;
  font-weight: 600;
  background: rgba(255, 75, 139, 0.12);
  border: 1px solid rgba(255, 75, 139, 0.28);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
}

dialog.settings-sheet {
  max-width: min(36rem, calc(100% - 2rem));
  max-height: min(44rem, calc(100vh - 2.5rem));
  overflow: auto;
}

.settings-sheet-body {
  display: grid;
  gap: 1.1rem;
}

.settings-section {
  display: grid;
  gap: 0.75rem;
}

.pref-switch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
}

.pref-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pref-switch-ui {
  width: 2.4rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.18);
  position: relative;
  flex-shrink: 0;
}

.pref-switch-ui::after {
  content: "";
  position: absolute;
  top: 0.12rem;
  left: 0.12rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
}

.pref-switch input:checked + .pref-switch-ui {
  background: #2d5bff;
}

.pref-switch input:checked + .pref-switch-ui::after {
  transform: translateX(1.05rem);
}

.followed-list {
  display: grid;
  gap: 0.55rem;
}

.followed-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin: 0;
}

.about-page {
  padding: 2.25rem 0 1rem;
}

.about-sheet {
  display: grid;
  gap: 1rem;
  padding: 1.6rem 1.4rem 1.5rem;
}

.about-sheet .title-xl {
  margin: 0;
}

.about-sheet p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.about-axes {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 720px) {
  .about-axes {
    grid-template-columns: 1fr 1fr;
  }
}

.about-axis {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.about-axis h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.about-axis p {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.about-channels {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .about-channels {
    grid-template-columns: 1fr 1fr;
  }
}

.about-channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.about-channel:hover {
  background: rgba(255, 255, 255, 0.66);
}

.about-channel strong {
  display: block;
  font-size: 0.82rem;
}

.about-channel span:last-child {
  font-size: 0.88rem;
}

.about-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 999px;
  color: #2d5bff;
  background: rgba(45, 91, 255, 0.12);
}

.about-channel-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.banner {
  margin: 0.75rem auto 0;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
}

.feedback-error {
  color: #c94a4a;
}

.feedback-ok {
  color: var(--text-muted);
}

.moderation-alert {
  position: fixed;
  top: calc(var(--header-h) + 0.85rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(32rem, calc(100% - 2rem));
}

.moderation-alert.hidden {
  display: none;
}

.moderation-alert-card {
  padding: 1.25rem 1.4rem 1.15rem;
}

.moderation-alert-card:hover {
  transform: none;
}

.moderation-alert-card p {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.checks {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .checks {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: cover;
}

.user-name {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
}

dialog {
  border: 0;
  color: var(--text-primary);
  max-width: min(28rem, calc(100% - 2.5rem));
  margin: auto;
}

dialog.liquid-card,
dialog.dialog-sheet {
  padding: 2rem 1.85rem 1.75rem !important;
  box-sizing: border-box;
}

dialog.liquid-card:hover {
  transform: none;
}

dialog.liquid-card form {
  display: grid;
  gap: 1.1rem;
}

dialog.liquid-card .card-title,
dialog.liquid-card .title-xl {
  margin: 0;
}

dialog.liquid-card .lede {
  margin: 0;
}

.policy-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

dialog.policy-sheet {
  max-width: min(42rem, calc(100% - 2rem));
  max-height: min(44rem, calc(100vh - 2.5rem));
  overflow: auto;
}

.policy-sheet-body {
  display: grid;
  gap: 0.85rem;
}

.policy-sheet-body ul {
  margin: 0;
  padding-left: 1.2rem;
}

.policy-sheet-body p,
.policy-sheet-body li {
  font-size: 0.92rem;
  line-height: 1.55;
}

dialog::backdrop {
  background: rgba(29, 29, 31, 0.28);
  backdrop-filter: blur(10px);
}

.visually-hidden-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  display: none !important;
}

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

.search-input:focus,
.search-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.search-shell.liquid-card:focus-within {
  outline: none;
}

.fab-new-post {
  position: fixed;
  right: 1.2rem;
  bottom: 1.35rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.65rem;
  height: 3.65rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  color: #2d5bff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.7),
    0 14px 36px rgba(45, 91, 255, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.84) translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.fab-new-post.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.fab-new-post.is-visible:hover {
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  .brand-logo {
    height: 40px;
    max-width: min(148px, 38vw);
  }

  .search-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .header-search {
    flex: 0 0 auto;
    max-width: none;
  }

  .header-search .search-shell {
    position: fixed;
    top: calc(var(--header-h) + 0.4rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
    z-index: 45;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .header-search.is-open .search-shell {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .header-search.is-open .search-toggle {
    background: rgba(45, 91, 255, 0.16);
    color: #2d5bff;
  }

  .header-inner {
    position: relative;
  }

  .user-menu-identity {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .liquid-card:hover {
    transform: none;
  }
}
