:root {
  --re-green-950: #0f261d;
  --re-green-900: #143329;
  --re-green-800: #18513d;
  --re-green-700: #087453;
  --re-green-500: #34a477;
  --re-green-100: #e7f3ec;
  --re-gold: #c79731;
  --re-cream: #f7faf8;
  --re-white: #fff;
  --re-ink: #142a20;
  --re-muted: #607269;
  --re-line: #d8e6de;
  --re-danger: #9d302f;
  --re-warning: #996414;
  --re-radius: 8px;
  --re-shadow: 0 14px 36px rgba(15, 73, 51, .09);
}

.re-recipe-form,
.re-dashboard,
.re-account,
.re-account-grid,
.re-register-form,
.re-login-required,
.re-recipe-card {
  color: var(--re-ink);
}

.re-eyebrow,
.re-halaal-badge {
  margin: 0 0 .6rem;
  color: var(--re-green-700);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.re-form-heading,
.re-dashboard-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.re-form-heading { display: block; }
.re-form-heading h1,
.re-dashboard-heading h1 { margin: 0 0 .5rem; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1; }
.re-form-heading p:last-child,
.re-dashboard-heading p:last-child { margin: 0; color: var(--re-muted); }

.re-wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--re-line);
}
.re-wizard-steps li { display: flex; gap: .5rem; align-items: center; padding: 0 0 .8rem; color: var(--re-muted); font-size: .9rem; }
.re-wizard-steps li span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--re-green-100); }
.re-wizard-steps li.is-active { color: var(--re-green-700); border-bottom: 2px solid var(--re-green-500); }

.re-form-panel { padding: 1.5rem; background: var(--re-white); border: 1px solid var(--re-line); border-radius: var(--re-radius); box-shadow: var(--re-shadow); }
.re-form-panel[hidden] { display: none; }
.re-form-grid { display: grid; gap: 1.5rem; }
.re-form-grid-main { grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); }
.re-form-fields { display: grid; gap: 1rem; }
.re-field { display: grid; gap: .45rem; font-weight: 600; }
.re-field span { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.re-field small { color: var(--re-muted); font-weight: 400; }
.re-field b { color: var(--re-green-700); font-size: .72rem; text-transform: uppercase; }
.re-field input,
.re-field textarea,
.re-field select,
.re-repeat-row input,
.re-repeat-row textarea,
.re-dashboard-tools input,
.re-dashboard-tools select {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  padding: .75rem .9rem;
  color: var(--re-ink);
  background: var(--re-white);
  border: 1px solid var(--re-line);
  border-radius: var(--re-radius);
  font: inherit;
}
.re-field textarea,
.re-repeat-row textarea { resize: vertical; }
.re-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.re-photo-field { display: grid; place-items: center; align-content: center; gap: .7rem; min-height: 260px; padding: 1.5rem; text-align: center; color: var(--re-muted); background: var(--re-green-100); border: 1px dashed var(--re-green-500); border-radius: var(--re-radius); }
.re-photo-field strong { color: var(--re-ink); }
.re-photo-field input { max-width: 100%; }
.re-photo-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--re-white); background: var(--re-green-700); border-radius: 50%; font-size: 1.5rem; }
.re-panel-heading { margin-bottom: 1.25rem; }
.re-panel-heading h2 { margin: 0 0 .35rem; }
.re-panel-heading p { margin: 0; color: var(--re-muted); }
.re-repeat-list { display: grid; gap: .7rem; margin-bottom: 1rem; }
.re-repeat-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 2.5rem; gap: .6rem; align-items: center; }
.re-row-number { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--re-green-700); background: var(--re-green-100); border-radius: 50%; font-weight: 700; }
.re-remove-row { min-height: 40px; border: 0; color: var(--re-muted); background: transparent; font-size: 1.5rem; cursor: pointer; }
.re-halaal-confirmation,
.re-terms { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem; background: var(--re-green-100); border-radius: var(--re-radius); }
.re-halaal-confirmation input,
.re-terms input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; }
.re-halaal-confirmation strong,
.re-halaal-confirmation small { display: block; }
.re-halaal-confirmation small { margin-top: .25rem; color: var(--re-muted); }
.re-step-actions,
.re-account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; margin-top: 1.5rem; }
.re-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: .7rem 1rem; border: 1px solid var(--re-line); border-radius: var(--re-radius); cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; }
.re-button-primary { color: var(--re-white); background: var(--re-green-700); border-color: var(--re-green-700); }
.re-button-secondary { color: var(--re-ink); background: var(--re-white); }
.re-dashboard-tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: .7rem; margin-bottom: 1rem; }
.re-recipe-list { overflow: hidden; background: var(--re-white); border: 1px solid var(--re-line); border-radius: var(--re-radius); box-shadow: var(--re-shadow); }
.re-list-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; gap: 1rem; align-items: center; padding: 1rem; border-bottom: 1px solid var(--re-line); }
.re-list-item:last-child { border-bottom: 0; }
.re-list-image { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; background: var(--re-green-100); border-radius: var(--re-radius); font-size: 1.75rem; }
.re-list-image img { width: 100%; height: 100%; object-fit: cover; }
.re-list-copy h2 { margin: 0 0 .25rem; font-size: 1.05rem; }
.re-list-copy p { margin: 0; color: var(--re-muted); font-size: .82rem; }
.re-review-note { margin-top: .35rem !important; color: var(--re-danger) !important; }
.re-status { padding: .35rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.re-status-publish { color: var(--re-green-700); background: var(--re-green-100); }
.re-status-pending { color: var(--re-warning); background: #fff5dc; }
.re-status-draft { color: var(--re-muted); background: #eef2ef; }
.re-status-changes-requested { color: var(--re-danger); background: #fdeceb; }
.re-empty-state,
.re-login-required { padding: 3rem 1.5rem; text-align: center; }
.re-notice { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: var(--re-radius); }
.re-notice-success { color: var(--re-green-800); background: var(--re-green-100); }
.re-notice-error { color: var(--re-danger); background: #fdeceb; }
.re-notice ul { margin: 0; }
.re-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.re-account-grid section,
.re-register-form { padding: 1.5rem; background: var(--re-white); border: 1px solid var(--re-line); border-radius: var(--re-radius); box-shadow: var(--re-shadow); }
.re-register-form { display: grid; gap: 1rem; max-width: 640px; margin-inline: auto; }
.re-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.re-recipe-card { max-width: 960px; margin-inline: auto; }
.re-recipe-header { max-width: 760px; margin-bottom: 1.5rem; }
.re-recipe-header h1 { margin: 0 0 .7rem; font-size: clamp(2.5rem, 7vw, 5rem); line-height: .98; }
.re-recipe-intro { color: var(--re-muted); font-size: 1.15rem; }
.re-recipe-author { font-size: .85rem; }
.re-recipe-image { margin: 0 0 1.5rem; }
.re-recipe-image img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--re-radius); }
.re-recipe-facts { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.re-recipe-facts div { min-width: 130px; padding: .8rem 1rem; background: var(--re-green-100); border-radius: var(--re-radius); }
.re-recipe-facts span,
.re-recipe-facts strong { display: block; }
.re-recipe-facts span { color: var(--re-muted); font-size: .75rem; }
.re-recipe-columns { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 2rem; }
.re-recipe-columns section { padding: 1.5rem; background: var(--re-white); border: 1px solid var(--re-line); border-radius: var(--re-radius); }
.re-recipe-columns h2 { margin-top: 0; }
.re-recipe-columns li { margin-bottom: .75rem; line-height: 1.55; }
.re-legacy-recipe-content { overflow: hidden; padding: clamp(1.2rem, 4vw, 2.25rem); background: var(--re-white); border: 1px solid var(--re-line); border-radius: var(--re-radius); box-shadow: var(--re-shadow); line-height: 1.7; }
.re-legacy-recipe-content > :first-child { margin-top: 0; }
.re-legacy-recipe-content > :last-child { margin-bottom: 0; }
.re-legacy-recipe-content h2,
.re-legacy-recipe-content h3,
.re-legacy-recipe-content strong { color: var(--re-green-800); }
.re-legacy-recipe-content li { margin-bottom: .5rem; }
.re-legacy-recipe-content img { display: block; width: auto; max-width: min(100%, 620px); height: auto; margin: 1rem auto; border-radius: var(--re-radius); }
.re-site-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; max-width: 690px; padding: .5rem; background: var(--re-white); border: 1px solid var(--re-line); border-radius: var(--re-radius); box-shadow: var(--re-shadow); }
.re-site-search input { min-width: 0; min-height: 46px; padding: .75rem; border: 0; font: inherit; }
.re-site-search button { min-height: 46px; padding: .75rem 1.2rem; color: var(--re-white); background: var(--re-green-700); border: 0; border-radius: var(--re-radius); font: inherit; font-weight: 700; }

@media (max-width: 760px) {
  .re-form-grid-main,
  .re-account-grid,
  .re-recipe-columns { grid-template-columns: 1fr; }
  .re-form-heading,
  .re-dashboard-heading { align-items: flex-start; flex-direction: column; }
  .re-dashboard-tools { grid-template-columns: 1fr; }
  .re-list-item { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .re-list-image { width: 54px; height: 54px; }
  .re-status { grid-column: 2; width: max-content; }
  .re-list-item .re-button { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 520px) {
  .re-form-panel { padding: 1rem; }
  .re-field-row { grid-template-columns: 1fr; }
  .re-wizard-steps { gap: .25rem; }
  .re-wizard-steps li { align-items: flex-start; flex-direction: column; font-size: .75rem; }
  .re-step-actions { flex-direction: column-reverse; }
  .re-step-actions .re-button { width: 100%; }
  .re-list-item { grid-template-columns: 48px minmax(0, 1fr); }
  .re-list-item .re-button { grid-column: 1 / -1; grid-row: auto; }
  .re-site-search { grid-template-columns: 1fr; }
}

@media print {
  body * { visibility: hidden; }
  .re-recipe-card,
  .re-recipe-card * { visibility: visible; }
  .re-recipe-card { position: absolute; inset: 0; color: #000; }
  .re-recipe-actions { display: none; }
}
