:root {
  --bg-cream: #fff9ee;
  --bg-sand: #ffe0bb;
  --bg-mint: #d4f5e3;
  --ink-strong: #2a261f;
  --ink-soft: #5f584d;
  --accent-carrot: #f47a2b;
  --accent-grass: #2f9d57;
  --card: #fffdf8;
  --stroke: #f3c893;
  --shadow: 0 18px 35px rgba(86, 54, 24, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Trebuchet MS", sans-serif;
  color: var(--ink-strong);
  background: radial-gradient(circle at 10% 0%, #fffaf1 0%, var(--bg-cream) 45%, var(--bg-sand) 100%);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  margin: 0;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(2px);
}

.bg-shape-a {
  width: 420px;
  height: 420px;
  left: -110px;
  top: -120px;
  border-radius: 44% 56% 48% 52%;
  background: linear-gradient(135deg, var(--bg-mint), #93e7bf);
  opacity: 0.55;
}

.bg-shape-b {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 35%;
  border-radius: 52% 48% 61% 39%;
  background: linear-gradient(120deg, #ffdca4, #ffbf76);
  opacity: 0.5;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  animation: reveal 500ms ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent-grass);
  font-weight: 700;
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 0.95;
}

.subtitle {
  margin: 10px 0 0;
  max-width: 560px;
  color: var(--ink-soft);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 130px));
  gap: 10px;
}

.metric {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.metric-label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.metric-value {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 38px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
}

.panel {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
  animation: reveal 560ms ease-out both;
}

.panel-right {
  animation-delay: 80ms;
}

.stacked-form,
.post-form,
.promo-form,
.health-form {
  display: grid;
  gap: 10px;
  margin: 12px 0 16px;
}

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

input,
textarea,
select {
  width: 100%;
  border: 1px solid #e9c28f;
  background: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink-strong);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, #ff9d3c, var(--accent-carrot));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 130ms ease, filter 130ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.subheader-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fef0df;
  color: #7a4b1c;
  font-size: 0.8rem;
  padding: 4px 9px;
}

.badge-kpi {
  background: #e9f8ef;
  color: #1f7a43;
}

.badge-health[data-state="ok"] {
  background: #e9f8ef;
  color: #1f7a43;
}

.badge-health[data-state="warn"] {
  background: #fff3df;
  color: #7a4b1c;
}

.badge-health[data-state="critical"] {
  background: #ffe9e8;
  color: #b5332f;
}

.badge-market[data-variant="ok"] {
  background: #e9f8ef;
  color: #1f7a43;
}

.badge-market[data-variant="warn"],
.badge-market[data-variant="loading"] {
  background: #fff3df;
  color: #7a4b1c;
}

.badge-market[data-variant="error"] {
  background: #ffe9e8;
  color: #b5332f;
}

.badge-sync[data-variant="ok"] {
  background: #e9f8ef;
  color: #1f7a43;
}

.badge-sync[data-variant="warn"],
.badge-sync[data-variant="loading"] {
  background: #fff3df;
  color: #7a4b1c;
}

.badge-sync[data-variant="error"] {
  background: #ffe9e8;
  color: #b5332f;
}

.badge-partner[data-variant="ok"] {
  background: #e9f8ef;
  color: #1f7a43;
}

.badge-partner[data-variant="warn"],
.badge-partner[data-variant="loading"] {
  background: #fff3df;
  color: #7a4b1c;
}

.badge-partner[data-variant="error"] {
  background: #ffe9e8;
  color: #b5332f;
}

.rabbits {
  display: grid;
  gap: 9px;
}

.org-head {
  margin-top: 14px;
}

.badge-b2b {
  background: #e9efff;
  color: #2d4f97;
}

.org-form {
  margin-top: 8px;
  margin-bottom: 10px;
}

.org-promo-message {
  margin: 2px 0 10px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  min-height: 18px;
}

.org-promo-message.info {
  color: #2d4f97;
}

.org-promo-message.success {
  color: #1f7a43;
}

.org-promo-message.warn {
  color: #9a5c1f;
}

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

.org-card {
  border: 1px solid #d2def8;
  border-radius: 13px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.org-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.org-name {
  margin: 0;
  font-weight: 700;
}

.org-type {
  margin: 0;
  border-radius: 999px;
  background: #edf2ff;
  border: 1px solid #d2def8;
  color: #2d4f97;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.org-meta,
.org-focus,
.org-promo-meta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.org-promo-status {
  font-weight: 700;
}

.org-promo-status[data-status="intent_sent"] {
  color: #2d4f97;
}

.org-promote-btn {
  background: #edf2ff;
  border: 1px solid #d2def8;
  color: #2d4f97;
}

.org-promote-btn:disabled {
  opacity: 0.7;
}

.rabbit-card {
  border: 1px solid #f0cd9f;
  background: #fff;
  border-radius: 13px;
  padding: 10px;
}

.rabbit-name {
  margin: 0;
  font-weight: 700;
}

.rabbit-meta {
  margin: 3px 0 7px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.rabbit-health,
.rabbit-reminder {
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.follow-btn {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f6f3ed;
  color: #5f584d;
}

.rabbit-seller {
  margin: 0 0 8px;
  font-size: 0.74rem;
  font-weight: 700;
}

.rabbit-seller.on {
  color: #1f7a43;
}

.rabbit-seller.off {
  color: #7a4b1c;
}

.rabbit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.seller-toggle-btn {
  padding: 6px 9px;
  border-radius: 8px;
  background: #e9f8ef;
  color: #1f7a43;
  border: 1px solid #b9e4c8;
}

.onboarding-head {
  margin-top: 14px;
}

.onboarding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.onboarding-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  border: 1px solid #f0cd9f;
  border-radius: 11px;
  background: #fff;
  padding: 8px;
}

.onboarding-item.done {
  border-color: #b9e4c8;
  background: #f4fcf7;
}

.onboarding-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #d8ceb9;
  margin-top: 2px;
}

.onboarding-item.done .onboarding-mark {
  border-color: #3c9d61;
  background: #3c9d61;
}

.onboarding-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.onboarding-meta {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.health-head,
.reminders-head {
  margin-top: 14px;
}

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

.health-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.health-card {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 7px;
}

.health-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.health-card-title {
  margin: 0;
  font-weight: 700;
}

.health-chip {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.health-chip.health-stable {
  background: #edf8f0;
  color: #1f7a43;
  border: 1px solid #bbe6cb;
}

.health-chip.health-watch {
  background: #fff3df;
  color: #7a4b1c;
  border: 1px solid #f0cd9f;
}

.health-chip.health-vet {
  background: #ffe9e8;
  color: #b5332f;
  border: 1px solid #f7c0be;
}

.health-chip.health-none {
  background: #f6f3ed;
  color: #5b5348;
  border: 1px solid #e7dbcb;
}

.health-card-meta,
.health-card-reminder {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.health-trend {
  min-height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.health-trend-empty {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.trend-bar {
  width: 8px;
  border-radius: 5px 5px 2px 2px;
  background: #c9d6cb;
}

.trend-bar.health-stable {
  background: #72c58f;
}

.trend-bar.health-watch {
  background: #f0b26d;
}

.trend-bar.health-vet {
  background: #ef8f8b;
}

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

.reminder-item {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.reminder-item.reminder-overdue {
  border-color: #f2aaa7;
  background: #fff4f4;
}

.reminder-item.reminder-soon {
  border-color: #f0cd9f;
  background: #fff8ef;
}

.reminder-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.reminder-time {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.reminder-actions {
  display: inline-flex;
  gap: 6px;
}

.reminder-actions button {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.74rem;
}

.reminder-snooze {
  background: #f6f3ed;
  color: #5b5348;
  border: 1px solid #e7dbcb;
}

.market-head {
  margin-top: 2px;
}

.sync-head {
  margin-top: 4px;
}

.market-note {
  margin: 2px 0 10px;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.partners-head,
.partner-report-head {
  margin-top: 2px;
}

.partners-note {
  margin: 2px 0 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.marketplace,
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.partner-card {
  border: 1px solid #f0cd9f;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.partner-tag {
  margin: 0;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  background: #fff3df;
  color: #7a4b1c;
  border: 1px solid #f0cd9f;
}

.partner-name {
  margin: 0;
  font-weight: 700;
}

.partner-description,
.partner-payout {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.partner-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.partner-open {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 9px;
  padding: 8px 10px;
  text-decoration: none;
  background: #f6f3ed;
  border: 1px solid #e7dbcb;
  color: #5b5348;
  font-weight: 700;
  transition: transform 130ms ease, filter 130ms ease;
}

.partner-open:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.partner-report {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

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

.partner-kpi {
  border: 1px solid #f0cd9f;
  border-radius: 10px;
  padding: 8px;
  background: #fff8ef;
}

.partner-kpi-label {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.partner-kpi-value {
  margin: 3px 0 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.partner-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.partner-report-title {
  margin: 0 0 7px;
  font-weight: 700;
  font-size: 0.85rem;
}

.partner-funnel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.partner-funnel-item {
  border: 1px solid #f0cd9f;
  border-radius: 10px;
  background: #fff8ef;
  padding: 8px;
}

.partner-funnel-stage {
  margin: 0;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.partner-funnel-value {
  margin: 2px 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.partner-funnel-note {
  margin: 0;
  font-size: 0.73rem;
  color: var(--ink-soft);
}

.partner-list {
  display: grid;
  gap: 7px;
}

.partner-row {
  border: 1px solid #f0cd9f;
  border-radius: 10px;
  background: #fff8ef;
  padding: 8px;
}

.partner-row-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
}

.partner-row-meta {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.marketplace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.market-item {
  border: 1px solid #f0cd9f;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.market-item-emoji {
  margin: 0;
  font-size: 1.15rem;
}

.market-item-title {
  margin: 0;
  font-weight: 700;
}

.market-item-description {
  margin: 0;
  font-size: 0.81rem;
  color: var(--ink-soft);
  min-height: 34px;
}

.market-item-seller {
  margin: 4px 0 0;
  color: #1f7a43;
  font-size: 0.74rem;
  font-weight: 700;
}

.market-item-ugc {
  border-color: #b9e4c8;
  background: #f7fdf9;
}

.market-item-price {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f7a43;
}

.market-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.market-item-count {
  margin: 0;
  font-size: 0.77rem;
  color: var(--ink-soft);
}

.cart {
  display: grid;
  gap: 8px;
}

.cart-item {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.cart-item-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.cart-item-line {
  margin: 2px 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-item-controls button {
  padding: 6px 9px;
  border-radius: 8px;
  min-width: 32px;
}

.cart-remove {
  background: #f6f3ed;
  color: #5b5348;
  border: 1px solid #e7dbcb;
}

.promo-form {
  grid-template-columns: 1fr auto;
  margin: 10px 0;
}

.cart-summary {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.88rem;
}

.summary-row.total {
  font-size: 0.95rem;
}

.summary-promo {
  margin: 2px 0 0;
  font-size: 0.77rem;
  color: var(--ink-soft);
}

.checkout-message {
  min-height: 1.1rem;
  margin: 9px 0 12px;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

.checkout-message.success {
  color: #1f7a43;
}

.checkout-message.warn,
.checkout-message.info {
  color: #7a4b1c;
}

.checkout-message.error {
  color: #b5332f;
}

.order-history {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.order-card {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
}

.order-settlement {
  margin: 3px 0 0;
  font-size: 0.74rem;
  color: #2d4f97;
}

.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.order-date {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.order-status {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.order-status.paid {
  background: #edf8f0;
  color: #1f7a43;
  border: 1px solid #bbe6cb;
}

.order-status.pending {
  background: #fff3df;
  color: #7a4b1c;
  border: 1px solid #f0cd9f;
}

.order-status.canceled {
  background: #ffe9e8;
  color: #b5332f;
  border: 1px solid #f7c0be;
}

.order-lines {
  margin: 6px 0 3px;
  font-size: 0.8rem;
}

.order-total {
  margin: 0;
  font-weight: 700;
  color: #1f7a43;
}

.trends-head {
  margin-top: 4px;
}

.trends {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trend {
  border-radius: 999px;
  background: #edf8f0;
  color: #1f7a43;
  font-size: 0.78rem;
  padding: 4px 10px;
  border: 1px solid #bbe6cb;
}

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

.post {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #f3cf9b;
  padding: 11px 12px;
  transform-origin: center top;
  animation: pop-in 240ms ease-out both;
}

.post-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.post-author {
  margin: 0;
  font-weight: 700;
}

.post-meta {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.audience-chip {
  height: fit-content;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 3px 8px;
  color: #76511d;
  background: #fff3df;
  border: 1px solid #f0cd9f;
}

.post-text {
  margin: 9px 0;
  line-height: 1.35;
}

.post-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.carrot-like {
  background: #f6f3ed;
  color: #5b5348;
  border: 1px solid #e7dbcb;
  padding: 6px 10px;
}

.engagement-rate {
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1f7a43;
  background: #edf8f0;
  border: 1px solid #bbe6cb;
}

.empty {
  border: 1px dashed #d9bd98;
  border-radius: 12px;
  padding: 14px;
  color: var(--ink-soft);
  text-align: center;
}

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

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    width: 100%;
  }

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

@media (max-width: 500px) {
  .hero,
  .layout {
    padding-left: 14px;
    padding-right: 14px;
  }

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

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

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

  .reminder-item {
    grid-template-columns: 1fr;
  }

  .market-item-actions,
  .cart-item,
  .partner-report-grid {
    grid-template-columns: 1fr;
  }

  .partner-report-summary {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.3rem;
  }
}

/* Frontend polish: navigation, section hierarchy, and sponsor CTA */
.app-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 20px 42px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #f0cd9f;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  animation: reveal 420ms ease-out both;
}

.brand-link {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  text-decoration: none;
  color: #4b2f16;
  font-size: 1.25rem;
  font-weight: 700;
}

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

.top-nav-links a {
  text-decoration: none;
  color: #5f584d;
  border: 1px solid #f0cd9f;
  background: #fffaf1;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 130ms ease, filter 130ms ease;
}

.top-nav-links a:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.top-nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  border: 1px solid #f0cd9f;
  border-radius: 999px;
  background: #fff6e8;
  color: #7a4b1c;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-chip.auth {
  border-color: #b9e4c8;
  background: #effaf3;
  color: #1f7a43;
}

.auth-chip.guest {
  border-color: #f0cd9f;
  background: #fff6e8;
  color: #7a4b1c;
}

.auth-logout {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f3ed;
  border: 1px solid #e7dbcb;
  color: #5b5348;
  font-size: 0.76rem;
}

.hero {
  max-width: none;
  margin: 0;
  padding: 24px 0 18px;
  align-items: flex-start;
}

.hero-side {
  width: min(470px, 100%);
  display: grid;
  gap: 10px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-link {
  text-decoration: none;
  color: #1f7a43;
  border: 1px solid #b9e4c8;
  border-radius: 999px;
  background: #effaf3;
  padding: 6px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: transform 130ms ease, filter 130ms ease;
}

.hero-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.hero-link-alt {
  color: #7a4b1c;
  border-color: #f0cd9f;
  background: #fff4e3;
}

.auth-card {
  border: 1px solid #f0cd9f;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.94);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.auth-head h3 {
  font-size: 1rem;
}

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

.auth-form {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.auth-form-title {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.auth-message,
.profile-message {
  min-height: 1rem;
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.auth-message.success,
.profile-message.success {
  color: #1f7a43;
}

.auth-message.warn,
.auth-message.info,
.profile-message.warn,
.profile-message.info {
  color: #7a4b1c;
}

.auth-message.error,
.profile-message.error {
  color: #b5332f;
}

.profile-form {
  margin-top: 2px;
}

.badge[data-variant="ok"] {
  background: #e9f8ef;
  color: #1f7a43;
}

.badge[data-variant="warn"],
.badge[data-variant="loading"] {
  background: #fff3df;
  color: #7a4b1c;
}

.badge[data-variant="error"] {
  background: #ffe9e8;
  color: #b5332f;
}

.layout {
  max-width: none;
  margin: 0;
  padding: 0;
  grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
  gap: 18px;
}

.panel {
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-title-block {
  padding-bottom: 4px;
}

.panel-title-block h2 {
  font-size: 1.55rem;
}

.panel-title-block p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.feature-block {
  border: 1px solid #f0cd9f;
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.feature-block-soft {
  background: #fffdf9;
}

.feature-block .subheader-row {
  margin-bottom: 0;
}

.panel-left .stacked-form,
.panel-left .health-form,
.panel-right .post-form,
.panel-right .promo-form {
  margin: 2px 0;
}

.panel-right .trends {
  justify-content: flex-start;
}

.market-note,
.partners-note {
  margin: 0;
}

.sponsors-cta {
  margin: 0;
  border-top: 1px dashed #f0cd9f;
  padding-top: 10px;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.sponsors-cta a {
  color: #2d4f97;
  font-weight: 700;
}

@media (max-width: 900px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .top-nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .top-nav-auth {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-side {
    width: 100%;
  }

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

@media (max-width: 680px) {
  .top-nav-links {
    gap: 6px;
  }

  .top-nav-links a,
  .hero-link {
    font-size: 0.76rem;
  }

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

  .auth-chip {
    max-width: 150px;
  }

  .panel {
    padding: 14px;
  }

  .feature-block {
    padding: 10px;
  }
}


.seller-head {
  margin-top: 4px;
}

.seller-form {
  margin-top: 8px;
  margin-bottom: 10px;
}

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

.seller-message {
  margin: 0 0 10px;
  min-height: 18px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.seller-message.success {
  color: #1f7a43;
}

.seller-message.warn {
  color: #9a5c1f;
}

.seller-message.error {
  color: #b5332f;
}

.seller-drafts {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.seller-product-card {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 6px;
}

.seller-product-card.status-active {
  border-color: #b9e4c8;
  background: #f7fdf9;
}

.seller-product-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.seller-product-title {
  margin: 0;
  font-weight: 700;
}

.seller-product-status {
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff3df;
  border: 1px solid #f0cd9f;
  color: #7a4b1c;
  font-size: 0.7rem;
  font-weight: 700;
}

.seller-product-meta,
.seller-product-description,
.seller-product-price {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.seller-product-price {
  color: var(--ink-strong);
  font-weight: 700;
}

@media (max-width: 680px) {
  .seller-form-row {
    grid-template-columns: 1fr;
  }
}


.challenge-head,
.leaderboard-head {
  margin-top: 8px;
}

.challenge-widget {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.challenge-card {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  gap: 6px;
}

.challenge-card.done {
  border-color: #b9e4c8;
  background: #f4fcf7;
}

.challenge-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.challenge-title {
  margin: 0;
  font-weight: 700;
}

.challenge-description,
.challenge-progress-label {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.challenge-progress-value {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff3df;
  color: #7a4b1c;
  border: 1px solid #f0cd9f;
}

.challenge-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #f5ebdd;
  overflow: hidden;
}

.challenge-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9d3c, #f47a2b);
}

.leaderboard {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.leaderboard-row {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.leaderboard-rank {
  margin: 0;
  font-weight: 700;
  color: #2d4f97;
}

.leaderboard-name {
  margin: 0;
  font-weight: 700;
}

.leaderboard-meta {
  margin: 3px 0 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.leaderboard-score {
  margin: 0;
  font-weight: 700;
  color: #1f7a43;
}

@media (max-width: 680px) {
  .leaderboard-row {
    grid-template-columns: auto 1fr;
  }

  .leaderboard-score {
    grid-column: 2;
    justify-self: start;
  }
}


.subscription-head {
  margin-top: 6px;
}

.subscription-note {
  margin: 2px 0 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.subscription-current {
  margin-bottom: 10px;
}

.subscription-current-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.subscription-current-card {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff9f2;
  padding: 10px;
  display: grid;
  gap: 5px;
}

.subscription-current-card.active {
  border-color: #8ec8a4;
  background: #f3fbf5;
}

.subscription-current-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.subscription-current-title {
  margin: 0;
  font-weight: 700;
}

.subscription-current-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f3debe;
  color: #7a4b1c;
}

.subscription-current-status.active {
  background: #d7f2e0;
  color: #1f7a43;
}

.subscription-current-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.subscription-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.subscription-card {
  border: 1px solid #f0cd9f;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.subscription-title {
  margin: 0;
  font-weight: 700;
}

.subscription-description {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  min-height: 34px;
}

.subscription-price {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f7a43;
}

.subscription-current-label {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  font-size: 0.7rem;
  color: #1f7a43;
  background: #def6e6;
  border-radius: 999px;
  padding: 2px 8px;
}

.subscription-message {
  margin: 0 0 12px;
  min-height: 18px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.subscription-message.success {
  color: #1f7a43;
}

.subscription-message.warn,
.subscription-message.info {
  color: #7a4b1c;
}

.subscription-message.error {
  color: #b5332f;
}
