:root {
  color-scheme: light;
  --ink: #14191f;
  --soft-ink: #46545f;
  --muted: #75818b;
  --line: #dce4e8;
  --line-strong: #c5d0d6;
  --panel: #ffffff;
  --page: #f5f7f6;
  --brand: #0f6b64;
  --brand-strong: #08494b;
  --brand-soft: #e7f4f1;
  --coral: #bf5139;
  --amber: #b7791f;
  --green: #2f7d4c;
  --blue: #315c8f;
  --admin-bg: #f4f6f8;
  --admin-sidebar: #171a1e;
  --admin-sidebar-soft: #22272d;
  --shadow: 0 18px 44px rgba(29, 39, 44, 0.10);
  --shadow-soft: 0 10px 28px rgba(29, 39, 44, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(15, 107, 100, 0.10), transparent 34%),
    linear-gradient(310deg, rgba(191, 81, 57, 0.08), transparent 28%),
    var(--page);
  color: var(--ink);
}

body.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #f7faf9 0, #eef2f4 420px, #f4f6f8 100%),
    var(--admin-bg);
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 64px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.hidden {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(16px, 4vw, 52px);
  background: rgba(250, 252, 251, 0.92);
  border-bottom: 1px solid rgba(216, 224, 229, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: block;
  border-radius: 13px;
  box-shadow: 0 12px 24px rgba(7, 63, 67, 0.20);
}

.brand strong,
.brand small,
.admin-brand strong,
.admin-brand small {
  display: block;
}

.brand small,
.admin-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a,
.icon-btn,
.secondary-btn,
.social-btn,
.wallet-lookup button,
.action-row button,
.mini-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 40px;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.topnav a:hover,
.icon-btn:hover,
.secondary-btn:hover,
.social-btn:hover,
.wallet-lookup button:hover,
.action-row button:hover,
.mini-action:hover {
  border-color: rgba(15, 107, 100, 0.55);
  box-shadow: 0 10px 24px rgba(15, 107, 100, 0.10);
  transform: translateY(-1px);
}

.app-home {
  display: grid;
  gap: 22px;
  width: min(1220px, calc(100vw - 32px));
  margin: 30px auto 56px;
}

body.user-page {
  background:
    linear-gradient(180deg, #f8fbfa 0%, #eef4f2 52%, #f7f5f1 100%);
}

.user-topbar {
  padding-block: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.view-tabs {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 4px;
}

.view-tabs a {
  border: 0;
  background: transparent;
  color: var(--soft-ink);
  min-width: 92px;
  text-align: center;
  font-weight: 900;
}

.view-tabs a.is-active {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 8px 20px rgba(28, 45, 50, 0.08);
}

.mobile-nav {
  display: none;
}

.modern-app {
  width: min(1240px, calc(100vw - 32px));
  margin: 30px auto 56px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 22px;
  width: min(1240px, calc(100vw - 32px));
  margin: 0 auto 30px;
  border-top: 1px solid var(--line);
  padding: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  display: grid;
  gap: 4px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.footer-brand span,
.site-footer p {
  margin: 0;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-footer nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.site-footer p {
  justify-self: end;
  max-width: 300px;
  text-align: right;
  font-weight: 700;
}

.site-footer nav a:hover,
.policy-content a:hover {
  color: var(--brand);
  border-color: rgba(0, 104, 103, 0.32);
}

.policy-page {
  min-height: 100vh;
  background: #f8fbfa;
}

.policy-topbar .secondary-btn {
  flex: 0 0 auto;
}

.policy-content {
  display: grid;
  gap: 28px;
  width: min(800px, calc(100vw - 32px));
  margin: 54px auto 68px;
}

.policy-content h1 {
  font-size: 54px;
}

.policy-content section {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.policy-content section p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.65;
}

.policy-content section a {
  color: var(--brand-strong);
  text-decoration: underline;
}

.app-view {
  display: none;
  gap: 22px;
}

.app-view.is-active {
  display: grid;
}

.feed-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0 18px;
}

.feed-launch h1 {
  max-width: 760px;
  font-size: 48px;
  line-height: 1;
}

.view-header h1 {
  max-width: 780px;
}

.feed-launch .hero-copy {
  max-width: 780px;
  margin: 12px 0 0;
}

.feed-launch-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.feed-launch-actions span {
  border: 1px solid rgba(15, 107, 100, 0.22);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
}

.feed-control-bar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 150px 150px 180px auto;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.feed-search input {
  min-height: 48px;
  font-size: 17px;
}

.discovery-tools {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.filter-chip-row {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--soft-ink);
  padding: 8px 14px;
  font-weight: 900;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: rgba(15, 107, 100, 0.30);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.sort-control {
  flex: 0 0 168px;
}

.results-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.topic-collections {
  display: grid;
  gap: 30px;
}

.topic-collection {
  display: grid;
  gap: 14px;
}

.topic-collection-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}

.topic-collection-head h2 {
  font-size: 27px;
  margin-bottom: 5px;
}

.topic-collection-head p:not(.eyebrow) {
  margin: 0;
  color: var(--soft-ink);
  font-size: 14px;
}

.topic-collection-head > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.topic-collections .empty-state {
  grid-column: 1 / -1;
}

.data-credit {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.data-credit a {
  color: var(--brand-strong);
}

.topic-card {
  display: grid;
  gap: 12px;
  min-height: 236px;
  border: 1px solid rgba(216, 224, 229, 0.95);
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 244, 0.94)),
    #fff;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  padding: 18px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.topic-card:hover {
  border-color: rgba(15, 107, 100, 0.38);
  box-shadow: 0 16px 34px rgba(15, 107, 100, 0.12);
  transform: translateY(-2px);
}

.topic-card-media {
  width: 100%;
  height: 154px;
  border-radius: 6px;
  background: #f4f7f6;
  object-fit: contain;
}

.topic-card-meta,
.topic-card-foot {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topic-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-provider-badge {
  border-radius: 999px;
  background: #e6f4f2;
  color: var(--brand-strong);
  padding: 5px 7px;
  font-style: normal;
  letter-spacing: 0;
}

.topic-provider-upcoming {
  background: #edf3fb;
  color: #21486f;
}

.topic-card strong {
  display: block;
  font-size: 27px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.topic-card p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.45;
}

.topic-card-stats,
.topic-card-foot,
.topic-card-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-card-stats span {
  border: 1px solid rgba(15, 107, 100, 0.16);
  border-radius: 999px;
  background: #f6faf9;
  color: var(--brand-strong);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.topic-card-tags span {
  border-radius: 999px;
  background: #f6eee9;
  color: #74402b;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
}

.topic-detail-head {
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.topic-detail-head .mini-action {
  width: fit-content;
}

.topic-detail-head h1 {
  max-width: 860px;
  font-size: 54px;
}

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

.topic-lane {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.topic-lane > span {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topic-chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.topic-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  min-height: 40px;
  white-space: nowrap;
}

.topic-chip:hover {
  border-color: rgba(15, 107, 100, 0.46);
  box-shadow: 0 10px 22px rgba(15, 107, 100, 0.09);
}

.topic-chip span {
  font-weight: 900;
}

.topic-chip small {
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 900;
}

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

.feed-controls {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.feed-surface {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.feed-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.view-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.compose-nav {
  display: flex;
  align-items: center;
}

#review .view-header h1 {
  max-width: 640px;
  font-size: 38px;
  line-height: 1.04;
}

#new-subject .view-header h1 {
  max-width: 680px;
  font-size: 40px;
  line-height: 1.04;
}

.new-subject-layout {
  width: min(680px, 100%);
}

.subject-setup-panel {
  padding: 22px;
}

.selected-subject {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 107, 100, 0.22);
  border-radius: 8px;
  background: var(--brand-soft);
  padding: 12px 14px;
}

.selected-subject div {
  display: grid;
  gap: 3px;
}

.selected-subject span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.selected-subject strong {
  color: var(--ink);
  font-size: 18px;
}

.selected-subject small {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 700;
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--brand-strong);
  padding: 0;
  font-size: inherit;
  font-weight: 900;
  text-decoration: underline;
}

.text-action:hover {
  color: var(--brand);
}

.review-compose-layout,
.wallet-layout,
.account-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.review-compose-layout {
  width: min(720px, 100%);
}

.wallet-layout,
.account-layout {
  grid-template-columns: minmax(0, 620px) minmax(280px, 1fr);
}

.account-card span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.account-card strong {
  font-size: 30px;
  line-height: 1.08;
}

.post-panel {
  max-width: none;
}

.review-compose-layout .post-panel {
  padding: 20px;
}

.review-core-fields {
  display: grid;
  gap: 14px;
}

.review-rating-row {
  max-width: 220px;
}

.review-message-field textarea {
  min-height: 126px;
}

.review-extras {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.review-extras summary {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  padding: 14px;
  color: var(--soft-ink);
  font-weight: 900;
}

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

.review-extras summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.review-extras[open] summary::after {
  content: "-";
}

.review-extras summary span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.review-extras-body {
  border-top: 1px solid var(--line);
  padding: 14px;
}

.commerce-extras .tag-builder {
  border: 0;
  background: transparent;
  padding: 0;
}

.publish-review-btn {
  min-height: 52px;
}

.account-card {
  display: grid;
  gap: 16px;
  align-content: end;
  border-radius: 8px;
  background:
    linear-gradient(155deg, rgba(8, 73, 75, 0.98), rgba(49, 92, 143, 0.90)),
    var(--brand-strong);
  color: white;
  box-shadow: var(--shadow);
  min-height: 320px;
  padding: 24px;
}

.user-page .panel {
  background: rgba(255, 255, 255, 0.97);
}

.user-page .review-card {
  box-shadow: 0 14px 36px rgba(24, 34, 38, 0.10);
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
  min-height: 360px;
}

.landing-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-width: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-panel {
  display: grid;
  align-content: space-between;
  gap: 20px;
  border: 1px solid rgba(15, 107, 100, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(15, 107, 100, 0.94), rgba(49, 92, 143, 0.82)),
    var(--brand);
  color: white;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-panel-top {
  display: grid;
  gap: 14px;
}

.hero-panel-top span {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 8px 10px;
  color: #f5fcfb;
  font-weight: 900;
}

.hero-panel-top strong {
  max-width: 280px;
  font-size: 34px;
  line-height: 1.05;
}

.hero-signal-grid,
.admin-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-signal-grid span,
.admin-health-grid span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  padding: 12px;
}

.hero-signal-grid strong,
.hero-signal-grid small,
.admin-health-grid strong,
.admin-health-grid small {
  display: block;
}

.hero-signal-grid strong,
.admin-health-grid strong {
  font-size: 18px;
}

.hero-signal-grid small,
.admin-health-grid small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

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

.compact-head {
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card,
.panel,
.review-card,
.ad-card,
.feed-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(216, 224, 229, 0.95);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.stat-card {
  padding: 17px;
  min-height: 96px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 27px;
  line-height: 1.08;
}

.feed-panel {
  padding: 20px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 170px 170px;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
  min-height: 42px;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 107, 100, 0.12);
}

.feed {
  display: grid;
  gap: 16px;
}

.review-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  overflow: hidden;
}

.media-box {
  position: relative;
  min-height: 270px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.35), transparent 20%),
    linear-gradient(135deg, #0f6b64, #315c8f 58%, #bf5139);
  color: white;
  overflow: hidden;
}

.media-box img,
.media-box video {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  display: block;
}

.media-fallback {
  display: grid;
  align-content: space-between;
  min-height: 270px;
  height: 100%;
  padding: 18px;
}

.media-fallback strong {
  font-size: 40px;
  line-height: 1;
}

.media-fallback span {
  align-self: end;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  padding: 8px 10px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.review-body {
  padding: 22px;
  min-width: 0;
}

.review-meta,
.tag-row,
.metric-row,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.review-meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.creator-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.review-meta span,
.tag-row span {
  border-radius: 999px;
  background: #eef4f2;
  color: #285a55;
  padding: 6px 9px;
  font-weight: 900;
}

.review-body h2 {
  font-size: 27px;
  line-height: 1.12;
  margin-bottom: 8px;
}

.subject-line {
  margin-bottom: 12px;
  color: var(--soft-ink);
  font-weight: 900;
}

.review-text {
  color: #33414a;
  line-height: 1.55;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.tag-row {
  margin-bottom: 14px;
}

.tag-row span {
  background: #f6eee9;
  color: #74402b;
}

.tag-builder {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.product-list,
.product-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 9px;
}

.product-draft button,
.product-chip {
  border: 1px solid rgba(49, 92, 143, 0.28);
  border-radius: 999px;
  background: #edf3fb;
  color: #21486f;
  padding: 7px 10px;
  font-weight: 900;
}

.product-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.product-icon {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(49, 92, 143, 0.14);
  color: #21486f;
  font-size: 11px;
  font-weight: 900;
}

.product-pin {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid white;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 11px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.metric-row {
  margin-bottom: 14px;
}

.metric {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 7px 9px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 900;
}

.metric strong {
  color: var(--ink);
}

.action-row button {
  font-weight: 900;
}

.action-row button[data-type="like"] {
  border-color: rgba(15, 107, 100, 0.42);
}

.action-row button[data-type="tap"] {
  border-color: rgba(191, 81, 57, 0.42);
}

.comment-box {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.comment-list {
  display: grid;
  gap: 8px;
}

.comment-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 8px 10px;
}

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

.comment-item span {
  margin-top: 2px;
  color: var(--soft-ink);
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ad-card {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(15, 107, 100, 0.10), rgba(183, 121, 31, 0.12)),
    #fff;
}

.ad-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.ad-card h3 {
  margin: 0 0 4px;
}

.ad-card p {
  margin: 0;
  color: var(--soft-ink);
}

.google-ad-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 124px;
  background: #fff;
}

.ad-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.google-ad-slot {
  width: 100%;
  min-height: 96px;
}

.panel {
  padding: 18px;
}

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

.panel-head.tight {
  margin-bottom: 10px;
}

.panel-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form.compact {
  margin-top: 14px;
}

.ad-network-settings {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(15, 107, 100, 0.18);
  border-radius: 8px;
  background: #f5faf8;
  padding: 14px;
}

.ad-network-settings h3 {
  margin: 0;
}

.ad-network-settings a {
  color: var(--brand);
  text-decoration: underline;
}

.toggle-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
}

.toggle-field input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.creator-console {
  display: grid;
  grid-template-columns: 1fr 1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.post-panel {
  max-width: 920px;
}

.subject-picker {
  position: relative;
}

.subject-search-wrap {
  position: relative;
}

.subject-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 12;
  display: grid;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 6px;
  box-shadow: var(--shadow);
}

.subject-suggestion {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 10px 11px;
  text-align: left;
}

.subject-suggestion:hover,
.subject-suggestion:focus {
  background: var(--brand-soft);
  outline: none;
}

.subject-suggestion span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.subject-suggestion.create-new {
  border-top: 1px solid var(--line);
  border-radius: 0 0 6px 6px;
  color: var(--brand-strong);
}

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

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 0;
  min-height: 44px;
  padding: 11px 14px;
  font-weight: 900;
}

.primary-btn {
  background: var(--brand-strong);
  color: white;
}

.secondary-btn {
  border: 1px solid rgba(15, 107, 100, 0.38);
  background: #eaf4f1;
  color: #073f43;
}

.form-note,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wallet-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.wallet-private-note {
  border: 1px solid rgba(15, 107, 100, 0.16);
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  padding: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.wallet-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
}

.wallet-balance {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.wallet-balance strong {
  font-size: 30px;
}

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

.wallet-mini-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: white;
  color: var(--soft-ink);
  font-size: 13px;
}

.wallet-mini-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 18px;
}

.rule-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--soft-ink);
  line-height: 1.45;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--soft-ink);
  padding: 28px;
  text-align: center;
}

.admin-layout {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(15, 107, 100, 0.18), transparent 38%),
    linear-gradient(145deg, #11171b, #1c2027 62%, #15181d);
  color: white;
  box-shadow: 12px 0 34px rgba(19, 27, 32, 0.12);
}

.admin-sidebar-inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px 14px;
}

.admin-brand {
  min-width: 0;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.admin-brand strong {
  font-size: 18px;
}

.admin-brand small {
  color: rgba(255, 255, 255, 0.62);
}

.admin-nav {
  display: grid;
  align-content: start;
  gap: 6px;
}

.admin-nav-label {
  display: block;
  margin: 2px 6px 6px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.76);
  padding: 10px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.admin-nav a.is-active {
  background:
    linear-gradient(90deg, rgba(15, 107, 100, 0.72), rgba(49, 92, 143, 0.48)),
    rgba(255, 255, 255, 0.10);
}

.admin-nav strong,
.admin-nav small {
  display: block;
}

.admin-nav strong {
  font-size: 14px;
}

.admin-nav small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  line-height: 1.3;
}

.nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 5px;
  border-radius: 999px;
  background: #f3d480;
  color: #1b252a;
  padding: 0 5px;
  font-size: 11px;
}

.nav-token {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 900;
}

.admin-sidebar-card {
  align-self: end;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 14px;
}

.admin-sidebar-card span,
.admin-sidebar-card strong,
.admin-sidebar-card small {
  display: block;
}

.admin-sidebar-card span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-sidebar-card strong {
  margin-top: 4px;
}

.admin-sidebar-card small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.admin-content {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 22px 28px 42px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -22px -28px 0;
  padding: 18px 28px;
  background: rgba(247, 250, 249, 0.92);
  border-bottom: 1px solid rgba(216, 224, 229, 0.9);
  backdrop-filter: blur(16px);
}

.admin-topbar h1 {
  font-size: 36px;
  line-height: 1.05;
}

.admin-page-subtitle,
.panel-head p {
  margin: 6px 0 0;
  color: var(--soft-ink);
  line-height: 1.45;
}

.panel-head p {
  font-size: 13px;
}

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

.admin-session-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(15, 107, 100, 0.22);
  border-radius: 8px;
  background: #edf6f3;
  color: var(--brand-strong);
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.admin-commandbar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 14px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow-soft);
}

.admin-search-field input {
  min-height: 44px;
}

.admin-queue-strip {
  display: flex;
  gap: 8px;
}

.admin-queue-strip span {
  display: grid;
  gap: 3px;
  min-width: 104px;
  min-height: 60px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
  padding: 8px 10px;
}

.admin-queue-strip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-queue-strip strong {
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}

.admin-updated {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-view {
  display: none;
  gap: 18px;
}

.admin-view.is-active {
  display: grid;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(15, 107, 100, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 73, 75, 0.98), rgba(27, 42, 59, 0.94) 58%, rgba(191, 81, 57, 0.82)),
    var(--brand);
  color: white;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.admin-hero h2 {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 34px;
}

.admin-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.admin-health-grid span {
  min-height: 86px;
}

.admin-login-panel {
  border-left: 4px solid var(--brand);
  background:
    linear-gradient(90deg, rgba(15, 107, 100, 0.06), transparent 42%),
    rgba(255, 255, 255, 0.96);
}

.admin-login-panel.is-unlocked .two-col,
.admin-login-panel.is-unlocked .primary-btn {
  display: none;
}

.admin-login-panel.is-unlocked {
  padding: 14px 18px;
}

.admin-login-panel.is-unlocked .panel-head {
  margin-bottom: 10px;
}

.admin-auth-actions {
  grid-template-columns: 190px 190px;
  justify-content: start;
}

.admin-stats {
  margin: 0;
}

.admin-page .stat-card {
  border-color: rgba(197, 208, 214, 0.9);
  background:
    linear-gradient(180deg, #ffffff, #f8faf9);
}

.admin-overview-grid,
.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
}

.options-control-grid {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.catalog-import-panel {
  align-self: stretch;
}

.admin-overview-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.admin-command-card {
  min-height: 100%;
}

.admin-checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-checklist li,
.admin-note-grid span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
  color: var(--soft-ink);
}

.admin-checklist strong,
.admin-checklist span,
.admin-note-grid strong {
  display: block;
}

.admin-checklist span {
  margin-top: 3px;
  font-size: 13px;
}

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

.admin-note-grid span {
  line-height: 1.45;
}

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

.admin-insight-card,
.admin-discovery-column,
.admin-activity-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 12px;
}

.admin-insight-card.good {
  border-color: rgba(47, 125, 76, 0.22);
  background: #f3fbf6;
}

.admin-insight-card.warning {
  border-color: rgba(183, 121, 31, 0.28);
  background: #fff8ea;
}

.admin-insight-card.danger {
  border-color: rgba(191, 81, 57, 0.28);
  background: #fff3ef;
}

.admin-insight-card span,
.admin-insight-card strong,
.admin-insight-card small,
.admin-discovery-column strong,
.admin-discovery-column span,
.admin-discovery-column small,
.admin-activity-item span,
.admin-activity-item strong,
.admin-activity-item small,
.admin-activity-item time {
  display: block;
}

.admin-insight-card span,
.admin-activity-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-insight-card strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: 22px;
}

.admin-insight-card small,
.admin-discovery-column small,
.admin-activity-item small,
.admin-activity-item time {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.admin-discovery-column {
  display: grid;
  gap: 8px;
}

.admin-discovery-column > strong {
  color: var(--brand-strong);
}

.admin-discovery-column span {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.admin-activity-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.backup-card {
  align-self: stretch;
}

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

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

.ops-grid > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  padding: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

td {
  color: var(--soft-ink);
}

td strong {
  color: var(--ink);
}

tbody tr:hover td {
  background: #fbfdfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef4f2;
  color: #285a55;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.rejected {
  background: #f8e9e4;
  color: #8c2e22;
}

.status-pill.active {
  background: #e6f4ec;
  color: #1d5533;
}

.status-pill.held,
.status-pill.pending,
.status-pill.paused {
  background: #fbf0d4;
  color: #78500d;
}

.color-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-right: 7px;
  vertical-align: text-bottom;
}

.mini-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.mini-action {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .landing-hero,
  .admin-hero,
  .creator-console,
  .review-compose-layout,
  .wallet-layout,
  .account-layout,
  .feed-launch,
  .feed-control-bar,
  .admin-commandbar,
  .topic-cards,
  .admin-overview-grid,
  .admin-section-grid,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 260px;
  }
}

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

  .admin-sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto;
  }

  .admin-sidebar-inner {
    height: auto;
  }

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

  .admin-sidebar-card {
    align-self: auto;
  }

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

@media (max-width: 780px) {
  .topbar,
  .section-head,
  .ad-card,
  .admin-topbar,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

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

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer p {
    justify-self: stretch;
    text-align: left;
  }

  .topbar {
    position: static;
  }

  .topnav,
  .hero-actions,
  .admin-top-actions {
    width: 100%;
  }

  .topnav a,
  .hero-actions a,
  .admin-top-actions a,
  .admin-top-actions button {
    flex: 1;
    text-align: center;
  }

  .user-topbar .topnav {
    display: none;
  }

  body.user-page {
    padding-bottom: 72px;
  }

  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    padding: 7px 8px max(7px, env(safe-area-inset-bottom));
    box-shadow: 0 -10px 28px rgba(20, 28, 32, 0.09);
  }

  .mobile-nav a {
    border-radius: 8px;
    color: var(--soft-ink);
    padding: 12px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-nav a.is-active {
    background: var(--brand-soft);
    color: var(--brand-strong);
  }

  .app-home,
  .modern-app,
  .admin-content {
    width: min(100vw - 20px, 680px);
    margin: 18px auto 44px;
    padding: 0;
  }

  .feed-launch-actions {
    justify-items: stretch;
  }

  .discovery-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .topic-collection-head {
    align-items: start;
    flex-direction: column;
  }

  .sort-control {
    flex: auto;
  }

  .admin-queue-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-queue-strip span {
    min-width: 0;
  }

  .admin-topbar {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .stats-grid,
  .toolbar,
  .two-col,
  .auth-actions,
  .admin-auth-actions,
  .comment-form,
  .wallet-mini-grid,
  .hero-signal-grid,
  .admin-health-grid,
  .admin-nav {
    grid-template-columns: 1fr;
  }

  .review-card {
    grid-template-columns: 1fr;
  }

  .media-box,
  .media-fallback,
  .media-box img,
  .media-box video {
    min-height: 210px;
  }

  h1 {
    font-size: 38px;
  }

  .feed-launch h1,
  .topic-detail-head h1,
  .policy-content h1,
  #review .view-header h1,
  #new-subject .view-header h1 {
    font-size: 32px;
  }

  .hero-panel-top strong {
    font-size: 28px;
  }
}
