:root {
  --bg: #f7f8ee;
  --surface: #ffffff;
  --surface-2: #eef4e3;
  --ink: #20351f;
  --muted: #64715d;
  --line: #d9e2cf;
  --green: #2f6f4e;
  --green-deep: #263f24;
  --green-pulp: #9fc14a;
  --green-2: #e8f4df;
  --sun: #FFD76B;
  --sun-2: #FFF3C8;
  --rose: #b44752;
  --gold: #a46f1f;
  --blue: #376d8f;
  --shadow: 0 18px 45px rgba(32, 53, 31, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 215, 107, 0.28), rgba(247, 248, 238, 0) 330px),
    var(--bg);
  color: var(--ink);
  font-family: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.topbar,
.workspace,
.daily-blog-panel,
.positioning-grid,
.harness-grid,
.customer-panel {
  margin-bottom: 18px;
}

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

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 190px;
  height: 58px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

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

h1 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

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

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

.harness-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.positioning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.wide-card {
  grid-column: 1 / -1;
}

.control-panel,
.main-panel,
.customer-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.control-panel {
  align-self: start;
  padding: 18px;
  position: sticky;
  top: 18px;
}

.main-panel,
.customer-panel {
  padding: 20px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-header.wide {
  align-items: center;
}

.panel-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.panel-header span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--green-2);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill.sun {
  background: var(--sun-2);
  color: #7b5416;
}

.status-pill.muted {
  background: var(--surface-2);
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

textarea:focus,
input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.12);
}

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

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

.profile-grid label {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.profile-grid input {
  width: auto;
}

.segment {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  font-weight: 700;
}

.segment.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.primary,
.secondary {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
}

.primary {
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
}

.secondary {
  background: var(--sun);
  color: #3f3112;
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfa;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice.blocked {
  border-color: rgba(180, 71, 82, 0.35);
  background: #fff4f5;
  color: var(--rose);
}

.notice.safe {
  border-color: rgba(47, 111, 78, 0.25);
  background: var(--green-2);
  color: var(--green);
}

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

.metric {
  min-width: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fbfcfa;
}

.metric strong {
  display: block;
  font-size: 20px;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 14px;
  margin-bottom: 18px;
}

.hero-preview {
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  border-radius: 8px;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(32, 53, 31, 0.9), rgba(47, 111, 78, 0.7), rgba(255, 215, 107, 0.38)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520'%3E%3Crect width='900' height='520' fill='%23dfe8dc'/%3E%3Cg fill='%23ffffff' opacity='.9'%3E%3Crect x='80' y='120' width='110' height='230' rx='16'/%3E%3Crect x='220' y='86' width='140' height='286' rx='18'/%3E%3Crect x='395' y='145' width='98' height='205' rx='14'/%3E%3Crect x='540' y='106' width='132' height='252' rx='18'/%3E%3C/g%3E%3Cg fill='%232f6f4e' opacity='.28'%3E%3Ccircle cx='700' cy='160' r='82'/%3E%3Ccircle cx='760' cy='260' r='118'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-preview h3 {
  max-width: 700px;
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-preview p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  line-height: 1.55;
}

.review-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfa;
}

.review-panel ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-panel li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.review-panel b {
  color: var(--ink);
}

.section-stack {
  display: grid;
  gap: 14px;
}

.section-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcfa;
}

.diagram-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.map-card {
  grid-column: 1 / -1;
}

.diagram-image {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.positioning-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  padding: 12px;
}

.positioning-summary strong {
  display: block;
  margin-bottom: 6px;
}

.positioning-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.axis-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.axis-meter {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.axis-meter span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.axis-meter strong {
  display: block;
  margin: 6px 0;
  font-size: 20px;
}

.axis-meter div {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.axis-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.product-card {
  min-height: 220px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.product-visual {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  overflow: hidden;
}

.product-image {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: contain;
  background: #fff;
}

.pack {
  width: 58px;
  height: 76px;
  border: 1px solid rgba(32, 37, 31, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(32, 37, 31, 0.12);
}

.product-body {
  padding: 12px;
}

.product-body strong {
  display: block;
  margin-bottom: 8px;
  line-height: 1.35;
}

.product-body p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.product-price span {
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
}

.product-price strong {
  color: var(--ink);
  font-size: 17px;
}

.product-price del {
  color: #9ba393;
  font-size: 12px;
}

.evidence-chip {
  display: inline-flex;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--green-2);
  color: var(--green);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}

.daily-blog-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.consumer-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 200, 0.62)),
    var(--surface);
}

.consumer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 5px solid var(--sun);
}

.consumer-hero > * {
  position: relative;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
}

.blog-feature,
.blog-side,
.blog-products {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf6;
}

.blog-feature {
  min-height: 500px;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  overflow: hidden;
  background: #fffdf8;
}

.blog-visual {
  position: relative;
  min-height: 500px;
  background:
    linear-gradient(145deg, var(--blog-accent, var(--sun)), #9fc14a);
}

.blog-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.blog-photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(32, 53, 31, 0.76);
  color: #fff;
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.blog-photo-caption span,
.blog-photo-caption strong {
  font-size: 13px;
}

.plate {
  position: relative;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 44%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(32, 53, 31, 0.14) 0 58%, transparent 59%),
    #f9fbf3;
  border: 10px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 45px rgba(32, 53, 31, 0.18);
}

.plate::before {
  content: "";
  position: absolute;
  width: 82px;
  height: 116px;
  left: 55px;
  top: 32px;
  border-radius: 52% 48% 50% 50%;
  background: radial-gradient(circle at 48% 62%, #8a5a2b 0 22%, #dce764 23% 47%, #2f6f4e 48% 100%);
  transform: rotate(-16deg);
}

.plate span,
.plate i {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.plate span {
  width: 72px;
  height: 18px;
  right: 28px;
  top: 58px;
  background: var(--sun);
}

.plate i {
  width: 58px;
  height: 18px;
  left: 34px;
  bottom: 48px;
  background: #e7eff5;
}

.blog-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 48px);
}

.blog-copy h3 {
  max-width: 620px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.blog-copy > p {
  color: var(--muted);
  line-height: 1.55;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.blog-meta span,
.sun-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--sun-2);
  color: #7b5416;
  font-size: 12px;
  font-weight: 800;
}

.blog-body {
  margin-bottom: 18px;
}

.cookbook-note {
  border-left: 4px solid var(--sun);
  padding: 10px 0 10px 14px;
  background: linear-gradient(90deg, rgba(255, 215, 107, 0.16), transparent);
  color: var(--ink) !important;
  font-size: 14px;
}

.shop-cta {
  min-height: 44px;
  align-self: flex-start;
  border-radius: 8px;
  background: var(--sun);
  color: #3f3112;
  padding: 10px 16px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(164, 111, 31, 0.18);
}

.blog-side {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fffdf8;
}

.blog-side section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.blog-side section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ingredient-list,
.recipe-list,
.health-fact-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.45;
}

.ingredient-list li::marker {
  color: var(--green);
}

.recipe-list li::marker {
  color: var(--gold);
  font-weight: 800;
}

.health-note-panel {
  border-bottom-color: rgba(255, 215, 107, 0.65) !important;
}

.health-fact-list li::marker {
  color: var(--green);
}

.nutrition-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nutrition-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 999px;
  background: var(--green-2);
  color: var(--green);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.blog-products {
  grid-column: 1 / -1;
  padding: 16px;
  background: #fff;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
}

.shop-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 0.85fr 1fr 1fr;
  gap: 6px;
}

.shop-actions button {
  min-height: 34px;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.recommend-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
}

.cart-button {
  background: var(--green-2);
  color: var(--green-deep);
}

.buy-button {
  background: var(--sun);
  color: #3f3112;
}

.exclude-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.exclude-toggle input {
  width: auto;
}

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

.evidence-item {
  display: grid;
  gap: 3px;
  border-left: 3px solid var(--green);
  padding-left: 10px;
  color: var(--muted);
  line-height: 1.4;
}

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

.warn-left {
  border-left-color: var(--gold);
}

.kaggle-left {
  border-left-color: var(--blue);
}

.ambiguity-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.ambiguity-item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.ambiguity-item.warn {
  border-color: rgba(155, 107, 32, 0.36);
  background: #fffaf0;
}

.ambiguity-item.blocked {
  border-color: rgba(180, 71, 82, 0.36);
  background: #fff4f5;
}

.ambiguity-item strong,
.ambiguity-item b {
  display: block;
  margin-bottom: 5px;
}

.ambiguity-item span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

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

.pipeline-step {
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.pipeline-step span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.pipeline-step strong {
  display: block;
  margin-bottom: 8px;
}

.pipeline-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
}

.customer-preview {
  display: grid;
  gap: 14px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ghost-button {
  min-height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--green);
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .workspace,
  .preview-grid,
  .blog-layout,
  .positioning-grid,
  .harness-grid {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
  }

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

  .pipeline-grid,
  .positioning-summary,
  .blog-feature,
  .axis-row {
    grid-template-columns: 1fr;
  }

  .blog-visual,
  .blog-photo {
    min-height: 360px;
  }

  .wide-card,
  .map-card {
    grid-column: auto;
  }
}

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

  .topbar,
  .brand-lockup,
  .panel-header.wide {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(100%, 260px);
  }

  .segmented,
  .button-row,
  .profile-grid,
  .pipeline-grid,
  .positioning-summary,
  .blog-feature,
  .axis-row,
  .product-grid,
  .customer-strip {
    grid-template-columns: 1fr;
  }

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

  .hero-preview {
    min-height: 220px;
    padding: 18px;
  }
}
