:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --wash: #f4efe6;
  --ink: #243027;
  --muted: #6b7168;
  --line: #ddd4c6;
  --line-strong: #c9bca9;
  --tomato: #d7553f;
  --tomato-soft: #ffe6df;
  --sage: #63886e;
  --sage-soft: #e4efe3;
  --blue: #316c8d;
  --blue-soft: #e0eef5;
  --gold: #b98324;
  --gold-soft: #fff0c6;
  --rose: #a44760;
  --rose-soft: #f8e1e8;
  --shadow: 0 18px 42px rgba(67, 53, 33, 0.12);
  --tight-shadow: 0 9px 22px rgba(67, 53, 33, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(36, 48, 39, 0.035) 1px, transparent 1px) 0 0 / 54px 54px,
    linear-gradient(0deg, rgba(36, 48, 39, 0.03) 1px, transparent 1px) 0 0 / 54px 54px,
    radial-gradient(circle at 8% 6%, rgba(215, 85, 63, 0.13), transparent 27%),
    radial-gradient(circle at 90% 2%, rgba(49, 108, 141, 0.13), transparent 25%),
    var(--paper);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(45deg, rgba(36, 48, 39, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(36, 48, 39, 0.03) 25%, transparent 25%);
  background-size: 7px 7px;
}

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

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.app {
  position: relative;
  z-index: 1;
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--tight-shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--tomato), var(--gold));
  border-radius: var(--radius);
  box-shadow: 0 9px 20px rgba(215, 85, 63, 0.24);
}

.brand strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 6px;
  min-width: 0;
}

.flow-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 8px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
}

.flow-link:hover,
.flow-link.active {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 7px 16px rgba(67, 53, 33, 0.07);
}

.flow-link b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-size: 11px;
}

.flow-link span {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.button {
  padding: 0 12px;
}

.icon-button {
  width: 38px;
}

.button.primary {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.button.accent {
  color: #fff;
  background: var(--tomato);
  border-color: var(--tomato);
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(67, 53, 33, 0.11);
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 18px;
  align-items: stretch;
  min-height: 230px;
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(36, 48, 39, 0.9), rgba(36, 48, 39, 0.54)),
    var(--hero-image) center / cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro-copy {
  align-self: end;
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.intro-band h1 {
  margin: 22px 0 9px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-band p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
}

.next-box {
  align-self: end;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius);
}

.next-box span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.next-box strong {
  display: block;
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.25;
}

.next-box p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  margin-top: 16px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.section-title h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-title p {
  max-width: 620px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.panel,
.task-card,
.option-card,
.review-card,
.preview-pane,
.phone-frame {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--tight-shadow);
}

.panel {
  padding: 16px;
}

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

.panel-header h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.status-pill,
.soft-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 27px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill {
  color: #2a4a30;
  background: var(--sage-soft);
  border: 1px solid #bfd6c1;
}

.soft-pill {
  color: #694512;
  background: var(--gold-soft);
  border: 1px solid #e6ca76;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  padding: 13px;
  box-shadow: none;
}

.task-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
}

.task-card:nth-child(2) .task-icon,
.option-card.tomato .option-icon {
  color: var(--tomato);
  background: var(--tomato-soft);
}

.task-card:nth-child(3) .task-icon,
.option-card.sage .option-icon {
  color: var(--sage);
  background: var(--sage-soft);
}

.task-card:nth-child(4) .task-icon,
.option-card.rose .option-icon {
  color: var(--rose);
  background: var(--rose-soft);
}

.task-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.task-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.task-state {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.drop-zone {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 240, 198, 0.52)),
    repeating-linear-gradient(135deg, rgba(185, 131, 36, 0.12) 0, rgba(185, 131, 36, 0.12) 1px, transparent 1px, transparent 13px);
  border: 1px dashed #ca9d44;
  border-radius: var(--radius);
}

.drop-zone .large-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #745014;
  background: #fff8df;
  border: 1px solid #e6ca76;
  border-radius: var(--radius);
}

.drop-zone h3 {
  margin: 16px 0 7px;
  font-size: 21px;
  line-height: 1.15;
}

.drop-zone p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.mini-form {
  display: grid;
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  font-size: 13px;
  font-weight: 750;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(49, 108, 141, 0.14);
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-card {
  padding: 13px;
  box-shadow: none;
}

.review-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.review-card h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.compare-box {
  min-height: 104px;
  padding: 11px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.compare-box span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-box p {
  margin-top: 7px;
  color: var(--ink);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
}

.small-button.approve {
  color: #284d32;
  background: var(--sage-soft);
  border-color: #bfd6c1;
}

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

.option-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  min-height: 96px;
  padding: 12px;
  box-shadow: none;
}

.option-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 7px;
}

.option-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.option-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.menu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.menu-table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.menu-table td {
  padding: 10px;
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  vertical-align: top;
}

.menu-table td:first-child {
  border-left: 1px solid var(--line);
  border-radius: 7px 0 0 7px;
}

.menu-table td:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 7px 7px 0;
  text-align: right;
  white-space: nowrap;
}

.photo-compare {
  position: relative;
  min-height: 302px;
  overflow: hidden;
  background: #eadfd0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.photo-compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-compare .before {
  filter: saturate(0.7) brightness(0.82);
  clip-path: inset(0 46% 0 0);
}

.photo-compare .divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(36, 48, 39, 0.2);
}

.photo-compare .labels {
  position: absolute;
  inset: 11px 11px auto;
  display: flex;
  justify-content: space-between;
}

.photo-compare .labels span {
  padding: 5px 8px;
  color: #fff;
  background: rgba(36, 48, 39, 0.74);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.language-toggle,
.mode-toggle {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.language-toggle button,
.mode-toggle button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
}

.language-toggle button.active,
.mode-toggle button.active {
  color: #fff;
  background: var(--ink);
}

.goal-list {
  display: grid;
  gap: 9px;
}

.goal-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 45px;
  padding: 10px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
}

.goal-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--tomato);
}

.goal-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.preview-pane {
  position: sticky;
  top: 16px;
  padding: 14px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}

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

.preview-title span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.preview-title h2 {
  margin: 2px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 25px;
  letter-spacing: 0;
}

.phone-frame {
  overflow: hidden;
  background: #fffdfa;
  border-color: #c9bea9;
  box-shadow: inset 0 0 0 6px #f3ede1, 0 20px 34px rgba(67, 53, 33, 0.14);
}

.phone-screen {
  min-height: 686px;
  margin: 6px;
  overflow: hidden;
  background: #fffaf2;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.guest-cover {
  min-height: 186px;
  padding: 14px;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(36, 48, 39, 0.72), rgba(36, 48, 39, 0.18)),
    var(--phone-image) center / cover;
}

.guest-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.guest-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 7px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.guest-cover h3 {
  margin: 60px 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.guest-cover p {
  max-width: 270px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.guest-body {
  padding: 13px;
}

.promo-strip {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  color: #503712;
  background: var(--gold-soft);
  border: 1px solid #e6ca76;
  border-radius: var(--radius);
}

.promo-strip img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
}

.promo-strip strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.promo-strip span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.guest-cats {
  display: flex;
  gap: 7px;
  margin: 13px -13px 10px;
  padding: 0 13px 4px;
  overflow: auto;
}

.guest-cats span {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 8px 11px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.guest-cats span:first-child {
  color: #fff;
  background: var(--tomato);
  border-color: var(--tomato);
}

.guest-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0;
}

.guest-heading h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1;
}

.guest-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.dish-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 9px;
}

.dish-row img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 7px;
}

.dish-row header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 7px;
}

.dish-row h5 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.dish-row strong {
  white-space: nowrap;
  font-size: 12px;
}

.dish-row p {
  margin: 5px 0 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
}

.pairing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 3px 7px;
  color: #1f4f3d;
  background: #e4f4ea;
  border: 1px solid #c3dfce;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.bottom-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.bottom-nav .button {
  min-width: 160px;
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .flow-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow: auto;
  }

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

  .preview-pane {
    position: static;
    max-height: none;
  }

  .preview-pane.preview-wide {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }

  .preview-wide .preview-title {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .app {
    padding: 10px;
  }

  .topbar,
  .intro-band,
  .content-grid,
  .compare,
  .option-grid,
  .preview-pane.preview-wide {
    grid-template-columns: 1fr;
  }

  .top-actions,
  .section-title,
  .panel-header,
  .bottom-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .top-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .top-actions .button {
    grid-column: span 2;
  }

  .flow-nav {
    grid-template-columns: repeat(5, minmax(148px, 1fr));
  }

  .intro-band {
    min-height: 360px;
  }

  .task-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .task-state {
    grid-column: 2;
  }

  .bottom-nav .button,
  .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .top-actions {
    grid-template-columns: 1fr;
  }

  .top-actions .button {
    grid-column: auto;
  }

  .intro-band h1 {
    font-size: 34px;
  }

  .menu-table {
    min-width: 520px;
  }

  .panel.table-panel {
    overflow: auto;
  }
}
