:root {
  color-scheme: light;
  --ink: #16231b;
  --muted: #6f745f;
  --line: #ded4b8;
  --paper: #fff4dc;
  --panel: #fffaf0;
  --soft: #f6e9c9;
  --soft-green: #e7efe1;
  --green: #0f3f25;
  --green-mid: #1d5b35;
  --green-dark: #082d1a;
  --blue: #2f5d63;
  --red: #c94921;
  --gold: #c28a28;
  --gold-soft: #f4dfad;
  --shadow: 0 16px 36px rgba(42, 31, 14, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 223, 173, 0.7), transparent 340px),
    linear-gradient(180deg, #fff8e9 0, var(--paper) 360px);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

input[type="checkbox"] {
  width: auto;
  accent-color: var(--green-mid);
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 138px;
  padding: 16px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #d7c59a;
  background: #fff1cf;
}

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

.brand-mark {
  width: 150px;
  height: 150px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: #fff3d2;
  color: #fffaf0;
  border: 1px solid #d8bd82;
  box-shadow: 0 10px 24px rgba(50, 35, 10, 0.12);
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 7px;
}

.brand-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  background: #fff3d2;
}

.brand-mark span {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-dark);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.topbar .eyebrow {
  margin-bottom: 2px;
  color: var(--green-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  text-transform: none;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 620px;
  font-size: 1.18rem;
  line-height: 1.35;
  color: #314034;
  font-weight: 750;
}

h2 {
  margin: 0;
  font-size: 1rem;
}

.toolbar,
.section-title,
.tabs,
.store-toggle,
.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar {
  justify-content: flex-end;
  flex-wrap: wrap;
  max-width: 560px;
}

.toolbar-group {
  min-height: 44px;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(194, 138, 40, 0.35);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 8px 18px rgba(42, 31, 14, 0.06);
}

.session-group {
  background: rgba(231, 239, 225, 0.78);
}

.action-group {
  background: rgba(255, 250, 240, 0.7);
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 9px 28px;
  border-bottom: 1px solid #d7c59a;
  background: rgba(15, 63, 37, 0.97);
  backdrop-filter: blur(10px);
}

.nav-button,
.primary,
.secondary,
.store-button,
.icon-button,
.danger-button {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 13px;
  font-weight: 750;
}

.nav-button,
.secondary,
.store-button,
.icon-button,
.danger-button {
  border: 1px solid transparent;
  background: #efe2bd;
  color: var(--ink);
}

.nav-button {
  background: transparent;
  color: #fff7e4;
}

.nav-button.active,
.store-button.active,
.primary {
  background: var(--green-mid);
  color: white;
}

.nav-button.active {
  background: #fff3d2;
  color: var(--green-dark);
}

.active-mode {
  background: var(--green-dark);
  color: #fffaf0;
}

.secondary:hover,
.icon-button:hover,
.nav-button:hover,
.store-button:hover {
  border-color: #ceb477;
}

.primary:hover {
  background: var(--green-dark);
}

.danger-button {
  background: #f3dcc4;
  color: #6e2b15;
}

.danger-button:hover {
  border-color: #d8966d;
  background: #edd0b4;
}

.icon-button {
  width: 38px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.notice-bar {
  margin: 18px 28px 0;
  padding: 14px 16px;
  border: 1px solid #d8bd82;
  border-left: 5px solid var(--green-mid);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 0 10px 22px rgba(42, 31, 14, 0.08);
  color: var(--ink);
  font-weight: 700;
}

.notice-bar.warning {
  border-left-color: var(--gold);
}

.notice-bar.success {
  border-left-color: var(--green-mid);
}

.notice-bar.error {
  border-left-color: var(--red);
  background: #fff3ec;
  color: #6e2b15;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 45, 26, 0.62);
  backdrop-filter: blur(4px);
}

.login-modal {
  width: min(920px, 100%);
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1fr);
  overflow: hidden;
  border: 1px solid #d8bd82;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(8, 45, 26, 0.28);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 250, 240, 0.9);
  color: var(--green-dark);
  font-weight: 900;
}

.login-art {
  padding: 24px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  background: #fff1cf;
  border-right: 1px solid #d8bd82;
}

.login-art img {
  width: min(100%, 260px);
  border-radius: 8px;
  border: 1px solid #d8bd82;
  background: #fff3d2;
}

.login-form {
  padding: 34px;
  display: grid;
  gap: 14px;
}

.login-form h2 {
  max-width: 520px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.04;
  color: var(--green-dark);
}

.login-help,
.login-small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.account-tabs {
  min-height: 42px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff5dc;
}

.account-tab {
  min-height: 34px;
  border-radius: 6px;
  background: transparent;
  color: var(--green-dark);
  font-weight: 800;
}

.account-tab.active {
  background: var(--green-mid);
  color: #fffaf0;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: #5d634f;
  font-size: 0.9rem;
  font-weight: 750;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  min-height: 44px;
}

.login-form .primary {
  min-height: 44px;
}

.admin-toggle {
  justify-content: start;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8e8;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f6dfd3;
  color: #712911;
  font-weight: 750;
}

.account-modal {
  width: min(860px, 100%);
  position: relative;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid #d8bd82;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(8, 45, 26, 0.28);
}

.account-modal-head,
.account-columns {
  display: grid;
  gap: 16px;
}

.account-modal-head {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.account-modal h2,
.account-panel h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-dark);
}

.account-modal h2 {
  font-size: 2rem;
}

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

.account-summary-card,
.account-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.9);
}

.account-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.account-summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
  font-size: 1.1rem;
}

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

.account-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.compact-list {
  margin-top: 12px;
}

.compact-list li + li {
  margin-top: 6px;
}

.custom-store-form {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(180px, 1fr) minmax(110px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
}

.home-hero {
  min-height: calc(100vh - 210px);
  padding: 34px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 223, 173, 0.38), transparent 240px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.62), rgba(255, 244, 220, 0.18));
}

.home-hero h2 {
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
  color: var(--green-dark);
}

.home-hero p:not(.eyebrow) {
  max-width: 620px;
  color: #4f5949;
  font-size: 1.1rem;
  line-height: 1.55;
}

.home-hero img {
  width: min(100%, 560px);
  justify-self: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid #d8bd82;
}

.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-points {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-note {
  margin-top: 16px;
  color: #6b6f5b;
  font-size: 0.95rem !important;
}

.trust-strip {
  padding: 10px 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-card,
.flow-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 12px 24px rgba(42, 31, 14, 0.06);
}

.trust-card:first-child {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(231, 239, 225, 0.64));
  border-top: 3px solid var(--green-mid);
}

.trust-card strong,
.flow-card h3,
.flow-card p {
  margin: 0;
}

.trust-card p,
.flow-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.home-image-strip {
  padding: 0 28px 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-image-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d8bd82;
  box-shadow: 0 12px 26px rgba(42, 31, 14, 0.1);
}

.pricing-preview {
  padding: 0 28px 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pricing-preview article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 14px 28px rgba(42, 31, 14, 0.06);
}

.pricing-preview h3,
.pricing-preview p {
  margin: 10px 0 0;
}

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

.pricing-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #445044;
}

.pricing-list li + li {
  margin-top: 8px;
}

.pricing-note {
  margin-top: 12px !important;
  color: #5f6657 !important;
  font-size: 0.95rem;
}

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

.launch-offer {
  padding: 0 28px 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 12px 24px rgba(42, 31, 14, 0.06);
}

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

.offer-card h3 {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--green-dark);
}

.offer-card p:last-child {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.offer-card.accent {
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(231, 239, 225, 0.88));
  border-top: 3px solid var(--green-mid);
}

.plan-clarity {
  padding: 0 28px 34px;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.section-copy h2,
.section-copy p {
  margin: 0;
}

.section-copy h2 {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  color: var(--green-dark);
}

.section-copy p:last-child {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.comparison-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 14px 28px rgba(42, 31, 14, 0.08);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(90px, 0.6fr) minmax(120px, 0.8fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid #eadcb9;
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-head {
  background: #fff2cf;
  color: var(--green-dark);
  font-weight: 900;
}

.comparison-row span {
  color: #3f4d3b;
}

.comparison-row span:nth-child(2),
.comparison-row span:nth-child(3) {
  font-weight: 800;
}

.onboarding-flow {
  padding: 0 28px 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.flow-step {
  display: inline-flex;
  min-width: 44px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.flow-card h3 {
  margin-top: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--green-dark);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(230px, 290px) minmax(470px, 1fr);
  min-height: calc(100vh - 250px);
}

.sidebar,
.recipe-panel {
  min-height: 0;
  overflow: auto;
}

.sidebar {
  border-right: 1px solid #d7c59a;
  background: #f6e8c6;
}

.search-row,
.recipe-panel,
.plan-grid,
.community-layout,
.import-layout {
  padding: 18px;
}

.sidebar-head {
  display: grid;
  gap: 12px;
}

.sidebar-head h2,
.sidebar-head p {
  margin: 0;
}

.filter-stack {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8c79e;
  border-radius: 7px;
  background: #fff8e8;
}

.filter-stack label,
.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.86rem;
}

.sidebar-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d8c79e;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(29, 91, 53, 0.16);
}

.recipe-list {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.recipe-card,
.community-card,
.shop-category,
.day-row,
.insight-panel,
.roadmap-list,
.stat-card,
.site-panel,
.record-card,
.pantry-match-card,
.recipe-detail,
.shop-total {
  background: var(--panel);
  border: 1px solid #d8c79e;
  border-radius: 7px;
}

.recipe-card {
  text-align: left;
  border-left: 4px solid transparent;
  padding: 12px;
}

.recipe-card.active {
  border-left-color: var(--green-mid);
  box-shadow: var(--shadow);
  background: #fff7e4;
}

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

.recipe-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.recipe-card .card-meta {
  margin-top: 9px;
  color: var(--green-dark);
  font-weight: 800;
}

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

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.title-input {
  border: 0;
  border-bottom: 2px solid #d8c79e;
  border-radius: 0;
  background: transparent;
  padding-left: 0;
  font-size: 1.65rem;
  font-weight: 850;
}

.title-input:focus {
  box-shadow: none;
  border-color: var(--green-mid);
}

.meta-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

label input,
label textarea {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}

.scale-box {
  width: 180px;
  display: grid;
  gap: 10px;
}

.content-grid,
.plan-grid,
.community-layout,
.import-layout,
.site-band,
.record-grid,
.detail-meta-grid,
.shopping-actions {
  display: grid;
  gap: 18px;
}

.content-grid {
  grid-template-columns: minmax(400px, 1.15fr) minmax(260px, 0.85fr);
}

.plan-grid {
  grid-template-columns: minmax(230px, 0.85fr) minmax(360px, 1.2fr) minmax(260px, 0.8fr);
}

.community-layout,
.import-layout {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
}

.import-layout {
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(240px, 0.75fr);
}

.section-block {
  min-width: 0;
}

.recipe-detail {
  display: none;
  padding: 18px;
  background: #fff8e8;
  border-top: 4px solid var(--green-mid);
}

.recipe-detail.active {
  display: block;
}

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

.recipe-detail h2 {
  margin: 0;
  font-size: 1.65rem;
}

.recipe-detail p {
  color: var(--muted);
  line-height: 1.48;
}

.detail-meta-grid {
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  margin: 14px 0;
}

.detail-meta {
  min-height: 66px;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #d8c79e;
  background: #fff3d2;
}

.detail-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-meta strong {
  display: block;
  margin-top: 4px;
}

.detail-columns {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
}

.detail-list {
  margin: 0;
  padding-left: 19px;
}

.detail-list li {
  margin: 7px 0;
}

.section-title {
  justify-content: space-between;
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #d8c79e;
  border-radius: 7px;
  background: var(--panel);
}

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

th,
td {
  border-bottom: 1px solid #eadcbb;
  padding: 7px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
}

td input {
  min-width: 74px;
  padding: 7px;
}

td:nth-child(3) input {
  min-width: 170px;
}

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

.match-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #d7c59a;
  background: #fff0c9;
}

.stat-card {
  min-height: 76px;
  display: grid;
  gap: 6px;
  padding: 13px 14px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.stat-card strong {
  font-size: 1.35rem;
}

.stat-card.accent {
  background: var(--green-dark);
  color: #fffaf0;
  border-color: var(--green-dark);
}

.stat-card.accent span {
  color: #dce8d9;
}

.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid #d7c59a;
  background: #fff0c9;
}

.page-intro h2 {
  max-width: 680px;
  margin: 0;
  font-size: 1.28rem;
}

.planner-days,
.shopping-list,
.community-list {
  display: grid;
  gap: 10px;
}

.day-row,
.shop-category,
.community-card,
.insight-panel,
.roadmap-list,
.empty-state,
.site-panel,
.record-card,
.pantry-match-card {
  padding: 12px;
}

.day-row strong {
  display: block;
  margin-bottom: 8px;
}

.store-toggle {
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.shopping-actions {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  margin-bottom: 12px;
}

.shop-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--green-dark);
  color: #fffaf0;
  border-color: var(--green-dark);
}

.shop-total span {
  color: #dce8d9;
  font-weight: 800;
}

.shop-category h3,
.community-card h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.shop-category a {
  color: var(--green-mid);
  font-weight: 750;
}

.shop-category ul {
  margin: 0;
  padding-left: 19px;
}

.shop-category li {
  margin: 7px 0;
}

.shop-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.shop-buy-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: start;
}

.shop-buy-row label {
  display: contents;
}

.shop-buy-row input {
  margin-top: 3px;
}

.shop-buy-row .already-have {
  color: var(--muted);
  text-decoration: line-through;
}

.shop-row span:last-child {
  color: var(--muted);
  text-align: right;
}

.metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eadcbb;
}

.metric span,
.muted {
  color: var(--muted);
}

.metric strong {
  font-size: 1.15rem;
}

.insight-panel {
  margin-top: 12px;
  border-top: 3px solid var(--gold);
  background: #fff8e8;
}

.empty-state {
  border: 1px dashed #cdb982;
  border-radius: 7px;
  background: #fff8e8;
}

.empty-state strong {
  display: block;
  margin-bottom: 5px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.insight-panel h3 {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.version-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.version-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #e1d2ab;
  border-radius: 8px;
  background: #fffaf0;
}

.version-row strong,
.version-row p {
  margin: 0;
}

.version-row strong {
  display: block;
  margin-top: 8px;
  color: var(--green-dark);
}

.version-row p {
  color: var(--muted);
  line-height: 1.45;
}

.insight-panel p,
.community-card p,
.roadmap-list p {
  margin: 7px 0;
  color: var(--muted);
  line-height: 1.42;
}

.community-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.roadmap-list {
  border-top: 3px solid var(--green-mid);
}

.pantry-panel {
  grid-column: 1 / -1;
}

.pantry-hero {
  border-top: 4px solid var(--green-mid);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.96), rgba(231, 239, 225, 0.78));
}

.plan-lead {
  margin: 0 0 12px;
  color: #4a5748;
  line-height: 1.55;
}

.pantry-actions {
  margin-bottom: 12px;
}

.pantry-panel textarea {
  margin-bottom: 10px;
}

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

.pantry-match-card {
  border-top: 3px solid var(--green-mid);
  background: #fff8e8;
}

.pantry-match-card strong {
  color: var(--green-dark);
}

.pantry-match-card h3,
.pantry-match-card p {
  margin: 0;
}

.pantry-match-card h3 {
  font-size: 1rem;
  color: var(--green-dark);
}

.pantry-match-card p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.42;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 10px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--green-dark);
  color: #fffaf0;
  font-size: 0.78rem;
  font-weight: 800;
}

.record-grid {
  grid-template-columns: repeat(2, minmax(95px, 1fr));
}

.record-card {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-top: 3px solid var(--green-mid);
}

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

.record-card strong {
  font-size: 1.2rem;
}

.site-band {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 26px 22px 38px;
  border-top: 1px solid #d7c59a;
  background: linear-gradient(180deg, rgba(246, 232, 198, 0.82), rgba(255, 246, 226, 0.92));
}

.site-panel {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: rgba(255, 248, 232, 0.82);
  box-shadow: 0 14px 30px rgba(42, 31, 14, 0.05);
}

.site-panel h2,
.site-panel h3,
.site-panel p {
  margin: 0;
}

.site-panel h2 {
  font-size: 1.32rem;
}

.site-panel p {
  color: var(--muted);
  line-height: 1.52;
}

.lead-panel {
  grid-column: span 4;
  border-top: 4px solid var(--green-dark);
}

.brand-panel {
  grid-column: span 5;
  gap: 12px;
}

.brand-panel img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 7px;
  background: #fff3d2;
  border: 1px solid #d8bd82;
}

.site-band > .site-panel:nth-child(3),
.site-band > .site-panel:nth-child(4),
.site-band > .site-panel:nth-child(5) {
  grid-column: span 3;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  background: var(--green-dark);
  color: #fffaf0;
}

.site-footer span {
  color: #dce8d9;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff1cf;
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-note {
  padding: 8px 22px 24px;
  background: linear-gradient(180deg, rgba(8, 45, 26, 0.03), rgba(8, 45, 26, 0));
}

.footer-note-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 10px;
  border-top: 1px solid rgba(111, 116, 95, 0.18);
}

.footer-note p {
  margin: 0;
  color: rgba(79, 89, 73, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.legal-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 223, 173, 0.7), transparent 340px),
    linear-gradient(180deg, #fff8e9 0, var(--paper) 360px);
  color: var(--ink);
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

.legal-header {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 900;
}

.legal-brand img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid #d8bd82;
  background: #fff3d2;
  object-fit: contain;
}

.legal-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 14px 28px rgba(42, 31, 14, 0.08);
}

.legal-card h1,
.legal-card h2,
.legal-card p,
.legal-card li {
  max-width: 78ch;
}

.legal-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 0.98;
  color: var(--green-dark);
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: 1.2rem;
  color: var(--green-dark);
}

.legal-card p,
.legal-card li {
  color: #445044;
  line-height: 1.6;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1120px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .home-image-strip {
    grid-template-columns: 1fr;
  }

  .pricing-preview {
    grid-template-columns: 1fr;
  }

  .plan-clarity,
  .launch-offer,
  .onboarding-flow {
    grid-template-columns: 1fr;
  }

  .workspace,
  .plan-grid,
  .content-grid,
  .detail-columns,
  .community-layout,
  .import-layout,
  .overview-strip,
  .site-band,
  .pantry-results,
  .detail-meta-grid,
  .account-summary-grid,
  .account-columns {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .recipe-list,
  .planner-days {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  .panel-header,
  .recipe-detail-header,
  .page-intro,
  .site-footer {
    display: block;
  }

  .toolbar,
  .main-nav {
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .brand-lockup {
    align-items: flex-start;
  }

  .brand-mark {
    width: 108px;
    height: 108px;
    flex: 0 0 auto;
  }

  .topbar .eyebrow {
    font-size: 2.45rem;
  }

  .main-nav {
    margin-top: 0;
    padding: 10px 18px;
  }

  .meta-grid,
  .recipe-list,
  .planner-days,
  .shopping-actions,
  .custom-store-form {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .home-image-strip,
  .pricing-preview,
  .plan-clarity,
  .launch-offer,
  .onboarding-flow {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-note {
    padding-left: 18px;
    padding-right: 18px;
  }

  .notice-bar {
    margin: 14px 18px 0;
  }

  .login-modal {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  .account-modal {
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 22px;
  }

  .login-art {
    display: none;
  }

  .login-form {
    padding: 28px 22px;
  }

  .login-form h2 {
    font-size: 1.6rem;
  }

  .comparison-row {
    grid-template-columns: 1.15fr 0.8fr 0.95fr;
    font-size: 0.95rem;
  }

  .scale-box {
    width: 100%;
    margin-top: 12px;
  }

  .footer-links {
    margin-top: 12px;
  }
}
