@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --connectabr-css-ready: 1;
  --primary: #003215;
  --primary-strong: #2a6a3f;
  --primary-dark: #004b23;
  --primary-deep: #00210c;
  --gold: #fecb00;
  --gold-strong: #f1c100;
  --paper: #ffffff;
  --surface: #f9f9fc;
  --surface-strong: #eeeef0;
  --line: #e2e2e5;
  --graphite: #1a1c1e;
  --muted: #404941;
  --danger: #ef4444;
  --cyan: #2f3133;
  --profile-primary: #119447;
  --profile-secondary: #f6c343;
  --profile-surface: #f3f7f1;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
  --radius: 16px;
  --radius-sm: 8px;
  --sidebar: 300px;
  font-family:
    "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ConectarBR Perto */
.local-commerce-shell {
  --market-ink: #15221a;
  --market-muted: #66736b;
  --market-line: #e5eae6;
  display: grid;
  gap: 1.35rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.local-commerce-topbar,
.local-commerce-section-head,
.marketplace-menu-heading,
.marketplace-cart-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.local-commerce-topbar h2 {
  max-width: 19ch;
  margin: 0.25rem 0 0.3rem;
  color: var(--market-ink);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 0.98;
  text-wrap: balance;
}

.local-commerce-topbar p,
.local-commerce-section-head h3,
.marketplace-menu-heading h3,
.marketplace-cart-heading h2 {
  margin: 0;
}

.local-commerce-topbar p {
  max-width: 62ch;
  color: var(--market-muted);
  font-size: 1rem;
}

.local-commerce-service-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  max-width: 580px;
  padding: 0.34rem;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: #f5f7f5;
}

.local-commerce-service-tabs button {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.55rem;
  align-items: center;
  min-height: 54px;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 12px;
  color: #647068;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.local-commerce-service-tabs button.active {
  color: #123a22;
  background: #fff;
  box-shadow: 0 5px 18px rgba(19, 48, 29, 0.09);
}

.local-commerce-service-tabs button svg {
  grid-row: 1 / span 2;
  width: 20px;
}

.local-commerce-service-tabs button span {
  font-weight: 900;
}

.local-commerce-service-tabs button small {
  color: #89928c;
  font-size: 0.68rem;
}

.local-commerce-location {
  display: grid;
  grid-template-columns: 42px 1fr 40px;
  gap: 0.7rem;
  align-items: center;
  max-width: 520px;
  padding: 0.72rem;
  border: 1px solid var(--market-line);
  border-radius: 14px;
  background: #fff;
}

.local-commerce-location > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #0c6835;
  background: #e7f5eb;
}

.local-commerce-location div {
  display: grid;
}

.local-commerce-location small {
  color: var(--market-muted);
}

.local-commerce-location strong {
  color: var(--market-ink);
}

.local-commerce-search {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 58px;
  padding: 0 1rem;
  border: 1px solid var(--market-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 36, 23, 0.05);
}

.local-commerce-search svg {
  color: #617068;
}

.local-commerce-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--market-ink);
  background: transparent;
  font: inherit;
}

.marketplace-category-grid {
  display: flex;
  gap: 0.62rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.marketplace-category-grid::-webkit-scrollbar {
  display: none;
}

.marketplace-category-grid button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  align-items: center;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--market-line);
  border-radius: 13px;
  color: #3e4a42;
  background: #fff;
  cursor: pointer;
}

.marketplace-category-grid button.active {
  border-color: #176f3d;
  color: #fff;
  background: #176f3d;
}

.marketplace-category-grid button svg {
  width: 18px;
}

.marketplace-seller-types {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.marketplace-seller-types::-webkit-scrollbar {
  display: none;
}

.marketplace-seller-types button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  align-items: center;
  min-height: 36px;
  padding: 0.48rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #536159;
  background: #edf2ee;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.marketplace-seller-types button.active {
  border-color: #c9d8ce;
  color: #153b25;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 36, 23, 0.07);
}

.marketplace-seller-types svg {
  width: 15px;
  height: 15px;
}

.marketplace-discovery-modes {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.25rem;
  scrollbar-width: none;
}

.marketplace-discovery-modes::-webkit-scrollbar {
  display: none;
}

.marketplace-discovery-modes button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.4rem;
  align-items: center;
  min-height: 40px;
  padding: 0.55rem 0.76rem;
  border: 1px solid #dce5df;
  border-radius: 12px;
  color: #35453b;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.marketplace-discovery-modes button:hover {
  border-color: #9ebbaa;
  transform: translateY(-1px);
}

.marketplace-discovery-modes button.active {
  border-color: #1d7041;
  color: #12542f;
  background: #edf8f0;
  box-shadow: 0 5px 16px rgba(14, 79, 39, 0.09);
}

.marketplace-discovery-modes button svg {
  width: 16px;
  height: 16px;
}

.marketplace-discovery-modes button span {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #176f3d;
  font-size: 0.66rem;
}

.marketplace-territory-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 0.85rem 1.2rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid #d8e3dc;
  border-left: 4px solid #e3ad13;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(16, 36, 23, 0.06);
}

.marketplace-territory-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.marketplace-territory-copy > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #0f5c31;
  background: #e3f1e8;
}

.marketplace-territory-copy svg {
  width: 19px;
}

.marketplace-territory-copy small,
.marketplace-territory-copy strong,
.marketplace-territory-copy p {
  display: block;
}

.marketplace-territory-copy small {
  color: #7b6509;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.marketplace-territory-copy strong {
  margin-top: 0.12rem;
  color: var(--market-ink);
  font-size: 1rem;
}

.marketplace-territory-copy p {
  margin: 0.25rem 0 0;
  color: var(--market-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.marketplace-territory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  justify-content: flex-end;
}

.marketplace-territory-tags button {
  min-height: 32px;
  padding: 0.38rem 0.62rem;
  border: 1px solid #d6e1d9;
  border-radius: 9px;
  color: #20452e;
  background: #f7faf8;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.marketplace-territory-note {
  display: inline-flex;
  grid-column: 1 / -1;
  gap: 0.4rem;
  align-items: center;
  color: #637168;
  font-size: 0.72rem;
}

.marketplace-territory-note svg {
  width: 15px;
  color: #9d7800;
}

.local-commerce-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #dbe5dd;
  border-radius: 22px;
  background: #f3f8f4;
  box-shadow: 0 24px 60px rgba(16, 37, 23, 0.1);
}

.local-commerce-feature > div {
  z-index: 1;
  align-self: center;
  padding: clamp(1.35rem, 4vw, 2.7rem);
}

.local-commerce-feature h3 {
  max-width: 17ch;
  margin: 0.75rem 0;
  color: var(--market-ink);
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.02;
  text-wrap: balance;
}

.local-commerce-feature p {
  max-width: 45ch;
  margin: 0 0 1.2rem;
  color: var(--market-muted);
}

.local-commerce-feature img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.marketplace-momentum {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0.8rem;
}

.marketplace-reward-card,
.marketplace-repeat-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dce5df;
  border-radius: 15px;
  background: #fff;
}

.marketplace-reward-card {
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  padding: 1rem;
}

.marketplace-reward-icon,
.marketplace-repeat-card.empty > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: #6c5200;
  background: #fff2bc;
}

.marketplace-reward-card small,
.marketplace-reward-card strong,
.marketplace-reward-card p,
.marketplace-repeat-card small,
.marketplace-repeat-card strong,
.marketplace-repeat-card p {
  display: block;
}

.marketplace-reward-card small,
.marketplace-repeat-card small {
  color: #68766d;
  font-size: 0.7rem;
  font-weight: 750;
}

.marketplace-reward-card strong,
.marketplace-repeat-card strong {
  margin-top: 0.1rem;
  color: var(--market-ink);
}

.marketplace-reward-card p,
.marketplace-repeat-card p {
  margin: 0.25rem 0 0;
  color: var(--market-muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.marketplace-reward-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eee9;
}

.marketplace-reward-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #d5a900;
  transition: width 320ms ease;
}

.marketplace-reward-note {
  grid-column: 1 / -1;
}

.marketplace-repeat-card {
  grid-template-columns: 116px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem;
}

.marketplace-repeat-card img {
  width: 116px;
  height: 90px;
  border-radius: 11px;
  object-fit: cover;
}

.marketplace-repeat-card.empty {
  grid-template-columns: auto 1fr;
  padding: 1rem;
}

.marketplace-honest-offers {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.marketplace-honest-offers article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.62rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid #e2e7e3;
  border-radius: 12px;
  background: #f8faf8;
}

.marketplace-honest-offers svg {
  width: 18px;
  color: #176f3d;
}

.marketplace-honest-offers strong,
.marketplace-honest-offers small {
  display: block;
}

.marketplace-honest-offers strong {
  color: var(--market-ink);
  font-size: 0.78rem;
}

.marketplace-honest-offers small {
  margin-top: 0.18rem;
  color: var(--market-muted);
  font-size: 0.69rem;
  line-height: 1.38;
}

.marketplace-popular-section {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.marketplace-popular-rail {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.55rem;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.marketplace-popular-rail > article {
  position: relative;
  display: grid;
  flex: 0 0 min(310px, 84vw);
  grid-template-columns: 92px 1fr 34px;
  gap: 0.7rem;
  align-items: center;
  min-height: 104px;
  padding: 0.55rem;
  border: 1px solid #e0e7e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 36, 23, 0.06);
  scroll-snap-align: start;
}

.marketplace-popular-image {
  width: 92px;
  height: 88px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #eef2ef;
  cursor: pointer;
}

.marketplace-popular-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketplace-popular-rail small,
.marketplace-popular-rail strong,
.marketplace-popular-rail span {
  display: block;
}

.marketplace-popular-rail small {
  overflow: hidden;
  color: #718077;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketplace-popular-rail strong {
  margin: 0.15rem 0 0.35rem;
  color: var(--market-ink);
  font-size: 0.82rem;
  line-height: 1.25;
}

.marketplace-popular-rail span {
  color: #145f35;
  font-size: 0.82rem;
  font-weight: 900;
}

.marketplace-quick-add {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #176f3d;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(13, 87, 43, 0.2);
}

.marketplace-quick-add svg {
  width: 17px;
}

.marketplace-popular-empty {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--market-muted);
  font-size: 0.8rem;
}

.local-commerce-section-head {
  margin-top: 0.3rem;
}

.local-commerce-section-head h3,
.marketplace-menu-heading h3 {
  color: var(--market-ink);
  font-size: 1.65rem;
}

.marketplace-disclaimer,
.marketplace-admin-disclaimer {
  margin: -0.8rem 0 0;
  color: #78847c;
  font-size: 0.78rem;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.marketplace-item {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--market-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 36, 23, 0.07);
}

.marketplace-favorite-button,
.marketplace-hero-favorite {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(20, 50, 30, 0.12);
  border-radius: 50%;
  color: #435047;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(9, 30, 17, 0.13);
}

.marketplace-favorite-button {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  right: 0.7rem;
}

.marketplace-hero-favorite {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 3.9rem;
}

.marketplace-favorite-button.active,
.marketplace-hero-favorite.active {
  color: #b4233a;
  background: #fff0f2;
}

.marketplace-favorite-button.active svg,
.marketplace-hero-favorite.active svg {
  fill: currentColor;
}

.marketplace-favorite-button svg,
.marketplace-hero-favorite svg {
  width: 18px;
}

.marketplace-store-image {
  position: relative;
  width: 100%;
  height: 178px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #edf1ee;
  cursor: pointer;
}

.marketplace-store-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.marketplace-store-image:hover img {
  transform: scale(1.035);
}

.marketplace-store-image > span {
  position: absolute;
  top: 0.72rem;
  left: 0.72rem;
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
  color: #0a4f28;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 900;
}

.marketplace-store-image > i {
  position: absolute;
  right: 0.72rem;
  bottom: 0.72rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #15703d;
  box-shadow: 0 5px 15px rgba(8, 57, 28, 0.24);
}

.marketplace-store-image > i svg {
  width: 18px;
}

.marketplace-store-copy {
  display: grid;
  gap: 0.58rem;
  padding: 1rem;
}

.marketplace-store-copy > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: start;
}

.marketplace-store-copy h3,
.marketplace-store-copy p {
  margin: 0;
}

.marketplace-store-copy h3 {
  color: var(--market-ink);
  font-size: 1.06rem;
}

.marketplace-store-copy p,
.marketplace-store-meta {
  color: var(--market-muted);
  font-size: 0.8rem;
}

.marketplace-store-copy > div:first-child span,
.marketplace-store-meta,
.marketplace-store-meta span {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.marketplace-store-copy > div:first-child span {
  color: #684d00;
  font-size: 0.78rem;
  font-weight: 900;
}

.marketplace-store-copy svg {
  width: 15px;
}

.marketplace-store-meta {
  justify-content: space-between;
  padding-top: 0.1rem;
}

.marketplace-store-copy .secondary-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 0.2rem;
}

.local-commerce-business,
.local-commerce-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid #dfe7e1;
  border-radius: 19px;
  background: #f5f8f6;
}

.local-commerce-business h3,
.local-commerce-trust h3 {
  max-width: 20ch;
  margin: 0.35rem 0;
  color: var(--market-ink);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.05;
}

.local-commerce-business p {
  max-width: 52ch;
  color: var(--market-muted);
}

.vendor-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.vendor-panel-grid article {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid #dde5df;
  border-radius: 13px;
  background: #fff;
}

.vendor-panel-grid article svg {
  width: 20px;
  color: #126b39;
}

.vendor-panel-grid strong {
  color: var(--market-ink);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.vendor-panel-grid span {
  color: var(--market-muted);
  font-size: 0.72rem;
}

.local-commerce-trust {
  align-items: start;
  background: #fff;
}

.local-commerce-trust .check-list {
  display: grid;
  gap: 0.5rem;
}

.marketplace-cart-dock,
.marketplace-modal-cart {
  position: sticky;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  width: min(540px, calc(100% - 2rem));
  min-height: 60px;
  margin: 0 auto;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 15px;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: #fff;
  background: #126b39;
  box-shadow: 0 16px 38px rgba(6, 64, 31, 0.28);
  cursor: pointer;
}

.marketplace-cart-dock[hidden] {
  display: none;
}

.marketplace-cart-dock span {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.marketplace-cart-dock b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #134622;
  background: #ffdd56;
}

.marketplace-cart-dock small {
  font-weight: 850;
}

.marketplace-store-dialog .modal-card,
.marketplace-cart-dialog .modal-card {
  width: min(760px, calc(100vw - 1.5rem));
  max-height: 92vh;
  overflow: auto;
  padding: 0;
  border-radius: 20px;
}

.marketplace-store-card > .close-button,
.marketplace-cart-card > .close-button {
  position: sticky;
  top: 0.75rem;
  z-index: 8;
  float: right;
  margin: 0.75rem 0.75rem -3.7rem 0;
  color: #1c2a21;
  background: rgba(255, 255, 255, 0.95);
}

.marketplace-store-hero {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  color: #fff;
}

.marketplace-store-hero img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.marketplace-store-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(9, 23, 14, 0.82));
}

.marketplace-store-hero > div:last-child {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
}

.marketplace-store-hero h2 {
  margin: 0.5rem 0 0.2rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.marketplace-store-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.marketplace-store-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 1rem;
  border-bottom: 1px solid var(--market-line);
}

.marketplace-store-summary span {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  color: #465249;
  font-size: 0.76rem;
}

.marketplace-store-summary svg {
  width: 17px;
  color: #136d3a;
}

.marketplace-menu-heading {
  padding: 1.1rem 1rem 0.65rem;
}

.marketplace-menu-heading > span {
  color: var(--market-muted);
  font-size: 0.78rem;
}

.marketplace-menu-list {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.marketplace-menu-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 108px;
  padding: 0.9rem;
  border: 1px solid var(--market-line);
  border-radius: 13px;
}

.marketplace-menu-list h4,
.marketplace-menu-list p {
  margin: 0;
}

.marketplace-menu-list h4 {
  color: var(--market-ink);
  font-size: 0.98rem;
}

.marketplace-menu-list p {
  max-width: 54ch;
  margin: 0.3rem 0 0.55rem;
  color: var(--market-muted);
  font-size: 0.8rem;
}

.marketplace-menu-list strong {
  color: #145c32;
}

.marketplace-popular {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  margin-bottom: 0.3rem;
  color: #a23c1d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marketplace-popular svg {
  width: 14px;
}

.marketplace-add-button,
.marketplace-quantity button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #b9d8c4;
  border-radius: 11px;
  place-items: center;
  color: #0e6a36;
  background: #edf8f0;
  cursor: pointer;
}

.marketplace-add-button svg,
.marketplace-quantity svg {
  width: 18px;
}

.marketplace-quantity {
  display: grid;
  grid-template-columns: 38px 28px 38px;
  gap: 0.25rem;
  align-items: center;
}

.marketplace-quantity span {
  text-align: center;
  font-weight: 950;
}

.marketplace-modal-cart {
  width: calc(100% - 2rem);
  margin-bottom: 1rem;
}

.marketplace-cart-heading {
  display: block;
  padding: 1.3rem 3.5rem 0.6rem 1.2rem;
}

.marketplace-cart-heading p {
  margin: 0.3rem 0 0;
  color: var(--market-muted);
}

.marketplace-delivery-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.5rem 1.2rem;
  padding: 0.3rem;
  border-radius: 13px;
  background: #eff3f0;
}

.marketplace-delivery-switcher button {
  display: flex;
  gap: 0.45rem;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: #68736c;
  background: transparent;
  font-weight: 850;
  cursor: pointer;
}

.marketplace-delivery-switcher button.active {
  color: #105f33;
  background: #fff;
  box-shadow: 0 5px 16px rgba(19, 53, 29, 0.08);
}

.marketplace-address,
.marketplace-payment-preview,
.marketplace-points-preview,
.marketplace-order-help {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  margin: 0.75rem 1.2rem;
  padding: 0.85rem;
  border: 1px solid var(--market-line);
  border-radius: 13px;
}

.marketplace-address > svg,
.marketplace-payment-preview > svg,
.marketplace-points-preview > svg,
.marketplace-order-help > svg {
  color: #126b39;
}

.marketplace-address div,
.marketplace-payment-preview span,
.marketplace-points-preview span,
.marketplace-order-help div {
  display: grid;
}

.marketplace-address small,
.marketplace-payment-preview small,
.marketplace-points-preview small,
.marketplace-order-help small {
  color: var(--market-muted);
}

.marketplace-cart-lines {
  display: grid;
  gap: 0.25rem;
  padding: 0.5rem 1.2rem;
}

.marketplace-cart-lines article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.7rem;
  align-items: center;
  min-height: 62px;
  padding: 0.6rem 0;
  border-bottom: 1px solid #edf0ee;
}

.marketplace-quantity.compact {
  grid-template-columns: 30px 23px 30px;
}

.marketplace-quantity.compact button {
  width: 30px;
  height: 30px;
}

.marketplace-cart-lines article > div:nth-child(2) {
  display: grid;
}

.marketplace-cart-lines small {
  color: var(--market-muted);
}

.marketplace-order-note {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 1.2rem;
  color: var(--market-ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.marketplace-order-note textarea {
  resize: vertical;
}

.marketplace-cart-totals {
  display: grid;
  gap: 0.48rem;
  margin: 0.75rem 1.2rem;
  padding: 1rem;
  border-radius: 13px;
  background: #f5f7f5;
}

.marketplace-cart-totals span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.marketplace-cart-totals small {
  color: var(--market-muted);
}

.marketplace-cart-totals .total {
  padding-top: 0.6rem;
  border-top: 1px solid #dce3de;
}

.marketplace-cart-totals .total strong {
  color: #0b6433;
  font-size: 1.25rem;
}

.marketplace-checkout-button {
  width: calc(100% - 2.4rem);
  margin: 0.3rem 1.2rem;
}

.marketplace-checkout-note {
  display: block;
  padding: 0.2rem 1.2rem 1.2rem;
  color: var(--market-muted);
  text-align: center;
}

.marketplace-cart-empty {
  display: grid;
  justify-items: center;
  min-height: 420px;
  padding: 4rem 1.5rem;
  place-content: center;
  text-align: center;
}

.marketplace-cart-empty > svg {
  width: 48px;
  height: 48px;
  color: #176f3d;
}

.marketplace-cart-empty h2 {
  margin: 1rem 0 0.3rem;
}

.marketplace-cart-empty p {
  margin: 0 0 1.2rem;
  color: var(--market-muted);
}

.marketplace-order-card {
  width: min(590px, calc(100vw - 1.5rem));
}

.marketplace-order-success {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  color: #0e6a36;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marketplace-order-card h2 {
  margin: 0.75rem 0 0.3rem;
  color: var(--market-ink);
  font-size: 2rem;
  line-height: 1.05;
}

.marketplace-order-map {
  display: grid;
  grid-template-columns: 48px 1fr 48px 1fr 48px;
  align-items: center;
  margin: 1.2rem 0;
}

.marketplace-order-map span {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  place-items: center;
}

.marketplace-order-map .store { color: #155f34; background: #e4f4e9; }
.marketplace-order-map .courier { color: #6d5300; background: #fff4c7; }
.marketplace-order-map .home { color: #194e7a; background: #e5f1fb; }
.marketplace-order-map i { height: 3px; background: #dfe7e1; }

.marketplace-order-timeline {
  display: grid;
  gap: 0.5rem;
}

.marketplace-order-timeline article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.7rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 12px;
  color: #737d76;
}

.marketplace-order-timeline article.active {
  color: #0d6534;
  background: #edf8f0;
}

.marketplace-order-timeline article > svg {
  justify-self: center;
}

.marketplace-order-timeline article div {
  display: grid;
}

.marketplace-order-timeline small {
  color: var(--market-muted);
}

.marketplace-order-help {
  margin: 1rem 0;
}

.marketplace-points-preview {
  margin-top: 0.6rem;
  border-color: #eadb9b;
  background: #fffaf0;
}

.marketplace-points-preview > svg {
  color: #896900;
}

.marketplace-order-points {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  margin: 0.75rem 0;
  padding: 0.85rem;
  border: 1px solid #eadb9b;
  border-radius: 12px;
  color: #5e4900;
  background: #fff9df;
}

.marketplace-order-points svg {
  width: 20px;
}

.marketplace-order-points strong,
.marketplace-order-points small {
  display: block;
}

.marketplace-order-points small {
  margin-top: 0.2rem;
  color: #756d4f;
  font-size: 0.72rem;
  line-height: 1.4;
}

.marketplace-ops-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.marketplace-ops-flow article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.65rem;
  padding: 0.85rem;
  border: 1px solid #dfe7e1;
  border-radius: 13px;
}

.marketplace-ops-flow article > svg {
  width: 22px;
  color: #126b39;
}

.marketplace-ops-flow p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.dark .local-commerce-shell {
  --market-ink: #f1f6f2;
  --market-muted: #a9b5ad;
  --market-line: rgba(255, 255, 255, 0.12);
}

.dark .local-commerce-service-tabs,
.dark .marketplace-category-grid button,
.dark .marketplace-seller-types button.active,
.dark .marketplace-discovery-modes button,
.dark .marketplace-territory-strip,
.dark .marketplace-territory-tags button,
.dark .marketplace-reward-card,
.dark .marketplace-repeat-card,
.dark .marketplace-honest-offers article,
.dark .marketplace-popular-rail > article,
.dark .local-commerce-location,
.dark .local-commerce-search,
.dark .marketplace-item,
.dark .local-commerce-business,
.dark .local-commerce-trust,
.dark .marketplace-menu-list article,
.dark .marketplace-address,
.dark .marketplace-payment-preview,
.dark .marketplace-points-preview,
.dark .marketplace-order-help,
.dark .marketplace-ops-flow article {
  color: var(--market-ink);
  background: #17221b;
}

.dark .marketplace-discovery-modes button.active {
  border-color: #4e9d6d;
  color: #a9e7bc;
  background: #21372a;
}

.dark .marketplace-order-points {
  border-color: #655b2f;
  color: #f3dd7d;
  background: #2a2718;
}

.dark .marketplace-points-preview {
  border-color: #655b2f;
}

.dark .marketplace-seller-types button {
  color: #b8c5bd;
  background: #111b15;
}

.dark .marketplace-territory-copy > span {
  color: #7ddb9d;
  background: #20382a;
}

.dark .local-commerce-service-tabs button.active,
.dark .vendor-panel-grid article,
.dark .marketplace-delivery-switcher button.active {
  background: #223128;
}

.dark .local-commerce-feature,
.dark .marketplace-cart-totals,
.dark .marketplace-delivery-switcher {
  background: #1a2820;
}

@media (max-width: 980px) {
  .marketplace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .local-commerce-feature { grid-template-columns: 1fr 1fr; }
  .local-commerce-business,
  .local-commerce-trust { grid-template-columns: 1fr; }
  .marketplace-ops-flow { grid-template-columns: 1fr; }
  .marketplace-territory-strip { grid-template-columns: 1fr; }
  .marketplace-territory-tags { justify-content: flex-start; }
  .marketplace-momentum { grid-template-columns: 1fr; }
  .marketplace-honest-offers { grid-column: 1; }
}

@media (max-width: 720px) {
  .local-commerce-shell {
    gap: 1rem;
    padding-top: 0.65rem;
  }

  .local-commerce-topbar {
    display: grid;
    align-items: start;
  }

  .local-commerce-topbar h2 {
    max-width: 13ch;
    font-size: 2.25rem;
  }

  .local-commerce-topbar .secondary-button {
    width: 100%;
  }

  .local-commerce-service-tabs {
    max-width: none;
  }

  .local-commerce-service-tabs button {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.55rem 0.35rem;
    text-align: center;
  }

  .local-commerce-service-tabs button svg {
    grid-row: auto;
  }

  .local-commerce-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .local-commerce-feature > div {
    padding: 1.2rem;
  }

  .local-commerce-feature h3 {
    font-size: 1.75rem;
  }

  .local-commerce-feature img {
    min-height: 190px;
    max-height: 230px;
  }

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

  .marketplace-honest-offers {
    grid-template-columns: 1fr;
  }

  .marketplace-repeat-card {
    grid-template-columns: 90px 1fr;
  }

  .marketplace-repeat-card img {
    width: 90px;
    height: 78px;
  }

  .marketplace-repeat-card .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .marketplace-territory-strip {
    padding: 0.9rem;
  }

  .marketplace-territory-note {
    align-items: flex-start;
  }

  .marketplace-store-image {
    height: 190px;
  }

  .vendor-panel-grid {
    grid-template-columns: 1fr;
  }

  .local-commerce-business,
  .local-commerce-trust {
    padding: 1rem;
  }

  .marketplace-store-dialog .modal-card,
  .marketplace-cart-dialog .modal-card {
    width: 100vw;
    max-width: 100vw;
    max-height: 96vh;
    margin: 0;
    border-radius: 18px 18px 0 0;
  }

  .marketplace-store-hero {
    min-height: 230px;
  }

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

  .marketplace-menu-list article {
    min-height: 118px;
  }

  .marketplace-address {
    grid-template-columns: auto 1fr;
  }

  .marketplace-address button {
    grid-column: 2;
    justify-self: start;
  }

  .marketplace-order-card h2 {
    font-size: 1.6rem;
  }
}

/* Agenda local */
.local-agenda-shell {
  --agenda-ink: #17221b;
  --agenda-muted: #66736b;
  --agenda-line: #e2e8e3;
  display: grid;
  gap: 1.15rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

.local-agenda-topbar,
.agenda-section-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.local-agenda-topbar h2 {
  max-width: 18ch;
  margin: 0.25rem 0 0.35rem;
  color: var(--agenda-ink);
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 0.98;
  text-wrap: balance;
}

.local-agenda-topbar p {
  max-width: 64ch;
  margin: 0;
  color: var(--agenda-muted);
}

.local-agenda-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 220px;
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid #d9e4dc;
  border-left: 5px solid #efbd22;
  border-radius: 18px;
  background: #f7faf7;
  box-shadow: 0 20px 50px rgba(15, 38, 23, 0.08);
}

.local-agenda-hero h3 {
  max-width: 16ch;
  margin: 0.75rem 0 0.45rem;
  color: var(--agenda-ink);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1;
}

.local-agenda-hero p {
  max-width: 52ch;
  margin: 0;
  color: var(--agenda-muted);
}

.agenda-hero-stat {
  display: grid;
  min-width: 180px;
  min-height: 150px;
  padding: 1rem;
  border: 1px solid #d9e4dc;
  border-radius: 15px;
  place-content: center;
  color: #fff;
  background: #125c34;
  text-align: center;
}

.agenda-hero-stat strong {
  font-size: 3rem;
  line-height: 1;
}

.agenda-hero-stat span,
.agenda-hero-stat small {
  display: block;
}

.agenda-hero-stat span {
  margin-top: 0.2rem;
  font-weight: 850;
}

.agenda-hero-stat small {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
}

.agenda-date-rail,
.agenda-category-rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.3rem;
  scrollbar-width: none;
}

.agenda-date-rail::-webkit-scrollbar,
.agenda-category-rail::-webkit-scrollbar {
  display: none;
}

.agenda-date-rail button {
  display: grid;
  flex: 0 0 auto;
  min-width: 92px;
  min-height: 66px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--agenda-line);
  border-radius: 13px;
  color: #45534a;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.agenda-date-rail button:first-child {
  grid-template-columns: auto 1fr;
  gap: 0 0.45rem;
  min-width: 132px;
}

.agenda-date-rail button:first-child svg {
  grid-row: 1 / span 2;
  width: 18px;
}

.agenda-date-rail button strong {
  font-size: 0.82rem;
}

.agenda-date-rail button small {
  color: #7d8981;
  font-size: 0.68rem;
  text-transform: capitalize;
}

.agenda-date-rail button.active {
  border-color: #176f3d;
  color: #fff;
  background: #176f3d;
  box-shadow: 0 7px 18px rgba(14, 84, 41, 0.17);
}

.agenda-date-rail button.active small {
  color: rgba(255, 255, 255, 0.75);
}

.agenda-category-rail button {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.42rem;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.72rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #58655d;
  background: #edf2ee;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.agenda-category-rail button.active {
  border-color: #c8d7cd;
  color: #164f2d;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 57, 31, 0.07);
}

.agenda-category-rail svg {
  width: 15px;
}

.local-agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.local-agenda-layout > main {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

.agenda-section-heading h3 {
  margin: 0.1rem 0 0;
  color: var(--agenda-ink);
  font-size: 1.55rem;
}

.agenda-section-heading > span {
  color: var(--agenda-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.agenda-demo-note {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: -0.35rem 0 0;
  color: #78837b;
  font-size: 0.72rem;
}

.agenda-demo-note svg {
  width: 14px;
}

.agenda-event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.agenda-event-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--agenda-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 13px 32px rgba(15, 38, 23, 0.07);
}

.agenda-event-card.featured {
  border-color: #d9bd58;
  box-shadow: 0 15px 36px rgba(111, 83, 0, 0.11);
}

.agenda-event-image {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #edf1ee;
  cursor: pointer;
}

.agenda-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.agenda-event-image:hover img {
  transform: scale(1.03);
}

.agenda-event-image > span,
.agenda-event-image > i {
  position: absolute;
  top: 0.7rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.agenda-event-image > span {
  left: 0.7rem;
  color: #113d24;
  background: rgba(255, 255, 255, 0.95);
}

.agenda-event-image > i {
  display: flex;
  right: 0.7rem;
  gap: 0.3rem;
  align-items: center;
  color: #5d4700;
  background: #ffe37c;
}

.agenda-event-image > i svg {
  width: 13px;
}

.agenda-event-copy {
  display: grid;
  gap: 0.48rem;
  padding: 0.9rem 0.9rem 0.65rem;
}

.agenda-event-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #176f3d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.agenda-event-kicker i {
  color: #176f3d;
}

.agenda-event-kicker svg {
  width: 17px;
}

.agenda-event-card h3 {
  margin: 0;
  color: var(--agenda-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.agenda-event-card p {
  display: flex;
  gap: 0.3rem;
  align-items: flex-start;
  margin: 0;
  color: var(--agenda-muted);
  font-size: 0.76rem;
}

.agenda-event-card p svg {
  flex: 0 0 auto;
  width: 14px;
}

.agenda-event-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: #5f6d64;
  font-size: 0.7rem;
}

.agenda-event-meta span {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
}

.agenda-event-meta svg {
  width: 14px;
}

.agenda-event-card footer {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem 0.9rem;
  border-top: 1px solid #edf1ee;
}

.agenda-interest-button {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  color: #69766e;
  background: transparent;
  font-size: 0.71rem;
  font-weight: 800;
  cursor: pointer;
}

.agenda-interest-button.active {
  color: #116035;
}

.agenda-interest-button svg {
  width: 16px;
}

.agenda-side-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0.7rem;
}

.agenda-submit-card,
.agenda-trust-card,
.event-submission-status {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--agenda-line);
  border-radius: 14px;
  background: #fff;
}

.agenda-submit-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 11px;
  color: #755900;
  background: #ffefae;
}

.agenda-submit-card small,
.agenda-submit-card strong,
.agenda-submit-card p {
  display: block;
}

.agenda-submit-card small {
  color: #7c6a26;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.agenda-submit-card strong {
  color: var(--agenda-ink);
  font-size: 1.05rem;
}

.agenda-submit-card p,
.agenda-trust-card p {
  margin: 0.2rem 0 0;
  color: var(--agenda-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.agenda-trust-card strong {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--agenda-ink);
}

.agenda-trust-card svg {
  width: 18px;
  color: #176f3d;
}

.event-submission-status > strong {
  color: var(--agenda-ink);
  font-size: 0.78rem;
}

.event-submission-status > span {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.event-submission-status > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7a600;
}

.event-submission-status > span i.approved { background: #178548; }
.event-submission-status > span i.rejected { background: #c83e3e; }

.event-submission-status b,
.event-submission-status small {
  overflow: hidden;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-submission-status small {
  color: var(--agenda-muted);
}

.agenda-empty-state {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  min-height: 140px;
  padding: 1rem;
  border: 1px dashed #cbd9cf;
  border-radius: 14px;
}

.agenda-empty-state > span {
  color: #176f3d;
}

.agenda-empty-state strong {
  color: var(--agenda-ink);
}

.agenda-empty-state p {
  margin: 0.2rem 0 0;
  color: var(--agenda-muted);
  font-size: 0.78rem;
}

.event-detail-dialog .modal-card,
.event-submit-dialog .modal-card {
  max-height: 92vh;
  overflow: auto;
}

.event-detail-card {
  width: min(760px, calc(100vw - 1.5rem));
  padding: 0;
  overflow: hidden;
}

.event-detail-card > .close-button {
  position: sticky;
  z-index: 5;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem -3.6rem 0;
  color: #17221b;
  background: rgba(255, 255, 255, 0.95);
}

.event-detail-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  color: #fff;
}

.event-detail-hero > img,
.event-detail-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.event-detail-hero > img {
  object-fit: cover;
}

.event-detail-shade {
  background: rgba(5, 19, 11, 0.58);
}

.event-detail-hero > div:last-child {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
}

.event-detail-hero .badge {
  margin: 0 0.35rem 0.35rem 0;
}

.event-detail-hero h2 {
  max-width: 18ch;
  margin: 0.35rem 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.event-detail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  text-transform: none;
}

.event-detail-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.event-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.event-detail-facts article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid var(--agenda-line);
  border-radius: 12px;
}

.event-detail-facts article > svg {
  width: 18px;
  color: #176f3d;
}

.event-detail-facts small,
.event-detail-facts strong,
.event-detail-facts span {
  display: block;
}

.event-detail-facts small,
.event-detail-facts span {
  color: var(--agenda-muted);
  font-size: 0.68rem;
}

.event-detail-facts strong {
  margin: 0.1rem 0;
  color: var(--agenda-ink);
  font-size: 0.8rem;
}

.event-detail-description {
  margin: 0;
  color: var(--agenda-muted);
  line-height: 1.55;
}

.event-detail-actions {
  display: flex;
  gap: 0.6rem;
}

.event-interested {
  background: #0f5e34;
}

.event-detail-source {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  color: #748077;
  font-size: 0.68rem;
}

.event-detail-source svg {
  width: 14px;
}

.event-submit-card {
  width: min(820px, calc(100vw - 1.5rem));
}

.event-submit-card h2 {
  max-width: 20ch;
  margin: 0.5rem 0;
  color: var(--agenda-ink);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.event-moderation-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.event-moderation-list article {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.event-moderation-list article > span {
  color: var(--primary);
}

.event-moderation-list p {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.event-moderation-list small {
  color: var(--muted);
  font-size: 0.68rem;
}

.event-moderation-actions {
  display: flex;
  gap: 0.45rem;
}

.event-moderation-empty {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 76px;
  color: var(--muted);
}

.event-moderation-empty svg {
  color: var(--primary);
}

body.dark .local-agenda-shell {
  --agenda-ink: #f1f6f2;
  --agenda-muted: #aab6ae;
  --agenda-line: rgba(255, 255, 255, 0.12);
}

body.dark .local-agenda-hero,
body.dark .agenda-date-rail button,
body.dark .agenda-category-rail button.active,
body.dark .agenda-event-card,
body.dark .agenda-submit-card,
body.dark .agenda-trust-card,
body.dark .event-submission-status,
body.dark .event-detail-facts article {
  color: var(--agenda-ink);
  background: #17221b;
}

body.dark .agenda-category-rail button {
  color: #bdc8c0;
  background: #111b15;
}

body.dark .agenda-date-rail button.active {
  color: #fff;
  background: #257a49;
}

body.dark .agenda-event-card footer {
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark .agenda-hero-stat {
  background: #1d7041;
}

@media (max-width: 980px) {
  .local-agenda-layout {
    grid-template-columns: 1fr;
  }

  .agenda-side-panel {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .event-submission-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .local-agenda-shell {
    gap: 0.9rem;
    padding-top: 0.65rem;
  }

  .local-agenda-topbar,
  .agenda-section-heading {
    display: grid;
    align-items: start;
  }

  .local-agenda-topbar h2 {
    max-width: 14ch;
    font-size: 2.25rem;
  }

  .local-agenda-topbar .primary-button {
    width: 100%;
  }

  .local-agenda-hero {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }

  .agenda-hero-stat {
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
    min-height: 90px;
    place-content: center;
    text-align: left;
  }

  .agenda-hero-stat strong {
    grid-row: 1 / span 2;
    font-size: 2.5rem;
  }

  .agenda-hero-stat small {
    margin-top: 0;
  }

  .agenda-event-grid,
  .agenda-side-panel,
  .event-detail-facts {
    grid-template-columns: 1fr;
  }

  .agenda-event-image {
    height: 210px;
  }

  .agenda-event-card footer,
  .event-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .agenda-event-card footer .secondary-button,
  .event-detail-actions button {
    width: 100%;
  }

  .event-detail-card,
  .event-submit-card {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    border-radius: 18px 18px 0 0;
  }

  .event-detail-hero {
    min-height: 300px;
  }

  .event-detail-hero h2 {
    font-size: 2rem;
  }

  .event-moderation-list article {
    grid-template-columns: auto 1fr;
  }

  .event-moderation-actions {
    grid-column: 1 / -1;
  }

  .agenda-empty-state {
    grid-template-columns: auto 1fr;
  }

  .agenda-empty-state .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

body.dark {
  color-scheme: dark;
  --primary: #4fc879;
  --primary-strong: #64da8d;
  --primary-dark: #0f5c3a;
  --primary-deep: #061426;
  --gold: #ffd15c;
  --gold-strong: #f2b927;
  --paper: #0c1825;
  --surface: #07111d;
  --surface-strong: #10243a;
  --line: #20384f;
  --graphite: #eef8f0;
  --muted: #b8c7d8;
  --danger: #ff8b80;
  --cyan: #42d5c9;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(249, 249, 252, 0.98), rgba(243, 243, 246, 0.95)),
    var(--surface);
  color: var(--graphite);
}

h1,
h2,
h3,
h4,
button,
.eyebrow,
.badge,
.nav-button,
.bottom-nav button {
  font-family: "Hanken Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
}

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

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-150%);
  z-index: 30;
  background: var(--gold);
  color: #182218;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 800;
}

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

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.25rem;
  background:
    linear-gradient(160deg, rgba(246, 195, 67, 0.14), transparent 40%),
    linear-gradient(180deg, var(--primary-dark), var(--primary-deep));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 54px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, #123c8c 0 20%, #ffffff 21% 33%, transparent 34%),
    linear-gradient(135deg, var(--primary) 0 32%, var(--gold) 33% 68%, #ffffff 69% 100%);
  color: #07391f;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.brand-mark.brazil-mark span,
.brazil-orb b {
  position: relative;
  z-index: 1;
  color: #07391f;
  font-size: 0.72rem;
  letter-spacing: 0;
  padding: 0.12rem 0.18rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.brand-mark.has-logo,
.brand-preview.has-logo,
.daily-logo.has-logo {
  background-color: var(--paper);
  background-size: cover;
  background-position: center;
  color: transparent;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 0.12rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.main-nav {
  display: grid;
  gap: 0.45rem;
}

.nav-button,
.bottom-nav button {
  border: 0;
  color: inherit;
  background: transparent;
}

.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.nav-button:hover,
.nav-button.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(2px);
}

.nav-button.active {
  box-shadow: inset 3px 0 0 var(--gold);
}

.nav-button svg,
.icon-button svg,
.primary-button svg,
.secondary-button svg,
.ghost-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.side-panel {
  margin-top: auto;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.panel-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.side-panel .panel-label {
  color: var(--gold);
}

.side-panel strong {
  display: block;
  margin: 0.5rem 0 0.9rem;
  line-height: 1.35;
}

.main {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 1.25rem 6.5rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  margin: 0 -1.25rem 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(249, 249, 252, 0.92);
  backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--line);
}

body.dark .topbar {
  background: rgba(7, 20, 14, 0.84);
}

.topbar-title {
  display: none;
}

.topbar-location {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1;
  color: var(--primary);
  font-size: 1.05rem;
}

.topbar-location svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.topbar-location strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.city-switcher,
.role-switcher,
.state-switcher {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

select,
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
  border-radius: 14px;
  padding: 0.75rem 0.8rem;
  outline: 0;
}

select:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(17, 148, 71, 0.14);
}

.city-switcher select,
.role-switcher select,
.state-switcher select {
  min-width: 168px;
  padding: 0.55rem 0.75rem;
}

.notification-button {
  position: relative;
}

.notification-button > span {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d91f2a;
  border: 2px solid var(--paper);
}

.topbar-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}

.role-switcher select {
  min-width: 138px;
  border-color: rgba(17, 148, 71, 0.26);
  background: rgba(17, 148, 71, 0.08);
  font-weight: 850;
}

.state-switcher select {
  min-width: 134px;
}

.city-switcher select {
  min-width: 190px;
}

.icon-button,
.primary-button,
.secondary-button,
.ghost-button,
.primary-link-button,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  border-radius: 999px;
  border: 0;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.icon-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.icon-button {
  width: 42px;
  background: var(--paper);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

.primary-button {
  padding: 0.78rem 1rem;
  color: #112016;
  background: linear-gradient(135deg, var(--gold), #ffe38a);
  box-shadow: 0 12px 22px rgba(217, 169, 31, 0.2);
}

.primary-button.compact {
  min-height: 40px;
  padding: 0.62rem 0.85rem;
}

.secondary-button {
  padding: 0.78rem 1rem;
  background: var(--paper);
  color: var(--primary-dark);
  border: 1px solid var(--line);
  text-decoration: none;
}

.primary-link-button {
  min-height: 42px;
  padding: 0.78rem 1rem;
  color: #112016;
  background: linear-gradient(135deg, var(--gold), #ffe38a);
  box-shadow: 0 12px 22px rgba(217, 169, 31, 0.2);
  text-decoration: none;
}

.inline-link {
  justify-content: flex-start;
  min-height: auto;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 850;
}

body.dark .secondary-button,
body.dark .icon-button {
  color: var(--graphite);
}

.ghost-button {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(260px, 34vh, 360px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: var(--primary-dark);
}

body.detail-mode .hero,
body.detail-mode .daily-hub,
body.detail-mode .pwa-banner,
body.detail-mode .vision-band,
body.detail-mode .stats-strip,
body.detail-mode .growth-band {
  display: none;
}

body:not(.detail-mode) .hero,
body:not(.detail-mode) .vision-band,
body:not(.detail-mode) .stats-strip,
body:not(.detail-mode) .growth-band {
  display: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 44, 26, 0.86), rgba(2, 44, 26, 0.28) 58%, rgba(17, 148, 71, 0.1)),
    url("assets/hero-community.png") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% 34%;
  z-index: -1;
  height: 65%;
  border-radius: 50%;
  background: rgba(246, 195, 67, 0.22);
  transform: rotate(-8deg);
}

.hero-content {
  width: min(640px, 100%);
  padding: clamp(1.25rem, 6vw, 4rem);
  color: #fff;
}

.hero .eyebrow {
  color: #ffe38a;
}

.hero h1 {
  margin: 0.55rem 0 0.65rem;
  max-width: 14ch;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.hero p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.vision-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(6, 27, 51, 0.06), rgba(15, 92, 58, 0.1)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.vision-band h2 {
  margin: 0.25rem 0 0;
  max-width: 820px;
  font-size: clamp(1.25rem, 2.7vw, 2rem);
  line-height: 1.12;
}

.vision-pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.vision-pill-grid span {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid rgba(15, 92, 58, 0.12);
  color: var(--graphite);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.daily-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  width: min(100%, 1060px);
  margin: 1rem auto;
}

.daily-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid #dfe5dd;
  box-shadow: var(--shadow-soft);
}

body.dark .daily-card {
  background: rgba(13, 29, 21, 0.9);
}

@media (min-width: 861px) {
  .daily-hub {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: stretch;
  }

  .daily-card.actions,
  .activation-card,
  .city-pulse-daily,
  .daily-card.missions,
  .daily-card.alerts {
    grid-column: span 2;
  }

  .daily-card.streak {
    min-height: 126px;
  }
}

.daily-card.identity {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.hub-welcome {
  align-content: center;
  min-height: 214px;
  padding: 1.35rem;
  background:
    radial-gradient(circle at 86% 18%, rgba(246, 195, 67, 0.28), transparent 24%),
    linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.hub-welcome h2 {
  margin: 0.4rem 0 0.45rem;
  max-width: 15ch;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.05;
}

.hub-welcome p {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.hub-brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.brazil-orb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at center, #123c8c 0 19%, #ffffff 20% 31%, transparent 32%),
    linear-gradient(135deg, var(--primary) 0 32%, var(--gold) 33% 68%, #ffffff 69% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 16px 34px rgba(0, 0, 0, 0.2);
}

.badge.prime {
  width: fit-content;
  background: var(--gold);
  color: var(--graphite);
}

.national-pulse-card {
  align-content: space-between;
  min-height: 214px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 250, 255, 0.82)),
    var(--paper);
}

.national-pulse-card header,
.national-route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.national-pulse-card header {
  flex-wrap: wrap;
}

.national-pulse-card header strong {
  color: var(--graphite);
}

.national-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.national-route span,
.national-route b {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(17, 148, 71, 0.1);
  color: var(--primary-strong);
  font-weight: 950;
}

.national-route div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.12);
}

.national-route i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.national-pulse-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hub-trust {
  align-content: space-between;
  min-height: 154px;
}

.daily-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.daily-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), #fff2a3 52%, var(--primary));
  color: #07391f;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.daily-user strong,
.daily-user span,
.daily-trust span,
.daily-trust strong,
.daily-card.streak span,
.daily-card.streak strong {
  display: block;
}

.daily-user span,
.daily-trust span,
.daily-card.streak span,
.daily-card.streak p,
.daily-card header span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.daily-trust {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: right;
}

.daily-trust strong,
.daily-card.streak strong {
  margin-top: 0.15rem;
  font-size: 1.6rem;
  line-height: 1;
}

.daily-trust small {
  color: var(--muted);
  font-size: 1rem;
}

.trust-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 50, 21, 0.12);
}

.trust-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.mini-ring {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 54%, transparent 55%),
    conic-gradient(var(--primary) var(--trust), rgba(17, 148, 71, 0.14) 0);
  color: var(--primary-strong);
}

.daily-card.actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.activation-card header {
  align-items: center;
}

.activation-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

.activation-steps button {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 0.65rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--graphite);
  font-weight: 900;
}

.activation-steps button.done {
  background: rgba(17, 148, 71, 0.1);
  border-color: rgba(17, 148, 71, 0.24);
  color: var(--primary-strong);
}

.activation-steps svg {
  width: 20px;
  height: 20px;
}

.daily-card.actions button {
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #e2e2e5;
  color: var(--graphite);
  font-weight: 900;
}

.daily-card.actions button:first-child {
  background: var(--gold);
  border-color: var(--gold);
}

.daily-card.actions svg {
  color: var(--primary-strong);
}

.daily-card.streak {
  align-content: center;
  background: var(--paper);
}

.daily-card.streak p {
  margin: 0;
}

.daily-card.missions {
  grid-column: auto;
}

.daily-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.mini-mission {
  display: grid;
  gap: 0.35rem;
}

.mini-mission span {
  color: var(--graphite);
  font-weight: 850;
  font-size: 0.9rem;
}

.mini-mission div {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.1);
}

.mini-mission i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.daily-card.alerts p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--graphite);
  font-weight: 850;
}

.pwa-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 706px);
  margin: 0.6rem auto 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.pwa-banner strong {
  display: block;
  margin-top: 0.15rem;
  line-height: 1.35;
}

.pwa-banner .eyebrow {
  color: var(--gold);
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
}

.story-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 108px);
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.9rem;
  margin-bottom: 0.8rem;
  scrollbar-width: thin;
}

.story-rail button {
  min-height: 112px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.28rem;
  border: 1px solid rgba(17, 148, 71, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 243, 0.94)),
    var(--paper);
  color: var(--graphite);
  box-shadow: var(--shadow-soft);
}

.story-rail button > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(17, 148, 71, 0.14), rgba(246, 195, 67, 0.24));
  color: var(--primary-strong);
  font-weight: 950;
}

.story-rail strong,
.story-rail small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-rail strong {
  font-size: 0.86rem;
}

.story-rail small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 1.15rem;
}

.growth-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.15rem;
  padding: 1.1rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(17, 148, 71, 0.14), rgba(246, 195, 67, 0.2)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.growth-band h2 {
  margin: 0.25rem 0 0.3rem;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
}

.growth-band p {
  margin: 0;
  max-width: 78ch;
  color: var(--muted);
  line-height: 1.55;
}

.growth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.stat-card,
.post-card,
.room-card,
.poll-card,
.event-item,
.library-item,
.member-card,
.admin-card,
.radio-hero-card,
.composer,
.chat-layout,
.news-card,
.product-card,
.base-card,
.command-center,
.pricing-card,
.engagement-card,
.social-profile-card,
.profile-hero-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

body.dark .stat-card,
body.dark .post-card,
body.dark .room-card,
body.dark .poll-card,
body.dark .event-item,
body.dark .library-item,
body.dark .member-card,
body.dark .admin-card,
body.dark .radio-hero-card,
body.dark .composer,
body.dark .chat-layout,
body.dark .news-card,
body.dark .product-card,
body.dark .base-card,
body.dark .command-center,
body.dark .pricing-card,
body.dark .engagement-card,
body.dark .social-profile-card,
body.dark .profile-hero-card {
  background: rgba(13, 29, 21, 0.88);
}

.stat-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
}

.stat-icon,
.room-icon,
.library-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(17, 148, 71, 0.12);
  color: var(--primary-strong);
}

.stat-card strong {
  display: block;
  font-size: 1.45rem;
}

.stat-card span,
.post-meta,
.hint {
  color: var(--muted);
}

.section-view {
  display: none;
  scroll-margin-top: 92px;
  animation: fadeUp 240ms ease;
}

.section-view.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 706px);
  margin: 1rem auto 0.95rem;
}

.section-heading h2 {
  margin: 0.25rem 0 0;
  max-width: 18ch;
  font-size: clamp(1.32rem, 2.45vw, 1.92rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.chat-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.feed-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 0.9rem;
  align-items: start;
  width: min(100%, 1060px);
  margin: 0 auto;
}

.feed-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
  width: min(100%, 1060px);
  margin: 1rem auto 0.9rem;
  padding: 1.1rem;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid var(--premium-border);
  background:
    radial-gradient(circle at 92% 10%, rgba(254, 203, 0, 0.2), transparent 24%),
    linear-gradient(120deg, rgba(0, 50, 21, 0.96), rgba(17, 148, 71, 0.86) 58%, rgba(14, 165, 183, 0.72));
  color: #ffffff;
  box-shadow: var(--shadow-premium);
}

.feed-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -48% 46%;
  height: 210px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  transform: rotate(-7deg);
}

.feed-hero-copy,
.feed-hero-status,
.feed-hero-actions {
  position: relative;
  z-index: 1;
}

.feed-hero .eyebrow {
  color: var(--gold);
}

.feed-hero h2 {
  max-width: 14ch;
  margin: 0.25rem 0 0.55rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.94;
}

.feed-hero p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.52;
}

.feed-hero-status {
  min-width: 132px;
  display: grid;
  gap: 0.1rem;
  justify-items: center;
  padding: 0.8rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.feed-hero-status span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feed-hero-status strong {
  font-size: 2.05rem;
  line-height: 1;
}

.feed-hero-status small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.feed-hero-actions {
  display: grid;
  gap: 0.55rem;
}

.feed-main {
  min-width: 0;
}

.feed-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0.8rem;
}

.side-widget {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

body.dark .side-widget {
  background: rgba(12, 24, 37, 0.9);
}

.side-widget h3 {
  margin: 0;
  font-size: 1rem;
}

.trend-chip {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(15, 92, 58, 0.14);
  border-radius: 999px;
  background: var(--surface);
  color: var(--graphite);
  font-weight: 850;
}

.trend-chip + .trend-chip {
  margin-top: 0.45rem;
}

.trend-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-chip strong {
  color: var(--primary-strong);
  font-size: 0.78rem;
  white-space: nowrap;
}

.side-person {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.side-person + .side-person {
  margin-top: 0.5rem;
}

.side-person strong,
.side-person span {
  display: block;
}

.side-person span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.side-person button {
  min-height: 34px;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 92, 58, 0.18);
  background: var(--paper);
  color: var(--primary-strong);
  font-weight: 900;
}

.side-person button:disabled {
  color: var(--muted);
  background: var(--surface-strong);
}

.product-mini {
  display: grid;
  gap: 0.55rem;
}

.product-mini strong {
  line-height: 1.25;
}

.product-mini p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.full-width {
  width: 100%;
}

.side-progress {
  display: grid;
  gap: 0.55rem;
}

.side-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.side-progress-head span,
.side-progress p,
.side-mission small,
.side-event small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.side-progress-head strong {
  color: var(--primary-strong);
  font-size: 1.2rem;
}

.side-progress p {
  margin: 0;
  line-height: 1.35;
}

.side-mission,
.side-event {
  width: 100%;
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--graphite);
  text-align: left;
}

.side-mission {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 62px;
  padding: 0.65rem;
  border-radius: 18px;
}

.side-mission + .side-mission,
.side-event + .side-event {
  margin-top: 0.5rem;
}

.side-mission > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(17, 148, 71, 0.1);
  color: var(--primary-strong);
}

.side-mission strong,
.side-mission small,
.side-event strong,
.side-event small {
  display: block;
}

.side-mission b {
  color: var(--primary-strong);
  font-size: 0.85rem;
}

.side-event {
  padding: 0.72rem;
  border-radius: 18px;
}

.side-event > span {
  width: fit-content;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(246, 195, 67, 0.18);
  color: #8a6200;
  font-size: 0.76rem;
  font-weight: 950;
}

.composer {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.95rem;
  border-color: var(--premium-border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 248, 0.88)),
    var(--paper);
  box-shadow: 0 14px 34px rgba(9, 38, 23, 0.07);
}

.composer > button {
  flex: 1;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: left;
  padding: 0 1rem;
  background: var(--surface);
  color: var(--muted);
}

.quick-composer textarea {
  min-height: 86px;
  resize: vertical;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(17, 148, 71, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.quick-compose-body {
  flex: 1;
  display: grid;
  gap: 0.65rem;
}

.quick-compose-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.quick-compose-tools label {
  min-width: min(220px, 100%);
  display: grid;
  gap: 0.28rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.quick-compose-tools select {
  min-height: 40px;
  padding: 0.55rem 0.75rem;
}

.char-counter {
  margin-left: auto;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.88rem;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  flex: 0 0 auto;
}

.avatar.small {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  font-size: 0.75rem;
}

.feed-list,
.timeline,
.library-list,
.report-list {
  display: grid;
  gap: 0.85rem;
}

.post-card {
  padding: 1rem;
  border-radius: 24px;
  border-color: var(--premium-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.92)),
    var(--paper);
  box-shadow: 0 14px 36px rgba(9, 38, 23, 0.075);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 106, 63, 0.24);
  box-shadow: var(--shadow-lift);
}

.post-header {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.post-author {
  min-width: 0;
  flex: 1;
}

.post-author strong,
.post-author span {
  display: block;
}

.post-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.85rem 0 0.45rem;
}

.post-card h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.1;
}

.post-card p {
  margin: 0;
  color: var(--graphite);
  line-height: 1.58;
}

.badge,
.status-pill,
.room-count {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  background: rgba(246, 195, 67, 0.18);
  color: #7b5a05;
  font-size: 0.78rem;
  font-weight: 850;
}

body.dark .badge,
body.dark .room-count {
  color: #ffe38a;
}

.badge.green {
  background: rgba(17, 148, 71, 0.14);
  color: var(--primary-strong);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  min-height: 30px;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.trust-badge svg {
  width: 15px;
  height: 15px;
}

.trust-badge.compact {
  min-height: 24px;
  padding: 0.25rem 0.45rem;
  font-size: 0.72rem;
}

.trust-badge.low {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.24);
}

.trust-badge.medium {
  background: rgba(249, 188, 35, 0.16);
  color: #8a5b00;
  border-color: rgba(249, 188, 35, 0.32);
}

.trust-badge.high {
  background: rgba(14, 165, 183, 0.13);
  color: #087282;
  border-color: rgba(14, 165, 183, 0.26);
}

.trust-badge.verified {
  background: rgba(17, 148, 71, 0.15);
  color: var(--primary-strong);
  border-color: rgba(17, 148, 71, 0.28);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.post-actions button,
.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.48rem 0.65rem;
  font-weight: 800;
}

.post-actions button:hover,
.link-button:hover {
  color: var(--primary-strong);
  background: rgba(17, 148, 71, 0.1);
}

.reply-panel {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

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

.reply-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.6rem;
  border-radius: 16px;
  background: var(--surface);
}

.reply-item strong,
.reply-item span {
  display: inline-block;
}

.reply-item span {
  margin-left: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.reply-item p {
  margin-top: 0.18rem;
  font-size: 0.95rem;
}

.reply-form {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin-top: 0.65rem;
}

.reply-form input {
  min-height: 40px;
  border-radius: 999px;
  background: var(--surface);
}

.secondary-button.compact {
  min-height: 40px;
  padding: 0.62rem 0.85rem;
}

.room-grid,
.poll-grid,
.member-grid,
.base-grid,
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.portal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 0.85rem;
  align-items: start;
}

.news-grid {
  display: grid;
  gap: 0.85rem;
}

.news-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 1rem;
  overflow: hidden;
}

.news-art {
  min-height: 170px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(246, 195, 67, 0.42), rgba(17, 148, 71, 0.42)),
    var(--primary-dark);
  color: #fff;
}

.news-art svg {
  width: 42px;
  height: 42px;
}

.news-body {
  padding: 1rem 1rem 1rem 0;
}

.news-body h3 {
  margin: 0.5rem 0;
  font-size: 1.22rem;
}

.news-body p,
.product-card p,
.command-center p,
.pricing-card p,
.engagement-card p,
.funnel-item p,
.funnel-item em {
  color: var(--muted);
  line-height: 1.55;
}

.product-rail {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0.75rem;
}

.rail-header {
  padding: 1rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--primary-dark), var(--primary-deep));
  color: #fff;
}

.rail-header .eyebrow {
  color: var(--gold);
}

.rail-header h3,
.product-card h4 {
  margin: 0.35rem 0 0;
}

.product-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-footer strong {
  font-size: 1.2rem;
  color: var(--primary-strong);
}

.commerce-engine {
  width: min(100%, 1120px);
  margin: 0 auto 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 0.85rem;
}

.commerce-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: center;
  gap: 1rem;
  min-height: 290px;
  padding: 1rem;
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 30px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 216, 77, 0.26), transparent 32%),
    linear-gradient(135deg, rgba(3, 28, 17, 0.98), rgba(7, 92, 53, 0.94) 58%, rgba(18, 127, 163, 0.74));
  box-shadow: 0 24px 70px rgba(7, 92, 53, 0.18);
}

.commerce-hero-card h3 {
  max-width: 15ch;
  margin: 0.65rem 0 0.5rem;
  color: #ffffff;
  font-family: var(--type-display);
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 0.94;
  text-wrap: balance;
}

.commerce-hero-card p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
}

.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.commerce-hero-card figure {
  position: relative;
  height: 210px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.commerce-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.commerce-kpi-grid {
  display: grid;
  gap: 0.65rem;
}

.commerce-kpi-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  min-height: 66px;
  padding: 0.7rem;
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.84));
  box-shadow: 0 10px 28px rgba(22, 31, 26, 0.055);
}

.commerce-kpi-grid article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--v3-green);
  background: var(--v3-green-soft);
}

.commerce-kpi-grid strong {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--v3-green);
  font-size: 1.2rem;
  white-space: nowrap;
}

.commerce-kpi-grid p,
.commerce-kpi-grid em {
  grid-column: 2;
  margin: 0;
}

.commerce-kpi-grid p {
  color: var(--text-strong);
  font-weight: 820;
}

.commerce-kpi-grid em {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 740;
}

.product-card.featured {
  position: relative;
  overflow: hidden;
  border-color: rgba(7, 92, 53, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 216, 77, 0.25), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.92));
}

.product-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--v3-yellow), var(--v3-green), var(--v3-blue));
}

@media (max-width: 980px) {
  .commerce-engine,
  .commerce-hero-card {
    grid-template-columns: 1fr;
  }

  .commerce-hero-card figure {
    display: none;
  }
}

@media (max-width: 640px) {
  .commerce-hero-card {
    min-height: 0;
    padding: 0.95rem;
    border-radius: 24px;
  }

  .commerce-hero-card h3 {
    max-width: 16ch;
    margin-top: 0.5rem;
    font-size: 1.82rem;
    line-height: 0.98;
  }

  .commerce-hero-card p {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .commerce-actions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.7rem;
  }

  .commerce-actions .primary-button,
  .commerce-actions .secondary-button {
    min-height: 46px;
  }

  .commerce-kpi-grid article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .commerce-kpi-grid strong {
    grid-column: 2;
    grid-row: auto;
  }
}

.radio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 0.85rem;
  align-items: start;
}

.radio-hero-card {
  grid-row: span 2;
  min-height: 420px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 33, 12, 0.96), rgba(0, 75, 35, 0.84)),
    var(--primary-deep);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.radio-hero-card .eyebrow {
  color: var(--gold);
}

.radio-hero-card h3 {
  margin: 0.45rem 0 0.4rem;
  max-width: 13ch;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.radio-hero-card p {
  margin: 0;
  max-width: 66ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.radio-live-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.68rem;
  border-radius: 999px;
  background: #c81e2b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.86rem;
}

.radio-live-badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

.radio-player {
  min-height: 118px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.radio-player audio {
  width: min(100%, 680px);
}

.radio-placeholder {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  padding: 1rem;
  text-align: center;
}

.radio-listen-button {
  width: min(100%, 520px);
  min-height: 58px;
  justify-content: center;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.radio-placeholder span,
.radio-placeholder small {
  display: block;
}

.radio-placeholder span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.radio-placeholder small {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.6);
}

.radio-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.radio-panel.wide {
  grid-column: 2;
}

.radio-reference {
  grid-column: 2;
  grid-template-rows: 210px minmax(0, 1fr);
}

.member-reference {
  min-height: 100%;
}

.member-reference figure {
  background:
    radial-gradient(circle at 82% 18%, rgba(254, 203, 0, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(244, 249, 244, 0.94), rgba(237, 244, 239, 0.86));
}

.member-preview-shell {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  overflow: hidden;
}

.member-preview-top {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 50, 21, 0.08);
  backdrop-filter: blur(14px);
}

.member-preview-top span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-weight: 900;
  color: var(--primary-deep);
}

.member-preview-top svg {
  width: 18px;
  height: 18px;
}

.member-preview-cover {
  position: relative;
  background:
    radial-gradient(circle at 76% 42%, rgba(254, 203, 0, 0.38), transparent 7rem),
    linear-gradient(135deg, rgba(0, 50, 21, 0.05), rgba(17, 148, 71, 0.16));
}

.member-preview-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.84));
}

.member-preview-avatar {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  z-index: 3;
  width: 96px;
  height: 96px;
  transform: translateX(-50%);
}

.member-preview-avatar img {
  width: 100%;
  height: 100%;
  border: 5px solid #ffffff;
  border-radius: 34px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(9, 38, 23, 0.16);
}

.member-preview-avatar b {
  position: absolute;
  right: -0.45rem;
  bottom: 0.25rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--primary-deep);
  box-shadow: 0 10px 22px rgba(254, 203, 0, 0.28);
}

.member-preview-avatar svg {
  width: 19px;
  height: 19px;
}

.identity-signal {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.1rem;
}

.identity-signal span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  min-height: 30px;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), white 92%);
  color: var(--primary-deep);
  font-size: 0.8rem;
  font-weight: 850;
}

.identity-signal svg {
  width: 14px;
  height: 14px;
}

.radio-schedule {
  display: grid;
  gap: 0.55rem;
}

.radio-schedule-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.radio-schedule-item > strong {
  color: var(--primary-strong);
  font-size: 1.05rem;
}

.radio-schedule-item h3 {
  margin: 0;
  font-size: 0.98rem;
}

.radio-schedule-item span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.radio-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.radio-highlight-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 0.8rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.radio-highlight-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(15, 92, 58, 0.1);
  color: var(--primary-strong);
}

.radio-highlight-card h3,
.radio-highlight-card p {
  margin: 0;
}

.radio-highlight-card p {
  color: var(--muted);
  line-height: 1.45;
}

.more-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding: 1.1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.more-hero .eyebrow {
  color: var(--gold);
}

.more-hero h3 {
  margin: 0.35rem 0 0.4rem;
  max-width: 760px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.more-hero p {
  margin: 0;
  max-width: 76ch;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.58;
}

.more-orbit {
  display: grid;
  grid-template-columns: repeat(3, 54px);
  gap: 0.55rem;
}

.more-orbit span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--gold);
}

.more-orbit svg {
  width: 24px;
  height: 24px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.more-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.module-preview {
  height: 132px;
  margin: -0.35rem -0.35rem 0;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 50, 21, 0.08), rgba(254, 203, 0, 0.16));
  border: 1px solid rgba(0, 50, 21, 0.08);
}

.module-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
}

body.dark .more-card {
  background: rgba(13, 29, 21, 0.88);
}

.more-card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(42, 106, 63, 0.1);
  color: var(--primary-strong);
}

.more-card h3 {
  margin: 0.55rem 0 0.35rem;
  font-size: 1.12rem;
}

.more-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-visual-panel {
  overflow: hidden;
}

.admin-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.admin-preview-card {
  display: grid;
  grid-template-rows: 190px minmax(0, 1fr);
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.admin-preview-card figure {
  margin: 0;
  overflow: hidden;
  background: rgba(0, 50, 21, 0.06);
}

.admin-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.admin-preview-card > div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 0.9rem;
}

.admin-preview-card h4,
.admin-preview-card p {
  margin: 0;
}

.admin-preview-card p {
  color: var(--muted);
  line-height: 1.45;
}

body.dark .admin-preview-card {
  background: rgba(13, 29, 21, 0.8);
}

.screen-reference-card {
  display: grid;
  grid-template-rows: 220px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 20% 0%, rgba(254, 203, 0, 0.2), transparent 34%),
    radial-gradient(circle at 95% 10%, rgba(0, 50, 21, 0.18), transparent 34%);
  box-shadow: var(--shadow-soft);
}

.screen-reference-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 50, 21, 0.06);
}

.screen-reference-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.radio-reference img {
  object-position: center 11%;
  filter: saturate(0.62) brightness(0.45);
  transform: scale(1.16);
  transform-origin: top center;
}

.radio-reference figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 50, 21, 0.97), rgba(0, 50, 21, 0.74)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 50, 21, 0.92));
}

.radio-reference figure::after {
  content: "Direita Bahia Ao Vivo";
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: 12ch;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.03;
}

.screen-reference-card > div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: 1rem;
}

.screen-reference-card h3,
.screen-reference-card p {
  margin: 0;
}

.screen-reference-card h3 {
  font-size: 1.18rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.screen-reference-card p {
  color: var(--muted);
  line-height: 1.52;
}

body.dark .screen-reference-card {
  background:
    linear-gradient(180deg, rgba(13, 29, 21, 0.95), rgba(13, 29, 21, 0.82)),
    radial-gradient(circle at 20% 0%, rgba(254, 203, 0, 0.12), transparent 34%),
    radial-gradient(circle at 95% 10%, rgba(27, 130, 77, 0.24), transparent 34%);
}

.base-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.base-card header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.base-card h3 {
  margin: 0;
}

.base-pin,
.engagement-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(246, 195, 67, 0.22);
  color: var(--primary-dark);
}

.base-score,
.base-metrics,
.price-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.base-score strong,
.price-line strong {
  font-size: 1.65rem;
  color: var(--primary-strong);
}

.base-metrics {
  color: var(--muted);
  font-size: 0.9rem;
}

.national-overview-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: 1rem;
  background:
    radial-gradient(circle at 92% 14%, rgba(246, 195, 67, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(17, 148, 71, 0.14), rgba(255, 255, 255, 0.88)),
    var(--paper);
}

.national-overview-card h3 {
  margin: 0.45rem 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.national-overview-card p {
  margin: 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.55;
}

.national-overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.national-overview-metrics div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 0.2rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.national-overview-metrics strong,
.national-overview-metrics span {
  display: block;
}

.national-overview-metrics strong {
  color: var(--primary-strong);
  font-size: 1.65rem;
  line-height: 1;
}

.national-overview-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.control-grid,
.local-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: 0.85rem;
}

.social-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.social-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  width: min(100%, 1026px);
  margin: 1rem auto 0.9rem;
  padding: 1.1rem;
  border: 1px solid var(--premium-border);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(0, 50, 21, 0.96), rgba(17, 148, 71, 0.86) 52%, rgba(14, 165, 183, 0.72)),
    var(--primary-deep);
  color: #ffffff;
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.social-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -56% 40%;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-8deg);
}

.social-hero-copy,
.social-hero-actions {
  position: relative;
  z-index: 1;
}

.social-hero .eyebrow {
  color: var(--gold);
}

.social-hero h2 {
  max-width: 15ch;
  margin: 0.3rem 0 0.55rem;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.92;
}

.social-hero p {
  max-width: 62ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.social-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(280px, 0.78fr);
  gap: 1rem;
  align-items: start;
}

.profile-hero-card {
  grid-row: span 3;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 250, 0.94)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(9, 38, 23, 0.095);
}

.profile-cover {
  position: relative;
  min-height: 196px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(0, 50, 21, 0.88), rgba(0, 75, 35, 0.22) 43%, transparent 44%),
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--profile-secondary), white 18%), transparent 14rem),
    radial-gradient(circle at 18% 85%, color-mix(in srgb, var(--profile-primary), white 16%), transparent 12rem),
    linear-gradient(135deg, var(--profile-primary), var(--profile-secondary));
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% 38%;
  height: 185px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(-8deg);
}

.profile-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 68px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 68px);
  opacity: 0.35;
}

.profile-cover-content {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 0.18rem;
  max-width: 13rem;
  color: #ffffff;
  text-align: right;
}

.profile-cover-content span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.profile-cover-content strong {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 0.92;
}

.profile-cover-content small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.profile-avatar {
  position: absolute;
  left: 1rem;
  bottom: -36px;
  z-index: 2;
  width: 88px;
  height: 88px;
  border: 6px solid var(--paper);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--profile-primary), var(--profile-secondary));
  background-size: cover;
  background-position: center;
  font-size: 1.5rem;
}

.profile-avatar.has-photo {
  color: transparent;
}

.profile-photo-control {
  position: absolute;
  left: 1rem;
  bottom: -36px;
  z-index: 4;
  display: block;
  cursor: pointer;
}

.profile-photo-control .profile-avatar {
  position: static;
}

.profile-photo-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.photo-edit-badge {
  position: absolute;
  right: -0.35rem;
  bottom: -0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 30px;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--gold);
  color: #112016;
  font-size: 0.74rem;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
}

.photo-edit-badge svg {
  width: 14px;
  height: 14px;
}

.profile-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 3.15rem 1.05rem 1rem;
}

.profile-main h3 {
  margin: 0.48rem 0 0.22rem;
  font-size: clamp(1.72rem, 3.6vw, 2.36rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.profile-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 160px;
}

.profile-share-button {
  align-self: flex-start;
  min-height: 42px;
  padding-inline: 1rem;
  color: var(--primary-deep);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
    color-mix(in srgb, var(--gold), white 70%);
  border-color: color-mix(in srgb, var(--gold), var(--line) 52%);
  box-shadow: 0 10px 24px rgba(9, 38, 23, 0.07);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.62rem;
  padding: 0 1.05rem 1.05rem;
}

.profile-stat {
  min-height: 98px;
  display: grid;
  gap: 0.25rem;
  align-content: center;
  padding: 0.78rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52)),
    color-mix(in srgb, var(--profile-surface), white 34%);
  border: 1px solid color-mix(in srgb, var(--profile-primary), white 78%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.profile-stat svg {
  width: 20px;
  height: 20px;
  color: var(--profile-primary);
}

.profile-stat strong,
.profile-stat span {
  display: block;
}

.profile-stat strong {
  font-size: 1.38rem;
  line-height: 1;
}

.profile-stat span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.15;
}

#profileTrustBadge {
  display: inline-flex;
  margin-left: 0.35rem;
  vertical-align: middle;
}

.trust-panel {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.75rem;
}

.trust-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 148, 71, 0.12), rgba(249, 188, 35, 0.18));
  border: 1px solid rgba(17, 148, 71, 0.18);
}

.trust-score-card span,
.trust-score-card strong {
  display: block;
}

.trust-score-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-score-card strong {
  margin-top: 0.15rem;
  font-size: 2rem;
  line-height: 1;
}

.trust-ring {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--paper) 0 55%, transparent 56%),
    conic-gradient(var(--primary) var(--trust), rgba(17, 148, 71, 0.14) 0);
  color: var(--primary-strong);
}

.trust-ring svg {
  width: 24px;
  height: 24px;
}

.trust-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.1);
}

.trust-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.trust-signals {
  display: grid;
  gap: 0.5rem;
}

.trust-signals article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.62rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.trust-signals article.active {
  border-color: rgba(17, 148, 71, 0.2);
  background: rgba(17, 148, 71, 0.08);
}

.trust-signals svg {
  color: var(--muted);
}

.trust-signals article.active svg {
  color: var(--primary-strong);
}

.trust-signals strong,
.trust-signals span {
  display: block;
}

.trust-signals strong {
  font-size: 0.92rem;
}

.trust-signals span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.trust-rules {
  display: grid;
  gap: 0.35rem;
}

.trust-rules p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.trust-rules strong {
  color: var(--primary-strong);
}

.theme-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.theme-swatch {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 56px;
  padding: 0.55rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
  text-align: left;
  font-weight: 850;
}

.theme-swatch span {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, var(--swatch-a) 0 48%, var(--swatch-b) 49% 74%, var(--swatch-c) 75%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.theme-swatch.selected {
  border-color: var(--profile-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--profile-primary), transparent 84%);
}

.profile-fields,
.follower-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.profile-field {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.profile-field span,
.profile-field strong,
.follower-item strong,
.follower-item span {
  display: block;
}

.profile-field span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.profile-field strong {
  margin-top: 0.2rem;
  line-height: 1.45;
}

.follower-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.follower-item span,
.follower-item small {
  color: var(--muted);
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.invite-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.75rem 0;
  padding: 0.8rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--profile-surface), white 20%);
  border: 1px solid color-mix(in srgb, var(--profile-primary), white 70%);
}

.invite-card span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
  color: var(--profile-primary);
}

.photo-required-field {
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(17, 148, 71, 0.08);
  border: 1px solid rgba(17, 148, 71, 0.24);
}

.photo-required-field input {
  background: var(--paper);
}

.photo-required-field span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
}

.social-profile-card {
  position: sticky;
  top: 88px;
  display: grid;
  overflow: hidden;
  padding: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 247, 0.9)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 22px 55px rgba(9, 38, 23, 0.1);
}

.social-profile-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.social-identity-cover {
  min-height: 132px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: #ffffff;
  background:
    linear-gradient(125deg, rgba(0, 50, 21, 0.98), rgba(17, 148, 71, 0.78) 58%, rgba(254, 203, 0, 0.86)),
    var(--primary);
}

.social-identity-cover span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.social-identity-cover strong {
  font-size: 2.15rem;
  line-height: 1;
}

.social-identity-main {
  display: grid;
  gap: 0.85rem;
  padding: 0 1rem 1rem;
  margin-top: -42px;
}

.social-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
}

.social-avatar {
  position: static;
  width: 92px;
  height: 92px;
  border: 5px solid var(--paper);
  border-radius: 30px;
}

.social-avatar-wrap b {
  position: absolute;
  right: -0.35rem;
  bottom: 0.2rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background: var(--gold);
  color: var(--primary-deep);
  box-shadow: 0 12px 24px rgba(254, 203, 0, 0.24);
}

.social-identity-main h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 1.85rem;
  line-height: 1;
}

.social-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.social-score div {
  padding: 0.7rem;
  border-radius: 18px;
  background: color-mix(in srgb, var(--profile-surface), white 28%);
  border: 1px solid color-mix(in srgb, var(--primary), white 82%);
}

.social-score strong,
.social-score span {
  display: block;
}

.social-score strong {
  font-size: 1.35rem;
  color: var(--primary-strong);
}

.social-score span {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
}

.social-progress-card {
  display: grid;
  gap: 0.6rem;
  margin: 0 1rem 1rem;
  padding: 0.8rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(243, 248, 244, 0.74)),
    var(--surface);
  border: 1px solid var(--line);
}

.social-progress-card strong,
.social-progress-card span {
  display: block;
}

.social-progress-card span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.social-profile-actions {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.social-panel {
  position: relative;
  overflow: hidden;
}

.social-panel h3 {
  margin-bottom: 0.85rem;
}

.pulse-item,
.connection-item,
.mission-item,
.leader-item,
.notification-item {
  padding: 0.8rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 249, 0.72)),
    var(--surface);
  border: 1px solid var(--line);
}

.pulse-item,
.leader-item,
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.pulse-item {
  justify-content: flex-start;
}

.pulse-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  background: rgba(14, 165, 183, 0.12);
  color: var(--primary-strong);
}

.pulse-item + .pulse-item,
.connection-item + .connection-item,
.mission-item + .mission-item,
.leader-item + .leader-item,
.notification-item + .notification-item {
  margin-top: 0.55rem;
}

.pulse-item strong,
.pulse-item span,
.leader-item strong,
.leader-item small,
.notification-item strong,
.notification-item span,
.connection-item strong,
.connection-item span {
  display: block;
}

.pulse-item span,
.leader-item small,
.notification-item span,
.connection-item span,
.connection-item p {
  color: var(--muted);
}

.connection-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
}

.connection-item p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.connection-item button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 148, 71, 0.16);
  background: #ffffff;
  color: var(--primary-strong);
  font-weight: 900;
}

.connection-item button:disabled {
  color: var(--muted);
  background: var(--surface-strong);
}

.connection-item svg,
.notification-item svg {
  width: 16px;
  height: 16px;
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 0.9rem;
  align-items: start;
  width: min(100%, 1060px);
  margin: 0 auto;
}

.journey-map-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(17, 148, 71, 0.08), rgba(14, 165, 183, 0.07)),
    var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.journey-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.journey-map-head h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.journey-map {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.journey-map::before {
  content: "";
  position: absolute;
  inset: 26px auto 26px 23px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), rgba(17, 148, 71, 0.16));
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  min-height: 82px;
  padding: 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 148, 71, 0.12);
  box-shadow: 0 10px 24px rgba(15, 92, 58, 0.06);
}

.journey-step:nth-child(even) {
  margin-left: min(6vw, 42px);
}

.journey-step.done {
  border-color: rgba(17, 148, 71, 0.26);
}

.journey-step.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 195, 67, 0.12));
  border-color: rgba(246, 195, 67, 0.42);
}

.journey-step.locked {
  opacity: 0.72;
}

.journey-node {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface);
  color: var(--primary-strong);
  border: 1px solid rgba(17, 148, 71, 0.18);
}

.journey-step.done .journey-node {
  background: var(--primary);
  color: #fff;
}

.journey-step.active .journey-node {
  background: var(--gold);
  color: #1f2b1f;
  border-color: rgba(246, 195, 67, 0.8);
}

.journey-step.locked .journey-node {
  background: #e8ece8;
  color: var(--muted);
}

body.dark .journey-map-card,
body.dark .journey-step,
body.dark .side-mission,
body.dark .side-event,
body.dark .journey-track,
body.dark .national-overview-card,
body.dark .national-pulse-card {
  background: rgba(13, 29, 21, 0.9);
}

body.dark .national-overview-metrics div {
  background: rgba(255, 255, 255, 0.06);
}

body.dark .journey-step.active {
  background: linear-gradient(135deg, rgba(13, 29, 21, 0.94), rgba(246, 195, 67, 0.12));
}

body.dark .journey-node,
body.dark .journey-step.locked .journey-node {
  background: rgba(255, 255, 255, 0.08);
}

.journey-step small,
.journey-step strong,
.journey-step p {
  display: block;
}

.journey-step small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-step p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.journey-side {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 0.85rem;
}

.journey-progress-card {
  display: grid;
  gap: 0.85rem;
  background:
    linear-gradient(145deg, rgba(15, 92, 58, 0.94), rgba(5, 32, 47, 0.96)),
    var(--primary-dark);
  color: #fff;
}

.journey-progress-card .eyebrow,
.journey-progress-card span {
  color: rgba(255, 255, 255, 0.72);
}

.journey-progress-card h3 {
  color: #fff;
}

.journey-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.journey-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #fff2a3);
}

.journey-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.journey-stats div {
  padding: 0.58rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.journey-stats strong,
.journey-stats span {
  display: block;
}

.journey-focus {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
}

.journey-focus > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.journey-focus strong {
  color: #fff;
}

.journey-focus p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

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

.journey-track {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--graphite);
  text-align: left;
}

.journey-track > span,
.reward-token {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--primary);
}

.journey-track.blue > span {
  background: #0f67c8;
}

.journey-track.gold > span,
.reward-token {
  background: var(--gold);
  color: #1f2b1f;
}

.journey-track.violet > span {
  background: #7c3aed;
}

.journey-track strong,
.journey-track small,
.journey-reward strong,
.journey-reward p {
  display: block;
}

.journey-track small,
.journey-reward p {
  color: var(--muted);
  line-height: 1.35;
}

.journey-reward {
  display: grid;
  gap: 0.65rem;
}

.trust-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr) minmax(300px, 0.65fr);
  gap: 0.9rem;
  align-items: start;
  width: min(100%, 1060px);
  margin: 0 auto;
}

.trust-center-hero {
  display: grid;
  gap: 0.85rem;
  min-height: 360px;
  align-content: end;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 10%, rgba(246, 195, 67, 0.26), transparent 30%),
    linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.trust-center-hero h3 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  line-height: 1.04;
}

.trust-center-hero p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

.trust-center-hero .badge {
  width: fit-content;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.trust-center-item,
.moderation-flow-item {
  display: grid;
  gap: 0.7rem;
  padding: 0.75rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.trust-center-item {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
}

.trust-center-item + .trust-center-item,
.moderation-flow-item + .moderation-flow-item {
  margin-top: 0.55rem;
}

.trust-center-item svg {
  width: 34px;
  height: 34px;
  padding: 0.45rem;
  border-radius: 13px;
  background: rgba(17, 148, 71, 0.1);
  color: var(--primary-strong);
}

.trust-center-item strong,
.trust-center-item p,
.moderation-flow-item strong,
.moderation-flow-item p {
  display: block;
}

.trust-center-item strong span {
  color: var(--primary-strong);
  font-size: 0.82rem;
}

.trust-center-item p,
.moderation-flow-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.moderation-flow-item {
  grid-template-columns: 34px minmax(0, 1fr);
}

.moderation-flow-item > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--graphite);
  font-weight: 950;
}

.strategy-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.76fr) minmax(280px, 0.76fr);
  gap: 0.9rem;
  align-items: start;
}

.strategy-hero {
  min-height: 390px;
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 12%, rgba(246, 195, 67, 0.32), transparent 30%),
    linear-gradient(145deg, var(--primary-deep), var(--primary));
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.strategy-hero .badge {
  width: fit-content;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.strategy-hero h3 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.02;
}

.strategy-hero p {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.58;
}

.strategy-north-star {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.strategy-north-star span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold);
}

.strategy-north-star strong {
  font-size: 1.15rem;
}

.strategy-north-star small {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
}

.strategy-card {
  min-height: 100%;
}

.strategy-goal-list,
.strategy-revenue-list,
.strategy-risk-list {
  display: grid;
  gap: 0.65rem;
}

.strategy-goal,
.strategy-revenue,
.strategy-risk,
.strategy-phase {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.strategy-goal {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.72rem;
}

.strategy-goal > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--primary);
  background: var(--soft-green);
}

.strategy-goal.atenção > span,
.strategy-goal.atencao > span {
  color: #9a6400;
  background: #fff2bd;
}

.strategy-goal strong,
.strategy-revenue strong,
.strategy-risk strong,
.strategy-phase strong {
  display: block;
}

.strategy-goal p,
.strategy-revenue p,
.strategy-risk p,
.strategy-phase p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.strategy-goal em {
  justify-self: end;
  max-width: 92px;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--primary);
  text-align: right;
}

.strategy-roadmap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.strategy-phase {
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
}

.strategy-phase > span {
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: var(--gold);
  color: #162215;
  font-size: 0.72rem;
  font-weight: 950;
}

.strategy-phase small {
  display: block;
  margin-top: 0.15rem;
  color: var(--primary);
  font-weight: 850;
}

.strategy-revenue,
.strategy-risk {
  padding: 0.8rem;
}

.strategy-revenue header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.strategy-revenue span {
  padding: 0.25rem 0.48rem;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 950;
}

.leader-item > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(246, 195, 67, 0.24);
  font-weight: 950;
  color: var(--primary-dark);
}

.leader-item div {
  flex: 1;
}

.leader-item b {
  color: var(--primary-strong);
}

.notification-item {
  justify-content: flex-start;
}

.local-admin-layout {
  grid-template-columns: minmax(280px, 0.8fr) repeat(2, minmax(0, 1fr));
  align-items: start;
}

.command-center,
.pricing-card,
.engagement-card {
  padding: 1rem;
}

.command-center {
  background:
    linear-gradient(145deg, rgba(17, 148, 71, 0.12), rgba(246, 195, 67, 0.14)),
    var(--paper);
}

.check-list {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.9rem;
}

.check-item {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.65rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.check-item svg {
  width: 18px;
  height: 18px;
  margin-top: 0.12rem;
  color: var(--primary-strong);
  flex: 0 0 auto;
}

.role-table-wrap {
  overflow-x: auto;
  margin-top: 0.85rem;
}

.role-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  table-layout: fixed;
}

.role-table th,
.role-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.role-table th {
  color: var(--primary-dark);
  background: rgba(17, 148, 71, 0.1);
}

body.dark .role-table th {
  color: var(--graphite);
}

.access-map {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.access-role {
  display: grid;
  gap: 0.55rem;
  padding: 0.8rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.access-role.active {
  border-color: rgba(17, 148, 71, 0.28);
  background: linear-gradient(135deg, rgba(17, 148, 71, 0.1), rgba(249, 188, 35, 0.12));
}

.access-role header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--primary-strong);
}

.access-role p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.access-role div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.access-role div span {
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.76rem;
  font-weight: 850;
}

.brand-control {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.8rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.brand-preview {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gold), #fff2a3 52%, var(--primary));
  color: #07391f;
  font-size: 1.1rem;
  font-weight: 950;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.brand-control strong,
.brand-control span {
  display: block;
}

.brand-control span {
  margin-top: 0.2rem;
  color: var(--muted);
  line-height: 1.4;
}

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

.brand-actions input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pricing-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  background:
    linear-gradient(145deg, rgba(246, 195, 67, 0.24), rgba(17, 148, 71, 0.14)),
    var(--paper);
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.population-pricing {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-line {
  padding: 0.65rem 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 92, 58, 0.12);
}

body.dark .price-line {
  background: rgba(255, 255, 255, 0.06);
}

.price-line.monthly strong {
  color: var(--cyan);
}

.price-line span {
  color: var(--muted);
  font-weight: 850;
}

.pricing-tier-list {
  display: grid;
  gap: 0.5rem;
  max-height: 270px;
  overflow: auto;
  padding-right: 0.15rem;
  scrollbar-width: thin;
}

.pricing-tier {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pricing-tier.active {
  border-color: rgba(15, 92, 58, 0.3);
  background: linear-gradient(135deg, rgba(15, 92, 58, 0.1), rgba(224, 177, 0, 0.14));
}

.pricing-tier strong,
.pricing-tier span {
  display: block;
}

.pricing-tier span {
  color: var(--primary-strong);
  font-size: 0.86rem;
  font-weight: 900;
}

.pricing-tier p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.funnel-item {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.funnel-item + .funnel-item {
  margin-top: 0.6rem;
}

.funnel-item span {
  color: var(--primary-strong);
  font-weight: 850;
}

.funnel-item p,
.funnel-item em {
  margin: 0;
}

.franchise-command-card,
.habit-engine-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--premium-border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 8%, rgba(254, 203, 0, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(0, 50, 21, 0.98), rgba(10, 105, 59, 0.9) 58%, rgba(14, 165, 183, 0.76));
  color: #ffffff;
  box-shadow: var(--shadow-premium);
}

.franchise-command-card::after,
.habit-engine-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -44% 36%;
  height: 170px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(-7deg);
}

.franchise-command-card > *,
.habit-engine-card > * {
  position: relative;
  z-index: 1;
}

.franchise-command-card h3,
.habit-engine-card h3 {
  max-width: 17ch;
  margin: 0.45rem 0 0.35rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 0.98;
}

.franchise-command-card p,
.habit-engine-card p {
  max-width: 68ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.habit-loop-grid,
.national-leverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.franchise-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.franchise-kpi,
.habit-loop-step,
.leverage-card {
  display: grid;
  gap: 0.38rem;
  align-content: start;
  min-height: 128px;
  padding: 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.leverage-card {
  min-height: 142px;
  border-color: var(--premium-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 247, 0.88)),
    var(--paper);
}

.franchise-kpi svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.franchise-kpi strong {
  color: #ffffff;
  font-size: 1.42rem;
  line-height: 1;
}

.franchise-kpi span,
.habit-loop-step span,
.leverage-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.leverage-card span {
  width: fit-content;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), white 92%);
  color: var(--primary-strong);
}

.franchise-kpi em,
.habit-loop-step em,
.leverage-card p {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 780;
  line-height: 1.35;
}

.habit-loop-step strong {
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.1;
}

.leverage-card strong {
  color: var(--graphite);
  font-size: 1.05rem;
  line-height: 1.1;
}

.leverage-card p {
  margin: 0;
  color: var(--muted);
}

.revenue-stack,
.activation-playbook {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.revenue-row,
.playbook-step {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 247, 0.72)),
    var(--surface);
}

.revenue-row {
  grid-template-columns: minmax(0, 1.1fr) auto auto;
}

.revenue-row strong,
.revenue-row span,
.revenue-row b,
.revenue-row em {
  display: block;
}

.revenue-row span,
.playbook-step p {
  margin: 0.12rem 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.revenue-row b,
.revenue-row em,
.playbook-step > span {
  width: fit-content;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.1);
  color: var(--primary-strong);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.revenue-row em {
  background: rgba(254, 203, 0, 0.18);
  color: var(--primary-deep);
}

.playbook-step {
  grid-template-columns: 72px minmax(0, 1fr);
}

.playbook-step > span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #fff0a6);
}

.engagement-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.engagement-card h3 {
  margin: 0;
}

.engagement-card p {
  margin: 0;
}

.room-card,
.member-card,
.poll-card {
  padding: 1rem;
}

.room-card {
  display: grid;
  gap: 0.8rem;
  min-height: 160px;
}

.room-card header,
.library-item,
.event-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.room-card h3,
.poll-card h3,
.member-card h3,
.admin-card h3 {
  margin: 0;
}

.room-meta,
.member-meta,
.library-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-layout {
  overflow: hidden;
}

.private-chat-strip {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 1rem 0;
}

.private-chat-empty,
.private-invite {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(17, 148, 71, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(17, 148, 71, 0.1), rgba(249, 188, 35, 0.14));
}

.private-chat-empty {
  grid-template-columns: auto minmax(0, 1fr) auto;
  color: var(--graphite);
  font-weight: 800;
}

.private-chat-empty svg {
  color: var(--primary);
}

.private-invite.accepted {
  border-color: rgba(249, 188, 35, 0.34);
  background: rgba(249, 188, 35, 0.14);
}

.private-invite strong,
.private-invite span,
.private-invite p {
  display: block;
}

.private-invite span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.private-invite p {
  margin: 0.15rem 0 0;
  color: var(--graphite);
  font-size: 0.9rem;
  line-height: 1.35;
}

.chat-list {
  display: grid;
  gap: 0.75rem;
  min-height: 360px;
  max-height: 56vh;
  overflow-y: auto;
  padding: 1rem;
}

.message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.message.own {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.message.own .avatar {
  grid-column: 2;
}

.message.own .bubble {
  grid-column: 1;
  grid-row: 1;
  margin-left: auto;
  background: rgba(17, 148, 71, 0.12);
}

.bubble {
  width: min(100%, 680px);
  padding: 0.8rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.bubble header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.bubble header > span:not(.trust-badge) {
  margin-left: auto;
}

.bubble p {
  margin: 0;
  line-height: 1.5;
}

.message-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.message-actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.chat-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
}

.poll-card {
  display: grid;
  gap: 0.85rem;
}

.poll-option {
  display: grid;
  gap: 0.35rem;
}

.poll-option button {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  text-align: left;
}

.poll-option button.voted {
  border-color: var(--gold-strong);
  box-shadow: inset 0 0 0 2px rgba(246, 195, 67, 0.26);
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-strong);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.status-pill {
  background: rgba(17, 148, 71, 0.12);
  color: var(--primary-strong);
}

.status-pill span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(17, 148, 71, 0.15);
}

.event-item,
.library-item {
  min-height: 82px;
  padding: 1rem;
}

.event-date {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 950;
  text-align: center;
}

.event-item h3,
.library-item h3 {
  margin: 0 0 0.25rem;
}

.library-item > div:nth-child(2),
.event-item > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.member-card {
  display: grid;
  gap: 0.7rem;
}

.member-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.score {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--muted);
  font-weight: 800;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.admin-card {
  padding: 1rem;
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.metric {
  padding: 0.8rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 1.35rem;
}

.report-item {
  padding: 0.8rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.report-item + .report-item {
  margin-top: 0.7rem;
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.moderation-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 34px;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
  font-weight: 850;
}

.moderation-actions button:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

.moderation-actions svg {
  width: 16px;
  height: 16px;
}

.audit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.audit-item {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.audit-item header,
.audit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.audit-item p {
  margin: 0;
  line-height: 1.5;
}

.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.9rem;
}

.audit-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.audit-meta svg {
  width: 16px;
  height: 16px;
}

.moderator-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.verification-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.verification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.verification-item.verified {
  border-color: rgba(17, 148, 71, 0.28);
  background: rgba(17, 148, 71, 0.08);
}

.verification-item strong,
.verification-item span,
.verification-item p {
  display: block;
}

.verification-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.verification-item p {
  margin: 0.22rem 0 0.38rem;
  color: var(--muted);
  line-height: 1.45;
}

.verified-note {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.12);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.verified-note svg {
  width: 14px;
  height: 14px;
}

.moderator-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding: 0.8rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.moderator-item strong,
.moderator-item span {
  display: block;
}

.moderator-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.moderator-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.moderator-item > .badge {
  grid-column: 1 / -1;
  justify-self: start;
}

pre {
  margin: 0.85rem 0 0;
  overflow-x: auto;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--primary-deep);
  color: #dff8e8;
  line-height: 1.5;
}

.bottom-nav {
  display: none;
}

.modal {
  width: min(680px, calc(100% - 1.5rem));
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--graphite);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  max-height: min(86vh, 820px);
  overflow-y: auto;
  padding: 1.15rem;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.modal-card h2 {
  margin: 0;
}

.close-button {
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
}

.auth-options,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--graphite);
  font-weight: 750;
}

.full {
  grid-column: 1 / -1;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}

.check-row input {
  width: auto;
  margin-top: 0.22rem;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.65;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(420px, calc(100% - 2rem));
  transform: translateY(140%);
  transition: transform 180ms ease;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
}

.floating-create {
  display: none;
}

/* Premium art direction pass */
:root {
  --canvas: #f6f8f6;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --blue-accent: #155eef;
  --teal-accent: #0ea5b7;
  --coral-accent: #ef7a55;
  --premium-border: rgba(13, 64, 36, 0.11);
  --shadow-premium: 0 20px 60px rgba(9, 38, 23, 0.12);
  --shadow-lift: 0 18px 38px rgba(9, 38, 23, 0.14);
}

body.dark {
  --canvas: #08130e;
  --glass: rgba(13, 29, 21, 0.78);
  --glass-strong: rgba(13, 29, 21, 0.94);
  --premium-border: rgba(159, 221, 181, 0.16);
  --shadow-premium: 0 22px 65px rgba(0, 0, 0, 0.42);
  --shadow-lift: 0 20px 42px rgba(0, 0, 0, 0.46);
}

body {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 246, 0.74) 42%, rgba(238, 247, 242, 0.9)),
    repeating-linear-gradient(90deg, rgba(0, 50, 21, 0.028) 0 1px, transparent 1px 68px),
    repeating-linear-gradient(0deg, rgba(0, 50, 21, 0.02) 0 1px, transparent 1px 68px),
    var(--canvas);
}

body.dark {
  background:
    linear-gradient(120deg, rgba(8, 19, 14, 0.98), rgba(9, 29, 20, 0.92) 50%, rgba(6, 20, 38, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 72px);
}

.topbar {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(13, 64, 36, 0.1);
  box-shadow: 0 10px 34px rgba(9, 38, 23, 0.08);
  backdrop-filter: blur(20px) saturate(1.12);
}

body.dark .topbar {
  background: rgba(8, 19, 14, 0.82);
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 25%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px),
    linear-gradient(162deg, #0d6b35 0%, #00441f 44%, #01230e 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-mark,
.brazil-orb {
  transform: rotate(-8deg);
  border-radius: 20px 10px 20px 10px;
}

.brand strong {
  letter-spacing: 0;
}

.nav-button {
  position: relative;
  min-height: 46px;
  border: 1px solid transparent;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
}

.nav-button.active {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 4px 0 0 var(--gold), 0 16px 32px rgba(0, 0, 0, 0.16);
}

.primary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(135deg, var(--gold), #ffdf6e);
  box-shadow: 0 14px 30px rgba(254, 203, 0, 0.28);
}

.secondary-button,
.icon-button,
select,
input,
textarea {
  background: var(--glass-strong);
  border-color: var(--premium-border);
  box-shadow: 0 8px 24px rgba(9, 38, 23, 0.055);
}

.primary-button:hover,
.secondary-button:hover,
.icon-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.daily-card,
.post-card,
.room-card,
.poll-card,
.event-item,
.library-item,
.member-card,
.admin-card,
.base-card,
.news-card,
.product-card,
.engagement-card,
.profile-hero-card,
.side-widget,
.composer,
.chat-layout,
.more-card,
.strategy-goal,
.strategy-revenue,
.strategy-risk,
.strategy-phase {
  border-color: var(--premium-border);
  background:
    linear-gradient(180deg, var(--glass-strong), rgba(255, 255, 255, 0.84)),
    var(--paper);
  box-shadow: 0 10px 32px rgba(9, 38, 23, 0.07);
  backdrop-filter: blur(18px);
}

body.dark .daily-card,
body.dark .post-card,
body.dark .room-card,
body.dark .poll-card,
body.dark .event-item,
body.dark .library-item,
body.dark .member-card,
body.dark .admin-card,
body.dark .base-card,
body.dark .news-card,
body.dark .product-card,
body.dark .engagement-card,
body.dark .profile-hero-card,
body.dark .side-widget,
body.dark .composer,
body.dark .chat-layout,
body.dark .more-card,
body.dark .strategy-goal,
body.dark .strategy-revenue,
body.dark .strategy-risk,
body.dark .strategy-phase {
  background:
    linear-gradient(180deg, rgba(18, 42, 28, 0.9), rgba(9, 22, 16, 0.88)),
    var(--surface);
}

.daily-card:hover,
.post-card:hover,
.room-card:hover,
.base-card:hover,
.member-card:hover,
.more-card:hover,
.engagement-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.daily-card,
.post-card,
.room-card,
.base-card,
.member-card,
.more-card,
.engagement-card,
.story-rail button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.hub-welcome {
  position: relative;
  overflow: hidden;
  min-height: 248px;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(0, 50, 21, 0.97), rgba(0, 50, 21, 0.78) 52%, rgba(0, 50, 21, 0.5)),
    url("assets/hero-community.png") center / cover;
  box-shadow: var(--shadow-premium);
}

.hub-welcome::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--teal-accent), var(--blue-accent));
}

.hub-welcome > * {
  position: relative;
  z-index: 1;
}

.hub-welcome h2 {
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.national-pulse-card {
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 255, 247, 0.82)),
    linear-gradient(135deg, rgba(21, 94, 239, 0.08), transparent);
}

.story-rail {
  padding-bottom: 0.35rem;
}

.story-rail button {
  border-color: rgba(17, 148, 71, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 249, 244, 0.86));
  box-shadow: 0 12px 26px rgba(9, 38, 23, 0.075);
}

.story-rail button:hover {
  transform: translateY(-4px) scale(1.01);
}

.story-rail button > span {
  background:
    linear-gradient(135deg, rgba(17, 148, 71, 0.15), rgba(14, 165, 183, 0.14));
}

.post-card {
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--primary), var(--teal-accent));
  opacity: 0;
  transition: opacity 180ms ease;
}

.post-card:hover::before {
  opacity: 1;
}

.post-actions button,
.moderation-actions button,
.reply-form button {
  border-radius: 999px;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.post-actions button:hover,
.moderation-actions button:hover {
  transform: translateY(-1px);
  background: rgba(17, 148, 71, 0.08);
}

.city-pulse-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.75rem 0 0.85rem;
}

.city-pulse-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  min-height: 92px;
  padding: 0.8rem;
  border-radius: 22px;
  border: 1px solid var(--premium-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 247, 0.84)),
    var(--paper);
  box-shadow: 0 12px 30px rgba(9, 38, 23, 0.08);
}

.city-pulse-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(17, 148, 71, 0.1);
  color: var(--primary-strong);
}

.city-pulse-card.gold > span {
  background: rgba(254, 203, 0, 0.24);
  color: #8a6500;
}

.city-pulse-card.blue > span {
  background: rgba(21, 94, 239, 0.1);
  color: var(--blue-accent);
}

.city-pulse-card small,
.city-pulse-card p,
.post-context {
  color: var(--muted);
}

.city-pulse-card small {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.city-pulse-card strong {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.05rem;
}

.city-pulse-card p {
  margin: 0.14rem 0 0;
  font-size: 0.82rem;
  line-height: 1.25;
}

.city-pulse-daily {
  gap: 0.8rem;
}

.city-pulse-daily header {
  align-items: center;
}

.city-pulse-daily header span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary-strong);
  font-weight: 950;
}

.city-pulse-mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.city-pulse-mini div {
  min-height: 82px;
  display: grid;
  gap: 0.25rem;
  align-content: center;
  padding: 0.72rem;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(242, 250, 246, 0.92));
  border: 1px solid rgba(17, 148, 71, 0.12);
}

.city-pulse-mini svg {
  width: 19px;
  height: 19px;
  color: var(--primary-strong);
}

.city-pulse-mini strong,
.city-pulse-mini span {
  display: block;
}

.city-pulse-mini span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.city-os-panel {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
}

.city-os-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 20%, rgba(254, 203, 0, 0.28), transparent 30%),
    linear-gradient(135deg, #003215, #0d6b35 62%, #0ea5b7);
  box-shadow: var(--shadow-premium);
  overflow: hidden;
}

.city-os-hero h3 {
  margin: 0.5rem 0 0.3rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.city-os-hero p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.city-health-ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0, 50, 21, 0.92) 0 55%, transparent 56%),
    conic-gradient(var(--gold) var(--health), rgba(255, 255, 255, 0.16) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 36px rgba(0, 0, 0, 0.2);
}

.city-health-ring strong,
.city-health-ring span {
  display: block;
}

.city-health-ring strong {
  font-size: 2rem;
  line-height: 0.95;
}

.city-health-ring span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.neighborhood-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border-radius: 22px;
  border: 1px solid var(--premium-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 247, 0.86));
  box-shadow: 0 12px 30px rgba(9, 38, 23, 0.075);
}

.neighborhood-card header,
.neighborhood-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.neighborhood-card header span,
.neighborhood-card footer span,
.neighborhood-card p {
  color: var(--muted);
}

.neighborhood-card header span,
.neighborhood-card footer {
  font-size: 0.78rem;
  font-weight: 850;
}

.neighborhood-card p {
  margin: 0;
  line-height: 1.35;
}

.neighborhood-card footer b {
  color: var(--primary-strong);
  font-size: 0.78rem;
}

.city-next-moves {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--premium-border);
  box-shadow: 0 10px 24px rgba(9, 38, 23, 0.055);
}

.city-next-moves strong,
.city-next-moves span {
  display: inline-flex;
  align-items: center;
}

.city-next-moves strong {
  gap: 0.35rem;
  color: var(--primary-strong);
  margin-right: 0.25rem;
}

.city-next-moves span {
  min-height: 34px;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.08);
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 850;
}

.demand-action-board {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 247, 0.86));
  border: 1px solid var(--premium-border);
  box-shadow: 0 14px 34px rgba(9, 38, 23, 0.075);
}

.demand-action-board > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.demand-action-board > header strong {
  display: block;
  font-size: 1.1rem;
}

.demand-action-list {
  display: grid;
  gap: 0.65rem;
}

.demand-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(17, 148, 71, 0.12);
  background: rgba(255, 255, 255, 0.74);
}

.demand-card h4 {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.02rem;
}

.demand-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.demand-stage {
  display: grid;
  gap: 0.45rem;
}

.demand-stage button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(17, 148, 71, 0.14);
  border-radius: 999px;
  background: var(--paper);
  color: var(--primary-strong);
  font-weight: 900;
}

.admin-health-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.1rem;
}

.admin-health-panel article {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 20px;
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 0%, rgba(254, 203, 0, 0.24), transparent 34%),
    linear-gradient(135deg, var(--primary-deep), var(--primary));
}

.admin-health-panel span,
.admin-health-panel small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.admin-health-panel strong {
  font-size: 1.5rem;
}

.project-pipeline-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.project-pipeline-panel article {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 247, 0.86));
  border: 1px solid var(--premium-border);
}

.project-pipeline-panel svg {
  width: 20px;
  height: 20px;
  color: var(--primary-strong);
}

.project-pipeline-panel strong {
  font-size: 1.35rem;
}

.project-pipeline-panel span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.post-context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0.75rem 0 0.35rem;
}

.post-context span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 30px;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.08);
  border: 1px solid rgba(17, 148, 71, 0.1);
  color: var(--primary-strong);
  font-size: 0.76rem;
  font-weight: 850;
}

.post-context svg {
  width: 14px;
  height: 14px;
}

.profile-status-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 10%, rgba(254, 203, 0, 0.28), transparent 30%),
    linear-gradient(145deg, var(--primary-deep), var(--primary));
  box-shadow: var(--shadow-premium);
}

.profile-status-card span {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-status-card strong {
  font-size: 1.35rem;
}

.profile-status-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.profile-status-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.profile-status-card b,
.profile-status-card em {
  font-style: normal;
  font-weight: 900;
}

.profile-status-card em {
  color: var(--gold);
}

.dopamine-mission {
  position: relative;
  overflow: hidden;
  padding-left: 4.3rem;
}

.dopamine-mission::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--teal-accent));
}

.mission-orb {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), #fff2a3);
  color: var(--primary-deep);
  box-shadow: 0 12px 26px rgba(254, 203, 0, 0.26);
}

.dopamine-mission small {
  color: var(--muted);
  font-weight: 850;
}

.saas-metric {
  position: relative;
  display: grid;
  gap: 0.25rem;
  min-height: 118px;
  padding: 0.9rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 251, 247, 0.86));
  border: 1px solid var(--premium-border);
  box-shadow: 0 10px 28px rgba(9, 38, 23, 0.07);
}

.saas-metric svg {
  width: 20px;
  height: 20px;
  color: var(--primary-strong);
}

.saas-metric strong {
  font-size: 1.55rem;
}

.saas-metric em {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.1);
  color: var(--primary-strong);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 950;
}

.daily-card.actions button {
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(226, 226, 229, 0.86));
  box-shadow: 0 10px 24px rgba(9, 38, 23, 0.07);
}

.daily-card.actions button:first-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent),
    linear-gradient(135deg, var(--gold), #ffda58);
}

.trust-line span,
.bar span,
.mini-mission div span,
.journey-progress span {
  background: linear-gradient(90deg, var(--primary), var(--teal-accent), var(--gold));
}

.section-heading {
  padding-top: 0.25rem;
}

.section-heading h2 {
  letter-spacing: 0;
}

.badge.green {
  background: linear-gradient(135deg, rgba(17, 148, 71, 0.12), rgba(14, 165, 183, 0.1));
  color: var(--primary-strong);
  border-color: rgba(17, 148, 71, 0.16);
}

.strategy-hero,
.trust-center-hero,
.command-center {
  box-shadow: var(--shadow-premium);
}

@keyframes premiumEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-view.active .daily-card,
.section-view.active .post-card,
.section-view.active .admin-card,
.section-view.active .base-card,
.section-view.active .strategy-hero {
  animation: premiumEnter 260ms ease both;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 25;
    width: min(320px, 86vw);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 180ms ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-menu {
    display: inline-flex;
  }
}

@media (max-width: 860px) {
  .topbar-location {
    display: flex;
  }

  .topbar-title,
  .advanced-control {
    display: none;
  }

  .topbar-location {
    font-size: 1rem;
  }

  .hero {
    min-height: 330px;
    border-radius: 26px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(2, 44, 26, 0.9), rgba(2, 44, 26, 0.42) 68%, rgba(2, 44, 26, 0.8)),
      url("assets/hero-community.png") center / cover;
  }

  .stats-strip,
  .daily-hub,
  .city-pulse-strip,
  .feed-shell,
  .vision-band,
  .room-grid,
  .poll-grid,
  .member-grid,
  .admin-layout,
  .social-layout,
  .journey-layout,
  .trust-center-layout,
  .strategy-layout,
  .profile-layout,
  .audit-list,
  .moderator-list,
  .verification-item,
  .portal-layout,
  .radio-layout,
  .radio-highlights,
  .more-hero,
  .national-overview-card,
  .base-grid,
  .engagement-grid,
  .control-grid,
  .local-admin-layout,
  .growth-band {
    grid-template-columns: 1fr;
  }

  .social-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .feed-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .social-hero-actions {
    justify-content: flex-start;
  }

  .feed-hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .social-profile-card {
    position: static;
  }

  .daily-card.missions {
    grid-column: auto;
  }

  .growth-actions {
    justify-content: flex-start;
  }

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

  .journey-side {
    position: static;
  }

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

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

  .product-rail {
    position: static;
  }

  .radio-panel.wide {
    grid-column: auto;
  }

  .radio-hero-card {
    grid-row: auto;
  }

  .radio-reference {
    grid-column: auto;
  }

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

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

  .franchise-kpi-grid,
  .habit-loop-grid,
  .national-leverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .connection-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .connection-item button {
    grid-column: 2;
    justify-self: start;
  }

  .profile-hero-card {
    grid-row: auto;
  }

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

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

  .chat-heading-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 0 0.75rem 7.25rem;
  }

  .topbar {
    min-height: 64px;
    margin: 0 -0.75rem 0.85rem;
    padding: 0.55rem 0.75rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 10px 28px rgba(9, 38, 23, 0.08);
  }

  .topbar-actions {
    gap: 0.38rem;
  }

  .topbar-actions .primary-button {
    display: none;
  }

  .topbar-actions > .icon-button[aria-label="Alternar tema"] {
    display: none;
  }

  .hero {
    min-height: 300px;
  }

  .hero-content {
    align-self: end;
  }

  .hero h1 {
    max-width: 12ch;
  }

  .daily-hub {
    gap: 0.65rem;
  }

  .pwa-banner {
    align-items: stretch;
    flex-direction: column;
    border-radius: 22px;
  }

  .pwa-actions {
    justify-content: space-between;
  }

  .pwa-actions .primary-button {
    flex: 1;
  }

  .daily-card {
    border-radius: 22px;
    padding: 0.82rem;
  }

  .hub-welcome {
    min-height: 224px;
    border-radius: 26px;
  }

  .hub-welcome h2 {
    font-size: 2.05rem;
  }

  .daily-card.identity {
    grid-template-columns: 1fr;
  }

  .daily-trust {
    justify-content: space-between;
    text-align: left;
  }

  .daily-card.actions button {
    min-height: 68px;
    font-size: 0.78rem;
  }

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

  .city-pulse-strip {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .city-pulse-mini {
    grid-template-columns: 1fr;
  }

  .city-os-hero,
  .neighborhood-grid,
  .admin-health-panel,
  .project-pipeline-panel,
  .demand-card {
    grid-template-columns: 1fr;
  }

  .demand-action-board > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .city-os-hero {
    align-items: start;
  }

  .city-health-ring {
    width: 88px;
    height: 88px;
  }

  .city-pulse-card {
    min-height: 78px;
    border-radius: 20px;
  }

  .strategy-hero {
    min-height: 340px;
    border-radius: 24px;
  }

  .strategy-hero h3 {
    max-width: 14ch;
  }

  .strategy-roadmap,
  .strategy-goal {
    grid-template-columns: 1fr;
  }

  .strategy-goal em {
    justify-self: start;
    max-width: none;
    text-align: left;
  }

  .story-rail {
    grid-auto-columns: 82px;
    gap: 0.55rem;
    margin: -0.1rem -0.15rem 0.75rem;
    padding: 0.1rem 0.15rem 0.8rem;
  }

  .story-rail button {
    min-height: 98px;
    border-radius: 22px;
  }

  .story-rail button > span {
    width: 40px;
    height: 40px;
    border-radius: 15px;
  }

  .social-hero {
    margin-top: 0.35rem;
    padding: 0.92rem;
    border-radius: 24px;
  }

  .feed-hero {
    margin-top: 0.35rem;
    padding: 0.95rem;
    border-radius: 24px;
  }

  .social-hero h2 {
    max-width: 11ch;
    font-size: 1.94rem;
    line-height: 0.94;
  }

  .feed-hero h2 {
    max-width: 12ch;
    font-size: 2rem;
    line-height: 0.94;
  }

  .feed-hero p {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .social-hero p {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .feed-hero-status {
    justify-items: start;
    width: 100%;
  }

  .social-hero-actions .primary-button,
  .social-hero-actions .secondary-button,
  .feed-hero-actions .primary-button,
  .feed-hero-actions .secondary-button {
    width: 100%;
    min-height: 46px;
  }

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

  .feed-side {
    display: none;
  }

  .journey-map-card {
    padding: 0.8rem;
    border-radius: 22px;
  }

  .journey-map-head {
    align-items: stretch;
    flex-direction: column;
  }

  .journey-map::before {
    left: 21px;
  }

  .journey-step,
  .journey-step:nth-child(even) {
    margin-left: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 78px;
    padding: 0.68rem;
  }

  .journey-node {
    width: 44px;
    height: 44px;
    border-radius: 16px;
  }

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

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

  .national-overview-metrics div {
    min-height: 72px;
  }

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

  .vision-pill-grid {
    grid-template-columns: 1fr;
  }

  .radio-hero-card {
    min-height: 360px;
    border-radius: 24px;
  }

  .radio-schedule-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .more-hero {
    align-items: stretch;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  }

  .more-orbit {
    grid-template-columns: repeat(3, 1fr);
  }

  .more-orbit span {
    width: 100%;
  }

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

  .module-preview {
    height: 150px;
  }

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

  .franchise-command-card,
  .habit-engine-card {
    border-radius: 24px;
  }

  .franchise-kpi-grid,
  .habit-loop-grid,
  .national-leverage-grid {
    grid-template-columns: 1fr;
  }

  .revenue-row,
  .playbook-step {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .admin-preview-card {
    grid-template-rows: 180px minmax(0, 1fr);
  }

  .screen-reference-card {
    grid-template-rows: 170px minmax(0, 1fr);
  }

  #mais.section-view.active {
    position: relative;
    z-index: 2;
  }

  #mais .section-heading,
  #mais .more-card {
    background: var(--paper);
  }

  #mais .section-heading {
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }

  .news-card {
    grid-template-columns: 1fr;
  }

  .news-art {
    min-height: 118px;
  }

  .news-body {
    padding: 0 1rem 1rem;
  }

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

  .base-metrics {
    flex-direction: column;
    gap: 0.2rem;
  }

  .profile-main,
  .profile-actions,
  .invite-card {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-cover {
    min-height: 180px;
  }

  .profile-share-button {
    align-self: flex-start;
    display: inline-flex;
    flex: 0 0 auto;
    width: auto;
    max-width: 220px;
    padding-inline: 0.92rem;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.7)),
      color-mix(in srgb, var(--gold), white 78%);
  }

  .profile-cover-content {
    top: 0.8rem;
    right: 0.85rem;
    max-width: 10.5rem;
  }

  .profile-cover-content strong {
    font-size: 1.75rem;
  }

  .profile-cover-content small {
    font-size: 0.72rem;
  }

  .profile-main {
    gap: 0.9rem;
    padding-top: 3.05rem;
  }

  .profile-actions .primary-button,
  .profile-actions .secondary-button,
  .invite-card .secondary-button {
    width: 100%;
  }

  .theme-picker {
    grid-template-columns: 1fr;
  }

  .follower-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .follower-item small {
    grid-column: 2;
  }

  .growth-band {
    padding: 1rem;
  }

  .stat-card {
    min-height: 112px;
    align-items: flex-start;
    flex-direction: column;
  }

  .post-actions {
    justify-content: space-between;
  }

  .quick-composer {
    align-items: flex-start;
  }

  .quick-compose-tools {
    align-items: stretch;
  }

  .quick-compose-tools label,
  .quick-compose-tools .secondary-button,
  .quick-compose-tools .primary-button {
    width: 100%;
  }

  .char-counter {
    width: 100%;
    margin-left: 0;
    text-align: right;
  }

  .reply-form {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .reply-form button {
    grid-column: 2;
    width: 100%;
  }

  .chat-form {
    align-items: stretch;
  }

  .private-chat-empty,
  .private-invite {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .private-invite .avatar {
    display: none;
  }

  .chat-form .icon-button {
    display: inline-flex;
    flex: 0 0 44px;
  }

  .chat-form .primary-button {
    width: 46px;
    padding: 0;
    font-size: 0;
  }

  .chat-form .primary-button svg {
    width: 18px;
    height: 18px;
  }

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

  .verification-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .verification-item .avatar {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.45rem;
    z-index: 22;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.2rem;
    padding: 0.24rem;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 247, 0.96));
    border: 1px solid var(--line);
    box-shadow: 0 18px 44px rgba(9, 38, 23, 0.18);
    backdrop-filter: blur(16px);
  }

  .floating-create {
    position: fixed;
    left: 50%;
    bottom: 0.82rem;
    z-index: 24;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    transform: translateX(-50%);
    border: 6px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-strong), var(--primary));
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 92, 58, 0.28);
  }

  body.dark .floating-create {
    border-color: rgba(12, 24, 37, 0.92);
  }

  .floating-create svg {
    width: 26px;
    height: 26px;
    stroke-width: 3;
  }

  .bottom-nav-spacer {
    min-height: 82px;
  }

  body.dark .bottom-nav {
    background: rgba(13, 29, 21, 0.98);
  }

  .bottom-nav button {
    min-height: 46px;
    display: grid;
    place-items: center;
    gap: 0.15rem;
    border-radius: 18px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 850;
  }

  .bottom-nav button.active {
    color: var(--primary-deep);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent),
      linear-gradient(135deg, var(--gold), #fff2a3);
    box-shadow: 0 10px 22px rgba(249, 188, 35, 0.28);
  }

  body.dark .bottom-nav button.active {
    color: #132016;
  }

  .bottom-nav svg {
    width: 18px;
    height: 18px;
  }
}

/* Investment-grade visual elevation */
:root {
  --app-glow: rgba(17, 148, 71, 0.2);
  --gold-glow: rgba(254, 203, 0, 0.26);
  --ink-soft: rgba(0, 50, 21, 0.72);
}

body {
  background:
    radial-gradient(circle at 16% 0%, rgba(254, 203, 0, 0.13), transparent 24rem),
    radial-gradient(circle at 86% 10%, rgba(14, 165, 183, 0.13), transparent 26rem),
    linear-gradient(135deg, #fbfcfa 0%, #f3f8f4 48%, #eef7f4 100%);
}

body.dark {
  background:
    radial-gradient(circle at 18% 0%, rgba(254, 203, 0, 0.11), transparent 23rem),
    radial-gradient(circle at 92% 10%, rgba(14, 165, 183, 0.12), transparent 24rem),
    linear-gradient(135deg, #07120c 0%, #081d13 56%, #061426 100%);
}

.main {
  width: min(100%, 1240px);
}

.topbar {
  min-height: 78px;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 46px rgba(9, 38, 23, 0.1);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17, 148, 71, 0.22), transparent);
}

.daily-hub {
  gap: 0.95rem;
  margin: 1.15rem auto 1.2rem;
}

.daily-card {
  border-radius: 28px;
  border-color: rgba(13, 64, 36, 0.1);
  box-shadow: 0 18px 48px rgba(9, 38, 23, 0.09);
}

@media (min-width: 861px) {
  .daily-hub {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hub-welcome {
    grid-column: span 7;
    grid-row: span 2;
  }

  .national-pulse-card,
  .identity-card {
    grid-column: span 5;
  }

  .city-pulse-daily,
  .activation-card,
  .daily-card.actions,
  .daily-card.missions,
  .daily-card.alerts {
    grid-column: span 12;
  }

  .hub-trust,
  .daily-card.streak {
    grid-column: span 6;
  }
}

.hub-welcome {
  position: relative;
  isolation: isolate;
  min-height: 348px;
  align-content: end;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 34, 14, 0.96), rgba(0, 63, 27, 0.84) 48%, rgba(0, 63, 27, 0.36)),
    url("assets/hero-community.png") center / cover;
  box-shadow: 0 28px 80px rgba(0, 50, 21, 0.22);
}

.hub-welcome::before {
  content: "";
  position: absolute;
  inset: -30% -12% auto auto;
  width: min(420px, 55vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(254, 203, 0, 0.34), transparent 56%),
    radial-gradient(circle at 62% 58%, rgba(14, 165, 183, 0.2), transparent 42%);
  filter: blur(2px);
  z-index: -1;
}

.hub-welcome::after {
  height: 7px;
  background: linear-gradient(90deg, var(--gold), #0ea5b7, #155eef, var(--primary-strong));
}

.hub-brand-row {
  margin-bottom: auto;
}

.hub-welcome h2 {
  max-width: 12ch;
  margin-top: 1.25rem;
  font-size: clamp(3rem, 7vw, 5.85rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hub-welcome p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.brazil-orb {
  width: 62px;
  height: 62px;
  border-radius: 24px 12px 24px 12px;
}

.hub-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.hub-signal-grid span {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 0.15rem;
  padding: 0.72rem;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hub-signal-grid strong {
  display: block;
  color: #ffffff;
  font-size: 1.32rem;
  line-height: 1;
}

.national-pulse-card,
.identity-card,
.hub-trust,
.city-pulse-daily,
.activation-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 252, 248, 0.86)),
    var(--paper);
}

.national-pulse-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
}

.national-pulse-card::after {
  content: "";
  position: absolute;
  inset: auto -14% -48% 32%;
  height: 150px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(254, 203, 0, 0.22), rgba(14, 165, 183, 0.18));
  transform: rotate(-8deg);
}

.national-pulse-card > * {
  position: relative;
  z-index: 1;
}

.identity-card {
  align-content: space-between;
  min-height: 156px;
}

.identity-card header,
.identity-card header span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.identity-card header span {
  color: var(--primary-strong);
  font-weight: 950;
}

.identity-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.city-pulse-daily {
  padding: 1.1rem;
}

.city-pulse-mini {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.city-pulse-mini div {
  min-height: 106px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, rgba(254, 203, 0, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 250, 244, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.activation-card,
.hub-trust {
  padding: 1.05rem;
}

.activation-steps button {
  min-height: 82px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.activation-steps button.done {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(224, 247, 233, 0.9));
  box-shadow: inset 0 -3px 0 rgba(17, 148, 71, 0.13);
}

.daily-card.actions {
  gap: 0.75rem;
}

.daily-card.actions button {
  min-height: 96px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 240, 0.94));
  box-shadow: 0 16px 38px rgba(9, 38, 23, 0.08);
}

.daily-card.actions button:first-child {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent),
    linear-gradient(135deg, var(--gold), #ffe680);
  box-shadow: 0 18px 42px rgba(254, 203, 0, 0.26);
}

.feed-hero {
  min-height: 236px;
  padding: 1.35rem;
  border-radius: 34px;
  box-shadow: 0 28px 72px rgba(0, 50, 21, 0.18);
}

.feed-hero h2 {
  max-width: 16ch;
}

.composer,
.post-card {
  border-radius: 30px;
  box-shadow: 0 18px 52px rgba(9, 38, 23, 0.1);
}

.bottom-nav {
  box-shadow: 0 -18px 42px rgba(9, 38, 23, 0.16);
}

@media (max-width: 640px) {
  .main {
    padding-inline: 0.82rem;
  }

  .topbar {
    min-height: 66px;
  }

  .daily-hub {
    margin-top: 0.65rem;
    gap: 0.75rem;
  }

  .hub-welcome {
    min-height: 334px;
    padding: 1rem;
    border-radius: 30px;
  }

  .hub-welcome h2 {
    max-width: 9ch;
    font-size: 3.28rem;
  }

  .hub-welcome p {
    font-size: 1rem;
  }

  .hub-signal-grid {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .hub-signal-grid span {
    min-height: 58px;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .hub-signal-grid strong {
    font-size: 1.12rem;
  }

  .national-pulse-card,
  .identity-card,
  .hub-trust,
  .activation-card,
  .city-pulse-daily {
    border-radius: 26px;
  }

  .city-pulse-mini {
    grid-template-columns: 1fr;
  }

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

  .daily-card.actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .daily-card.actions button {
    min-height: 76px;
    border-radius: 24px;
  }

  .feed-hero {
    min-height: 286px;
    align-content: end;
  }
}

/* Premium profile stage */
.profile-stage-heading {
  align-items: end;
  margin-top: 1.05rem;
  padding: 1.25rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 14%, rgba(254, 203, 0, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 249, 244, 0.78));
  border: 1px solid rgba(13, 64, 36, 0.1);
  box-shadow: 0 18px 50px rgba(9, 38, 23, 0.08);
}

.profile-stage-heading p {
  max-width: 62ch;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.profile-stage-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.78fr);
}

.profile-layout > .admin-card {
  border-radius: 28px;
  border-color: rgba(13, 64, 36, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 248, 0.84)),
    var(--paper);
  box-shadow: 0 16px 42px rgba(9, 38, 23, 0.08);
}

.profile-hero-card {
  border-radius: 36px;
  border-color: rgba(13, 64, 36, 0.12);
  box-shadow: 0 28px 78px rgba(9, 38, 23, 0.14);
}

.profile-cover {
  min-height: 330px;
  border-radius: 0 0 34px 34px;
  background:
    linear-gradient(90deg, rgba(0, 30, 13, 0.94), rgba(0, 72, 33, 0.56) 48%, rgba(0, 72, 33, 0.18)),
    radial-gradient(circle at 78% 20%, rgba(254, 203, 0, 0.32), transparent 17rem),
    radial-gradient(circle at 22% 80%, rgba(14, 165, 183, 0.28), transparent 14rem),
    url("assets/hero-community.png") center / cover;
}

.profile-cover::after {
  inset: auto -8% -34% 30%;
  height: 250px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(254, 203, 0, 0.16), rgba(14, 165, 183, 0.16));
}

.profile-cover-content {
  left: 1.35rem;
  right: auto;
  top: 1.35rem;
  justify-items: start;
  max-width: 24rem;
  text-align: left;
}

.profile-cover-content span {
  width: fit-content;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(254, 203, 0, 0.95);
  color: #132016;
}

.profile-cover-content strong {
  max-width: 9ch;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.86;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.profile-cover-content small {
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.profile-cover-metrics {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.25rem;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-cover-metrics span {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 0.12rem;
  padding: 0.7rem 0.8rem;
  border-radius: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.profile-cover-metrics strong {
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
}

.profile-avatar,
.profile-photo-control {
  left: 1.35rem;
  bottom: -48px;
}

.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 34px;
  border-width: 7px;
  box-shadow: 0 20px 42px rgba(9, 38, 23, 0.2);
}

.photo-edit-badge {
  min-height: 34px;
  padding-inline: 0.72rem;
  box-shadow: 0 14px 28px rgba(254, 203, 0, 0.28);
}

.profile-main {
  padding: 4rem 1.25rem 1rem;
}

.profile-main h3 {
  font-size: clamp(2.15rem, 4.6vw, 3.3rem);
}

.profile-main p {
  max-width: 58ch;
  font-size: 1rem;
}

.profile-persona-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.82rem;
}

.profile-persona-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 36px;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  color: var(--primary-strong);
  background: rgba(17, 148, 71, 0.08);
  border: 1px solid rgba(17, 148, 71, 0.14);
  font-size: 0.8rem;
  font-weight: 900;
}

.profile-persona-strip svg {
  width: 15px;
  height: 15px;
}

.profile-actions .primary-button,
.profile-actions .secondary-button {
  border-radius: 999px;
}

.profile-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.72rem;
  padding: 0 1.25rem 1.25rem;
}

.profile-stat {
  min-height: 112px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 14%, rgba(254, 203, 0, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 249, 244, 0.86));
  box-shadow: 0 12px 28px rgba(9, 38, 23, 0.065);
}

.profile-stat strong {
  font-size: 1.55rem;
}

.profile-reputation-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  padding: 0 1.25rem 1.25rem;
}

.profile-reputation-path article {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(242, 250, 246, 0.92));
  border: 1px solid rgba(17, 148, 71, 0.12);
}

.profile-reputation-path span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-reputation-path strong {
  line-height: 1.25;
}

.profile-status-card {
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 12%, rgba(254, 203, 0, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(0, 50, 21, 0.98), rgba(17, 148, 71, 0.85));
  box-shadow: 0 22px 58px rgba(0, 50, 21, 0.18);
}

.trust-score-card,
.profile-field,
.follower-item,
.invite-card,
.theme-swatch {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(245, 250, 247, 0.82));
  border-color: rgba(13, 64, 36, 0.1);
}

.screen-reference-card.member-reference {
  border-radius: 32px;
  box-shadow: 0 22px 62px rgba(9, 38, 23, 0.1);
}

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

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

@media (max-width: 640px) {
  .profile-stage-heading {
    align-items: start;
    padding: 1rem;
    border-radius: 28px;
  }

  .profile-stage-actions {
    width: 100%;
    justify-content: stretch;
  }

  .profile-stage-actions .primary-button,
  .profile-stage-actions .secondary-button {
    flex: 1;
  }

  .profile-cover {
    min-height: 438px;
    border-radius: 30px;
  }

  .profile-cover-content {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }

  .profile-cover-content strong {
    max-width: 8ch;
    font-size: 2.72rem;
  }

  .profile-cover-content small {
    display: none;
  }

  .profile-cover-metrics {
    left: 1rem;
    right: 1rem;
    bottom: 5.35rem;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .profile-cover-metrics span {
    min-height: 56px;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .profile-avatar,
  .profile-photo-control {
    left: 1rem;
    bottom: -52px;
  }

  .profile-avatar {
    width: 104px;
    height: 104px;
  }

  .profile-main {
    display: grid;
    padding: 3.8rem 1rem 1rem;
  }

  .profile-actions {
    justify-content: stretch;
    min-width: 0;
  }

  .profile-actions .primary-button,
  .profile-actions .secondary-button {
    flex: 1;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 1rem;
  }

  .profile-reputation-path {
    grid-template-columns: 1fr;
    padding-inline: 1rem;
  }
}

/* Premium journey engine */
.journey-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: end;
  width: min(100%, 1060px);
  min-height: 268px;
  margin: 1.05rem auto 1rem;
  padding: clamp(1rem, 2.6vw, 1.55rem);
  overflow: hidden;
  border-radius: 36px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 28, 12, 0.96), rgba(0, 72, 33, 0.84) 52%, rgba(14, 165, 183, 0.5)),
    radial-gradient(circle at 78% 18%, rgba(254, 203, 0, 0.35), transparent 20rem),
    url("assets/hero-community.png") center / cover;
  box-shadow: 0 30px 82px rgba(0, 50, 21, 0.2);
}

.journey-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -34% 42%;
  height: 240px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(254, 203, 0, 0.13));
  transform: rotate(-8deg);
  z-index: -1;
}

.journey-hero .eyebrow {
  width: fit-content;
  padding: 0.4rem 0.66rem;
  border-radius: 999px;
  color: #132016;
  background: var(--gold);
}

.journey-hero h2 {
  max-width: 12ch;
  margin: 0.8rem 0 0.55rem;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 4.55rem);
  line-height: 0.88;
}

.journey-hero p {
  max-width: 50ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.52;
}

.journey-hero-score {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 310px;
  padding: 0.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.journey-ring {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0, 50, 21, 0.95) 0 55%, transparent 56%),
    conic-gradient(var(--gold) var(--journey), rgba(255, 255, 255, 0.16) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.journey-ring strong,
.journey-ring span,
.journey-hero-score span {
  display: block;
}

.journey-ring strong {
  font-size: 1.55rem;
  line-height: 1;
}

.journey-ring span {
  margin-top: 1.65rem;
  position: absolute;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 900;
}

.journey-hero-score > div:last-child {
  display: grid;
  gap: 0.42rem;
}

.journey-hero-score span {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 900;
}

.journey-hero-actions {
  display: grid;
  gap: 0.55rem;
}

.journey-hero-actions .primary-button,
.journey-hero-actions .secondary-button {
  min-height: 48px;
  border-radius: 999px;
}

.journey-map-card {
  border-radius: 34px;
  border-color: rgba(13, 64, 36, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 251, 247, 0.86)),
    var(--paper);
  box-shadow: 0 22px 62px rgba(9, 38, 23, 0.1);
}

.journey-map-head {
  padding: 0.2rem;
}

.journey-map-head h3 {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1;
}

.journey-step {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 248, 0.86));
  box-shadow: 0 14px 34px rgba(9, 38, 23, 0.07);
}

.journey-step.done {
  background:
    radial-gradient(circle at 96% 16%, rgba(17, 148, 71, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 251, 244, 0.9));
}

.journey-step.active {
  box-shadow: 0 18px 42px rgba(254, 203, 0, 0.16);
}

.journey-node {
  border-radius: 20px;
}

.journey-side > .admin-card {
  border-radius: 28px;
  border-color: rgba(13, 64, 36, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 248, 0.84));
  box-shadow: 0 16px 42px rgba(9, 38, 23, 0.08);
}

.journey-side > .journey-progress-card {
  color: #ffffff;
  border: 0;
  background:
    radial-gradient(circle at 86% 12%, rgba(254, 203, 0, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(0, 50, 21, 0.98), rgba(17, 148, 71, 0.88));
}

.journey-progress-card {
  border: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(254, 203, 0, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(0, 50, 21, 0.98), rgba(17, 148, 71, 0.88));
  box-shadow: 0 26px 66px rgba(0, 50, 21, 0.2);
}

.journey-mission-card h3 {
  margin-bottom: 0.75rem;
}

.journey-daily-missions {
  display: grid;
  gap: 0.62rem;
}

.journey-daily-mission {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.72rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(242, 250, 246, 0.9));
  border: 1px solid rgba(17, 148, 71, 0.12);
}

.journey-daily-mission.hot {
  background:
    radial-gradient(circle at 92% 10%, rgba(254, 203, 0, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 218, 0.72));
}

.journey-daily-mission > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--primary-strong);
  background: rgba(17, 148, 71, 0.1);
}

.journey-daily-mission.hot > span {
  color: #7a5a00;
  background: rgba(254, 203, 0, 0.24);
}

.journey-daily-mission strong,
.journey-daily-mission small {
  display: block;
}

.journey-daily-mission small {
  margin: 0.1rem 0 0.42rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.journey-daily-mission .bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.1);
}

.journey-daily-mission .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.journey-track,
.journey-reward {
  border-radius: 22px;
}

@media (max-width: 860px) {
  .journey-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .journey-hero-score {
    min-width: 0;
  }

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

@media (max-width: 640px) {
  .journey-hero {
    min-height: 390px;
    align-content: end;
    padding: 1rem;
    border-radius: 30px;
  }

  .journey-hero h2 {
    max-width: 9ch;
    font-size: 2.86rem;
  }

  .journey-hero-score {
    grid-template-columns: 1fr;
  }

  .journey-ring {
    width: 86px;
    height: 86px;
  }

  .journey-hero-actions {
    width: 100%;
  }

  .journey-layout {
    gap: 0.75rem;
  }
}

/* Council-grade visual reset: calmer, modern, app-like */
:root {
  --sidebar: 272px;
  --premium-green: #0b5f35;
  --premium-green-2: #12804a;
  --premium-ink: #17211b;
  --premium-muted: #66736b;
  --premium-shell: #f6f8f4;
  --premium-card: rgba(255, 255, 255, 0.86);
  --premium-line: rgba(20, 70, 43, 0.1);
  --premium-yellow: #ffd43b;
  --premium-blue: #0f8fb8;
  --premium-shadow: 0 18px 55px rgba(17, 38, 24, 0.1);
  --premium-shadow-soft: 0 10px 30px rgba(17, 38, 24, 0.075);
}

body {
  background:
    radial-gradient(circle at 12% -4%, rgba(255, 212, 59, 0.13), transparent 26rem),
    radial-gradient(circle at 90% 4%, rgba(15, 143, 184, 0.11), transparent 30rem),
    linear-gradient(180deg, #fbfcf9 0%, var(--premium-shell) 100%);
  color: var(--premium-ink);
}

.main {
  width: min(100%, 1160px);
  padding-inline: 1rem;
}

.sidebar {
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 28%),
    linear-gradient(165deg, #0b5f35 0%, #064226 58%, #041c12 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  min-height: 48px;
}

.brand-mark,
.brazil-orb {
  border-radius: 18px;
  transform: rotate(-6deg);
}

.nav-button {
  min-height: 42px;
  border-radius: 15px;
  font-size: 0.95rem;
  opacity: 0.88;
}

.nav-button.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 3px 0 0 var(--premium-yellow), 0 12px 26px rgba(0, 0, 0, 0.12);
}

.side-panel {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
}

.topbar {
  min-height: 70px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(17, 38, 24, 0.08);
  backdrop-filter: blur(22px) saturate(1.08);
}

.primary-button,
.secondary-button,
.icon-button,
select,
input,
textarea {
  border-radius: 16px;
}

.primary-button {
  color: #132016;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent),
    linear-gradient(135deg, var(--premium-yellow), #ffe889);
  box-shadow: 0 12px 28px rgba(255, 212, 59, 0.24);
}

.secondary-button,
.icon-button,
select,
input,
textarea {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--premium-line);
  box-shadow: 0 7px 18px rgba(17, 38, 24, 0.045);
}

.daily-hub,
.feed-hero,
.journey-layout,
.profile-layout,
.social-layout {
  width: min(100%, 1028px);
}

.daily-card,
.post-card,
.composer,
.side-widget,
.admin-card,
.profile-hero-card,
.screen-reference-card,
.journey-map-card,
.room-card,
.poll-card,
.event-item,
.library-item,
.member-card,
.base-card,
.news-card,
.product-card {
  border-color: var(--premium-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 252, 249, 0.82));
  box-shadow: var(--premium-shadow-soft);
  backdrop-filter: blur(18px);
}

.hub-welcome,
.journey-hero,
.profile-cover,
.feed-hero,
.social-hero {
  box-shadow: var(--premium-shadow);
}

.hub-welcome {
  min-height: 286px;
  padding: 1.35rem;
  border-radius: 30px;
  align-content: end;
  background:
    linear-gradient(90deg, rgba(5, 31, 18, 0.92), rgba(7, 74, 40, 0.68) 58%, rgba(15, 143, 184, 0.36)),
    url("assets/hero-community.png") center / cover;
}

.hub-welcome h2 {
  max-width: 10ch;
  margin-top: 0.85rem;
  font-size: clamp(2.45rem, 5vw, 4rem);
  line-height: 0.92;
}

.hub-welcome p {
  max-width: 44ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.hub-signal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.95rem;
}

.hub-signal-grid span {
  min-height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
}

.national-pulse-card,
.identity-card,
.hub-trust,
.city-pulse-daily,
.activation-card {
  border-radius: 26px;
}

.city-pulse-mini div,
.activation-steps button,
.daily-card.actions button,
.profile-stat,
.profile-reputation-path article,
.journey-step,
.journey-daily-mission,
.journey-track {
  border-radius: 20px;
}

.daily-card.actions button {
  min-height: 78px;
}

.feed-hero,
.journey-hero,
.social-hero,
.profile-stage-heading {
  min-height: auto;
  margin-top: 0.85rem;
  border-radius: 30px;
}

.feed-hero,
.social-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 212, 59, 0.16), transparent 16rem),
    linear-gradient(135deg, #07351f, #0d7040 68%, #0f8fb8);
}

.feed-hero h2,
.social-hero h2 {
  max-width: 17ch;
  font-size: clamp(1.9rem, 3vw, 2.85rem);
  line-height: 0.98;
}

.journey-hero {
  min-height: 250px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(5, 31, 18, 0.93), rgba(8, 89, 49, 0.72) 58%, rgba(15, 143, 184, 0.38)),
    url("assets/hero-community.png") center / cover;
}

.journey-hero h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 0.95;
}

.journey-hero-score {
  min-width: 280px;
  border-radius: 24px;
}

.journey-ring {
  width: 82px;
  height: 82px;
}

.profile-stage-heading {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 212, 59, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 246, 0.78));
}

.profile-stage-heading h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 0.98;
}

.profile-hero-card {
  border-radius: 30px;
  box-shadow: var(--premium-shadow);
}

.profile-cover {
  min-height: 288px;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(90deg, rgba(5, 31, 18, 0.9), rgba(8, 89, 49, 0.56) 58%, rgba(255, 212, 59, 0.14)),
    url("assets/hero-community.png") center / cover;
}

.profile-cover-content strong {
  max-width: 10ch;
  font-size: clamp(2.05rem, 4vw, 3.7rem);
  line-height: 0.92;
}

.profile-cover-metrics span {
  min-height: 58px;
  border-radius: 18px;
}

.profile-avatar {
  width: 98px;
  height: 98px;
  border-radius: 28px;
}

.profile-main {
  padding-top: 3.45rem;
}

.profile-main h3 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

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

.story-rail button,
.city-pulse-card,
.neighborhood-card,
.demand-card {
  border-radius: 22px;
}

@media (max-width: 640px) {
  .main {
    padding-inline: 0.82rem;
  }

  .topbar {
    min-height: 64px;
  }

  .daily-hub {
    margin-top: 0.65rem;
  }

  .hub-welcome {
    min-height: 292px;
    border-radius: 28px;
  }

  .hub-welcome h2 {
    max-width: 9ch;
    font-size: 2.62rem;
  }

  .hub-welcome p {
    font-size: 0.95rem;
  }

  .hub-signal-grid {
    grid-template-columns: 1fr;
  }

  .journey-hero {
    min-height: 342px;
    border-radius: 28px;
  }

  .journey-hero h2 {
    max-width: 10ch;
    font-size: 2.46rem;
  }

  .journey-hero-score {
    min-width: 0;
    border-radius: 22px;
  }

  .profile-cover {
    min-height: 342px;
    border-radius: 28px;
  }

  .profile-cover-content strong {
    font-size: 2.36rem;
  }

  .profile-cover-metrics {
    bottom: 4.75rem;
  }

  .profile-cover-metrics span {
    min-height: 50px;
  }

  .profile-avatar {
    width: 92px;
    height: 92px;
  }

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

  .bottom-nav {
    border-radius: 26px 26px 0 0;
  }
}

/* Council-grade home correction: product before billboard */
@media (min-width: 861px) {
  .daily-hub {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .hub-welcome {
    grid-column: span 5;
    grid-row: span 1;
  }

  .national-pulse-card,
  .identity-card {
    grid-column: span 3;
  }

  .hub-trust {
    grid-column: span 4;
  }

  .city-pulse-daily {
    grid-column: span 8;
  }

  .activation-card,
  .daily-card.actions,
  .daily-card.missions,
  .daily-card.alerts {
    grid-column: span 12;
  }
}

.hub-welcome {
  min-height: 218px;
}

.hub-welcome h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 3.35vw, 3.1rem);
}

.hub-welcome .brazil-orb {
  width: 48px;
  height: 48px;
}

.hub-welcome .badge.prime {
  min-height: 32px;
  font-size: 0.74rem;
}

.hub-signal-grid span {
  min-height: 52px;
  padding: 0.58rem;
}

.hub-signal-grid strong {
  font-size: 1.08rem;
}

.national-pulse-card,
.identity-card {
  min-height: 218px;
}

.city-pulse-daily {
  align-content: center;
}

.city-pulse-mini div {
  min-height: 76px;
}

.hub-trust {
  min-height: 160px;
}

.activation-card {
  padding: 0.9rem;
}

.activation-steps button {
  min-height: 64px;
}

@media (max-width: 640px) {
  .hub-welcome {
    min-height: 218px;
    padding: 0.95rem;
  }

  .hub-brand-row {
    gap: 0.5rem;
  }

  .hub-welcome .brazil-orb {
    width: 44px;
    height: 44px;
  }

  .hub-welcome h2 {
    max-width: 12ch;
    margin-top: 0.65rem;
    font-size: 2.08rem;
    line-height: 0.98;
  }

  .hub-welcome p {
    display: none;
  }

  .hub-signal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.42rem;
    margin-top: 0.75rem;
  }

  .hub-signal-grid span {
    min-height: 54px;
    grid-template-columns: 1fr;
    font-size: 0.66rem;
    border-radius: 16px;
  }

  .hub-signal-grid strong {
    font-size: 1rem;
  }

  .national-pulse-card,
  .identity-card {
    min-height: auto;
  }
}

/* Council-grade desktop shell: lighter, more premium */
@media (min-width: 861px) {
  .sidebar {
    color: var(--premium-ink);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 246, 0.86)),
      var(--premium-shell);
    border-right: 1px solid var(--premium-line);
    box-shadow: 18px 0 50px rgba(17, 38, 24, 0.055);
  }

  .brand strong,
  .brand span {
    color: var(--premium-ink);
  }

  .main-nav {
    gap: 0.28rem;
  }

  .nav-button {
    color: rgba(23, 33, 27, 0.7);
    background: transparent;
  }

  .nav-button:hover {
    color: var(--premium-green);
    background: rgba(11, 95, 53, 0.06);
    border-color: rgba(11, 95, 53, 0.08);
  }

  .nav-button.active {
    color: var(--premium-green);
    background:
      linear-gradient(90deg, rgba(255, 212, 59, 0.16), transparent),
      rgba(11, 95, 53, 0.075);
    border-color: rgba(11, 95, 53, 0.1);
    box-shadow: inset 3px 0 0 var(--premium-yellow), 0 10px 24px rgba(17, 38, 24, 0.06);
  }

  .side-panel {
    color: var(--premium-ink);
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--premium-line);
    box-shadow: 0 16px 36px rgba(17, 38, 24, 0.08);
  }

  .side-panel .panel-label {
    color: #987400;
  }

  .side-panel .ghost-button {
    color: var(--premium-green);
    background: rgba(11, 95, 53, 0.06);
    border-color: rgba(11, 95, 53, 0.12);
  }
}

/* Visual Identity v3: social product, not prototype */
:root {
  --v3-bg: #f7f9f5;
  --v3-panel: rgba(255, 255, 255, 0.9);
  --v3-panel-solid: #ffffff;
  --v3-ink: #161f1a;
  --v3-muted: #6f7a72;
  --v3-green: #096238;
  --v3-green-soft: rgba(9, 98, 56, 0.09);
  --v3-yellow: #ffd84d;
  --v3-blue: #127fa3;
  --v3-line: rgba(22, 31, 26, 0.09);
  --v3-radius: 22px;
  --v3-radius-lg: 30px;
  --v3-shadow: 0 20px 60px rgba(22, 31, 26, 0.09);
  --v3-shadow-soft: 0 10px 30px rgba(22, 31, 26, 0.065);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(247, 249, 245, 0.96)),
    var(--v3-bg);
  color: var(--v3-ink);
}

.topbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--v3-line);
  box-shadow: 0 12px 34px rgba(22, 31, 26, 0.06);
}

.daily-card,
.post-card,
.composer,
.side-widget,
.admin-card,
.room-card,
.poll-card,
.event-item,
.library-item,
.member-card,
.base-card,
.news-card,
.product-card,
.profile-hero-card,
.screen-reference-card,
.journey-map-card,
.social-profile-card,
.chat-layout {
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 253, 251, 0.9));
  box-shadow: var(--v3-shadow-soft);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.topbar-avatar,
select,
input,
textarea {
  border-radius: 14px;
}

.primary-button {
  color: #162017;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent),
    linear-gradient(135deg, var(--v3-yellow), #ffe991);
  box-shadow: 0 12px 26px rgba(255, 216, 77, 0.22);
}

.secondary-button,
.ghost-button,
.icon-button,
select,
input,
textarea {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--v3-line);
  box-shadow: 0 8px 18px rgba(22, 31, 26, 0.04);
}

.feed-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 0;
  padding: 0.85rem;
  border-radius: 22px;
  color: var(--v3-ink);
  background: var(--v3-panel);
  box-shadow: var(--v3-shadow-soft);
}

.feed-hero::after {
  display: none;
}

.feed-hero .eyebrow {
  color: var(--v3-green);
}

.feed-hero h2 {
  max-width: none;
  margin: 0.15rem 0 0.18rem;
  color: var(--v3-ink);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.05;
}

.feed-hero p {
  max-width: 64ch;
  color: var(--v3-muted);
  font-size: 0.94rem;
}

.feed-hero-status {
  display: none;
}

.feed-hero-actions {
  grid-template-columns: repeat(2, max-content);
}

.feed-shell {
  align-items: start;
}

.feed-main {
  display: grid;
  gap: 0.85rem;
}

.story-rail {
  order: 1;
}

.quick-composer {
  order: 2;
}

.feed-list {
  order: 3;
}

.city-pulse-strip {
  order: 4;
}

.city-os-panel {
  order: 5;
}

.composer {
  padding: 0.9rem;
  border-radius: 24px;
}

.quick-composer textarea {
  min-height: 86px;
  border-radius: 18px;
  background: #fbfcfb;
}

.post-card {
  border-radius: 24px;
  padding: 1rem;
}

.post-card::before {
  width: 3px;
  opacity: 0.45;
}

.post-card h3 {
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.12;
}

.post-card p {
  color: #46524a;
  line-height: 1.55;
}

.story-rail button {
  min-height: 92px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
}

.daily-hub {
  gap: 0.75rem;
}

.hub-welcome {
  color: #ffffff;
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(5, 31, 18, 0.9), rgba(8, 92, 51, 0.64)),
    url("assets/hero-community.png") center / cover;
}

.hub-welcome h2 {
  letter-spacing: 0;
}

.hub-signal-grid span {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.14);
}

.journey-hero,
.profile-stage-heading,
.social-hero,
.more-hero,
.radio-hero-card,
.trust-center-hero,
.strategy-hero {
  border-radius: var(--v3-radius-lg);
  box-shadow: var(--v3-shadow);
}

.journey-hero {
  min-height: 230px;
}

.journey-hero h2 {
  max-width: 15ch;
  font-size: clamp(1.95rem, 3.4vw, 3rem);
}

.journey-hero-score {
  border-radius: 22px;
}

.profile-stage-heading {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 247, 0.88));
}

.profile-cover {
  min-height: 250px;
}

.profile-cover-content strong {
  max-width: 13ch;
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
}

.profile-cover-metrics span {
  min-height: 52px;
}

.profile-main h3 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

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

@media (min-width: 861px) {
  .main {
    width: min(100%, 1180px);
  }

  .feed-shell {
    grid-template-columns: minmax(0, 0.72fr) minmax(285px, 0.28fr);
  }

  .feed-side {
    top: 86px;
  }

  .daily-hub {
    grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.36fr) minmax(280px, 0.36fr);
  }

  .hub-welcome,
  .national-pulse-card,
  .identity-card,
  .hub-trust,
  .city-pulse-daily {
    grid-column: auto;
  }

  .activation-card,
  .daily-card.actions {
    grid-column: 1 / -1;
  }

  .daily-card.missions,
  .daily-card.alerts,
  .daily-card.streak {
    display: none;
  }
}

@media (max-width: 640px) {
  .feed-hero {
    display: none;
  }

  .daily-hub {
    margin-top: 0.5rem;
  }

  .hub-welcome {
    min-height: 190px;
    border-radius: 24px;
  }

  .hub-welcome h2 {
    max-width: 12ch;
    font-size: 1.85rem;
  }

  .hub-signal-grid span {
    min-height: 48px;
    padding: 0.5rem;
  }

  .national-pulse-card,
  .identity-card {
    border-radius: 22px;
  }

  .city-pulse-daily,
  .hub-trust,
  .activation-card,
  .daily-card.actions {
    display: none;
  }

  .story-rail {
    margin-top: 0.2rem;
  }

  .quick-composer {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 0.75rem;
  }

  .quick-composer textarea {
    min-height: 72px;
  }

  .quick-compose-tools {
    gap: 0.4rem;
  }

  .post-card {
    border-radius: 22px;
  }

  .journey-hero {
    min-height: 292px;
  }

  .journey-hero h2 {
    max-width: 11ch;
    font-size: 2.18rem;
  }

  .profile-stage-heading {
    border-radius: 24px;
  }

  .profile-cover {
    min-height: 306px;
  }
}

/* Visual Identity v3.1: feed-first home */
body:not(.detail-mode) .daily-hub {
  display: none;
}

body:not(.detail-mode) .pwa-banner {
  display: none;
}

body:not(.detail-mode) #feed {
  padding-top: 0.85rem;
}

body:not(.detail-mode) .feed-shell {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  body:not(.detail-mode) #feed {
    padding-top: 0.2rem;
  }

  body:not(.detail-mode) .feed-shell {
    margin-top: 0;
  }

  .city-pulse-strip,
  .city-os-panel {
    display: none;
  }
}

/* Visual Identity v3.2: calmer journey/profile mobile */
@media (max-width: 640px) {
  .journey-hero {
    min-height: 258px;
    padding: 0.95rem;
  }

  .journey-hero h2 {
    max-width: 14ch;
    font-size: 1.9rem;
  }

  .journey-hero p {
    display: none;
  }

  .journey-hero-score {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.7rem;
  }

  .journey-ring {
    width: 70px;
    height: 70px;
  }

  .journey-ring strong {
    font-size: 1.1rem;
  }

  .journey-hero-actions .primary-button,
  .journey-hero-actions .secondary-button {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .profile-cover {
    min-height: 254px;
  }

  .profile-cover-content strong,
  .profile-cover-content small {
    display: none;
  }

  .profile-cover-content span {
    font-size: 0.68rem;
  }

  .profile-cover-metrics {
    bottom: 4.35rem;
    gap: 0.4rem;
  }

  .profile-cover-metrics span {
    min-height: 46px;
    font-size: 0.7rem;
  }

  .profile-cover-metrics strong {
    font-size: 1rem;
  }
}

/* Visual Identity v3: communities */
.communities-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 1028px);
  margin: 0.85rem auto 0.85rem;
  padding: 1rem;
  border: 1px solid var(--v3-line);
  border-radius: var(--v3-radius-lg);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 216, 77, 0.15), transparent 16rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 248, 0.88));
  box-shadow: var(--v3-shadow-soft);
}

.communities-hero h2 {
  max-width: 15ch;
  margin: 0.24rem 0 0.32rem;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 0.98;
}

.communities-hero p {
  max-width: 58ch;
  margin: 0;
  color: var(--v3-muted);
  line-height: 1.5;
}

.communities-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.community-neighborhoods {
  width: min(100%, 1028px);
  margin: 0 auto 0.85rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.community-neighborhood {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 76px;
  padding: 0.7rem;
  border: 1px solid var(--v3-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 248, 0.86));
  box-shadow: var(--v3-shadow-soft);
}

.community-neighborhood > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--v3-green);
  background: var(--v3-green-soft);
}

.community-neighborhood.gold > span {
  color: #876600;
  background: rgba(255, 216, 77, 0.24);
}

.community-neighborhood.blue > span {
  color: var(--v3-blue);
  background: rgba(18, 127, 163, 0.1);
}

.community-neighborhood strong,
.community-neighborhood small {
  display: block;
}

.community-neighborhood small {
  color: var(--v3-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.community-neighborhood b {
  color: var(--v3-green);
  font-size: 1.1rem;
}

.room-grid {
  width: min(100%, 1028px);
  margin-inline: auto;
}

.community-room-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.community-room-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -48% 40%;
  height: 130px;
  border-radius: 999px;
  background: rgba(9, 98, 56, 0.06);
  transform: rotate(-8deg);
}

.community-room-card.hot::after {
  background: rgba(255, 216, 77, 0.2);
}

.community-room-card.active::after {
  background: rgba(18, 127, 163, 0.09);
}

.community-room-card > * {
  position: relative;
  z-index: 1;
}

.community-room-card .room-icon {
  border-radius: 18px;
  background: var(--v3-green-soft);
  color: var(--v3-green);
}

.community-room-card.hot .room-icon {
  color: #7a5a00;
  background: rgba(255, 216, 77, 0.26);
}

.room-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: auto;
}

.room-activity {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--v3-green);
  background: var(--v3-green-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 760px) {
  .communities-hero {
    display: grid;
    align-items: start;
    padding: 0.9rem;
    border-radius: 24px;
  }

  .communities-hero h2 {
    max-width: 12ch;
    font-size: 2rem;
  }

  .communities-hero p {
    font-size: 0.94rem;
  }

  .communities-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .community-neighborhoods {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .community-neighborhood {
    min-height: 66px;
  }

  .community-room-card {
    min-height: 166px;
  }
}

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

/* Visual Identity v3: admin SaaS */
#superadmin,
#admin-local {
  --admin-saas-bg: rgba(255, 255, 255, 0.94);
  --admin-saas-line: rgba(22, 31, 26, 0.08);
  --admin-saas-green: #075c35;
  --admin-saas-yellow: #ffd84d;
  --admin-saas-ink: #132019;
  --admin-saas-muted: #657469;
}

#superadmin .section-heading,
#admin-local .section-heading {
  width: min(100%, 1120px);
  margin: 0.9rem auto;
  padding: 1.05rem;
  border: 1px solid var(--admin-saas-line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 248, 0.88)),
    var(--admin-saas-bg);
  box-shadow: 0 18px 50px rgba(22, 31, 26, 0.08);
}

#superadmin .section-heading {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(135deg, rgba(4, 32, 19, 0.98), rgba(7, 92, 53, 0.94) 54%, rgba(18, 127, 163, 0.78)),
    var(--admin-saas-green);
  box-shadow: 0 22px 70px rgba(7, 92, 53, 0.22);
}

#superadmin .section-heading h2,
#superadmin .section-heading .eyebrow {
  color: #ffffff;
}

#superadmin .section-heading .primary-button {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent),
    linear-gradient(135deg, var(--admin-saas-yellow), #fff19d);
}

#superadmin .control-grid,
#admin-local .local-admin-layout {
  width: min(100%, 1120px);
  margin-inline: auto;
  gap: 0.9rem;
}

#superadmin .control-grid {
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
}

#admin-local .local-admin-layout {
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1fr);
}

#superadmin .command-center,
#superadmin .admin-card,
#admin-local .pricing-card,
#admin-local .franchise-command-card,
#admin-local .admin-card {
  border: 1px solid var(--admin-saas-line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 252, 249, 0.9));
  box-shadow: 0 14px 42px rgba(22, 31, 26, 0.075);
}

#superadmin .command-center,
#admin-local .franchise-command-card {
  min-height: 100%;
  padding: 1.1rem;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(4, 35, 21, 0.98), rgba(8, 94, 53, 0.93) 58%, rgba(18, 127, 163, 0.72)),
    var(--admin-saas-green);
  box-shadow: 0 24px 70px rgba(7, 92, 53, 0.2);
}

#superadmin .command-center h3,
#admin-local .franchise-command-card h3 {
  max-width: 13ch;
  font-size: clamp(1.72rem, 3vw, 2.55rem);
  line-height: 0.96;
}

#superadmin .command-center p,
#admin-local .franchise-command-card p {
  color: rgba(255, 255, 255, 0.78);
}

#superadmin .command-center .check-item,
#admin-local .franchise-kpi {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

#superadmin .command-center .check-item svg,
#admin-local .franchise-kpi svg {
  color: var(--admin-saas-yellow);
}

#superadmin .admin-card h3,
#admin-local .admin-card h3,
#admin-local .pricing-card h3 {
  color: var(--admin-saas-ink);
  letter-spacing: 0;
}

#admin-local .pricing-card {
  position: sticky;
  top: calc(var(--topbar-height) + 1rem);
  align-self: start;
  padding: 1.05rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% -5%, rgba(255, 216, 77, 0.36), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.9));
}

#admin-local .pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--admin-saas-yellow), var(--admin-saas-green), var(--v3-blue));
}

#admin-local .population-pricing select,
#admin-local .pricing-card .primary-button {
  width: 100%;
}

#admin-local .price-line {
  display: grid;
  gap: 0.12rem;
  padding: 0.78rem 0.85rem;
  border-radius: 18px;
  background: rgba(7, 92, 53, 0.055);
  border-color: rgba(7, 92, 53, 0.12);
}

#admin-local .price-line strong {
  color: var(--admin-saas-green);
  font-size: clamp(1.24rem, 2.4vw, 1.62rem);
  line-height: 1;
}

#admin-local .price-line.monthly strong {
  color: var(--v3-blue);
}

#admin-local .pricing-tier {
  border-radius: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#admin-local .pricing-tier:hover,
#admin-local .pricing-tier.active {
  transform: translateY(-1px);
  border-color: rgba(7, 92, 53, 0.24);
  box-shadow: 0 10px 26px rgba(22, 31, 26, 0.07);
}

#admin-local .franchise-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#admin-local .franchise-kpi {
  min-height: 118px;
}

#superadmin .role-table-wrap {
  border: 1px solid var(--admin-saas-line);
  border-radius: 20px;
  background: #ffffff;
}

#superadmin .role-table th {
  color: var(--admin-saas-green);
  background: rgba(7, 92, 53, 0.07);
}

#superadmin .role-table th,
#superadmin .role-table td {
  padding: 0.82rem;
  border-color: rgba(22, 31, 26, 0.065);
}

#superadmin .access-role,
#superadmin .leverage-card,
#admin-local .brand-control,
#admin-local .funnel-item,
#admin-local .revenue-row,
#admin-local .playbook-step,
#admin-local .check-item {
  border-color: var(--admin-saas-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.84));
  box-shadow: 0 8px 24px rgba(22, 31, 26, 0.045);
}

#superadmin .access-role.active {
  background:
    linear-gradient(135deg, rgba(7, 92, 53, 0.1), rgba(255, 216, 77, 0.16));
}

#superadmin .national-leverage-grid,
#admin-local .revenue-stack,
#admin-local .activation-playbook {
  gap: 0.72rem;
}

#superadmin .leverage-card {
  min-height: 150px;
}

#admin-local .brand-preview {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  box-shadow: 0 12px 24px rgba(22, 31, 26, 0.12);
}

#superadmin .admin-preview-grid,
#admin-local .admin-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

#superadmin .admin-preview-card,
#admin-local .admin-preview-card {
  grid-template-rows: 170px minmax(0, 1fr);
  border-color: var(--admin-saas-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(22, 31, 26, 0.07);
}

#superadmin .admin-preview-card figure,
#admin-local .admin-preview-card figure {
  background: rgba(7, 92, 53, 0.06);
}

#admin-local .admin-visual-panel,
#superadmin .admin-visual-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 249, 0.92));
}

#admin-local .audit-item,
#superadmin .audit-item {
  border-color: var(--admin-saas-line);
  border-radius: 20px;
  background: #ffffff;
}

body.dark #superadmin .section-heading,
body.dark #admin-local .section-heading,
body.dark #superadmin .admin-card,
body.dark #admin-local .admin-card,
body.dark #admin-local .pricing-card,
body.dark #superadmin .role-table-wrap,
body.dark #superadmin .access-role,
body.dark #superadmin .leverage-card,
body.dark #admin-local .brand-control,
body.dark #admin-local .funnel-item,
body.dark #admin-local .revenue-row,
body.dark #admin-local .playbook-step,
body.dark #admin-local .check-item,
body.dark #superadmin .admin-preview-card,
body.dark #admin-local .admin-preview-card {
  background:
    linear-gradient(180deg, rgba(19, 42, 29, 0.96), rgba(10, 22, 16, 0.9));
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark #superadmin .section-heading,
body.dark #superadmin .command-center,
body.dark #admin-local .franchise-command-card {
  background:
    linear-gradient(145deg, rgba(3, 24, 14, 0.98), rgba(7, 71, 42, 0.94) 58%, rgba(17, 104, 135, 0.76));
}

@media (max-width: 980px) {
  #superadmin .control-grid,
  #admin-local .local-admin-layout {
    grid-template-columns: 1fr;
  }

  #admin-local .pricing-card {
    position: relative;
    top: auto;
  }

  #admin-local .franchise-kpi-grid,
  #superadmin .national-leverage-grid,
  #superadmin .admin-preview-grid,
  #admin-local .admin-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #superadmin .section-heading,
  #admin-local .section-heading {
    display: grid;
    gap: 0.75rem;
    align-items: start;
    padding: 0.9rem;
    border-radius: 24px;
  }

  #superadmin .section-heading h2,
  #admin-local .section-heading h2 {
    font-size: 1.78rem;
    line-height: 1;
  }

  #superadmin .section-heading .primary-button,
  #admin-local .section-heading .primary-button {
    width: 100%;
  }

  #superadmin .command-center,
  #admin-local .franchise-command-card,
  #superadmin .admin-card,
  #admin-local .admin-card,
  #admin-local .pricing-card {
    border-radius: 22px;
    padding: 0.9rem;
  }

  #admin-local .franchise-kpi-grid,
  #superadmin .national-leverage-grid,
  #superadmin .admin-preview-grid,
  #admin-local .admin-preview-grid {
    grid-template-columns: 1fr;
  }

  #superadmin .admin-preview-card,
  #admin-local .admin-preview-card {
    grid-template-rows: 180px minmax(0, 1fr);
  }
}

/* Visual Identity v3: dopamine media feed */
.feed-format-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.feed-format-tabs button {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid var(--v3-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 248, 0.86));
  color: var(--v3-ink);
  box-shadow: 0 8px 22px rgba(22, 31, 26, 0.055);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.feed-format-tabs button:hover,
.feed-format-tabs button.active {
  transform: translateY(-2px);
  border-color: rgba(7, 92, 53, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.28), rgba(7, 92, 53, 0.09)),
    #ffffff;
  box-shadow: 0 13px 32px rgba(22, 31, 26, 0.075);
}

.feed-format-tabs svg {
  width: 18px;
  height: 18px;
  color: var(--v3-green);
}

.feed-format-tabs span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-format-tabs strong {
  min-width: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 92, 53, 0.09);
  color: var(--v3-green);
  font-size: 0.76rem;
}

.post-card {
  overflow: hidden;
}

.post-media {
  margin-top: 0.9rem;
}

.post-media-image {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 22px;
  background: #e9f0eb;
}

.post-media-image img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  display: block;
  object-fit: cover;
}

.post-media-image figcaption {
  position: absolute;
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.72rem;
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
}

.post-media-image figcaption span,
.post-video-meta span,
.post-media-video small {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(4, 32, 19, 0.7);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 900;
}

.post-media-video {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: end;
  gap: 0.65rem;
  overflow: hidden;
  padding: 0.85rem;
  border-radius: 24px;
  border: 1px solid rgba(22, 31, 26, 0.08);
  background:
    linear-gradient(180deg, rgba(4, 28, 17, 0.08), rgba(4, 28, 17, 0.76)),
    var(--post-poster, linear-gradient(135deg, #074b2c, #1280a3)) center / cover;
  color: #ffffff;
}

.post-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #133019;
  background: rgba(255, 216, 77, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
}

.post-video-play svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.post-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.post-video-meta strong {
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  color: #123019;
  background: rgba(255, 216, 77, 0.94);
  font-weight: 950;
}

.post-link-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.82rem;
  border: 1px solid rgba(7, 92, 53, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 216, 77, 0.22), rgba(7, 92, 53, 0.08)),
    #ffffff;
}

.post-link-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--v3-green);
  background: rgba(7, 92, 53, 0.1);
}

.post-link-card span,
.post-link-card strong,
.post-link-card p {
  display: block;
  margin: 0;
}

.post-link-card span {
  color: var(--v3-green);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.post-link-card strong {
  margin-top: 0.12rem;
  color: var(--v3-ink);
  line-height: 1.1;
}

.post-link-card p {
  margin-top: 0.22rem;
  color: var(--v3-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.empty-feed-state {
  display: grid;
  place-items: start;
  gap: 0.45rem;
}

@media (max-width: 760px) {
  .feed-format-tabs {
    display: flex;
    gap: 0.48rem;
    overflow-x: auto;
    padding: 0.1rem 0.05rem 0.35rem;
    scroll-snap-type: x mandatory;
  }

  .feed-format-tabs button {
    min-width: 124px;
    grid-template-columns: auto auto auto;
    justify-content: center;
    scroll-snap-align: start;
  }

  .feed-format-tabs span {
    overflow: visible;
    text-overflow: clip;
  }

  .post-media-image,
  .post-media-image img {
    min-height: 218px;
  }

  .post-media-video {
    min-height: 390px;
    border-radius: 24px;
  }

  .post-link-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .post-link-card .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Typography polish v1: production-grade reading rhythm */
:root {
  --type-display: "Hanken Grotesk", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --type-body: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-strong: #142019;
  --text-soft: #5f6e64;
  --tracking-ui: 0;
}

html {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--type-body);
  font-size: 15.5px;
  line-height: 1.52;
}

h1,
h2,
h3,
h4,
.feed-hero h2,
.communities-hero h2,
.journey-hero h2,
.profile-cover h2,
.strategy-hero h2,
.more-hero h2,
.trust-center-hero h2,
.section-heading h2 {
  color: var(--text-strong);
  font-family: var(--type-display);
  font-weight: 850;
  letter-spacing: var(--tracking-ui);
  text-wrap: balance;
}

p,
li,
.room-meta,
.post-card p,
.side-widget p,
.admin-card p,
.module-card p,
.journey-step p,
.profile-cover p,
.communities-hero p,
.feed-hero p {
  color: var(--text-soft);
  line-height: 1.56;
}

.eyebrow,
.badge,
.status-pill,
.room-count,
label,
.post-context span,
.post-meta,
.char-counter,
.nav-button,
.bottom-nav button,
.topbar label,
.role-switcher span,
.city-context span,
.pricing-tier span,
.feed-format-tabs button {
  letter-spacing: 0;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 850;
}

.badge,
.status-pill,
.room-count {
  font-weight: 800;
}

button,
.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
select,
input,
textarea {
  font-weight: 760;
}

textarea,
input,
select {
  color: var(--text-strong);
}

textarea::placeholder,
input::placeholder {
  color: #8b968e;
}

.sidebar .brand strong,
.post-author strong,
.daily-user strong,
.member-card strong,
.room-card h3,
.admin-card h3,
.side-widget h3 {
  font-weight: 820;
}

.topbar,
.sidebar,
.bottom-nav {
  font-size: 0.94rem;
}

.section-heading {
  gap: 0.85rem;
}

.section-heading h2,
.feed-hero h2,
.communities-hero h2 {
  max-width: 16ch;
  line-height: 1.03;
}

.section-heading p,
.feed-hero p,
.communities-hero p {
  max-width: 68ch;
}

.post-card {
  padding: 1.05rem;
}

.post-card h3 {
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.16;
}

.post-title-row {
  margin-top: 0.78rem;
}

.post-context {
  margin-top: 0.7rem;
}

.post-actions button {
  font-size: 0.93rem;
}

.composer textarea {
  line-height: 1.48;
}

.side-widget,
.admin-card,
.daily-card,
.room-card,
.post-card,
.composer {
  word-break: normal;
  overflow-wrap: break-word;
}

body.dark {
  --text-strong: #f3fbf5;
  --text-soft: #bed0c4;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark .feed-hero h2,
body.dark .communities-hero h2,
body.dark .section-heading h2 {
  color: var(--text-strong);
}

body.dark p,
body.dark li,
body.dark .room-meta,
body.dark .post-card p,
body.dark .side-widget p,
body.dark .admin-card p {
  color: var(--text-soft);
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .section-heading h2,
  .feed-hero h2,
  .communities-hero h2,
  .journey-hero h2,
  .profile-cover h2 {
    max-width: 13ch;
    line-height: 1.02;
  }

  .post-card {
    padding: 0.92rem;
  }

  .post-card h3 {
    font-size: 1.18rem;
  }

  .post-card p {
    font-size: 0.96rem;
  }

  .bottom-nav button {
    font-size: 0.69rem;
    font-weight: 800;
  }
}

/* Investor-grade product layer v1 */
.feed-hero {
  position: relative;
  overflow: hidden;
}

.feed-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  min-height: 116px;
  isolation: isolate;
}

.feed-hero h2 {
  max-width: 23ch;
}

.feed-hero-visual img {
  width: 78px;
  height: 118px;
  object-fit: cover;
  object-position: top center;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 40, 24, 0.18);
}

.feed-hero-visual img:first-child {
  transform: rotate(-7deg) translateX(14px);
  z-index: 2;
}

.feed-hero-visual img:last-child {
  transform: rotate(7deg) translateX(-14px) translateY(5px);
}

.premium-discovery-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.premium-discovery-rail button {
  position: relative;
  min-height: 172px;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 0.18rem;
  padding: 0.82rem;
  border: 1px solid rgba(18, 32, 25, 0.08);
  border-radius: 24px;
  color: #ffffff;
  text-align: left;
  background: #07391f;
  box-shadow: 0 14px 34px rgba(18, 32, 25, 0.08);
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.premium-discovery-rail button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(18, 32, 25, 0.14);
}

.premium-discovery-rail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.78;
  transform: scale(1.03);
}

.premium-discovery-rail button::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 24, 14, 0.05), rgba(3, 24, 14, 0.84)),
    linear-gradient(90deg, rgba(3, 24, 14, 0.56), transparent 64%);
}

.premium-discovery-rail span,
.premium-discovery-rail strong {
  position: relative;
  z-index: 1;
}

.premium-discovery-rail span {
  width: fit-content;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: #173019;
  background: rgba(255, 216, 77, 0.92);
  font-size: 0.74rem;
  font-weight: 850;
}

.premium-discovery-rail strong {
  max-width: 16ch;
  color: #ffffff;
  font-family: var(--type-display);
  font-size: 1.05rem;
  line-height: 1.05;
  text-wrap: balance;
}

.valuation-widget {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(4, 32, 19, 0.98), rgba(7, 92, 53, 0.94) 58%, rgba(18, 127, 163, 0.72));
}

.valuation-widget h3,
.valuation-widget p,
.valuation-widget .eyebrow {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.valuation-widget p {
  color: rgba(255, 255, 255, 0.78);
}

.valuation-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.48rem;
  margin-top: 0.78rem;
}

.valuation-metrics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.56rem 0.64rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 760;
}

.valuation-metrics strong {
  color: var(--v3-yellow);
  font-size: 1rem;
}

@media (max-width: 1100px) {
  .feed-hero-visual {
    display: none;
  }

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

@media (max-width: 760px) {
  .premium-discovery-rail {
    display: flex;
    gap: 0.58rem;
    overflow-x: auto;
    padding: 0 0.05rem 0.34rem;
    scroll-snap-type: x mandatory;
  }

  .premium-discovery-rail button {
    min-width: 226px;
    min-height: 138px;
    border-radius: 22px;
    scroll-snap-align: start;
  }

  .premium-discovery-rail strong {
    max-width: 18ch;
    font-size: 1rem;
  }
}

/* Executive overview: company-grade cockpit */
.executive-heading {
  width: min(100%, 1120px);
  margin-inline: auto;
}

.overview-layout {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 0.9rem;
}

.overview-hero-card,
.overview-kpi,
.overview-card {
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 251, 249, 0.9));
  box-shadow: 0 16px 48px rgba(22, 31, 26, 0.075);
}

.overview-hero-card {
  position: relative;
  overflow: hidden;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 1rem;
  min-height: 330px;
  padding: 1.2rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 216, 77, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(3, 28, 17, 0.98), rgba(7, 92, 53, 0.94) 58%, rgba(18, 127, 163, 0.74));
  box-shadow: 0 26px 80px rgba(7, 92, 53, 0.2);
}

.overview-hero-card h3 {
  max-width: 15ch;
  margin: 0.7rem 0 0.55rem;
  color: #ffffff;
  font-family: var(--type-display);
  font-size: clamp(2.25rem, 4.2vw, 4.1rem);
  line-height: 0.9;
  text-wrap: balance;
}

.overview-hero-card p {
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.78);
}

.overview-device-stack {
  position: relative;
  min-height: 286px;
}

.overview-device-stack img {
  position: absolute;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.24);
}

.overview-device-stack img:nth-child(1) {
  width: 126px;
  height: 238px;
  right: 150px;
  top: 18px;
  border-radius: 24px;
  transform: rotate(-8deg);
  z-index: 3;
}

.overview-device-stack img:nth-child(2) {
  width: 120px;
  height: 230px;
  right: 64px;
  top: 36px;
  border-radius: 24px;
  transform: rotate(6deg);
  z-index: 2;
}

.overview-device-stack img:nth-child(3) {
  width: 260px;
  height: 156px;
  right: 0;
  bottom: 6px;
  border-radius: 18px;
  z-index: 1;
}

.overview-kpi-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.overview-kpi {
  display: grid;
  gap: 0.22rem;
  min-height: 142px;
  padding: 0.92rem;
}

.overview-kpi > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--v3-green);
  background: var(--v3-green-soft);
}

.overview-kpi strong {
  color: var(--text-strong);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1;
}

.overview-kpi p,
.overview-kpi em {
  margin: 0;
  color: var(--text-soft);
  font-style: normal;
}

.overview-kpi em {
  font-size: 0.84rem;
  font-weight: 760;
}

.overview-card {
  padding: 1rem;
}

.overview-card.wide {
  grid-column: 1 / -1;
}

.overview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.overview-card-head h3,
.overview-card h3 {
  margin: 0;
}

.overview-funnel,
.overview-goals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.overview-funnel article,
.overview-goals article,
.overview-revenue article,
.overview-signal-list article {
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 248, 0.84));
  box-shadow: 0 8px 24px rgba(22, 31, 26, 0.045);
}

.overview-funnel article {
  display: grid;
  gap: 0.55rem;
  padding: 0.78rem;
}

.overview-funnel div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.overview-funnel strong {
  color: var(--v3-green);
  font-size: 1.35rem;
  line-height: 1;
}

.overview-funnel span,
.overview-funnel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 760;
}

.overview-revenue,
.overview-signal-list {
  display: grid;
  gap: 0.62rem;
}

.overview-revenue article {
  display: grid;
  gap: 0.32rem;
  padding: 0.75rem;
}

.overview-revenue strong,
.overview-signal-list strong {
  color: var(--text-strong);
  line-height: 1.15;
}

.overview-revenue p,
.overview-signal-list p,
.overview-goals p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.4;
}

.overview-signal-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: start;
  padding: 0.75rem;
}

.overview-signal-list svg {
  width: 38px;
  height: 38px;
  padding: 0.58rem;
  border-radius: 14px;
  color: var(--v3-green);
  background: var(--v3-green-soft);
}

.overview-goals article {
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
}

.overview-goals article::before {
  content: "";
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: var(--v3-yellow);
}

.overview-goals article.strong::before {
  background: var(--v3-green);
}

.overview-goals div {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
}

.overview-goals span {
  color: var(--v3-green);
  font-weight: 850;
  text-align: right;
}

@media (max-width: 980px) {
  .overview-layout,
  .overview-hero-card {
    grid-template-columns: 1fr;
  }

  .overview-device-stack {
    display: none;
  }

  .overview-kpi-grid,
  .overview-funnel,
  .overview-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .overview-hero-card {
    min-height: 0;
    padding: 1rem;
    border-radius: 24px;
  }

  .overview-hero-card h3 {
    max-width: 13ch;
    font-size: 2.25rem;
  }

  .overview-kpi-grid,
  .overview-funnel,
  .overview-goals {
    grid-template-columns: 1fr;
  }

  .overview-card-head {
    display: grid;
  }
}

/* Retention and preview layer: belonging loops */
.visitor-preview-band {
  width: min(100%, 1120px);
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 0.9rem;
  align-items: stretch;
  padding: 1rem;
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 209, 92, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(241, 248, 246, 0.9));
  box-shadow: 0 18px 54px rgba(22, 31, 26, 0.075);
}

.visitor-preview-copy {
  display: grid;
  align-content: center;
  gap: 0.72rem;
}

.visitor-preview-copy h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--text-strong);
  font-family: var(--type-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.92;
  text-wrap: balance;
}

.visitor-preview-copy p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.visitor-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.visitor-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.visitor-preview-grid button,
.ritual-action-grid button {
  display: grid;
  gap: 0.34rem;
  min-height: 146px;
  padding: 0.86rem;
  text-align: left;
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(22, 31, 26, 0.055);
  cursor: pointer;
}

.visitor-preview-grid button:hover,
.ritual-action-grid button:hover,
.radio-source-switcher button:hover {
  transform: translateY(-2px);
}

.visitor-preview-grid span,
.ritual-action-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--v3-green);
  background: var(--v3-green-soft);
}

.visitor-preview-grid small,
.ritual-action-grid small,
.visitor-preview-grid em,
.ritual-action-grid em {
  color: var(--text-soft);
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 760;
}

.visitor-preview-grid strong,
.ritual-action-grid strong {
  color: var(--text-strong);
  font-size: 1.04rem;
  line-height: 1.15;
}

.retention-loop-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  gap: 0.78rem;
  margin-bottom: 0.9rem;
}

.retention-hero-card,
.belonging-league-card {
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 28px;
  box-shadow: 0 16px 44px rgba(22, 31, 26, 0.07);
}

.retention-hero-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 209, 92, 0.34), transparent 26%),
    linear-gradient(135deg, #062318, #075c35 58%, #0d6c7b);
}

.retention-hero-card h3 {
  max-width: 18ch;
  margin: 0.38rem 0;
  color: #ffffff;
  font-family: var(--type-display);
  font-size: clamp(1.85rem, 3vw, 3.15rem);
  line-height: 0.96;
  text-wrap: balance;
}

.retention-hero-card p {
  max-width: 66ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.ritual-token {
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.18rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(6, 35, 24, 0.96) 0 58%, transparent 59%),
    conic-gradient(var(--v3-yellow) var(--ritual), rgba(255, 255, 255, 0.16) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ritual-token strong,
.ritual-token span {
  color: #ffffff;
}

.ritual-token strong {
  font-size: 1.72rem;
  line-height: 1;
}

.ritual-token span {
  width: 9ch;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
}

.ritual-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.belonging-league-card {
  display: grid;
  gap: 0.72rem;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 249, 0.9));
}

.belonging-league-card header,
.belonging-league-card footer {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.belonging-league-card h3 {
  margin: 0.2rem 0 0;
  color: var(--text-strong);
}

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

.belonging-league-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 76px;
  gap: 0.58rem;
  align-items: center;
}

.belonging-league-list b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #102018;
  background: var(--v3-yellow);
}

.belonging-league-list span {
  display: grid;
  gap: 0.1rem;
}

.belonging-league-list strong {
  color: var(--text-strong);
}

.belonging-league-list small,
.belonging-league-card footer span {
  color: var(--text-soft);
}

.belonging-league-list i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 92, 53, 0.12);
}

.belonging-league-list i::before {
  content: "";
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--v3-green), var(--v3-yellow));
}

.belonging-league-card footer {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(22, 31, 26, 0.08);
}

.belonging-league-card footer strong {
  color: var(--v3-green);
}

.radio-source-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.radio-hero-card #radioLiveTitle,
.radio-hero-card h3#radioLiveTitle {
  color: #ffffff;
}

.radio-source-switcher button {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 54px;
  padding: 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 17px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.radio-source-switcher button.active {
  color: #102018;
  background: linear-gradient(135deg, var(--v3-yellow), #fff0a8);
}

.radio-source-switcher button span {
  font-weight: 900;
}

.radio-source-switcher button small {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 850;
}

.radio-readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  margin-bottom: 0.72rem;
}

.radio-readiness-grid article {
  display: grid;
  gap: 0.36rem;
  min-height: 148px;
  padding: 0.8rem;
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.radio-readiness-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--v3-green);
  background: var(--v3-green-soft);
}

.radio-readiness-grid strong {
  color: var(--text-strong);
}

.radio-readiness-grid p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.42;
}

.investor-readiness-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.investor-readiness-list article {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-height: 164px;
  padding: 0.78rem;
  border: 1px solid rgba(22, 31, 26, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 251, 249, 0.86));
}

.investor-readiness-list strong {
  color: var(--text-strong);
  line-height: 1.16;
}

.investor-readiness-list p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.42;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .visitor-preview-band,
  .retention-loop-panel {
    grid-template-columns: 1fr;
  }

  .radio-readiness-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  body[data-role="user"] .visitor-preview-band {
    display: none;
  }

  .visitor-preview-band {
    padding: 0.82rem;
    border-radius: 24px;
  }

  .visitor-preview-copy h2,
  .retention-hero-card h3 {
    max-width: 13ch;
    font-size: 2rem;
  }

  .visitor-preview-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .ritual-action-grid,
  .retention-hero-card,
  .radio-source-switcher {
    grid-template-columns: 1fr;
  }

  .visitor-preview-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.24rem;
    scroll-snap-type: x mandatory;
  }

  .ritual-action-grid button {
    min-height: 124px;
  }

  .visitor-preview-grid button {
    min-width: 218px;
    min-height: 118px;
    scroll-snap-align: start;
  }

  .retention-hero-card {
    border-radius: 24px;
  }

  .ritual-token {
    width: 108px;
    height: 108px;
  }

  .belonging-league-card header,
  .belonging-league-card footer {
    display: grid;
  }

  .investor-readiness-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .profile-cover {
    min-height: 352px;
  }

  .profile-cover-metrics {
    bottom: 4.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-cover-metrics span {
    min-height: 50px;
    grid-template-columns: 1fr;
    padding: 0.52rem;
    border-radius: 17px;
    font-size: 0.68rem;
  }

  .profile-cover-metrics strong {
    font-size: 1.02rem;
  }

  .profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 28px;
  }

  .profile-avatar,
  .profile-photo-control {
    bottom: 1rem;
  }

  .profile-main {
    padding-top: 1rem;
    padding-bottom: 6rem;
  }
}

/* Contrast guardrails for dark premium cards */
.strategy-hero,
.trust-center-hero,
.radio-hero-card,
#superadmin .command-center,
#admin-local .franchise-command-card,
.journey-progress-card,
.retention-hero-card,
.overview-hero-card,
.valuation-widget {
  color: #ffffff;
}

.strategy-hero h1,
.strategy-hero h2,
.strategy-hero h3,
.strategy-hero h4,
.trust-center-hero h1,
.trust-center-hero h2,
.trust-center-hero h3,
.trust-center-hero h4,
.radio-hero-card h1,
.radio-hero-card h2,
.radio-hero-card h3,
.radio-hero-card h4,
#superadmin .command-center h1,
#superadmin .command-center h2,
#superadmin .command-center h3,
#superadmin .command-center h4,
#admin-local .franchise-command-card h1,
#admin-local .franchise-command-card h2,
#admin-local .franchise-command-card h3,
#admin-local .franchise-command-card h4,
.journey-progress-card h1,
.journey-progress-card h2,
.journey-progress-card h3,
.journey-progress-card h4,
.retention-hero-card h1,
.retention-hero-card h2,
.retention-hero-card h3,
.retention-hero-card h4,
.overview-hero-card h1,
.overview-hero-card h2,
.overview-hero-card h3,
.overview-hero-card h4,
.valuation-widget h1,
.valuation-widget h2,
.valuation-widget h3,
.valuation-widget h4 {
  color: #ffffff;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.strategy-hero p,
.trust-center-hero p,
.radio-hero-card p,
#superadmin .command-center p,
#admin-local .franchise-command-card p,
.journey-progress-card p,
.retention-hero-card p,
.overview-hero-card p,
.valuation-widget p {
  color: rgba(255, 255, 255, 0.84);
}

.strategy-north-star strong,
.strategy-north-star p,
.strategy-north-star small {
  color: rgba(255, 255, 255, 0.9);
}

.strategy-hero .badge:not(.green),
.trust-center-hero .badge:not(.green),
.radio-hero-card .badge:not(.green),
.retention-hero-card .eyebrow,
.overview-hero-card .badge:not(.green),
.valuation-widget .eyebrow {
  color: #ffffff;
}

/* Prototype smell reduction: people, brand texture and stronger hierarchy */
.visually-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.role-identity-control {
  position: relative;
  z-index: 30;
}

.role-identity-button {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-height: 48px;
  padding: 0.32rem 0.62rem 0.32rem 0.36rem;
  border: 1px solid rgba(17, 148, 71, 0.16);
  border-radius: 999px;
  color: var(--text-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 251, 248, 0.88));
  box-shadow: 0 14px 38px rgba(16, 32, 23, 0.08);
  cursor: pointer;
}

.role-identity-control.locked .role-identity-button {
  cursor: default;
}

.role-identity-control.locked .role-identity-button::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(17, 148, 71, 0.1);
}

.role-identity-control.demo-enabled .role-identity-button {
  border-color: rgba(245, 200, 75, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 250, 230, 0.98), rgba(255, 255, 255, 0.92));
}

.role-face {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

.role-face .avatar {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 22px rgba(16, 32, 23, 0.16);
}

.role-face b {
  position: absolute;
  right: -6px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 8px;
  color: #07391f;
  background: var(--gold);
  border: 2px solid #ffffff;
}

.role-face b svg {
  width: 11px;
  height: 11px;
}

.role-identity-copy {
  display: grid;
  min-width: 82px;
  text-align: left;
  line-height: 1.02;
}

.role-identity-copy small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
}

.role-identity-copy strong {
  font-size: 0.84rem;
  font-weight: 950;
}

.role-identity-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(360px, calc(100vw - 24px));
  padding: 0.54rem;
  border: 1px solid rgba(16, 32, 23, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(16, 32, 23, 0.18);
  backdrop-filter: blur(18px);
}

.role-identity-control.open .role-identity-menu {
  display: grid;
  gap: 0.42rem;
}

.role-identity-menu button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.38rem 0.72rem;
  width: 100%;
  padding: 0.72rem;
  border: 1px solid transparent;
  border-radius: 18px;
  text-align: left;
  color: var(--text-strong);
  background: transparent;
  cursor: pointer;
}

.role-identity-menu button span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  color: var(--primary-strong);
  background: rgba(17, 148, 71, 0.1);
}

.role-identity-menu button strong {
  font-weight: 950;
}

.role-identity-menu button small {
  color: var(--muted);
  line-height: 1.25;
}

.role-identity-menu button.active,
.role-identity-menu button:hover {
  border-color: rgba(17, 148, 71, 0.18);
  background: rgba(17, 148, 71, 0.07);
}

.role-locked-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0.36rem 0.7rem;
  padding: 0.74rem;
  color: var(--text-strong);
}

.role-locked-note svg {
  grid-row: span 2;
  color: var(--primary);
}

.role-locked-note small {
  color: var(--text-soft);
  line-height: 1.35;
}

.demo-security-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin: 0.82rem 0 0;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(245, 200, 75, 0.55);
  border-radius: 20px;
  color: #3d2f00;
  background:
    linear-gradient(135deg, rgba(255, 241, 180, 0.92), rgba(255, 255, 255, 0.9));
  box-shadow: 0 14px 36px rgba(74, 56, 0, 0.08);
}

.demo-security-banner[hidden] {
  display: none;
}

.demo-security-banner div {
  display: grid;
  gap: 0.12rem;
}

.demo-security-banner strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.demo-security-banner span {
  color: rgba(61, 47, 0, 0.74);
  font-size: 0.84rem;
  font-weight: 750;
}

body[data-demo-persona="false"] .role-identity-menu {
  display: none !important;
}

.avatar.has-photo,
.topbar-avatar.has-photo {
  overflow: hidden;
  color: transparent;
  background-size: cover;
  background-position: center;
}

.avatar.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.topbar-avatar.has-photo {
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
}

.human-stack {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  place-items: unset !important;
  width: fit-content !important;
  height: 38px !important;
  margin-bottom: 0.28rem;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.human-stack img {
  width: 38px;
  height: 38px;
  margin-left: -10px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 22px rgba(16, 32, 23, 0.16);
}

.human-stack img:first-child {
  margin-left: 0;
}

.story-avatar {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 24px rgba(16, 32, 23, 0.13);
}

.visitor-preview-grid button:has(.human-stack) {
  gap: 0.52rem;
  align-content: start;
  border-color: rgba(17, 148, 71, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 244, 0.9));
}

.visitor-preview-grid button:has(.human-stack) small,
.visitor-preview-grid button:has(.human-stack) strong,
.visitor-preview-grid button:has(.human-stack) em {
  position: relative;
  z-index: 1;
}

.strategy-hero,
.trust-center-hero,
.radio-hero-card,
#superadmin .command-center,
#admin-local .franchise-command-card,
.journey-progress-card,
.retention-hero-card,
.overview-hero-card,
.valuation-widget {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.strategy-hero::before,
.trust-center-hero::before,
.radio-hero-card::before,
#superadmin .command-center::before,
#admin-local .franchise-command-card::before,
.journey-progress-card::before,
.retention-hero-card::before,
.overview-hero-card::before,
.valuation-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(118deg, transparent 0 44%, rgba(245, 200, 75, 0.18) 44% 49%, transparent 49%),
    radial-gradient(circle at 86% 10%, rgba(245, 200, 75, 0.22), transparent 18rem),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
  opacity: 0.72;
}

.visitor-preview-grid button > span:not(.human-stack),
.ritual-action-grid button > span,
.radio-readiness-grid span,
.overview-kpi > span,
.more-card-icon,
.stat-icon,
.pulse-dot,
.mission-orb {
  box-shadow: none;
}

.visitor-preview-grid button > span:not(.human-stack),
.ritual-action-grid button > span {
  background: rgba(17, 148, 71, 0.08);
  border: 1px solid rgba(17, 148, 71, 0.1);
}

.feed-main .post-card:first-of-type {
  border-color: rgba(17, 148, 71, 0.22);
  box-shadow: 0 26px 70px rgba(16, 32, 23, 0.12);
}

.post-card:first-of-type .post-title-row h3 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 0.98;
}

.post-header .avatar,
.message .avatar,
.member-top .avatar {
  flex: 0 0 auto;
  border: 2px solid #ffffff;
  box-shadow: 0 12px 28px rgba(16, 32, 23, 0.12);
}

.leader-item {
  grid-template-columns: auto auto 1fr auto;
}

.leader-item > .avatar.small {
  width: 34px;
  height: 34px;
  border-radius: 13px;
}

.tenant-empty-state {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px dashed rgba(17, 148, 71, 0.28);
  border-radius: 24px;
  color: var(--text-strong);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 244, 0.82));
}

.tenant-empty-state.compact {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
}

.tenant-empty-state > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: var(--primary-strong);
  background: rgba(17, 148, 71, 0.1);
}

.tenant-empty-state strong {
  display: block;
  font-weight: 950;
}

.tenant-empty-state p {
  margin: 0.16rem 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.tenant-side-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0;
  padding: 0.72rem;
  border-radius: 16px;
  color: var(--text-soft);
  background: rgba(17, 148, 71, 0.06);
  font-weight: 760;
}

.city-mini-empty,
.tenant-league-empty {
  display: grid;
  align-items: center;
  gap: 0.35rem;
}

.tenant-pulse-empty {
  border-style: dashed;
}

.premium-discovery-rail .tenant-discovery-card {
  min-height: 172px;
  align-content: start;
  padding: 1rem;
  color: var(--text-strong);
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 200, 75, 0.26), transparent 7rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 244, 0.88));
}

.premium-discovery-rail .tenant-discovery-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.42rem;
  border-radius: 16px;
  color: var(--primary-strong);
  background: rgba(17, 148, 71, 0.1);
}

.premium-discovery-rail .tenant-discovery-card small {
  color: var(--primary-strong);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.premium-discovery-rail .tenant-discovery-card strong {
  max-width: 16ch;
  color: var(--text-strong);
  font-size: 1.03rem;
  line-height: 1.08;
}

.badge.danger {
  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.12);
}

.workspace-chip {
  display: grid;
  gap: 0.28rem;
  padding: 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.workspace-chip span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.workspace-chip small {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.32;
  font-weight: 750;
}

.marketplace-layout,
.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1rem;
}

.marketplace-hero-card,
.assistant-hero,
.assistant-chat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(17, 148, 71, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 10%, rgba(245, 200, 75, 0.26), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 244, 0.88));
  box-shadow: 0 24px 70px rgba(16, 32, 23, 0.1);
}

.marketplace-hero-card,
.assistant-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
}

.marketplace-hero-card h3,
.assistant-hero h2 {
  max-width: 18ch;
  margin: 0.35rem 0;
  color: var(--text-strong);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.marketplace-hero-card p,
.assistant-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-soft);
}

.marketplace-category-grid,
.vendor-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
}

.marketplace-category-grid article,
.vendor-panel-grid article,
.marketplace-item {
  display: grid;
  gap: 0.42rem;
  padding: 0.82rem;
  border: 1px solid rgba(17, 148, 71, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.marketplace-category-grid svg,
.vendor-panel-grid svg {
  color: var(--primary);
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.76rem;
}

.marketplace-item h3,
.marketplace-item p {
  margin: 0;
}

.marketplace-item footer {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.assistant-chat-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.ai-disclosure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.72rem;
  padding: 0.82rem;
  border-radius: 20px;
  color: #163522;
  background: rgba(245, 200, 75, 0.18);
}

.ai-disclosure > span,
.ai-persona-grid button svg {
  color: var(--primary);
}

.ai-disclosure p {
  margin: 0.12rem 0 0;
  color: rgba(22, 53, 34, 0.76);
}

.ai-persona-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.58rem;
}

.ai-persona-grid button {
  display: grid;
  gap: 0.35rem;
  min-height: 126px;
  padding: 0.74rem;
  border: 1px solid rgba(17, 148, 71, 0.12);
  border-radius: 20px;
  text-align: left;
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
}

.ai-persona-grid button.active {
  border-color: rgba(17, 148, 71, 0.42);
  box-shadow: inset 0 0 0 2px rgba(17, 148, 71, 0.1);
}

.ai-persona-grid button.locked {
  opacity: 0.58;
  cursor: not-allowed;
}

.ai-persona-grid span {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.28;
}

.ai-chat-log {
  display: grid;
  gap: 0.58rem;
  max-height: 360px;
  overflow: auto;
  padding: 0.2rem;
}

.ai-message {
  max-width: 82%;
  padding: 0.72rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(16, 32, 23, 0.07);
}

.ai-message.user {
  justify-self: end;
  color: #102018;
  background: linear-gradient(135deg, var(--gold), #fff0a8);
}

.ai-message p {
  margin: 0.16rem 0 0;
  color: inherit;
  line-height: 1.42;
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.58rem;
}

.ai-chat-form input,
.messenger-window footer input {
  min-height: 46px;
  border: 1px solid rgba(16, 32, 23, 0.12);
  border-radius: 16px;
  padding: 0 0.8rem;
  background: #ffffff;
}

.private-messenger-dock {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0.85rem;
}

.messenger-contact-list,
.messenger-window {
  border: 1px solid rgba(17, 148, 71, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(16, 32, 23, 0.08);
}

.messenger-contact-list {
  display: grid;
  gap: 0.42rem;
  padding: 0.72rem;
}

.messenger-contact-list header,
.messenger-contact-list button,
.messenger-window header,
.messenger-window footer {
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.messenger-contact-list header {
  justify-content: space-between;
  padding: 0.2rem 0.2rem 0.45rem;
}

.messenger-contact-list header span,
.messenger-contact-list button small,
.messenger-window small,
.messenger-system,
.typing-dot {
  color: var(--text-soft);
}

.messenger-contact-list button {
  width: 100%;
  padding: 0.58rem;
  border: 1px solid transparent;
  border-radius: 18px;
  text-align: left;
  color: var(--text-strong);
  background: transparent;
  cursor: pointer;
}

.messenger-contact-list button.active,
.messenger-contact-list button:hover {
  border-color: rgba(17, 148, 71, 0.14);
  background: rgba(17, 148, 71, 0.07);
}

.messenger-contact-list button > span {
  display: grid;
  min-width: 0;
}

.presence {
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-radius: 999px;
  background: #94a3b8;
}

.presence.online {
  background: #16a34a;
}

.presence.away {
  background: #f59e0b;
}

.presence.busy {
  background: #ef4444;
}

.messenger-window {
  overflow: hidden;
}

.messenger-window header {
  justify-content: space-between;
  padding: 0.78rem;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(4, 68, 37, 0.96), rgba(17, 148, 71, 0.9)),
    radial-gradient(circle at 84% 0%, rgba(245, 200, 75, 0.35), transparent 9rem);
}

.messenger-window header > div {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}

.messenger-window header small {
  color: rgba(255, 255, 255, 0.78);
}

.messenger-body {
  display: grid;
  gap: 0.58rem;
  min-height: 210px;
  padding: 0.9rem;
  background:
    linear-gradient(135deg, rgba(240, 249, 244, 0.82), rgba(255, 255, 255, 0.9));
}

.messenger-bubble {
  max-width: 78%;
  padding: 0.68rem 0.78rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 32, 23, 0.08);
}

.messenger-bubble.mine {
  justify-self: end;
  background: #fff2b8;
}

.messenger-system {
  margin: 0;
  font-weight: 760;
}

.typing-dot {
  font-size: 0.82rem;
  font-weight: 800;
}

.messenger-window footer {
  padding: 0.72rem;
  background: rgba(255, 255, 255, 0.95);
}

.messenger-window footer input {
  flex: 1;
}

.messenger-window.empty {
  display: grid;
  place-items: center;
  min-height: 326px;
  text-align: center;
}

.messenger-window.empty div {
  display: grid;
  gap: 0.42rem;
  max-width: 30ch;
}

.messenger-window.attention {
  animation: attention-shake 0.55s ease;
}

@keyframes attention-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.moderation-queue-list {
  display: grid;
  gap: 0.68rem;
}

.moderation-queue-item {
  display: grid;
  gap: 0.44rem;
  padding: 0.82rem;
  border: 1px solid rgba(16, 32, 23, 0.1);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 249, 0.9));
}

.moderation-queue-item header,
.moderation-queue-item .moderation-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.moderation-queue-item h4,
.moderation-queue-item p {
  margin: 0;
}

.moderation-queue-item p,
.moderation-queue-item small {
  color: var(--text-soft);
}

.moderation-queue-item.admin-mode {
  border-color: rgba(245, 200, 75, 0.35);
}

@media (max-width: 900px) {
  .role-identity-copy {
    display: none;
  }

  .role-identity-button {
    padding-right: 0.46rem;
  }
}

@media (max-width: 980px) {
  .marketplace-layout,
  .assistant-layout,
  .private-messenger-dock,
  .marketplace-hero-card,
  .assistant-hero {
    grid-template-columns: 1fr;
  }

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

  .marketplace-grid,
  .marketplace-category-grid,
  .vendor-panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .demo-security-banner {
    display: grid;
    margin: 0.72rem 0.74rem 0;
  }

  .role-identity-menu {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .post-card:first-of-type .post-title-row h3 {
    font-size: 1.48rem;
  }
}

/* Trust-first visual correction: remove heavy dark-green blocks from user surfaces. */
body:not(.dark) .more-hero,
body:not(.dark) .city-os-hero {
  position: relative;
  overflow: hidden;
  color: #142018 !important;
  border: 1px solid rgba(17, 148, 71, 0.16);
  background:
    radial-gradient(circle at 92% 10%, rgba(254, 203, 0, 0.18), transparent 12rem),
    radial-gradient(circle at 6% 0%, rgba(14, 165, 183, 0.1), transparent 14rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 251, 248, 0.94)) !important;
  box-shadow: 0 22px 58px rgba(16, 32, 23, 0.09);
}

body:not(.dark) .more-hero::before,
body:not(.dark) .city-os-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, transparent 0 54%, rgba(17, 148, 71, 0.07) 54% 60%, transparent 60%),
    repeating-linear-gradient(135deg, rgba(17, 148, 71, 0.035) 0 1px, transparent 1px 18px);
}

body:not(.dark) .more-hero > *,
body:not(.dark) .city-os-hero > * {
  position: relative;
  z-index: 1;
}

body:not(.dark) .more-hero .eyebrow,
body:not(.dark) .city-os-hero .eyebrow,
body:not(.dark) .city-os-hero .badge.green {
  color: #075c35 !important;
  background: rgba(17, 148, 71, 0.09);
  border-color: rgba(17, 148, 71, 0.14);
}

body:not(.dark) .more-hero h3,
body:not(.dark) .city-os-hero h3 {
  color: #142018 !important;
  text-shadow: none !important;
}

body:not(.dark) .more-hero p,
body:not(.dark) .city-os-hero p {
  color: #405044 !important;
}

body:not(.dark) .more-orbit span {
  color: #075c35;
  border-color: rgba(17, 148, 71, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(16, 32, 23, 0.08);
}

body:not(.dark) .city-health-ring {
  color: #142018;
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(#119447 var(--health), rgba(17, 148, 71, 0.12) 0);
  box-shadow: inset 0 0 0 1px rgba(17, 148, 71, 0.1), 0 16px 36px rgba(16, 32, 23, 0.1);
}

body:not(.dark) .city-health-ring strong {
  color: #142018;
}

body:not(.dark) .city-health-ring span {
  color: #405044;
}

body:not(.dark) .tenant-empty-state {
  border-color: rgba(17, 148, 71, 0.2);
  background:
    radial-gradient(circle at 96% 0%, rgba(254, 203, 0, 0.13), transparent 10rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 250, 0.94));
  box-shadow: 0 18px 44px rgba(16, 32, 23, 0.07);
}

body:not(.dark) .more-card,
body:not(.dark) .admin-card,
body:not(.dark) .side-widget {
  border-color: rgba(17, 148, 71, 0.1);
  box-shadow: 0 16px 42px rgba(16, 32, 23, 0.065);
}

/* Social product v4: people and content before pitch language. */
:root {
  --social-ink: #17211b;
  --social-muted: #667169;
  --social-canvas: #f4f7f5;
  --social-panel: #ffffff;
  --social-line: #dfe6e1;
  --social-green: #087443;
  --social-green-soft: #e9f6ef;
  --social-yellow: #ffd84d;
  --social-blue: #147ea3;
  --social-shadow: 0 14px 38px rgba(24, 45, 32, 0.075);
  --social-shadow-hover: 0 20px 50px rgba(24, 45, 32, 0.12);
}

body:not(.dark) {
  color: var(--social-ink);
  background: var(--social-canvas);
}

body:not(.dark) h1,
body:not(.dark) h2,
body:not(.dark) h3,
body:not(.dark) h4,
body:not(.dark) .post-card h3 {
  color: var(--social-ink);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

body:not(.dark) p {
  color: var(--social-muted);
}

.main {
  width: min(100%, 1320px);
  padding-inline: clamp(0.8rem, 1.5vw, 1.35rem);
}

.topbar {
  min-height: 68px;
  border-bottom: 1px solid rgba(21, 40, 29, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 28px rgba(23, 43, 30, 0.055);
  backdrop-filter: blur(18px) saturate(1.1);
}

body[data-workspace="member"][data-section="feed"] .visitor-preview-band,
body[data-workspace="member"][data-section="feed"] .retention-loop-panel,
body[data-workspace="member"][data-section="feed"] .city-os-panel,
body[data-workspace="member"][data-section="feed"] .premium-discovery-rail,
body[data-workspace="member"] .feed-side .valuation-widget {
  display: none;
}

body[data-workspace="member"][data-section="feed"] #feed {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-top: 1rem;
}

body[data-workspace="member"] .feed-hero {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  min-height: 112px;
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--social-line);
  border-radius: 18px;
  color: var(--social-ink);
  background:
    linear-gradient(100deg, #ffffff 0 72%, #eef8f2 100%);
  box-shadow: var(--social-shadow);
}

body[data-workspace="member"] .feed-hero::before,
body[data-workspace="member"] .feed-hero::after {
  display: none;
}

body[data-workspace="member"] .feed-hero .eyebrow {
  color: var(--social-green);
  background: transparent;
}

body[data-workspace="member"] .feed-hero h2 {
  max-width: none;
  margin: 0.14rem 0 0.24rem;
  color: var(--social-ink);
  font-size: clamp(1.34rem, 2vw, 1.82rem);
  line-height: 1.08;
}

body[data-workspace="member"] .feed-hero p {
  max-width: 60ch;
  margin: 0;
  color: var(--social-muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

body[data-workspace="member"] .feed-hero-visual {
  display: grid;
  grid-template-columns: repeat(3, 34px) minmax(0, 118px);
  align-items: center;
  min-width: 0;
  min-height: 0;
}

body[data-workspace="member"] .feed-hero-visual img {
  width: 42px;
  height: 42px;
  margin-left: -8px;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(17, 45, 28, 0.13);
  transform: none;
}

body[data-workspace="member"] .feed-hero-visual img:first-child {
  margin-left: 0;
  transform: none;
}

body[data-workspace="member"] .feed-hero-visual img:last-of-type {
  transform: none;
}

body[data-workspace="member"] .feed-hero-visual span {
  display: grid;
  gap: 0.05rem;
  margin-left: 0.6rem;
  color: var(--social-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

body[data-workspace="member"] .feed-hero-visual strong {
  color: var(--social-green);
  font-size: 0.88rem;
}

body[data-workspace="member"] .feed-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

body[data-workspace="member"] .feed-shell {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  gap: 1rem;
  margin-top: 1rem;
}

body[data-workspace="member"] .feed-main {
  gap: 0.78rem;
}

body[data-workspace="member"] .story-rail {
  order: 1;
}

body[data-workspace="member"] .quick-composer {
  order: 2;
}

body[data-workspace="member"] .feed-format-tabs {
  order: 3;
}

body[data-workspace="member"] .city-pulse-strip {
  order: 4;
}

body[data-workspace="member"] .feed-list {
  order: 5;
}

body[data-workspace="member"] .composer,
body[data-workspace="member"] .post-card,
body[data-workspace="member"] .side-widget,
body[data-workspace="member"] .story-rail button {
  border: 1px solid var(--social-line);
  background: var(--social-panel);
  box-shadow: var(--social-shadow);
}

body[data-workspace="member"] .composer,
body[data-workspace="member"] .post-card,
body[data-workspace="member"] .side-widget {
  border-radius: 18px;
}

body[data-workspace="member"] .composer {
  padding: 0.9rem;
}

body[data-workspace="member"] .quick-composer textarea {
  min-height: 72px;
  border-color: transparent;
  border-radius: 12px;
  background: #f6f8f7;
  box-shadow: none;
}

body[data-workspace="member"] .story-rail button {
  min-height: 84px;
  border-radius: 16px;
}

body[data-workspace="member"] .story-rail button:hover,
body[data-workspace="member"] .post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--social-shadow-hover);
}

body[data-workspace="member"] .post-card {
  padding: 1rem;
}

body[data-workspace="member"] .post-card::before {
  display: none;
}

body[data-workspace="member"] .feed-main .post-card:first-of-type {
  border-color: var(--social-line);
  box-shadow: var(--social-shadow);
}

body[data-workspace="member"] .post-card:first-of-type .post-title-row h3,
body[data-workspace="member"] .post-card h3 {
  font-size: clamp(1.13rem, 1.7vw, 1.38rem);
  line-height: 1.2;
}

body[data-workspace="member"] .post-header .avatar {
  border-radius: 50%;
}

body[data-workspace="member"] .post-meta {
  color: #77827b;
}

body[data-workspace="member"] .post-context {
  margin-top: 0.58rem;
}

body[data-workspace="member"] .post-context span {
  border: 0;
  color: var(--social-muted);
  background: transparent;
}

body[data-workspace="member"] .post-context span:nth-child(n + 2) {
  display: none;
}

body[data-workspace="member"] .post-card p {
  color: #465149;
  font-size: 0.96rem;
  line-height: 1.58;
}

body[data-workspace="member"] .post-actions {
  border-top: 1px solid #edf1ee;
}

body[data-workspace="member"] .post-actions button {
  color: #536058;
  border-radius: 10px;
}

body[data-workspace="member"] .post-actions button:hover {
  color: var(--social-green);
  background: var(--social-green-soft);
}

body[data-workspace="member"] .feed-format-tabs button {
  min-height: 42px;
  border-radius: 12px;
  box-shadow: none;
}

body[data-workspace="member"] .feed-format-tabs button.active {
  color: #ffffff;
  border-color: var(--social-green);
  background: var(--social-green);
}

body[data-workspace="member"] .city-pulse-card {
  min-height: 78px;
  border-radius: 16px;
  background: #ffffff;
}

body[data-workspace="member"] .feed-side {
  top: 82px;
  gap: 0.72rem;
}

body[data-workspace="member"] .side-widget {
  padding: 0.9rem;
}

body[data-workspace="member"] .side-widget h3 {
  font-size: 1rem;
}

body[data-workspace="member"] .primary-button {
  color: #1a211b;
  border-color: #f0c72a;
  background: var(--social-yellow);
  box-shadow: 0 9px 22px rgba(210, 164, 0, 0.18);
}

body[data-workspace="member"] .primary-button:hover {
  filter: brightness(0.98);
  transform: translateY(-1px);
}

body[data-workspace="member"] .secondary-button,
body[data-workspace="member"] .icon-button {
  color: #24543a;
  border-color: var(--social-line);
  background: #ffffff;
}

body[data-workspace="member"] .journey-hero {
  color: var(--social-ink);
  border: 1px solid var(--social-line);
  background:
    linear-gradient(90deg, #ffffff 0 48%, rgba(255, 255, 255, 0.92) 66%, rgba(255, 255, 255, 0.38) 100%),
    url("assets/hero-community.png") right center / auto 100% no-repeat;
}

body[data-workspace="member"] .journey-hero h2,
body[data-workspace="member"] .journey-hero p {
  color: var(--social-ink);
}

body[data-workspace="member"] .journey-hero p {
  color: var(--social-muted);
}

body[data-workspace="member"] .journey-hero-score {
  border-color: rgba(8, 116, 67, 0.14);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(24, 45, 32, 0.09);
  backdrop-filter: blur(16px);
}

body[data-workspace="member"] .journey-hero-score span {
  color: #314239;
}

body[data-workspace="member"] .journey-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 55%, transparent 56%),
    conic-gradient(var(--social-green) var(--journey), #e5ece8 0);
  box-shadow: inset 0 0 0 1px rgba(8, 116, 67, 0.1);
}

body[data-workspace="member"] .journey-ring strong {
  color: var(--social-ink);
}

body[data-workspace="member"] .journey-ring span {
  color: var(--social-muted);
}

body[data-workspace="member"] .journey-progress-card {
  color: var(--social-ink);
  border: 1px solid var(--social-line);
  background: linear-gradient(180deg, #ffffff, #eef8f2);
  box-shadow: var(--social-shadow);
}

body[data-workspace="member"] .journey-progress-card::before {
  display: none;
}

body[data-workspace="member"] .journey-progress-card h3,
body[data-workspace="member"] .journey-progress-card strong,
body[data-workspace="member"] .journey-progress-card span,
body[data-workspace="member"] .journey-progress-card p {
  color: var(--social-ink);
}

body[data-workspace="member"] .journey-progress-card p,
body[data-workspace="member"] .journey-progress-card small {
  color: var(--social-muted);
}

body[data-workspace="member"] .social-hero,
body[data-workspace="member"] .trust-center-hero,
body[data-workspace="member"] .radio-hero-card,
body[data-workspace="member"] .more-hero {
  color: var(--social-ink);
  border: 1px solid var(--social-line);
  background: linear-gradient(110deg, #ffffff, #eef8f2 72%, #eef7fa);
  box-shadow: var(--social-shadow);
}

body[data-workspace="member"] .social-hero h2,
body[data-workspace="member"] .social-hero p,
body[data-workspace="member"] .trust-center-hero h2,
body[data-workspace="member"] .trust-center-hero p,
body[data-workspace="member"] .radio-hero-card h3,
body[data-workspace="member"] .radio-hero-card p,
body[data-workspace="member"] .radio-hero-card #radioLiveTitle {
  color: var(--social-ink);
}

body[data-workspace="member"] .social-hero p,
body[data-workspace="member"] .trust-center-hero p,
body[data-workspace="member"] .radio-hero-card p {
  color: var(--social-muted);
}

body[data-workspace="member"] .radio-source-switcher button {
  color: var(--social-muted);
  border-color: var(--social-line);
  background: #ffffff;
}

body[data-workspace="member"] .radio-source-switcher button.active {
  color: #ffffff;
  border-color: var(--social-green);
  background: var(--social-green);
}

body[data-workspace="member"] .radio-player {
  border-color: var(--social-line);
  background: #f5f8f6;
}

body[data-workspace="member"] .radio-placeholder span {
  color: #314239;
}

body[data-workspace="member"] .radio-placeholder small,
body[data-workspace="member"] .radio-hero-card .room-meta {
  color: var(--social-muted);
}

body[data-workspace="member"] .radio-reference {
  grid-template-rows: 210px minmax(0, 1fr);
}

body[data-workspace="member"] .radio-reference figure {
  display: grid;
  place-items: center;
  padding: 0.85rem;
  background: linear-gradient(135deg, #eef8f2, #eef7fa);
}

body[data-workspace="member"] .radio-reference figure::before,
body[data-workspace="member"] .radio-reference figure::after {
  display: none;
}

body[data-workspace="member"] .radio-reference img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border: 1px solid rgba(23, 43, 30, 0.12);
  border-radius: 12px;
  filter: none;
  transform: none;
  box-shadow: 0 12px 28px rgba(23, 43, 30, 0.12);
}

@media (max-width: 1180px) {
  body[data-workspace="member"] .feed-hero-visual {
    display: none;
  }
}

@media (max-width: 900px) {
  body[data-workspace="member"] .feed-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-workspace="member"] .feed-side {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .main {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    padding-inline: 0.72rem;
    overflow-x: clip;
  }

  .topbar {
    min-height: 58px;
  }

  body[data-workspace="member"][data-section="feed"] #feed {
    padding-top: 0.55rem;
  }

  body[data-workspace="member"] .feed-shell {
    gap: 0.65rem;
    margin-top: 0;
  }

  body[data-workspace="member"] .story-rail {
    margin-top: 0;
  }

  body[data-workspace="member"] .story-rail button {
    min-width: 102px;
    min-height: 78px;
    border-radius: 14px;
  }

  body[data-workspace="member"] .composer,
  body[data-workspace="member"] .post-card {
    border-radius: 16px;
  }

  body[data-workspace="member"] .quick-composer {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 0.75rem;
  }

  body[data-workspace="member"] .quick-compose-body,
  body[data-workspace="member"] .quick-compose-tools,
  body[data-workspace="member"] .feed-main,
  body[data-workspace="member"] .feed-shell,
  body[data-workspace="member"] #feed {
    min-width: 0;
  }

  body[data-workspace="member"] .quick-composer textarea {
    min-height: 62px;
  }

  body[data-workspace="member"] .post-card {
    padding: 0.86rem;
  }

  body[data-workspace="member"] .post-actions {
    gap: 0.14rem;
  }

  body[data-workspace="member"] .post-actions button {
    min-width: 0;
    padding-inline: 0.48rem;
    font-size: 0.82rem;
  }

  body[data-workspace="member"] .journey-hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff 72%),
      url("assets/hero-community.png") center / cover;
  }
}

/* Adaptive ConectarBR assistant: one identity, contextual modes. */
body[data-workspace="member"] .assistant-hero {
  min-height: 180px;
  border: 1px solid var(--social-line);
  border-radius: 18px;
  background: linear-gradient(110deg, #ffffff, #eef8f2 72%, #eef7fa);
  box-shadow: var(--social-shadow);
}

body[data-workspace="member"] .assistant-hero h2 {
  max-width: 24ch;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.02;
}

body[data-workspace="member"] .assistant-chat-card {
  border: 1px solid var(--social-line);
  border-radius: 18px;
  background: #f9fbfa;
  box-shadow: var(--social-shadow);
}

.ai-context-shell {
  display: grid;
  gap: 0.62rem;
}

.ai-mode-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.72rem;
  align-items: center;
  padding: 0.78rem;
  border: 1px solid rgba(8, 116, 67, 0.14);
  border-radius: 16px;
  background: linear-gradient(110deg, #ffffff, #eef8f2);
}

.ai-mode-status > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--social-green);
  background: var(--social-green-soft);
}

.ai-mode-status > div {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.ai-mode-status small {
  color: var(--social-green);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-mode-status strong {
  color: var(--social-ink);
  font-size: 1rem;
}

.ai-mode-status p {
  margin: 0;
  color: var(--social-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.ai-mode-chooser {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.62rem;
  border: 1px solid var(--social-line);
  border-radius: 16px;
  background: #ffffff;
}

.ai-mode-chooser.open {
  display: grid;
}

.ai-mode-chooser button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  min-height: 66px;
  padding: 0.62rem;
  border: 1px solid var(--social-line);
  border-radius: 14px;
  color: var(--social-ink);
  text-align: left;
  background: #ffffff;
}

.ai-mode-chooser button > svg {
  color: var(--social-green);
}

.ai-mode-chooser button > span {
  display: grid;
  gap: 0.08rem;
}

.ai-mode-chooser button small {
  color: var(--social-muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.ai-mode-chooser button.active {
  border-color: rgba(8, 116, 67, 0.42);
  background: var(--social-green-soft);
  box-shadow: inset 0 0 0 1px rgba(8, 116, 67, 0.12);
}

.ai-prompt-suggestions {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.ai-prompt-suggestions button {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 38px;
  padding: 0.48rem 0.68rem;
  border: 1px solid var(--social-line);
  border-radius: 12px;
  color: #31523f;
  white-space: nowrap;
  background: #ffffff;
}

.ai-prompt-suggestions button:hover {
  color: var(--social-green);
  border-color: rgba(8, 116, 67, 0.3);
  background: var(--social-green-soft);
}

body[data-workspace="member"] .ai-disclosure {
  border: 1px solid rgba(221, 169, 0, 0.18);
  border-radius: 16px;
  background: #fff8dc;
}

body[data-workspace="member"] .ai-chat-log {
  min-height: 250px;
  max-height: 430px;
  padding: 0.35rem;
}

body[data-workspace="member"] .ai-message {
  border: 1px solid var(--social-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(24, 45, 32, 0.055);
}

body[data-workspace="member"] .ai-message.assistant {
  background: #ffffff;
}

body[data-workspace="member"] .ai-message.user {
  border-color: #efd068;
  background: #fff3bd;
}

.ai-message > strong span {
  color: var(--social-green);
  font-size: 0.72rem;
  font-weight: 700;
}

body[data-workspace="member"] .ai-chat-form input {
  min-height: 50px;
  border-radius: 14px;
  box-shadow: none;
}

#aiHealthyActions {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

#aiHealthyActions button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.08rem 0.55rem;
  align-items: center;
  min-height: 70px;
  padding: 0.65rem;
  border: 1px solid var(--social-line);
  border-radius: 14px;
  color: var(--social-ink);
  text-align: left;
  background: #ffffff;
}

#aiHealthyActions button > span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--social-green);
  background: var(--social-green-soft);
}

#aiHealthyActions button strong {
  color: var(--social-ink);
}

#aiHealthyActions button em {
  color: var(--social-muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.3;
}

@media (max-width: 720px) {
  body[data-workspace="member"] .assistant-hero {
    min-height: 0;
  }

  body[data-workspace="member"] .assistant-hero h2 {
    font-size: 1.8rem;
  }

  .ai-mode-status {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ai-mode-status .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .ai-mode-chooser {
    grid-template-columns: 1fr;
  }

  .ai-prompt-suggestions {
    margin-inline: -0.1rem;
  }

  body[data-workspace="member"] .ai-message {
    max-width: 92%;
  }
}

/* Frontend session states and feed compression before backend integration. */
[hidden] {
  display: none !important;
}

body[data-auth-state="authenticated"] .visitor-preview-band {
  display: none !important;
}

body[data-auth-state="guest"] .visitor-preview-band {
  display: grid !important;
}

body[data-auth-state="guest"] .role-identity-control,
body[data-auth-state="guest"] .topbar-avatar,
body[data-auth-state="guest"] .quick-composer,
body[data-auth-state="guest"] .feed-side {
  display: none !important;
}

body[data-auth-state="guest"] .feed-shell {
  grid-template-columns: minmax(0, 1fr);
}

body[data-auth-state="authenticated"] .side-panel [data-authenticated-only] {
  display: inline-flex !important;
}

body[data-workspace="member"][data-section="feed"] .city-pulse-strip {
  display: none;
}

body[data-workspace="member"] .quick-composer.is-compact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.68rem;
  min-height: 76px;
  padding: 0.7rem;
}

body[data-workspace="member"] .quick-composer.is-compact .quick-compose-body {
  gap: 0;
}

body[data-workspace="member"] .quick-composer.is-compact textarea {
  min-height: 50px;
  max-height: 50px;
  padding: 0.82rem;
  resize: none;
}

body[data-workspace="member"] .quick-composer.is-compact .quick-compose-tools {
  display: none;
}

.side-panel .panel-label,
.side-panel .workspace-chip span {
  color: #27613f;
}

button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(20, 126, 163, 0.5);
  outline-offset: 3px;
}

.role-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 116, 67, 0.42) #edf3ef;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 640px) {
  body[data-workspace="member"] .quick-composer.is-compact {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 68px;
    padding: 0.62rem;
  }

  body[data-workspace="member"] .quick-composer.is-compact textarea {
    min-height: 46px;
    max-height: 46px;
    padding: 0.72rem;
  }
}

/* Progressive social feed: comments and additional posts appear on demand. */
.post-card[id] {
  scroll-margin-top: 88px;
}

body[data-workspace="member"] .post-actions button.active {
  color: var(--social-green);
  background: var(--social-green-soft);
}

.reply-panel[hidden] {
  display: none !important;
}

.feed-load-more {
  justify-self: center;
  min-width: min(100%, 280px);
  margin: 0.25rem auto 0.8rem;
}

/* Communities and profile become complete social product surfaces. */
.active-room-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 38px;
  align-items: center;
  gap: 0.65rem;
  min-height: 58px;
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(17, 148, 71, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(232, 247, 239, 0.96), rgba(255, 250, 224, 0.82));
}

.active-room-filter span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--social-green);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.active-room-filter strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-room-filter button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--social-green);
  background: rgba(255, 255, 255, 0.8);
}

.community-discovery-toolbar {
  width: min(100%, 1028px);
  margin: 0 auto 0.85rem;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
}

.community-search {
  min-height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  border: 1px solid var(--v3-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--v3-shadow-soft);
}

.community-search svg {
  width: 18px;
  color: var(--v3-muted);
}

.community-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.community-scope {
  display: inline-grid;
  grid-template-columns: auto auto;
  padding: 4px;
  border: 1px solid var(--v3-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.community-scope button {
  min-height: 38px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 12px;
  color: var(--v3-muted);
  background: transparent;
  font-weight: 850;
}

.community-scope button.active {
  color: #ffffff;
  background: var(--v3-green);
  box-shadow: 0 8px 18px rgba(9, 98, 56, 0.2);
}

#communityResultCount {
  color: var(--v3-muted);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.community-room-card {
  min-height: 238px;
}

.room-card-footer {
  display: grid;
  align-items: stretch;
}

.room-social-proof {
  display: grid;
  gap: 0.25rem;
}

.room-social-proof .human-stack {
  justify-self: start;
}

.room-social-proof > span:last-child {
  color: var(--v3-muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.room-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.room-card-actions button {
  min-width: 0;
  width: 100%;
}

.room-card-actions .joined {
  color: var(--v3-green);
  border-color: rgba(17, 148, 71, 0.22);
  background: var(--v3-green-soft);
}

.community-empty-state {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed rgba(17, 148, 71, 0.28);
  border-radius: 24px;
  background: rgba(248, 252, 249, 0.88);
}

.community-empty-state > svg {
  width: 34px;
  height: 34px;
  color: var(--v3-green);
}

.community-empty-state h3,
.community-empty-state p {
  margin: 0;
}

.community-empty-state p {
  color: var(--v3-muted);
}

.profile-edit-form {
  margin: 0 1.25rem 1rem;
  padding: 1rem;
  border: 1px solid rgba(17, 148, 71, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(246, 252, 248, 0.98), rgba(255, 255, 255, 0.96));
}

.profile-edit-heading,
.profile-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.profile-edit-heading h4,
.profile-card-heading h3 {
  margin: 0.2rem 0 0;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.profile-edit-grid label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-edit-grid .wide {
  grid-column: 1 / -1;
}

.profile-edit-grid input,
.profile-edit-grid textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  resize: vertical;
}

.profile-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.profile-activity-card {
  grid-column: 1 / -1;
}

.profile-activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.profile-activity-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.8rem;
  border: 1px solid rgba(13, 64, 36, 0.09);
  border-radius: 18px;
  background: rgba(248, 251, 249, 0.92);
}

.profile-activity-item > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--profile-primary);
  background: color-mix(in srgb, var(--profile-surface), white 24%);
}

.profile-activity-item strong,
.profile-activity-item p {
  display: block;
  margin: 0;
}

.profile-activity-item p,
.profile-activity-item time {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.profile-activity-item time {
  white-space: nowrap;
}

.follower-item .secondary-button {
  min-height: 34px;
}

.follower-item .connected {
  color: var(--profile-primary);
  background: color-mix(in srgb, var(--profile-surface), white 20%);
}

.profile-badges {
  display: grid;
  grid-template-columns: 1fr;
}

.achievement-item {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-height: 70px;
  padding: 0.65rem 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.achievement-item > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--muted);
  background: #ffffff;
}

.achievement-item.unlocked > span {
  color: #7a5a00;
  background: rgba(255, 216, 77, 0.24);
}

.achievement-item strong,
.achievement-item small {
  display: block;
}

.achievement-item small {
  margin-top: 0.15rem;
  color: var(--muted);
}

.achievement-item b {
  color: var(--profile-primary);
  font-size: 0.78rem;
}

.achievement-item > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--profile-primary) var(--achievement), rgba(17, 148, 71, 0.09) var(--achievement));
}

@media (max-width: 820px) {
  .community-discovery-toolbar {
    grid-template-columns: 1fr;
  }

  .community-scope {
    width: 100%;
  }

  .community-scope button {
    min-width: 0;
  }

  #communityResultCount {
    padding-left: 0.2rem;
  }

  .profile-activity {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .community-room-card {
    min-height: 230px;
  }

  .room-card-footer {
    display: grid;
    align-items: stretch;
  }

  .room-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .room-card-actions button {
    min-width: 0;
  }

  .profile-edit-form {
    margin-inline: 1rem;
    padding: 0.85rem;
  }

  .profile-edit-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-grid .wide {
    grid-column: auto;
  }

  .profile-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .profile-card-heading {
    align-items: flex-start;
  }

  .profile-activity-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .profile-activity-item time {
    grid-column: 2;
  }

  .follower-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .follower-item .secondary-button {
    grid-column: 2;
    justify-self: start;
  }
}

/* ConectarBR Academia: professional learning SaaS surface. */
.academy-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1120px);
  min-height: 380px;
  margin: 1rem auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 1.4rem;
  padding: 1.5rem;
  border: 1px solid rgba(13, 64, 36, 0.1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 216, 77, 0.18), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f1faf5 58%, #f7fbff);
  box-shadow: 0 22px 60px rgba(9, 38, 23, 0.09);
}

.academy-hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
}

.academy-hero-copy h2 {
  max-width: 13ch;
  margin: 0.4rem 0 0;
  color: #14231a;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.academy-hero-copy > p {
  max-width: 56ch;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.academy-hero-actions,
.academy-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.academy-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 32px;
  color: #355345;
  font-size: 0.76rem;
  font-weight: 850;
}

.academy-proof svg {
  width: 15px;
  color: var(--primary);
}

.academy-hero-media {
  position: relative;
  overflow: hidden;
  min-height: 316px;
  margin: 0;
  border-radius: 24px;
  background: #061d33;
  box-shadow: 0 20px 45px rgba(6, 29, 51, 0.2);
}

.academy-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.9;
}

.academy-hero-media::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(2, 19, 34, 0.92));
}

.academy-hero-media figcaption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.2rem;
  color: #ffffff;
}

.academy-hero-media figcaption strong {
  font-size: 1.15rem;
}

.academy-hero-media figcaption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.8rem;
}

.academy-metrics {
  width: min(100%, 1120px);
  margin: 0.8rem auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.academy-metrics article {
  min-height: 82px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(13, 64, 36, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(9, 38, 23, 0.055);
}

.academy-metrics article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: rgba(17, 148, 71, 0.1);
}

.academy-metrics strong,
.academy-metrics small {
  display: block;
}

.academy-metrics strong {
  font-size: 1.35rem;
}

.academy-metrics small {
  color: var(--muted);
  font-weight: 750;
}

.academy-learning-band {
  width: min(100%, 1120px);
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.55fr);
  gap: 0.75rem;
}

.academy-continue,
.academy-membership {
  min-height: 154px;
  padding: 1rem;
  border: 1px solid rgba(13, 64, 36, 0.1);
  border-radius: 22px;
  background: #ffffff;
}

.academy-continue {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
}

.academy-continue-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #ffffff;
  background: #087443;
}

.academy-continue-icon.blue { background: #176f9b; }
.academy-continue-icon.gold { color: #392e05; background: #f1c84f; }
.academy-continue-icon.violet { background: #6952a8; }
.academy-continue-icon.coral { background: #c85f4b; }
.academy-continue-icon.navy { background: #163d5a; }

.academy-continue-copy h3,
.academy-continue-copy p,
.academy-membership h3,
.academy-membership p {
  margin: 0;
}

.academy-continue-copy h3,
.academy-membership h3 {
  margin-top: 0.25rem;
}

.academy-continue-copy p,
.academy-membership p {
  margin-top: 0.3rem;
  color: var(--muted);
  line-height: 1.45;
}

.academy-progress {
  overflow: hidden;
  width: 100%;
  height: 8px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: rgba(17, 148, 71, 0.11);
}

.academy-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087443, #22a55d, #f4c928);
}

.academy-continue-copy > small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
}

.academy-membership {
  display: grid;
  align-content: center;
  justify-items: start;
}

.academy-membership button {
  margin-top: 0.7rem;
}

.academy-toolbar {
  width: min(100%, 1120px);
  margin: 1.4rem auto 0.75rem;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 0.7rem;
}

.academy-search {
  min-height: 50px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.academy-search input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.academy-view-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
}

.academy-view-switcher button {
  min-height: 40px;
  padding: 0 0.8rem;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 850;
}

.academy-view-switcher button.active {
  color: #ffffff;
  background: #087443;
}

.academy-category-list {
  width: min(100%, 1120px);
  margin: 0 auto 1.2rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.academy-category-list::-webkit-scrollbar { display: none; }

.academy-category-list button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex: 0 0 auto;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #ffffff;
  font-weight: 850;
}

.academy-category-list button.active {
  color: #075f37;
  border-color: rgba(17, 148, 71, 0.24);
  background: rgba(17, 148, 71, 0.1);
}

.academy-section-heading {
  width: min(100%, 1120px);
  margin: 1.2rem auto 0.7rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.academy-section-heading h3,
.academy-section-heading p {
  margin: 0;
}

.academy-section-heading h3 {
  margin-top: 0.2rem;
  font-size: 1.7rem;
}

.academy-section-heading p,
#academyResultCount {
  color: var(--muted);
}

.academy-section-heading p {
  max-width: 50ch;
  text-align: right;
}

#academyResultCount {
  font-weight: 850;
}

.academy-track-grid {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.academy-track-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  align-content: start;
  gap: 0.65rem;
  padding: 0.85rem;
  text-align: left;
  border: 1px solid rgba(13, 64, 36, 0.1);
  border-radius: 20px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(9, 38, 23, 0.055);
}

.academy-track-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #087443;
  background: rgba(17, 148, 71, 0.1);
}

.academy-track-card.blue > span { color: #176f9b; background: rgba(23, 111, 155, 0.1); }
.academy-track-card.gold > span { color: #785900; background: rgba(244, 201, 40, 0.18); }
.academy-track-card.violet > span { color: #6952a8; background: rgba(105, 82, 168, 0.1); }
.academy-track-card.active { border-color: #087443; box-shadow: 0 0 0 3px rgba(17, 148, 71, 0.1); }

.academy-track-card small,
.academy-track-card strong,
.academy-track-card p {
  display: block;
  margin: 0;
}

.academy-track-card small { color: var(--muted); }
.academy-track-card strong { margin-top: 0.35rem; font-size: 1rem; }
.academy-track-card p { margin-top: 0.4rem; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.academy-track-card > svg { width: 17px; color: var(--muted); }

.academy-course-grid {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.academy-course-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 162px minmax(0, 1fr);
  border: 1px solid rgba(13, 64, 36, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(9, 38, 23, 0.065);
}

.academy-course-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 0.45rem;
  padding: 0.9rem;
  text-align: left;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0b7143, #13a35d);
}

.academy-course-visual::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -35px;
  top: -55px;
  border: 24px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.academy-course-visual.blue { background: linear-gradient(135deg, #164c73, #1c8ab2); }
.academy-course-visual.gold { color: #2c260d; background: linear-gradient(135deg, #e4b52e, #ffe47e); }
.academy-course-visual.violet { background: linear-gradient(135deg, #53428d, #8b72d3); }
.academy-course-visual.coral { background: linear-gradient(135deg, #a94b3b, #df816d); }
.academy-course-visual.navy { background: linear-gradient(135deg, #0e2d46, #245b77); }

.academy-course-tag {
  position: absolute;
  z-index: 2;
  left: 0.8rem;
  top: 0.8rem;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.55rem;
  border-radius: 10px;
  color: #172119;
  background: rgba(255, 232, 135, 0.96);
  font-size: 0.72rem;
  font-weight: 900;
}

.academy-course-visual b {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.academy-course-visual small {
  position: relative;
  z-index: 2;
  font-weight: 850;
}

.academy-course-body {
  display: grid;
  align-content: start;
  padding: 0.9rem;
}

.academy-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.academy-course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.academy-course-meta svg { width: 13px; color: #a07900; }

.academy-course-body h4 {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.academy-course-body > p {
  min-height: 58px;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.academy-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.65rem;
}

.academy-skill-list span {
  padding: 0.25rem 0.45rem;
  border-radius: 9px;
  color: #446153;
  background: #f0f6f2;
  font-size: 0.68rem;
  font-weight: 800;
}

.academy-progress.course {
  height: 6px;
  margin-top: 0.75rem;
}

.academy-progress-label {
  margin-top: 0.25rem;
  color: var(--muted);
}

.academy-course-body footer {
  align-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(13, 64, 36, 0.08);
}

.academy-course-body footer strong { color: #075f37; }

.academy-empty-state {
  grid-column: 1 / -1;
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed rgba(17, 148, 71, 0.24);
  border-radius: 22px;
  background: rgba(249, 252, 250, 0.9);
}

.academy-empty-state > svg { width: 38px; height: 38px; color: #087443; }
.academy-empty-state h3,
.academy-empty-state p { margin: 0; }
.academy-empty-state p { color: var(--muted); }

.academy-partner-band {
  width: min(100%, 1120px);
  margin: 1.2rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  border-top: 1px solid rgba(13, 64, 36, 0.1);
  border-bottom: 1px solid rgba(13, 64, 36, 0.1);
  background: rgba(244, 249, 246, 0.7);
}

.academy-partner-band h3,
.academy-partner-band p { margin: 0; }
.academy-partner-band h3 { margin-top: 0.25rem; }
.academy-partner-band p { max-width: 70ch; margin-top: 0.35rem; color: var(--muted); }

.academy-course-modal-card {
  width: min(94vw, 760px);
  max-height: 88vh;
  overflow-y: auto;
}

.academy-modal-visual {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  min-height: 150px;
  margin: -0.3rem -0.3rem 0;
  padding: 1rem;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b7143, #13a35d);
}

.academy-modal-visual.blue { background: linear-gradient(135deg, #164c73, #1c8ab2); }
.academy-modal-visual.gold { color: #2c260d; background: linear-gradient(135deg, #e4b52e, #ffe47e); }
.academy-modal-visual.violet { background: linear-gradient(135deg, #53428d, #8b72d3); }
.academy-modal-visual.coral { background: linear-gradient(135deg, #a94b3b, #df816d); }
.academy-modal-visual.navy { background: linear-gradient(135deg, #0e2d46, #245b77); }

.academy-modal-visual > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.academy-modal-visual small,
.academy-modal-visual h2 { display: block; margin: 0; }
.academy-modal-visual h2 { margin-top: 0.3rem; font-size: 1.8rem; line-height: 1.08; }

.academy-modal-summary { color: var(--muted); line-height: 1.55; }

.academy-modal-meta,
.academy-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.academy-modal-meta span,
.academy-modal-skills span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 34px;
  padding: 0 0.55rem;
  border-radius: 11px;
  color: #365043;
  background: #f0f6f2;
  font-size: 0.78rem;
  font-weight: 800;
}

.academy-modal-modules { margin-top: 1rem; }
.academy-modal-modules h3 { margin: 0 0 0.55rem; }
.academy-modal-modules article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}
.academy-modal-modules b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #087443;
  background: rgba(17, 148, 71, 0.1);
}
.academy-modal-modules strong,
.academy-modal-modules span { display: block; }
.academy-modal-modules span { margin-top: 0.12rem; color: var(--muted); font-size: 0.76rem; }

.academy-modal-footer {
  position: sticky;
  bottom: -1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 1rem -1rem -1rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}
.academy-modal-footer span,
.academy-modal-footer strong { display: block; }
.academy-modal-footer span { color: var(--muted); font-size: 0.75rem; }

.academy-player-dialog {
  width: min(97vw, 1180px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.academy-player-card {
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.2rem;
  border-radius: 24px;
  background: #f7faf8;
}

.academy-player-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 8;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(12, 49, 31, 0.12);
}

.academy-player-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-right: 3.4rem;
}

.academy-player-header h2 {
  max-width: 28ch;
  margin: 0.25rem 0 0;
  font-size: 1.65rem;
  line-height: 1.12;
}

.academy-player-progress-copy {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.academy-player-progress-copy strong { font-size: 1.5rem; }
.academy-player-progress-copy span { color: var(--muted); font-size: 0.78rem; font-weight: 800; }

.academy-player-progress {
  height: 8px;
  margin: 0.9rem 0 1.1rem;
  overflow: hidden;
  border-radius: 999px;
  background: #dfece4;
}

.academy-player-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b7e48, #ffd23f);
  transition: width 260ms ease;
}

.academy-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 1rem;
}

.academy-player-main,
.academy-player-sidebar {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.academy-player-video {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  color: #ffffff;
  background: #092b42;
}

.academy-player-video img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.academy-player-video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 25, 39, 0.16), rgba(4, 25, 39, 0.9));
}

.academy-player-video > button {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #073f27;
  background: #ffd54a;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.academy-player-video > button svg { width: 28px; height: 28px; }

.academy-player-video figcaption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.1rem;
  left: 1.2rem;
  display: grid;
  gap: 0.2rem;
}

.academy-player-video figcaption span { color: #ffe06b; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.academy-player-video figcaption strong { font-size: 1.35rem; }
.academy-player-video figcaption small { color: rgba(255, 255, 255, 0.82); }

.academy-player-lesson,
.academy-player-notes,
.academy-player-sidebar {
  padding: 1rem;
  border: 1px solid rgba(11, 88, 50, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(18, 54, 35, 0.06);
}

.academy-player-lesson h3,
.academy-player-lesson p,
.academy-player-notes h3,
.academy-player-sidebar h3 { margin: 0; }
.academy-player-lesson h3,
.academy-player-notes h3,
.academy-player-sidebar h3 { margin-top: 0.22rem; }
.academy-player-lesson p { margin-top: 0.45rem; color: var(--muted); line-height: 1.55; }

.academy-player-lesson-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.85rem;
}

.academy-player-lesson-actions > span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #17643e;
  font-size: 0.78rem;
  font-weight: 850;
}

.academy-player-notes textarea {
  width: 100%;
  min-height: 118px;
  margin: 0.75rem 0 0.55rem;
  padding: 0.8rem;
  resize: vertical;
  border: 1px solid #d7e3db;
  border-radius: 12px;
  color: var(--ink);
  background: #f9fbfa;
  font: inherit;
  line-height: 1.5;
}

.academy-player-module-list { display: grid; gap: 0.45rem; }

.academy-player-module-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.6rem;
  min-height: 66px;
  padding: 0.55rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  color: var(--ink);
  background: #f5f8f6;
}

.academy-player-module-list > button:hover,
.academy-player-module-list > button.active {
  border-color: rgba(10, 132, 72, 0.3);
  background: #edf8f1;
}

.academy-player-module-list > button > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #17643e;
  background: #ffffff;
  font-weight: 900;
}

.academy-player-module-list > button.complete > span {
  color: #ffffff;
  background: #0a8249;
}

.academy-player-module-list strong,
.academy-player-module-list small { display: block; }
.academy-player-module-list strong { font-size: 0.82rem; }
.academy-player-module-list small { margin-top: 0.15rem; color: var(--muted); font-size: 0.68rem; }
.academy-player-module-list svg { width: 16px; height: 16px; }

.academy-player-support {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.6rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.academy-player-support > svg { color: #0a7745; }
.academy-player-support strong,
.academy-player-support span { display: block; }
.academy-player-support span { margin-top: 0.12rem; color: var(--muted); font-size: 0.72rem; }
.academy-player-support button { grid-column: 1 / -1; }

.academy-plans-dialog {
  width: min(96vw, 1080px);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.academy-plans-card {
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 1.2rem;
  border-radius: 24px;
  background: #f7faf8;
}

.academy-plans-card > .close-button {
  position: sticky;
  top: 0;
  float: right;
  z-index: 5;
  background: #ffffff;
}

.academy-plans-header {
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 0 2.8rem;
  text-align: center;
}

.academy-plans-header h2 {
  margin: 0.3rem 0 0;
  font-size: 2rem;
  line-height: 1.08;
}

.academy-plans-header p {
  margin: 0.55rem auto 0;
  color: var(--muted);
  line-height: 1.55;
}

.academy-active-plan {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  color: #0a663d;
  background: #e8f6ed;
  font-size: 0.72rem;
}

.academy-active-plan svg { width: 15px; height: 15px; }

.academy-plan-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.academy-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 1rem;
  border: 1px solid #dce7df;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(16, 55, 34, 0.06);
}

.academy-plan-card.featured {
  border-color: rgba(10, 128, 70, 0.48);
  box-shadow: 0 20px 44px rgba(9, 102, 57, 0.14);
}

.academy-plan-card.selected::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 2px solid rgba(255, 203, 36, 0.9);
  border-radius: 14px;
  pointer-events: none;
}

.academy-plan-badge {
  align-self: flex-start;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  color: #075c35;
  background: #e8f6ed;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.academy-plan-card.featured .academy-plan-badge {
  color: #332a05;
  background: #ffe078;
}

.academy-plan-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1.25rem;
}

.academy-plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.academy-plan-price strong { font-size: 1.75rem; }
.academy-plan-price span { color: var(--muted); font-size: 0.75rem; font-weight: 750; }
.academy-plan-card > p { min-height: 60px; color: var(--muted); line-height: 1.45; }

.academy-plan-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.academy-plan-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: #354d40;
  font-size: 0.78rem;
  font-weight: 750;
}

.academy-plan-card li svg {
  width: 15px;
  flex: 0 0 15px;
  color: #098148;
}

.academy-plan-card > button {
  width: 100%;
  margin-top: auto;
}

.academy-checkout-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.9rem;
  padding: 0.9rem;
  border: 1px solid rgba(10, 115, 65, 0.14);
  border-radius: 16px;
  background: #ffffff;
}

.academy-checkout-summary {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.academy-checkout-summary > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #087543;
  background: #eaf7ef;
}

.academy-checkout-summary small,
.academy-checkout-summary strong,
.academy-checkout-summary p { display: block; margin: 0; }
.academy-checkout-summary small { color: var(--muted); }
.academy-checkout-summary p { margin-top: 0.1rem; color: #345044; font-size: 0.75rem; }

.academy-payment-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.academy-payment-preview span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.45rem;
  border-radius: 9px;
  color: #385246;
  background: #f1f6f3;
  font-size: 0.7rem;
  font-weight: 850;
}

.academy-payment-preview svg { width: 14px; height: 14px; }
.academy-checkout-disclaimer { grid-column: 1 / -1; color: var(--muted); text-align: right; }

.academy-billing-center {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.academy-billing-center > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #087543;
  background: #eaf7ef;
}

.academy-billing-center strong,
.academy-billing-center p { display: block; margin: 0; }
.academy-billing-center p { margin-top: 0.1rem; color: var(--muted); font-size: 0.7rem; }
.academy-billing-center button:disabled { cursor: not-allowed; opacity: 0.5; }

.academy-operations-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.academy-operations-heading h3,
.academy-operations-heading h4 { margin: 0.2rem 0 0; }

.academy-admin-disclaimer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  color: #345145;
  background: #f0f6f2;
  font-size: 0.75rem;
  font-weight: 750;
}

.academy-admin-disclaimer svg { width: 16px; height: 16px; color: #087744; }

.academy-admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.academy-admin-kpis > article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  min-height: 94px;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
}

.academy-admin-kpis > article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #087744;
  background: #eaf7ef;
}

.academy-admin-kpis small,
.academy-admin-kpis strong,
.academy-admin-kpis p { display: block; margin: 0; }
.academy-admin-kpis small { color: var(--muted); font-size: 0.67rem; }
.academy-admin-kpis strong { margin-top: 0.12rem; font-size: 1.05rem; }
.academy-admin-kpis p { margin-top: 0.12rem; color: #4c675a; font-size: 0.65rem; }

.academy-admin-split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.academy-admin-split > section {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fbfa;
}

.academy-production-pipeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.academy-production-pipeline article {
  padding: 0.7rem;
  border-left: 4px solid #1685b3;
  border-radius: 10px;
  background: #ffffff;
}

.academy-production-pipeline article.gold { border-left-color: #d3a400; }
.academy-production-pipeline article.violet { border-left-color: #7858b8; }
.academy-production-pipeline article.green { border-left-color: #0a8249; }
.academy-production-pipeline strong,
.academy-production-pipeline span { display: block; }
.academy-production-pipeline strong { font-size: 1.2rem; }
.academy-production-pipeline span { margin-top: 0.08rem; color: var(--muted); font-size: 0.7rem; }

.academy-admin-course-list,
.academy-local-actions { display: grid; gap: 0.45rem; margin-top: 0.65rem; }

.academy-admin-course-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 11px;
  background: #ffffff;
}

.academy-admin-course-list article > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #ffffff;
  background: #0a8249;
}

.academy-admin-course-list article > span.blue { background: #17698e; }
.academy-admin-course-list article > span.gold { color: #2b260c; background: #f0c33c; }
.academy-admin-course-list article > span.violet { background: #7055a7; }
.academy-admin-course-list article > span.navy { background: #183f58; }
.academy-admin-course-list strong,
.academy-admin-course-list small { display: block; }
.academy-admin-course-list small { margin-top: 0.1rem; color: var(--muted); font-size: 0.68rem; }
.academy-admin-course-list b { color: #087744; font-size: 0.67rem; }

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

.academy-local-actions article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f9fbfa;
}

.academy-local-actions article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #087744;
  background: #eaf7ef;
}

.academy-local-actions strong,
.academy-local-actions p { display: block; margin: 0; }
.academy-local-actions p { margin-top: 0.15rem; color: var(--muted); font-size: 0.7rem; }

body.dark .academy-plans-card,
body.dark .academy-player-card { background: #10231a; }
body.dark .academy-plan-card,
body.dark .academy-checkout-preview,
body.dark .academy-player-lesson,
body.dark .academy-player-notes,
body.dark .academy-player-sidebar,
body.dark .academy-admin-kpis > article,
body.dark .academy-admin-split > section,
body.dark .academy-production-pipeline article,
body.dark .academy-admin-course-list article,
body.dark .academy-local-actions article { background: #173125; border-color: rgba(255, 255, 255, 0.1); }
body.dark .academy-plan-card li,
body.dark .academy-checkout-summary p,
body.dark .academy-payment-preview span,
body.dark .academy-admin-disclaimer { color: #c8d9d0; }
body.dark .academy-payment-preview span,
body.dark .academy-admin-disclaimer,
body.dark .academy-active-plan { background: #203d2f; }

@media (max-width: 980px) {
  .academy-hero { grid-template-columns: 1fr; }
  .academy-hero-copy h2 { max-width: 17ch; }
  .academy-hero-media { min-height: 250px; }
  .academy-track-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-player-layout { grid-template-columns: 1fr; }
  .academy-player-sidebar { order: 2; }
  .academy-plan-grid { grid-template-columns: 1fr; }
  .academy-plan-card { min-height: 0; }
  .academy-checkout-preview { grid-template-columns: 1fr; }
  .academy-checkout-disclaimer { grid-column: auto; text-align: left; }
  .academy-billing-center { grid-column: auto; }
  .academy-admin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-admin-split { grid-template-columns: 1fr; }
  .academy-local-actions { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .academy-player-card {
    max-height: 94vh;
    padding: 0.8rem;
    border-radius: 18px;
  }

  .academy-player-header {
    display: block;
    padding-right: 2.8rem;
  }

  .academy-player-header h2 { font-size: 1.25rem; }
  .academy-player-progress-copy { margin-top: 0.5rem; }
  .academy-player-video { min-height: 260px; }
  .academy-player-video > button { width: 60px; height: 60px; }
  .academy-player-video figcaption strong { font-size: 1.05rem; }
  .academy-player-lesson-actions { align-items: stretch; flex-direction: column; }
  .academy-player-lesson-actions .primary-button { width: 100%; }
  .academy-plans-card { padding: 0.8rem; border-radius: 18px; }
  .academy-plans-header { padding: 0 2.3rem 0 0; text-align: left; }
  .academy-plans-header h2 { font-size: 1.55rem; }
  .academy-admin-kpis { grid-template-columns: 1fr; }
  .academy-local-actions article { grid-template-columns: 42px minmax(0, 1fr); }
  .academy-local-actions article button { grid-column: 1 / -1; width: 100%; }

  .academy-hero {
    min-height: 0;
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 24px;
  }

  .academy-hero-copy h2 {
    max-width: 12ch;
    font-size: 2.2rem;
  }

  .academy-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .academy-hero-actions button { min-width: 0; }
  .academy-proof { display: grid; grid-template-columns: 1fr 1fr; }
  .academy-hero-media { min-height: 190px; }
  .academy-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .academy-learning-band { grid-template-columns: 1fr; }
  .academy-continue { grid-template-columns: 54px minmax(0, 1fr); }
  .academy-continue-icon { width: 54px; height: 54px; }
  .academy-continue > button { grid-column: 2; justify-self: start; }
  .academy-toolbar { grid-template-columns: 1fr; }
  .academy-view-switcher { width: 100%; }
  .academy-section-heading { align-items: start; }
  .academy-section-heading p { display: none; }
  .academy-track-grid { grid-template-columns: 1fr; }
  .academy-track-card { min-height: 150px; }
  .academy-course-grid { grid-template-columns: 1fr; }
  .academy-course-card { grid-template-rows: 142px minmax(0, 1fr); }
  .academy-course-body > p { min-height: 0; }
  .academy-partner-band { display: grid; }
  .academy-modal-footer { align-items: stretch; display: grid; }
  .academy-modal-footer button { width: 100%; }
}

/* Mantém o novo comércio local acima dos seletores legados do marketplace. */
#marketplace .marketplace-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

#marketplace .marketplace-item {
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--market-line);
  border-radius: 17px;
  background: #fff;
}

#marketplace .vendor-panel-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dark #marketplace .marketplace-item {
  background: #17221b;
}

@media (max-width: 980px) {
  #marketplace .marketplace-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #marketplace .marketplace-grid,
  #marketplace .vendor-panel-grid {
    grid-template-columns: 1fr;
  }
}

/* Delivery como destino principal do ecossistema */
.delivery-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 1rem;
  min-height: 240px;
  overflow: hidden;
  padding: 1.25rem;
  border: 1px solid #263c30;
  border-radius: 20px;
  color: #ffffff;
  background: #17271e;
  box-shadow: 0 18px 44px rgba(12, 31, 20, 0.18);
}

.delivery-spotlight::before {
  position: absolute;
  width: 130px;
  height: 8px;
  top: 0;
  left: 1.25rem;
  border-radius: 0 0 8px 8px;
  background: #ff6b4a;
  content: "";
}

.delivery-spotlight-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.delivery-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #ffe88a;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.delivery-live-pill svg {
  width: 15px;
  height: 15px;
  color: #ff7458;
}

.delivery-spotlight h3 {
  max-width: 18ch;
  margin: 0.55rem 0 0.45rem;
  color: #ffffff;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.delivery-spotlight p {
  max-width: 60ch;
  margin: 0;
  color: #d2ddd6;
  font-size: 0.86rem;
  line-height: 1.55;
}

body:not(.dark) .delivery-spotlight h3 {
  color: #ffffff;
  font-family: "Hanken Grotesk", sans-serif;
}

body:not(.dark) .delivery-spotlight p {
  color: #d2ddd6;
}

.delivery-proof-row,
.delivery-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.delivery-proof-row {
  margin-top: 0.8rem;
}

.delivery-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.52rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #e8f0eb;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.68rem;
  font-weight: 750;
}

.delivery-proof-row svg {
  width: 14px;
  height: 14px;
  color: #ffe36b;
}

.delivery-spotlight-actions {
  margin-top: 0.9rem;
}

.delivery-primary-action,
.delivery-secondary-action {
  min-height: 44px;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
}

.delivery-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #ff7a5d;
  color: #201812;
  background: #ff795b;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.25);
}

.delivery-primary-action svg {
  width: 17px;
  height: 17px;
}

.delivery-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: transparent;
}

.delivery-primary-action:hover,
.delivery-secondary-action:hover {
  transform: translateY(-1px);
}

.delivery-spotlight-media {
  position: relative;
  min-width: 0;
  min-height: 210px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #2a392f;
  cursor: pointer;
}

.delivery-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.delivery-spotlight-media:hover img {
  transform: scale(1.035);
}

.delivery-spotlight-media > span {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 0.55rem;
  align-items: end;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(15, 24, 18, 0.88);
  text-align: left;
  backdrop-filter: blur(10px);
}

.delivery-spotlight-media small {
  grid-column: 1 / -1;
  color: #ffe36b;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.delivery-spotlight-media strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-spotlight-media b {
  color: #ffffff;
  font-size: 0.72rem;
}

.delivery-spotlight-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 150px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.delivery-spotlight-empty > svg {
  width: 34px;
  height: 34px;
  color: #ffe36b;
}

.delivery-spotlight-empty span,
.delivery-spotlight-empty strong,
.delivery-spotlight-empty small {
  display: block;
}

.delivery-spotlight-empty small {
  margin-top: 0.18rem;
  color: #cbd7d0;
}

@media (max-width: 980px) {
  .delivery-spotlight {
    grid-template-columns: minmax(0, 1fr) 210px;
  }
}

@media (max-width: 720px) {
  .delivery-spotlight {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-inline: -0.15rem;
    padding: 1rem;
    border-radius: 18px;
  }

  .delivery-spotlight h3 {
    max-width: 15ch;
    font-size: 1.75rem;
  }

  .delivery-spotlight p {
    font-size: 0.78rem;
  }

  .delivery-proof-row span:nth-child(3) {
    display: none;
  }

  .delivery-spotlight-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    width: 100%;
  }

  .delivery-primary-action,
  .delivery-secondary-action {
    min-width: 0;
  }

  .delivery-spotlight-media {
    min-height: 160px;
  }
}

/* Visual audit v105: social first, authentic profiles and product-led delivery */
body[data-workspace="member"] .story-rail {
  order: 1;
}

body[data-workspace="member"] .quick-composer {
  order: 2;
}

body[data-workspace="member"] #deliverySpotlight {
  order: 3;
  grid-template-columns: minmax(0, 1fr) 210px;
  min-height: 224px;
  padding: 1rem;
  border-radius: 16px;
}

body[data-workspace="member"] #deliverySpotlight h3 {
  max-width: 21ch;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

body[data-workspace="member"] #deliverySpotlight p {
  max-width: 58ch;
  font-size: 0.8rem;
}

body[data-workspace="member"] #deliverySpotlight .delivery-spotlight-media {
  min-height: 190px;
}

body[data-workspace="member"] .feed-format-tabs {
  order: 4;
}

body[data-workspace="member"] .feed-list {
  order: 5;
}

body[data-workspace="member"] .quick-composer:not(.is-compact) {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0.82rem;
  border-radius: 16px;
}

body[data-workspace="member"] .quick-composer:not(.is-compact) .avatar {
  width: 48px;
  height: 48px;
  background-size: cover;
}

body[data-workspace="member"] .quick-composer:not(.is-compact) textarea {
  min-height: 68px;
  padding: 0.8rem 0.9rem;
  resize: none;
}

.quick-media-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.quick-media-actions button {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 38px;
  padding: 0.5rem 0.62rem;
  border: 1px solid var(--social-line, var(--line));
  border-radius: 9px;
  color: #405047;
  background: #ffffff;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.quick-media-actions button:hover {
  color: #087443;
  border-color: rgba(8, 116, 67, 0.25);
  background: #edf8f2;
}

.quick-media-actions svg {
  width: 15px;
  height: 15px;
}

#marketplace .local-commerce-shell {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 0.9rem 1rem;
}

#marketplace .local-commerce-shell > * {
  grid-column: 1 / -1;
}

#marketplace .local-commerce-topbar {
  order: 1;
  min-height: 132px;
  align-items: center;
  padding: 0.35rem 0;
}

#marketplace .local-commerce-topbar h2 {
  max-width: 22ch;
  font-size: clamp(2.2rem, 3.5vw, 3.05rem);
  line-height: 1;
}

#marketplace .local-commerce-topbar p {
  max-width: 68ch;
}

#marketplace .local-commerce-service-tabs {
  grid-column: 1;
  order: 2;
  width: 100%;
  max-width: none;
}

#marketplace .local-commerce-location {
  grid-column: 2;
  order: 2;
  width: 100%;
  max-width: none;
}

#marketplace .local-commerce-search {
  order: 3;
}

#marketplace .marketplace-popular-section {
  order: 4;
  padding: 0.9rem;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(20, 42, 27, 0.055);
}

#marketplace .marketplace-category-grid {
  order: 5;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.35rem;
  scrollbar-width: thin;
}

#marketplace .marketplace-category-grid button {
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 50px;
  padding: 0.62rem 0.78rem;
  border-radius: 11px;
}

#marketplace .marketplace-seller-types {
  order: 6;
}

#marketplace .marketplace-discovery-modes {
  order: 7;
}

#marketplace .marketplace-territory-strip {
  order: 8;
}

#marketplace .local-commerce-feature {
  order: 9;
  min-height: 380px;
}

#marketplace .marketplace-momentum {
  order: 10;
}

#marketplace .local-commerce-shell > .local-commerce-section-head {
  order: 11;
}

#marketplace .marketplace-disclaimer {
  order: 12;
}

#marketplace .marketplace-grid {
  order: 13;
}

#marketplace .local-commerce-business {
  order: 14;
}

#marketplace .local-commerce-trust {
  order: 15;
}

.member-preview-avatar img,
.profile-avatar.has-photo,
.person-avatar img,
.post-header .avatar.has-photo,
.story-rail img {
  object-position: center 28%;
}

@media (max-width: 980px) {
  #marketplace .local-commerce-shell {
    grid-template-columns: 1fr;
  }

  #marketplace .local-commerce-service-tabs,
  #marketplace .local-commerce-location {
    grid-column: 1;
  }

  #marketplace .local-commerce-location {
    order: 3;
  }

  #marketplace .local-commerce-search {
    order: 4;
  }

  #marketplace .marketplace-popular-section {
    order: 5;
  }

  #marketplace .marketplace-category-grid {
    order: 6;
  }

  #marketplace .marketplace-seller-types {
    order: 7;
  }

  #marketplace .marketplace-discovery-modes {
    order: 8;
  }

  #marketplace .marketplace-territory-strip {
    order: 9;
  }

  #marketplace .local-commerce-feature {
    order: 10;
  }
}

@media (max-width: 720px) {
  body[data-workspace="member"] #deliverySpotlight {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-workspace="member"] #deliverySpotlight .delivery-spotlight-media {
    min-height: 158px;
  }

  .quick-media-actions {
    display: none;
  }

  #marketplace .local-commerce-topbar {
    display: grid;
    min-height: 0;
    padding-top: 0.6rem;
  }

  #marketplace .local-commerce-topbar h2 {
    max-width: 14ch;
    font-size: 2.2rem;
  }

  #marketplace .local-commerce-topbar .secondary-button {
    width: 100%;
  }

  #marketplace .marketplace-popular-section {
    padding: 0.75rem;
  }
}

@media (min-width: 721px) {
  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools {
    display: grid;
    grid-template-columns: 150px auto minmax(20px, 1fr) auto auto;
    gap: 0.42rem;
    align-items: center;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools label {
    display: block;
    min-width: 0;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools label > span {
    display: none;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools select {
    width: 100%;
    min-height: 38px;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .char-counter {
    justify-self: end;
    margin: 0;
    padding-inline: 0.35rem;
    font-size: 0.72rem;
  }

  body[data-workspace="member"] #deliverySpotlight .delivery-proof-row {
    margin-top: 0.55rem;
  }

  body[data-workspace="member"] #deliverySpotlight .delivery-proof-row span:nth-child(3) {
    display: none;
  }

  body[data-workspace="member"] #deliverySpotlight .delivery-spotlight-actions {
    margin-top: 0.65rem;
  }
}

@media (max-width: 720px) {
  body[data-workspace="member"] #deliverySpotlight .delivery-spotlight-media,
  body[data-workspace="member"] #deliverySpotlight .delivery-secondary-action {
    display: none;
  }

  body[data-workspace="member"] #deliverySpotlight .delivery-primary-action {
    width: 100%;
    justify-content: center;
  }
}

/* Visual audit v108: authentic local media and a genuinely social first fold */
body[data-workspace="member"][data-section="feed"] #feed {
  padding-top: 0.72rem;
}

body[data-workspace="member"] .feed-hero {
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-height: 92px;
  padding: 0.82rem 1rem;
}

body[data-workspace="member"] .feed-hero h2 {
  font-size: clamp(1.28rem, 1.8vw, 1.7rem);
}

body[data-workspace="member"] .feed-hero p {
  max-width: 64ch;
  font-size: 0.82rem;
  line-height: 1.35;
}

body[data-workspace="member"] .feed-shell {
  margin-top: 0.72rem;
}

body[data-workspace="member"] .feed-main {
  gap: 0.64rem;
}

body[data-workspace="member"] .story-rail {
  gap: 0.5rem;
}

body[data-workspace="member"] .story-rail button {
  min-height: 76px;
  padding: 0.58rem 0.5rem;
  border-radius: 14px;
}

body[data-workspace="member"] .story-rail button > span,
body[data-workspace="member"] .story-rail .story-avatar {
  width: 38px;
  height: 38px;
}

body[data-workspace="member"] .story-rail strong {
  font-size: 0.74rem;
}

body[data-workspace="member"] .story-rail small {
  font-size: 0.64rem;
}

body[data-workspace="member"] .quick-composer:not(.is-compact) {
  min-height: 124px;
  padding: 0.72rem;
}

body[data-workspace="member"] .quick-composer:not(.is-compact) textarea {
  min-height: 54px;
  padding: 0.68rem 0.82rem;
}

body[data-workspace="member"] #deliverySpotlight {
  grid-template-columns: minmax(0, 1fr) 164px;
  min-height: 158px;
  padding: 0.82rem;
}

body[data-workspace="member"] #deliverySpotlight h3 {
  max-width: 28ch;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.04;
}

body[data-workspace="member"] #deliverySpotlight p {
  max-width: 66ch;
  margin-top: 0.3rem;
  line-height: 1.3;
}

body[data-workspace="member"] #deliverySpotlight .delivery-proof-row,
body[data-workspace="member"] #deliverySpotlight .delivery-spotlight-actions {
  margin-top: 0.42rem;
}

body[data-workspace="member"] #deliverySpotlight .delivery-spotlight-media {
  min-height: 132px;
  border-radius: 13px;
}

body[data-workspace="member"] .feed-format-tabs {
  gap: 0.42rem;
}

body[data-workspace="member"] .feed-format-tabs button {
  min-height: 42px;
  padding: 0.52rem 0.66rem;
  border-radius: 11px;
}

body[data-workspace="member"] .post-media-image,
body[data-workspace="member"] .post-media-video {
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

body[data-workspace="member"] .post-media-image img {
  min-height: 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

body[data-workspace="member"] .post-media-image figcaption {
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.6rem;
}

@media (min-width: 721px) {
  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools {
    display: flex;
    gap: 0.38rem;
    align-items: center;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools label {
    flex: 0 0 142px;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-media-actions {
    flex: 1 1 auto;
    min-width: 0;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-media-actions button {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    padding-inline: 0.46rem;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .char-counter {
    flex: 0 0 46px;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools > .secondary-button {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools > .secondary-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body[data-workspace="member"] .quick-composer:not(.is-compact) .quick-compose-tools > .primary-button {
    flex: 0 0 104px;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  body[data-workspace="member"][data-section="feed"] #feed {
    padding-top: 0.5rem;
  }

  body[data-workspace="member"] .feed-hero {
    min-height: 0;
    padding: 0.72rem;
  }

  body[data-workspace="member"] .feed-hero p,
  body[data-workspace="member"] .feed-hero-visual,
  body[data-workspace="member"] .feed-hero-actions .secondary-button {
    display: none;
  }

  body[data-workspace="member"] .feed-hero h2 {
    font-size: 1.28rem;
  }

  body[data-workspace="member"] .feed-hero-actions .primary-button {
    min-width: 42px;
    padding-inline: 0.72rem;
  }

  body[data-workspace="member"] .story-rail button {
    min-height: 70px;
  }

  body[data-workspace="member"] #deliverySpotlight {
    min-height: 0;
    padding: 0.76rem;
  }

  body[data-workspace="member"] #deliverySpotlight h3 {
    max-width: none;
    font-size: 1.25rem;
  }

  body[data-workspace="member"] #deliverySpotlight p,
  body[data-workspace="member"] #deliverySpotlight .delivery-proof-row {
    display: none;
  }

  body[data-workspace="member"] .post-card {
    padding: 0.78rem;
  }

  body[data-workspace="member"] .post-media-image,
  body[data-workspace="member"] .post-media-image img,
  body[data-workspace="member"] .post-media-video {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* Academy v109: learning home, editorial covers and faster course discovery */
body[data-workspace="member"][data-section="academia"] #academia {
  width: min(100%, 1180px);
  margin-inline: auto;
  padding-top: 0.72rem;
}

body[data-workspace="member"] .academy-hero {
  min-height: 286px;
  margin-top: 0;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
  gap: 1rem;
  padding: 1.15rem;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 43, 27, 0.075);
}

body[data-workspace="member"] .academy-hero-copy h2 {
  max-width: 17ch;
  margin-top: 0.28rem;
  font-size: clamp(2rem, 3.2vw, 2.65rem);
  line-height: 1.02;
}

body[data-workspace="member"] .academy-hero-copy > p {
  margin-top: 0.58rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

body[data-workspace="member"] .academy-hero-actions {
  margin-top: 0.72rem;
}

body[data-workspace="member"] .academy-proof {
  margin-top: 0.62rem;
}

body[data-workspace="member"] .academy-hero-media {
  min-height: 246px;
  border-radius: 16px;
  background: #15271d;
  box-shadow: 0 16px 34px rgba(12, 43, 27, 0.18);
}

body[data-workspace="member"] .academy-hero-media img {
  object-position: center 42%;
  opacity: 1;
}

body[data-workspace="member"] .academy-learning-band {
  margin: 0.7rem auto 0;
}

body[data-workspace="member"] .academy-continue,
body[data-workspace="member"] .academy-membership {
  min-height: 132px;
  padding: 0.85rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 43, 27, 0.05);
}

body[data-workspace="member"] .academy-continue {
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 0.75rem;
}

body[data-workspace="member"] .academy-continue-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
}

body[data-workspace="member"] .academy-continue-copy h3,
body[data-workspace="member"] .academy-membership h3 {
  font-size: 1rem;
}

body[data-workspace="member"] .academy-continue-copy p,
body[data-workspace="member"] .academy-membership p {
  font-size: 0.8rem;
  line-height: 1.35;
}

body[data-workspace="member"] .academy-metrics {
  margin: 0.65rem auto;
  gap: 0.55rem;
}

body[data-workspace="member"] .academy-metrics article {
  min-height: 68px;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 0.62rem;
  border-radius: 14px;
  box-shadow: none;
}

body[data-workspace="member"] .academy-metrics article > span {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

body[data-workspace="member"] .academy-metrics strong {
  font-size: 1.1rem;
}

body[data-workspace="member"] .academy-metrics small {
  font-size: 0.7rem;
}

body[data-workspace="member"] .academy-toolbar {
  margin-top: 0.85rem;
}

body[data-workspace="member"] .academy-category-list {
  margin-bottom: 0.82rem;
}

body[data-workspace="member"] .academy-section-heading {
  margin-top: 0.9rem;
}

body[data-workspace="member"] .academy-section-heading h3 {
  font-size: 1.45rem;
}

body[data-workspace="member"] .academy-track-card {
  min-height: 154px;
  grid-template-columns: 42px minmax(0, 1fr) 16px;
  padding: 0.72rem;
  border-radius: 16px;
}

body[data-workspace="member"] .academy-track-card > span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

body[data-workspace="member"] .academy-track-card p {
  font-size: 0.75rem;
}

body[data-workspace="member"] .academy-course-card {
  grid-template-rows: 172px minmax(0, 1fr);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(12, 41, 25, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body[data-workspace="member"] .academy-course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(12, 41, 25, 0.12);
}

body[data-workspace="member"] .academy-course-visual {
  min-height: 172px;
  color: #ffffff;
  background: #173d2a;
}

body[data-workspace="member"] .academy-course-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

body[data-workspace="member"] .academy-course-card:hover .academy-course-visual > img {
  transform: scale(1.035);
}

body[data-workspace="member"] .academy-course-visual::after {
  z-index: 1;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(5, 18, 11, 0.08) 28%, rgba(5, 18, 11, 0.84) 100%);
}

body[data-workspace="member"] .academy-course-visual b {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

body[data-workspace="member"] .academy-course-visual small {
  color: #ffffff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

body[data-workspace="member"] .academy-course-body {
  padding: 0.82rem;
}

body[data-workspace="member"] .academy-course-body > p {
  min-height: 52px;
  font-size: 0.78rem;
}

.academy-modal-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 210px;
  align-content: end;
}

.academy-modal-visual > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.academy-modal-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 20, 11, 0.05), rgba(4, 20, 11, 0.88));
}

.academy-player-video img {
  object-position: center;
}

@media (max-width: 920px) {
  body[data-workspace="member"] .academy-hero {
    grid-template-columns: 1fr 310px;
  }

  body[data-workspace="member"] .academy-track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-workspace="member"][data-section="academia"] #academia {
    padding-top: 0.5rem;
  }

  body[data-workspace="member"] .academy-hero {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.82rem;
    border-radius: 16px;
  }

  body[data-workspace="member"] .academy-hero-copy h2 {
    max-width: none;
    font-size: 1.8rem;
  }

  body[data-workspace="member"] .academy-hero-copy > p {
    font-size: 0.84rem;
  }

  body[data-workspace="member"] .academy-proof {
    display: none;
  }

  body[data-workspace="member"] .academy-hero-media {
    min-height: 180px;
  }

  body[data-workspace="member"] .academy-learning-band {
    grid-template-columns: 1fr;
  }

  body[data-workspace="member"] .academy-continue {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  body[data-workspace="member"] .academy-continue > button {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  body[data-workspace="member"] .academy-membership {
    display: none;
  }

  body[data-workspace="member"] .academy-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-workspace="member"] .academy-toolbar {
    grid-template-columns: 1fr;
  }

  body[data-workspace="member"] .academy-track-grid {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  body[data-workspace="member"] .academy-track-card {
    flex: 0 0 250px;
  }

  body[data-workspace="member"] .academy-course-grid {
    grid-template-columns: 1fr;
  }

  body[data-workspace="member"] .academy-course-card {
    grid-template-rows: 184px minmax(0, 1fr);
  }
}
