:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --surface: #151515;
  --surface-2: #1c1c1f;
  --surface-3: #23232a;
  --text: #f5f7fb;
  --muted: #a6afc2;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #4062ff;
  --accent-dark: #6f63ff;
  --accent-neutral: #5870d8;
  --accent-neutral-2: #6b64cf;
  --accent-green: #1f9d73;
  --warning: #d9a441;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(91, 76, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(32, 164, 243, 0.12), transparent 28%),
    var(--bg);
  padding-top: 86px;
}

.app-shell,
.page-shell,
.feed-shell,
.feed-layout,
.feed-main,
.feed-sidebar,
.card,
.panel,
.form-card,
.shell,
.page,
.container {
  max-width: 100%;
}

.page {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.app-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.app-nav-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  overflow: hidden;
}

.brand::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background-image: url("assets/idewall-logo-mark.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  filter: saturate(1.02) brightness(1.02);
}

.brand::after {
  content: none;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  box-shadow: none;
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(95, 123, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(95, 123, 255, 0.18);
}

.nav-link[aria-current="page"] {
  background: rgba(76, 110, 245, 0.16);
  color: #eef2ff;
  border-color: rgba(95, 123, 255, 0.42);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(76, 110, 245, 0.12);
  color: #cfd8ff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.subtitle {
  margin: 0;
  max-width: 840px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.subtitle.small {
  font-size: 0.94rem;
  max-width: 780px;
  margin-top: 8px;
}

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

.home-page .hero {
  margin-bottom: 10px;
}

.home-page .hero h1 {
  max-width: 760px;
}

.home-hero-compact h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.home-hero-compact .subtitle {
  display: none;
}

.home-feed-shell {
  padding: 0;
  margin-bottom: 22px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-feed-head {
  display: none;
}

.home-feed-grid {
  gap: 16px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-feed-card.feed-card {
  padding: 18px;
  border-radius: 20px;
}

.home-feed-card .feed-card-media {
  margin-bottom: 12px;
  border-radius: 16px;
}

.home-feed-card .feed-card-title {
  margin-top: 6px;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.home-feed-card .feed-card-description {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.48;
}

.home-feed-card .feed-card-meta,
.home-feed-card .feed-progress,
.home-card-actions {
  margin-top: 12px;
}

.home-card-actions {
  display: flex;
}

.compose-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.composer-close {
  flex: 0 0 auto;
}

.security-note {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 760px;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hidden {
  display: none !important;
}

.auth-shell {
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
}

.auth-card {
  max-width: 460px;
  margin: 0 auto;
  padding: 28px;
}

.auth-hero {
  padding-bottom: 18px;
}

.auth-hero h1 {
  max-width: 760px;
}

.auth-card .actions {
  margin-top: 0;
}

.auth-card #googleLoginBtn {
  width: 100%;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.auth-status {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-session {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.auth-session .section-title {
  margin-bottom: 6px;
}

.auth-session .section-note {
  margin-bottom: 0;
}

.auth-session .actions {
  margin-top: 14px;
}

.legal-page .hero {
  padding-bottom: 16px;
}

.legal-card {
  display: grid;
  gap: 14px;
  line-height: 1.7;
}

.legal-card .section-title {
  margin-top: 8px;
}

.legal-card a {
  color: #c7d2ff;
}

.shell {
  background: rgba(17, 17, 19, 0.92);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.28);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  align-items: start;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  border-color: rgba(95, 123, 255, 0.24);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.section-note {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

.stack + .stack,
.field + .field {
  margin-top: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #eef2ff;
}

.label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  background: var(--surface-3);
  border-color: rgba(95, 123, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(95, 123, 255, 0.12);
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
}

.checkbox-row input {
  width: auto;
  margin: 0;
  transform: translateY(-1px);
}

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

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.check input {
  width: auto;
  margin: 0;
}

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

button,
a.button {
  border: 1px solid rgba(142, 160, 220, 0.26);
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent-neutral), var(--accent-neutral-2));
  color: #fff;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(63, 82, 150, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.secondary {
  background: rgba(14, 16, 22, 0.66);
  color: #e2e7f7;
  border-color: rgba(142, 160, 220, 0.22);
  box-shadow: none;
}

.ghost {
  background: rgba(255, 255, 255, 0.025);
  color: #c5cde2;
  border-color: rgba(142, 160, 220, 0.18);
  box-shadow: none;
}

button:hover,
a.button:hover {
  transform: translateY(-1px);
  border-color: rgba(178, 191, 235, 0.42);
  box-shadow: 0 10px 22px rgba(63, 82, 150, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

button:disabled,
a.button[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.meta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.pill,
.badge,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.92rem;
  word-break: break-word;
}

.badge {
  background: rgba(76, 110, 245, 0.16);
  color: #dfe5ff;
}

.chip {
  padding: 7px 10px;
  font-size: 0.86rem;
  text-decoration: none;
}

pre {
  margin: 0;
  padding: 16px;
  background: #0f1014;
  color: #e2e8f0;
  border-radius: 16px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 160px;
}

ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.record,
.item,
.proposal,
.stat,
.batch,
.modal-panel,
.notice {
  background: var(--surface);
  border: 1px solid var(--border);
}

.item {
  padding: 0;
  border: 0;
  background: transparent;
}

.value {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.55;
}

.value.description {
  white-space: pre-wrap;
}

.long-text,
.feed-card-description,
.profile-bio {
  white-space: pre-wrap;
}

.record {
  padding: 14px;
  border-radius: 16px;
}

.saved-record-thumb,
.profile-idea-media,
.feed-card-media,
.idea-cover-frame {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #070a12;
}

.saved-record-thumb {
  margin-top: 12px;
  aspect-ratio: 16 / 9;
}

.saved-record-thumb img,
.profile-idea-media img,
.feed-card-media img,
.idea-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-idea-media {
  margin-bottom: 12px;
  aspect-ratio: 4 / 3;
}

.feed-record {
  width: min(700px, 100%);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feed-record:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
  border-color: rgba(95, 123, 255, 0.26);
}

.record strong,
.proposal-title {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.record-list {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.hint,
.micro,
.small {
  color: var(--muted);
  line-height: 1.45;
}

.hint {
  margin-top: 8px;
  font-size: 0.92rem;
}

.small {
  font-size: 0.94rem;
}

.notice {
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notice.muted {
  background: rgba(255, 255, 255, 0.03);
}

.stats,
.metric-grid,
.batch-grid,
.proposal-list {
  display: grid;
  gap: 12px;
}

.stats,
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 14px;
  border-radius: 16px;
}

.stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
}

.batch-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 14px;
}

.batch-button {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
}

.batch-button.active {
  border-color: rgba(95, 123, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(95, 123, 255, 0.10);
}

.batch-button.locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.proposal {
  padding: 16px;
  border-radius: 16px;
}

.proposal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.proposal-title {
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 6, 14, 0.7);
  padding: 20px;
  z-index: 50;
}

.modal.hidden {
  display: none;
}

.modal-panel {
  width: min(740px, 100%);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.panel-empty {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.idea-origin-footer {
  padding-top: 16px;
}

.origin-details {
  width: 100%;
}

.summary-toggle {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  color: #eef2ff;
}

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

.summary-toggle::after {
  content: "Abrir";
  margin-left: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.origin-details[open] .summary-toggle::after {
  content: "Fechar";
}

.summary-panel {
  margin-top: 14px;
}

.profile-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-title-block {
  min-width: 0;
  flex: 1 1 auto;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(64, 98, 255, 0.24), rgba(111, 99, 255, 0.14));
  color: #eef2ff;
  font-size: 1.5rem;
  font-weight: 800;
  flex: 0 0 auto;
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.08;
}

.profile-handle {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 700;
}

.profile-bio {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.6;
}

.profile-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-empty {
  text-align: left;
}

.profile-edit-button {
  flex: 0 0 auto;
  padding: 10px 14px;
}

.profile-owner-actions {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 170px;
}

.profile-owner-actions button {
  width: 100%;
}

.profile-edit-form {
  display: grid;
  gap: 14px;
}

.profile-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.profile-edit-form textarea {
  min-height: 110px;
}

.profile-message {
  margin-top: 14px;
}

@media (max-width: 920px) {
  body {
    padding-top: 118px;
  }

  .app-nav-inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .app-nav-links {
    width: 100%;
  }

  .brand {
    padding: 5px 10px 5px 6px;
    font-size: 0.98rem;
  }

  .brand::before {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .compose-launch,
  .composer-head {
    display: grid;
  }

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

  .profile-header,
  .profile-edit-head {
    align-items: flex-start;
  }

  .profile-edit-button {
    width: 100%;
  }

  .profile-owner-actions {
    width: 100%;
  }

  .layout,
  .top-grid,
  .two-up,
  .split,
  .stats,
  .metric-grid,
  .checks {
    grid-template-columns: 1fr;
  }
}

body.feed-page {
  color-scheme: dark;
  background:
    radial-gradient(circle at top left, rgba(91, 76, 255, 0.18), transparent 34%),
    radial-gradient(circle at top right, rgba(32, 164, 243, 0.12), transparent 28%),
    #0b0b0b;
  color: #f5f7fb;
}

body.feed-page .page,
body.feed-page .app-nav-inner {
  width: min(1200px, calc(100% - 32px));
}

body.feed-page .app-nav {
  background: rgba(11, 11, 11, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34);
}

body.feed-page .brand {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

body.feed-page .nav-link {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #c2c8d6;
  box-shadow: none;
}

body.feed-page .nav-link:hover {
  color: #ffffff;
  border-color: rgba(95, 123, 255, 0.44);
  box-shadow: 0 0 0 1px rgba(95, 123, 255, 0.18);
}

body.feed-page .nav-link[aria-current="page"] {
  background: rgba(76, 110, 245, 0.16);
  color: #eef2ff;
  border-color: rgba(95, 123, 255, 0.42);
}

.feed-hero {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
  position: relative;
  min-height: 320px;
  align-items: end;
  overflow: hidden;
  padding: 54px 42px;
  border: 1px solid rgba(120, 145, 255, 0.14);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(6, 8, 13, 0.88) 0%, rgba(6, 8, 13, 0.64) 46%, rgba(6, 8, 13, 0.36) 100%),
    linear-gradient(180deg, rgba(6, 8, 13, 0.14) 0%, rgba(6, 8, 13, 0.74) 100%),
    url("assets/idewall-feed-hero-bg.webp") center / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.feed-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 24%, rgba(80, 102, 255, 0.2), transparent 34%);
  pointer-events: none;
}

.feed-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.feed-hero h1 {
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.58);
}

.feed-hero-copy .subtitle,
.feed-hero-copy .subtitle.small {
  color: #d6def1;
  max-width: 760px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.62);
}

.feed-shell {
  background: rgba(17, 17, 19, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.28);
}

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

.feed-toolbar-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.feed-toolbar-note {
  margin: 6px 0 0;
  color: #97a0b4;
  line-height: 1.5;
}

.feed-toolbar-link {
  flex: 0 0 auto;
}

.feed-post-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.feed-post-form textarea {
  min-height: 94px;
}

.feed-post-controls {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
}

.feed-post-status {
  min-height: 20px;
  color: #9fb0d1;
  font-size: 0.92rem;
  font-weight: 700;
}

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

.feed-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 27, 31, 0.98), rgba(21, 21, 21, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.feed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(95, 123, 255, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.feed-post-card {
  background: linear-gradient(180deg, rgba(24, 25, 30, 0.98), rgba(18, 19, 22, 0.98));
}

.feed-card-media {
  margin-bottom: 18px;
  aspect-ratio: 4 / 3;
  max-height: 520px;
}

.feed-card-media-block,
.profile-idea-media-block,
.idea-cover-block {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.feed-card-media-block .feed-card-media,
.profile-idea-media-block .profile-idea-media,
.idea-cover-block .idea-cover-frame {
  margin-bottom: 0;
}

.idea-external-link {
  justify-self: start;
  width: auto;
}

.feed-link-row {
  margin: 12px 0;
}

.feed-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.feed-card-top-actions {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.feed-card-kicker {
  color: #8d96ab;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.feed-card-title {
  margin: 8px 0 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.05;
}

.feed-card-link {
  color: #f6f8ff;
  text-decoration: none;
}

.feed-card-link:hover {
  color: #9eb2ff;
}

.feed-card-description {
  margin: 16px 0 0;
  color: #d0d5e2;
  line-height: 1.65;
  max-width: 760px;
}

.feed-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

body.feed-page .feed-card .chip,
body.home-page .feed-card .chip {
  background: rgba(255, 255, 255, 0.05);
  color: #afb7c9;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.feed-page .feed-card .feed-feedback-chip {
  background: rgba(116, 230, 181, 0.12);
  border-color: rgba(116, 230, 181, 0.24);
  color: #bff7df;
}

.feed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feed-badge.novo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #dce1ed;
}

.feed-badge.validado {
  background: rgba(68, 97, 255, 0.18);
  border: 1px solid rgba(95, 123, 255, 0.38);
  color: #dfe5ff;
}

.feed-badge.tracao {
  background: linear-gradient(135deg, rgba(60, 92, 255, 0.22), rgba(138, 83, 255, 0.24));
  border: 1px solid rgba(132, 102, 255, 0.44);
  color: #f1ebff;
}

.feed-progress {
  margin-top: 18px;
}

.feed-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.feed-progress-top strong {
  font-size: 1.2rem;
}

.feed-progress-top span {
  color: #96a0b5;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: right;
}

.feed-progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.feed-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f68c9 0%, #626fd0 48%, #7562c7 100%);
  transition: width 200ms ease;
  box-shadow: 0 0 18px rgba(98, 111, 208, 0.28);
}

.feed-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.feed-action-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.feed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 37px;
  border-radius: 8px;
  padding: 9px 11px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.feed-action {
  width: 100%;
  min-height: 37px;
}

.feed-undo-action {
  width: 100%;
  min-height: 31px;
  padding: 7px 9px;
  font-size: 0.76rem;
}

.feed-button-primary {
  background: linear-gradient(135deg, #315fca 0%, #4f66d3 52%, #6e55cc 100%);
  color: #fff;
  border-color: rgba(130, 153, 222, 0.5);
  box-shadow: 0 7px 16px rgba(63, 82, 150, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feed-button-secondary {
  background: rgba(9, 11, 16, 0.58);
  color: #d9dfef;
  border-color: rgba(142, 160, 220, 0.24);
}

.feed-button-ghost {
  background: rgba(255, 255, 255, 0.02);
  color: #b9c5ea;
  border-color: rgba(159, 178, 255, 0.18);
}

.feed-button-toggle {
  background: rgba(88, 112, 216, 0.08);
  color: #dfe5ff;
  border-color: rgba(142, 160, 220, 0.26);
}

.feed-button-danger {
  background: rgba(150, 38, 49, 0.16);
  color: #ffd8dc;
  border-color: rgba(255, 113, 124, 0.28);
}

.feed-button:hover {
  filter: none;
  transform: translateY(-1px);
}

.feed-button-primary:hover {
  border-color: rgba(171, 186, 232, 0.68);
  box-shadow: 0 9px 20px rgba(63, 82, 150, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.feed-button-secondary:hover {
  background: rgba(18, 21, 29, 0.78);
  border-color: rgba(178, 191, 235, 0.36);
}

.feed-action::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.9;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.feed-action[data-action="test"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6'/%3E%3Cpath d='M10 3v6l-4 8a3 3 0 0 0 2.7 4.3h6.6A3 3 0 0 0 18 17l-4-8V3'/%3E%3Cpath d='M8 15h8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6'/%3E%3Cpath d='M10 3v6l-4 8a3 3 0 0 0 2.7 4.3h6.6A3 3 0 0 0 18 17l-4-8V3'/%3E%3Cpath d='M8 15h8'/%3E%3C/svg%3E");
}

.feed-action[data-action="collaborate"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9'/%3E%3Cpath d='M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9'/%3E%3Cpath d='M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E");
}

.feed-action[data-action="proposal"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M22 2l-5 5'/%3E%3Cpath d='M17 2h5v5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M22 2l-5 5'/%3E%3Cpath d='M17 2h5v5'/%3E%3C/svg%3E");
}

.feed-action:disabled {
  opacity: 0.58;
  transform: none;
}

.feed-card-menu {
  position: relative;
  z-index: 3;
}

.feed-card-menu[open] {
  z-index: 12;
}

.feed-card-menu-trigger {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  gap: 4px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(159, 178, 255, 0.2);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  list-style: none;
}

.feed-card-menu-trigger::-webkit-details-marker {
  display: none;
}

.feed-card-menu-trigger span {
  width: 5px;
  height: 5px;
  border-radius: 2px;
  background: #c8d2ff;
  box-shadow: 0 0 10px rgba(122, 142, 255, 0.45);
}

.feed-card-menu-trigger:hover {
  border-color: rgba(159, 178, 255, 0.36);
  background: rgba(95, 123, 255, 0.12);
}

.feed-card-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(159, 178, 255, 0.2);
  background: rgba(17, 18, 23, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.feed-menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #dfe5ff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.feed-menu-item:hover {
  background: rgba(95, 123, 255, 0.12);
}

.feed-menu-item-danger {
  color: #ffd8dc;
}

.feed-menu-item-danger:hover {
  background: rgba(150, 38, 49, 0.22);
}

.feed-card-foot {
  display: flex;
  align-items: start;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.feed-card-admin {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.feed-card-open {
  min-height: 40px;
  justify-self: start;
}

.feed-card-open:hover {
  color: #c7d2ff;
}

.feed-feedback {
  min-height: 20px;
  color: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 0.18s ease;
}

.feed-feedback.visible {
  color: #74e6b5;
}

.feed-admin-action,
.admin-delete-button {
  min-height: 40px;
}

.feed-admin-action:hover,
.admin-delete-button:hover {
  filter: none;
  background: rgba(150, 38, 49, 0.22);
}

.feed-owner-action {
  min-height: 40px;
}

.feed-empty {
  padding: 36px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.feed-empty strong {
  display: block;
  font-size: 1.1rem;
}

.feed-empty p {
  color: #96a0b5;
  line-height: 1.6;
}

@media (min-width: 960px) {
  .feed-hero {
    grid-template-columns: 1fr;
    align-items: end;
  }

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

@media (max-width: 920px) {
  body.feed-page {
    padding-top: 122px;
  }

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

  .feed-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .feed-toolbar,
  .feed-card-head,
  .feed-progress-top {
    display: grid;
  }

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

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

  .feed-progress-top span {
    text-align: left;
  }
}

@media (max-width: 768px) {
  body,
  body.feed-page {
    padding-top: 88px;
  }

  .page,
  .container,
  body.feed-page .page,
  body.feed-page .app-nav-inner {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .feed-layout,
  .profile-grid,
  .idea-grid,
  .form-grid,
  .layout,
  .top-grid,
  .two-up,
  .split,
  .feed-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feed-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .feed-post-form,
  .feed-post-controls,
  .post-form,
  .post-form-row,
  .post-actions,
  .composer,
  .composer-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .feed-post-form textarea,
  .feed-post-form input,
  .feed-post-form select,
  .feed-post-form button,
  .post-form textarea,
  .post-form input,
  .post-form select,
  .post-form button,
  .composer textarea,
  .composer input,
  .composer select,
  .composer button {
    width: 100%;
    max-width: 100%;
  }

  .feed-action {
    min-height: 38px;
    padding: 9px 8px;
    font-size: 0.78rem;
  }

  .feed-undo-action {
    min-height: 31px;
    padding: 7px 6px;
    font-size: 0.72rem;
  }

  .feed-toolbar,
  .feed-card-head,
  .feed-progress-top,
  .profile-header,
  .profile-edit-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .app-nav-inner,
  .site-nav,
  .top-nav,
  .nav-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .app-nav-links {
    display: flex;
    width: auto;
    margin-left: auto;
  }

  .app-nav-links .nav-link {
    display: none;
  }

  .app-nav-links #myProfileLink {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .nav-link,
  .feed-toolbar-link,
  .actions button,
  .actions .button {
    width: 100%;
  }

  .hero h1,
  .feed-hero h1 {
    font-size: 40px;
    line-height: 1.05;
  }

  .hero p,
  .feed-hero p {
    font-size: 18px;
  }

  .home-page .page {
    padding-top: 12px;
  }

  .home-hero-compact {
    margin-bottom: 8px;
  }

  .home-hero-compact h1 {
    font-size: 30px;
  }

  .home-feed-card.feed-card {
    padding: 14px;
    border-radius: 18px;
  }

  .home-feed-card .feed-card-media {
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .home-actions {
    margin-top: 14px;
    padding-top: 14px;
  }

  .feed-hero {
    min-height: 280px;
    padding: 34px 24px;
    background-position: 58% center;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 82px;
  }

  body.feed-page {
    padding-top: 82px;
  }

  .app-nav-inner {
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
    align-items: center;
    flex-direction: row;
  }

  .app-nav-links {
    display: flex;
  }

  .hero h1,
  .feed-hero h1 {
    font-size: 34px;
  }

  .home-hero-compact h1 {
    font-size: 28px;
  }

  .home-feed-shell {
    padding: 0;
    border-radius: 0;
  }

  .home-feed-card .feed-card-description {
    -webkit-line-clamp: 2;
  }

  .feed-hero {
    min-height: 260px;
    padding: 28px 20px;
    border-radius: 22px;
  }

  .shell {
    padding: 14px;
    border-radius: 20px;
  }

  .card,
  .panel,
  .form-card,
  .feed-card,
  .feed-post-form {
    padding: 18px;
    border-radius: 20px;
  }

  .feed-actions {
    gap: 6px;
  }

  .feed-action {
    min-height: 34px;
    padding: 7px 5px;
    font-size: 0.72rem;
    line-height: 1.12;
    gap: 0;
    border-radius: 9px;
    letter-spacing: 0;
  }

  .feed-undo-action {
    min-height: 30px;
    padding: 6px 4px;
    font-size: 0.68rem;
  }

  .feed-action::before {
    display: none;
  }

  .nav-actions a,
  .nav-actions button,
  .nav-link {
    min-height: 42px;
    font-size: 13px;
    padding: 9px 8px;
    border-radius: 18px;
  }

  .brand,
  .feed-card-title,
  .profile-name {
    max-width: 100%;
  }
}
