:root {
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-soft: #eef5ec;
  --ink: #1d2b26;
  --muted: #6f7f78;
  --line: #dde7de;
  --sage: #7ea37c;
  --sage-dark: #466f55;
  --mint: #dcebd8;
  --gold: #c4a35a;
  --rose: #b66f68;
  --blue: #638399;
  --shadow: 0 18px 48px rgba(40, 68, 54, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: #fbfcf8;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 22px;
}
.brand span, .role-panel label, .muted { color: var(--muted); }
.brand strong { display: block; font-size: 20px; }
.brand span { font-size: 13px; }
.main-nav {
  display: grid;
  gap: 4px;
  overflow: auto;
  padding-right: 4px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  text-align: left;
}
.nav-btn span:first-child { width: 22px; text-align: center; color: var(--sage-dark); }
.nav-btn.active, .nav-btn:hover { background: var(--surface-soft); }
.nav-group {
  display: grid;
  gap: 2px;
}
.nav-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}
.nav-group-label span:first-child { width: 22px; text-align: center; color: var(--sage-dark); }
.nav-group-label:hover, .nav-group.active .nav-group-label { background: var(--surface-soft); }
.nav-group-toggle {
  width: auto;
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.18s ease;
}
.nav-group.collapsed .nav-group-toggle { transform: rotate(-90deg); }
.nav-children {
  display: grid;
  gap: 2px;
  padding-left: 18px;
}
.nav-children[hidden] { display: none; }
.nav-btn.child {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
}
.role-panel {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.role-panel label { display: block; font-size: 12px; margin-bottom: 8px; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
}
textarea { min-height: 112px; resize: vertical; }
.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.88);
  backdrop-filter: blur(14px);
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 720px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
}
.search input { border: 0; padding: 12px 0; background: transparent; }
.search input:focus { outline: 0; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn, .profile-btn, .primary, .secondary, .ghost, .chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
.icon-btn { width: 42px; height: 42px; }
.profile-btn { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; }
.profile-btn strong {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mint);
  display: grid;
  place-items: center;
  color: var(--sage-dark);
}
.view { padding: 28px; }
.hero {
  min-height: 244px;
  border-radius: 8px;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(22,42,34,.84), rgba(22,42,34,.24)), url("assets/portal-wellness-banner.png");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: end;
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero h1 { margin: 0 0 10px; font-size: clamp(32px, 5vw, 58px); line-height: 1; letter-spacing: 0; }
.hero p { margin: 0; max-width: 620px; color: rgba(255,255,255,.88); font-size: 17px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 30px 0 16px;
}
.section-head h2, .panel h2, .modal-card h2 { margin: 0; font-size: 22px; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(38, 64, 52, .06);
}
.panel { padding: 20px; }
.card { padding: 16px; }
.metric {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.metric strong { display: block; font-size: 28px; margin-top: 8px; }
.metric .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--sage-dark);
}
.dashboard-analytics {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.chart-panel {
  min-height: 286px;
  display: flex;
  flex-direction: column;
}
.wide-chart { grid-row: span 2; }
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.chart-head h2 { margin: 0 0 5px; }
.chart-head p { margin: 0; }
.bar-chart {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding-top: 12px;
}
.bar-item {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 8px;
  text-align: center;
}
.bar-track {
  height: 176px;
  border-radius: 999px;
  background: #edf2ed;
  display: flex;
  align-items: end;
  overflow: hidden;
}
.bar-track span {
  width: 100%;
  min-height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sage), var(--sage-dark));
}
.bar-item strong { font-size: 18px; }
.bar-item small, .legend-item small, .spark-labels, .rank-row span { color: var(--muted); }
.donut-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 18px;
}
.donut {
  width: 162px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--sage-dark) calc(var(--value) * 1%), #edf2ed 0);
  display: grid;
  place-items: center;
  position: relative;
}
.donut::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: var(--surface);
}
.donut strong, .donut span { position: relative; z-index: 1; }
.donut strong { font-size: 30px; }
.donut span {
  display: block;
  margin-top: 34px;
  color: var(--muted);
  font-size: 12px;
}
.legend-list { display: grid; gap: 12px; }
.legend-item { display: flex; align-items: center; gap: 10px; }
.legend-item > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-item strong, .legend-item small { display: block; }
.line-chart {
  flex: 1;
  width: 100%;
  min-height: 160px;
  border-radius: 8px;
  background:
    linear-gradient(to right, transparent 0 19%, rgba(221,231,222,.7) 20% 20.5%, transparent 21% 39%, rgba(221,231,222,.7) 40% 40.5%, transparent 41% 59%, rgba(221,231,222,.7) 60% 60.5%, transparent 61% 79%, rgba(221,231,222,.7) 80% 80.5%, transparent 81%),
    linear-gradient(to top, #f5f8f4, #fff);
}
.spark-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 13px;
}
.rank-chart {
  display: grid;
  gap: 16px;
  margin-top: 4px;
}
.rank-row {
  display: grid;
  gap: 8px;
}
.rank-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 13px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--sage-dark);
  font-size: 13px;
  white-space: nowrap;
}
.status.warn { background: #fff4df; color: #8a6530; }
.status.danger { background: #fae8e4; color: #9c5149; }
.status.info { background: #e7f0f4; color: #436f85; }
.primary {
  background: var(--sage-dark);
  color: #fff;
  border-color: var(--sage-dark);
  padding: 10px 14px;
}
.secondary, .ghost { padding: 10px 14px; }
.ghost { background: transparent; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { width: auto; padding: 8px 12px; color: var(--muted); }
.chip.active { background: var(--sage-dark); color: #fff; border-color: var(--sage-dark); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.signup-form label span:first-child {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}
.check-field input {
  width: auto;
  margin-top: 3px;
  flex: 0 0 auto;
}
.check-field span { margin: 0; }
.unsubscribe-box { display: grid; gap: 10px; }
.resource-card {
  overflow: hidden;
  padding: 0;
}
.resource-thumb {
  height: 134px;
  background: linear-gradient(135deg, var(--mint), #fff 48%, #e8d8b7);
  display: flex;
  align-items: end;
  padding: 14px;
}
.resource-thumb strong { font-size: 38px; color: rgba(70,111,85,.52); }
.resource-body { padding: 16px; }
.resource-body h3, .card h3 { margin: 0 0 8px; }
.challenge-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.challenge-card .actions { margin-top: 14px; }
.challenge-thumb {
  min-height: 146px;
  justify-content: space-between;
  background:
    radial-gradient(circle at 76% 24%, rgba(196, 163, 90, .28), transparent 26%),
    linear-gradient(135deg, #edf5ea, #ffffff 48%, #e8d8b7);
}
.challenge-thumb span {
  max-width: 132px;
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.challenge-progress { margin-top: 12px; }
.challenge-detail { padding: 0 22px 24px; }
.challenge-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 20%, rgba(196, 163, 90, .24), transparent 24%),
    linear-gradient(135deg, #eef6ec, #ffffff 54%, #e7f0e4);
}
.challenge-detail-hero h2 {
  margin: 16px 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
}
.challenge-detail-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.challenge-prize {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 18px 34px rgba(38, 64, 52, .09);
}
.challenge-prize span, .challenge-prize small { color: var(--muted); }
.challenge-prize strong {
  color: var(--sage-dark);
  font-size: 34px;
  line-height: 1;
}
.challenge-progress-block {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.step-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  counter-reset: steps;
}
.step-list li {
  counter-increment: steps;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.step-list li::before {
  content: counter(steps);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--surface-soft);
  color: var(--sage-dark);
  font-weight: 700;
}
.step-list li.done {
  color: var(--ink);
  font-weight: 600;
}
.step-list li.done::before {
  content: "✓";
  background: var(--sage-dark);
  color: #fff;
}
.email-confirmation {
  padding: 0 22px 24px;
}
.email-meta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(196, 163, 90, .22), transparent 24%),
    linear-gradient(135deg, #eef6ec, #ffffff 54%, #e7f0f4);
}
.email-meta-panel h2 {
  max-width: 720px;
  margin: 14px 0 10px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}
.email-routing {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(38, 64, 52, .08);
}
.email-routing p { overflow-wrap: anywhere; }
.email-preview {
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #d7e1d7;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(38, 64, 52, .12);
}
.email-preheader {
  padding: 10px 18px;
  background: #f4f8f1;
  color: #6f7f78;
  font-size: 12px;
}
.email-hero {
  min-height: 230px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: end;
  background:
    radial-gradient(circle at 78% 22%, rgba(196, 163, 90, .32), transparent 26%),
    linear-gradient(135deg, #294437, #466f55 58%, #7ea37c);
  color: #ffffff;
}
.email-hero span {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.email-hero h3 {
  max-width: 520px;
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1;
}
.email-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.86);
}
.email-hero strong {
  min-height: 148px;
  padding: 18px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 28px;
  text-align: center;
}
.email-body {
  padding: 28px 30px 30px;
}
.email-body p {
  margin: 0 0 14px;
  color: #34463e;
  line-height: 1.55;
}
.email-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.email-info-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid #e0e8df;
  border-radius: 8px;
  background: #f8faf6;
}
.email-info-grid span {
  display: block;
  margin-bottom: 8px;
  color: #6f7f78;
  font-size: 12px;
}
.email-info-grid strong {
  color: #294437;
  overflow-wrap: anywhere;
}
.email-body h4 {
  margin: 20px 0 10px;
  font-size: 19px;
}
.email-body ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: #34463e;
  line-height: 1.7;
}
.email-callout {
  display: grid;
  gap: 6px;
  margin: 22px 0;
  padding: 16px;
  border-radius: 8px;
  background: #eef5ec;
  color: #466f55;
}
.email-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #466f55;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}
.email-footer {
  padding: 16px 30px;
  border-top: 1px solid #e0e8df;
  background: #fbfcf8;
  color: #6f7f78;
  font-size: 12px;
}
.email-actions {
  max-width: 760px;
  margin: 18px auto 0;
}
.product-card {
  display: grid;
  grid-template-rows: 218px 1fr;
  padding: 0;
  overflow: hidden;
  min-height: 456px;
  border-color: rgba(70, 111, 85, .16);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(70, 111, 85, .34);
  box-shadow: 0 20px 42px rgba(38, 64, 52, .14);
}
.product-card.just-added {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(70, 111, 85, .14), 0 18px 40px rgba(38, 64, 52, .14);
}
.product-card.just-added .product-art {
  background:
    radial-gradient(circle at 32% 30%, rgba(196,163,90,.34), transparent 30%),
    linear-gradient(135deg, #dcebd8, #ffffff 50%, #cfe0cb);
}
.product-art {
  position: relative;
  min-height: 218px;
  background:
    radial-gradient(circle at 22% 20%, rgba(196, 163, 90, .22), transparent 28%),
    linear-gradient(145deg, #f5faf3, #ffffff 46%, #e7f0f4);
  display: grid;
  place-items: center;
  padding: 20px;
}
.product-art img {
  width: min(82%, 224px);
  height: 178px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(38, 64, 52, .18));
  transition: transform .18s ease, filter .18s ease;
}
.product-card:hover .product-art img {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 22px 26px rgba(38, 64, 52, .22));
}
.product-box {
  width: 74px;
  height: 96px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d9dfd8;
  box-shadow: 0 16px 24px rgba(44,72,58,.16);
  display: grid;
  place-items: center;
  color: var(--sage-dark);
  font-weight: 700;
}
.product-badge,
.product-source {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(70, 111, 85, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(38, 64, 52, .08);
}
.product-badge {
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  background: #fff6e2;
  color: #8a6530;
}
.product-source {
  right: 14px;
  bottom: 14px;
  padding: 5px 8px;
}
.product-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  padding: 17px;
}
.product-body h3 {
  margin: 0;
  min-height: 46px;
  line-height: 1.18;
}
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.product-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}
.price-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.price-block span {
  color: var(--muted);
  font-size: 12px;
}
.price-block strong {
  font-size: 18px;
  color: var(--ink);
}
.cart-dock {
  position: sticky;
  bottom: 18px;
  margin-top: 22px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #1f3329;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.cart-dock small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.76);
}
.cart-dock.cart-updated {
  background: #294437;
  box-shadow: 0 0 0 4px rgba(126, 163, 124, .2), var(--shadow);
}
.cart-feedback {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(70, 111, 85, .28);
  border-radius: 8px;
  background: #eef5ec;
  color: var(--sage-dark);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}
.cart-feedback span {
  color: var(--muted);
}
.cart-feedback button {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.shop-entry {
  max-width: 760px;
  display: grid;
  gap: 12px;
}
.shop-shell {
  min-height: 100vh;
  background: var(--bg);
}
.shop-header {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 78px;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 248, .92);
  backdrop-filter: blur(14px);
}
.shop-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.shop-brand strong { display: block; font-size: 19px; }
.shop-brand span { color: var(--muted); font-size: 13px; }
.shop-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.shop-main {
  padding: 28px;
}
.shop-hero {
  min-height: 280px;
  margin-bottom: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 28%, rgba(196, 163, 90, .28), transparent 24%),
    linear-gradient(135deg, #edf5ea, #fff 54%, #e7f0f4);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: end;
}
.shop-hero h1 {
  max-width: 780px;
  margin: 16px 0 12px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: .98;
}
.shop-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.shop-summary {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 34px rgba(38, 64, 52, .08);
}
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.buy-row {
  display: grid;
  grid-template-columns: auto minmax(92px, 118px) auto;
  align-items: end;
  gap: 8px;
}
.buy-row label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}
.buy-row input {
  min-width: 0;
  padding: 9px 10px;
}
.buy-row.compact {
  grid-template-columns: 86px auto;
  align-items: center;
}
.quick-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 16px 0;
}
.csv-sample {
  display: grid;
  gap: 10px;
  max-width: 420px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.csv-sample code {
  display: block;
  color: var(--sage-dark);
  line-height: 1.6;
}
.quick-sku-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.quick-sku-grid div {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 3px;
}
.quick-sku-grid strong {
  color: var(--sage-dark);
}
.quick-sku-grid span {
  color: var(--muted);
  font-size: 13px;
}
.checkout-page,
.confirmation-page {
  min-height: calc(100vh - 134px);
}
.checkout-page {
  max-width: 1180px;
  margin: 0 auto;
}
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.checkout-steps button {
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}
.checkout-steps button.active {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
}
.checkout-body,
.checkout-panel {
  min-height: 420px;
}
.checkout-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(38, 64, 52, .07);
}
.checkout-panel h3 {
  margin: 0 0 14px;
  font-size: 24px;
}
.checkout-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.checkout-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.checkout-option input {
  width: auto;
  margin-top: 3px;
}
.checkout-option span {
  display: grid;
  gap: 4px;
}
.checkout-option small {
  color: var(--muted);
}
.checkout-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.checkout-summary p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.confirmation-hero {
  min-height: 330px;
  margin-bottom: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 28%, rgba(196, 163, 90, .28), transparent 24%),
    linear-gradient(135deg, #edf5ea, #fff 54%, #e7f0f4);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.confirmation-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
}
.confirmation-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.confirmation-email {
  max-width: 960px;
  margin-top: 18px;
}
.timeline { display: grid; gap: 12px; }
.timeline-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; }
.progress {
  height: 8px;
  background: #edf2ed;
  border-radius: 999px;
  overflow: hidden;
}
.progress span { display: block; height: 100%; background: var(--sage); }
.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(18, 31, 25, .46);
  z-index: 30;
}
.modal.open { display: grid; }
.modal-card {
  width: min(760px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--surface);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.wide-modal { width: min(1120px, 100%); }
.product-sheet-modal {
  padding: 0;
  background: #fbfcf8;
}
.product-sheet-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 14px 16px;
  background: rgba(251, 252, 248, .86);
  backdrop-filter: blur(12px);
}
.product-sheet { padding: 0 22px 24px; }
.sheet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: stretch;
  min-height: 330px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 22%, rgba(196, 163, 90, .23), transparent 24%),
    linear-gradient(135deg, #edf5ea 0%, #ffffff 48%, #e4efe1 100%);
}
.sheet-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sheet-copy h2 {
  margin: 16px 0 12px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: .98;
}
.sheet-copy p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sheet-packshot {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 54%, rgba(126, 163, 124, .24), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.24), rgba(126,163,124,.1));
}
.pack-card {
  width: 178px;
  height: 236px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f6f8f2);
  border: 1px solid #d8e1d8;
  box-shadow: 0 30px 54px rgba(39, 66, 53, .2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 9px;
  color: var(--sage-dark);
  transform: rotate(-2deg);
}
.pack-card span { font-size: 12px; letter-spacing: 0; color: var(--muted); }
.pack-card strong { font-size: 31px; }
.pack-card small {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  width: 64%;
  text-align: center;
  color: var(--gold);
  font-weight: 700;
}
.pack-shadow {
  position: absolute;
  bottom: 47px;
  width: 210px;
  height: 24px;
  border-radius: 50%;
  background: rgba(42, 68, 55, .14);
  filter: blur(8px);
}
.sheet-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.sheet-metric {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  align-content: space-between;
  box-shadow: 0 10px 28px rgba(38, 64, 52, .06);
}
.sheet-metric span { color: var(--sage-dark); font-size: 24px; }
.sheet-metric small { color: var(--muted); }
.sheet-metric strong { font-size: 24px; }
.sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sheet-grid.lower { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.sheet-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.sheet-panel h3 { margin: 0 0 12px; }
.sheet-panel p { margin: 0; color: var(--muted); }
.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sage-dark);
  font-weight: 700;
}
.ingredient, .evidence-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ingredient:last-child, .evidence-row:last-child { border-bottom: 0; }
.ingredient strong { color: var(--sage-dark); }
.evidence-row { align-items: center; }
.evidence-row strong {
  min-width: 70px;
  font-size: 28px;
  color: var(--sage-dark);
}
.evidence-row span { color: var(--muted); }
.callout {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--sage-dark);
}
.download-list { display: grid; gap: 8px; }
.detail-hero.study .detail-visual,
.detail-hero.articulo .detail-visual { background: linear-gradient(135deg, #e9f1eb, #fff 52%, #e6d9bd); }
.detail-hero.video .detail-visual,
.detail-hero.webinar .detail-visual { background: linear-gradient(135deg, #e7f0f4, #fff 48%, #dcebd8); }
.detail-hero.presentation .detail-visual { background: linear-gradient(135deg, #edf5ea, #fff 46%, #e6d9bd); }
.detail-hero.marketing .detail-visual { background: linear-gradient(135deg, #f1ede1, #fff 48%, #dcebd8); }
.detail-hero.podcast .detail-visual { background: linear-gradient(135deg, #e7f0f4, #fff 48%, #f3e8e5); }
.detail-visual {
  display: grid;
  place-items: center;
  min-height: 300px;
}
.detail-symbol {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  color: var(--sage-dark);
  font-size: 58px;
  box-shadow: 0 24px 52px rgba(39, 66, 53, .16);
}
.media-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  margin-bottom: 18px;
}
.video-frame {
  min-height: 320px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(31, 51, 41, .18), rgba(31, 51, 41, .38)),
    radial-gradient(circle at 30% 28%, rgba(196, 163, 90, .34), transparent 26%),
    linear-gradient(135deg, #dcebd8, #ffffff 54%, #e7f0f4);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.video-frame span {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 51, 41, .78);
  color: #fff;
}
.play-button {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--sage-dark);
  font-size: 30px;
  box-shadow: var(--shadow);
}
.media-side { display: grid; gap: 12px; }
.slides-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.slide-mini {
  aspect-ratio: 4 / 3;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(126, 163, 124, .18), transparent 44%),
    #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(38, 64, 52, .06);
}
.slide-mini strong { color: var(--sage-dark); font-size: 30px; }
.audio-wave {
  height: 118px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.audio-wave span {
  width: 12px;
  border-radius: 999px;
  background: var(--sage);
}
.audio-wave span:nth-child(1) { height: 26px; }
.audio-wave span:nth-child(2) { height: 58px; }
.audio-wave span:nth-child(3) { height: 84px; }
.audio-wave span:nth-child(4) { height: 42px; }
.audio-wave span:nth-child(5) { height: 74px; }
.audio-wave span:nth-child(6) { height: 50px; }
.audio-wave span:nth-child(7) { height: 30px; }
.campaign-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.asset-tile {
  min-height: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 24%, rgba(196, 163, 90, .28), transparent 28%),
    linear-gradient(135deg, #eef5ec, #fff 54%, #f1ede1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}
.asset-tile strong { font-size: 22px; }
.asset-tile span { color: var(--muted); }
.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-tabs {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 8px;
}
.admin-tab {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(38, 64, 52, .04);
}
.admin-tab span {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--sage-dark);
}
.admin-tab small { color: var(--muted); }
.admin-tab.active, .admin-tab:hover {
  border-color: rgba(70, 111, 85, .42);
  background: #f3f8f0;
}
.admin-workspace {
  min-width: 0;
  display: grid;
  gap: 14px;
}
.admin-head, .admin-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.admin-head h2 { margin: 0 0 6px; font-size: 26px; }
.admin-head p { margin: 0; }
.admin-tools input { max-width: 520px; }
.admin-notice {
  padding: 12px 14px;
  border: 1px solid #cfe0ce;
  border-radius: 8px;
  background: #eef8ec;
  color: var(--sage-dark);
}
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 14px;
  align-items: start;
}
.admin-list { padding: 0; overflow: hidden; }
.admin-table { min-width: 780px; }
.admin-table td, .admin-table th { padding: 14px 16px; }
.admin-create-panel {
  position: sticky;
  top: 92px;
}
.admin-create-panel > p { margin-top: 8px; }
.admin-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.admin-form label {
  display: grid;
  gap: 6px;
}
.admin-form label span {
  color: var(--muted);
  font-size: 13px;
}
.admin-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.admin-detail .actions { grid-column: 1 / -1; margin-top: 10px; }
.empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}
.empty-state h3 { margin: 0 0 8px; }
.mobile-only { display: none; }
.locked {
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 1120px) {
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide-chart { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform .2s ease;
    width: min(310px, 88vw);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: inline-grid; }
  .topbar { padding: 12px 14px; }
  .profile-btn span { display: none; }
  .view { padding: 18px 14px 28px; }
  .hero { min-height: 260px; padding: 24px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .form-grid { grid-template-columns: 1fr; }
  .dashboard-analytics, .donut-wrap { grid-template-columns: 1fr; }
  .bar-chart { gap: 8px; }
  .bar-track { height: 140px; }
  .donut { margin: 0 auto; }
  .admin-summary, .admin-layout, .admin-grid, .admin-detail { grid-template-columns: 1fr; }
  .admin-tabs, .admin-create-panel { position: static; }
  .admin-head, .admin-tools { align-items: stretch; flex-direction: column; }
  .admin-tools input { max-width: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; }
  .product-sheet { padding: 0 14px 18px; }
  .sheet-hero, .sheet-grid, .sheet-grid.lower, .sheet-metrics { grid-template-columns: 1fr; }
  .media-stage, .slides-preview, .campaign-gallery { grid-template-columns: 1fr; }
  .challenge-summary, .challenge-detail-hero, .email-meta-panel, .email-hero, .email-info-grid { grid-template-columns: 1fr; }
  .challenge-detail { padding: 0 14px 18px; }
  .challenge-detail-hero { padding: 20px; }
  .email-confirmation { padding: 0 14px 18px; }
  .email-meta-panel, .email-hero, .email-body { padding: 20px; }
  .email-hero h3 { font-size: 34px; }
  .shop-header { grid-template-columns: 1fr; padding: 14px; }
  .shop-tabs { justify-content: flex-start; }
  .shop-main { padding: 18px 14px 28px; }
  .shop-hero { grid-template-columns: 1fr; padding: 22px; }
  .quick-upload { grid-template-columns: 1fr; }
  .quick-sku-grid { grid-template-columns: 1fr; }
  .buy-row { grid-template-columns: 1fr; align-items: stretch; }
  .buy-row.compact { grid-template-columns: 78px auto; }
  .checkout-steps { grid-template-columns: 1fr 1fr; }
  .sheet-copy { padding: 22px; }
  .sheet-packshot { min-height: 250px; }
  .detail-visual { min-height: 220px; }
}
