* {
  box-sizing: border-box;
}
html {
  scroll-padding-bottom: 140px;
}
body {
  background: #f8f6f2;
}
main {
  padding-bottom: 155px;
}
header {
  border-bottom: 0;
}
header h1 {
  font-size: 26px;
  margin-top: 20px;
}
#form > section {
  background: #fffdf9;
  border: 1px solid #ebe3d8;
  padding: 20px 17px;
  border-radius: 20px;
}
.search-label {
  display: block;
  font-size: 13px;
  color: #80604c;
  margin: 16px 0 8px;
}
.search-box {
  display: flex;
  align-items: center;
  background: #f4f0e9;
  border: 1px solid #e7dccc;
  border-radius: 12px;
  padding: 0 10px;
}
.search-box input {
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  font: inherit;
  padding: 13px 2px;
  color: #34241c;
  outline: none;
}
.search-box:focus-within {
  outline: 2px solid #b94b2c;
}
.search-box button,
.selection-heading button {
  border: 0;
  background: transparent;
  color: #984522;
  min-height: 44px;
  white-space: nowrap;
  font-size: 13px;
}
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 8px;
  scrollbar-width: thin;
}
.category-tabs button {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  color: #80604c;
  font-size: 14px;
}
.category-tabs button[aria-pressed="true"] {
  background: #f4e4d5;
  color: #963c23;
  font-weight: 600;
}
.selected-box {
  border-top: 1px dashed #e7dccc;
  margin-top: 18px;
  padding-top: 8px;
}
.selection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
#selected-dishes button {
  background: #f7e8dc;
  border: 1px solid #e5bba5;
  color: #8d3b23;
  font-size: 14px;
  padding: 9px 12px;
}
.show-more {
  width: 100%;
  border: 0;
  background: #f4f0e9;
  color: #805337;
  border-radius: 10px;
  padding: 13px;
  margin-top: 12px;
}
.generate-dock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 560px);
  padding: 10px 22px calc(14px + env(safe-area-inset-bottom));
  background: #f8f6f2;
  border-top: 1px solid #e7dccc;
  z-index: 5;
}
.generate-dock p {
  font-size: 12px;
  color: #805337;
  margin: 0 0 8px;
  text-align: center;
}
.generate-dock .primary {
  min-height: 50px;
  padding: 14px;
}
@media (max-width: 430px) {
  main {
    padding-left: 14px;
    padding-right: 14px;
  }
  #form > section {
    padding: 18px 14px;
  }
  .chips {
    gap: 8px;
  }
  .chips button {
    font-size: 15px;
    padding: 10px 12px;
  }
}
body {
  margin: 0;
  background: #fff8ee;
  color: #34241c;
  font-family: "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
}
main {
  max-width: 560px;
  margin: auto;
  padding: 28px 22px 40px;
}
header {
  padding: 8px 0 20px;
  border-bottom: 1px solid #eedecd;
}
.wordmark {
  font-size: 12px;
  letter-spacing: 2px;
  color: #80604c;
}
.badge {
  float: right;
  color: #9b4827;
  font-size: 12px;
  background: #f8e6d1;
  padding: 5px 9px;
  border-radius: 12px;
}
h1 {
  font-size: 29px;
  line-height: 1.3;
  margin: 24px 0 10px;
  letter-spacing: -1px;
}
header p {
  margin: 0;
  color: #805337;
  font-size: 18px;
}
section {
  margin-top: 26px;
}
h2 {
  font-size: 19px;
  margin: 0 0 12px;
}
h2 span {
  font-size: 12px;
  vertical-align: middle;
  color: #926447;
  margin-right: 7px;
}
small {
  font-size: 12px;
  color: #82614b;
  font-weight: 400;
}
.hint {
  color: #80604c;
  font-size: 13px;
  line-height: 1.6;
  margin: 8px 0 12px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.chips button {
  border: 1px solid #e9d9c7;
  background: #fffcf7;
  padding: 11px 16px;
  border-radius: 12px;
  color: #604839;
  min-height: 44px;
  font-size: 16px;
}
.chips button[aria-pressed="true"] {
  background: #b94b2c;
  border-color: #b94b2c;
  color: white;
}
.group {
  margin-top: 17px;
}
.group-label {
  font-size: 13px;
  color: #805337;
  margin: 0 0 9px;
}
button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:active {
  transform: scale(0.98);
}
button:focus-visible {
  outline: 3px solid #cb8b45;
  outline-offset: 3px;
}
textarea {
  width: 100%;
  background: #fffcf7;
  border: 1px solid #e9d9c7;
  border-radius: 14px;
  padding: 14px;
  font: inherit;
  line-height: 1.7;
  min-height: 100px;
  resize: vertical;
  color: #34241c;
}
textarea:focus {
  outline: 2px solid #d79572;
}
textarea::placeholder {
  color: #82614b;
}
.lengths {
  display: flex;
  gap: 6px;
  background: #f4e9da;
  padding: 5px;
  border-radius: 12px;
}
.lengths button {
  flex: 1;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 9px;
  color: #795236;
}
.lengths button[aria-pressed="true"] {
  background: #fffdf8;
  color: #733e26;
  box-shadow: 0 2px 4px #6b321a0c;
}
.primary {
  width: 100%;
  border: 0;
  border-radius: 15px;
  background: #b94b2c;
  color: white;
  padding: 17px;
  font-weight: 600;
  min-height: 54px;
}
.centered {
  text-align: center;
}
.review-card {
  background: #fffdf8;
  border: 1px solid #e9d9c7;
  padding: 19px;
  border-radius: 17px;
  margin: 13px 0;
}
.review-card.selected {
  border: 2px solid #b94b2c;
  padding: 18px;
}
.review-card p {
  font-size: 17px;
  line-height: 1.85;
  margin: 10px 0 16px;
  white-space: pre-wrap;
}
.review-card button {
  border: 0;
  background: #f7e8d8;
  border-radius: 9px;
  padding: 10px 17px;
  color: #984522;
}
.eyebrow {
  font-size: 13px;
  color: #805337;
}
.result-title {
  font-size: 25px;
}
#editor-box label {
  display: block;
  font-weight: 600;
  margin: 24px 0 10px;
}
#editor {
  min-height: 145px;
  margin-bottom: 12px;
}
.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
}
.outline {
  flex: 1;
  min-height: 48px;
  border: 1px solid #d8bba1;
  background: transparent;
  border-radius: 12px;
  color: #795236;
}
#status {
  color: #a2462a;
  text-align: center;
  line-height: 1.6;
}
footer {
  text-align: center;
  font-size: 12px;
  color: #80604c;
  margin: 28px 0 0;
}
.notice {
  padding: 12px;
  margin-top: 15px;
  background: #f7e8d8;
  border-radius: 12px;
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 360px) {
  main {
    padding: 20px 16px;
  }
  .chips button {
    padding: 10px 12px;
  }
  h1 {
    font-size: 25px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      border-color 0.15s;
  }
}
body {
  background: #f8f6f2;
}
main {
  padding: 24px 18px 155px;
}
.chips button {
  font-size: 15px;
  padding: 10px 12px;
}
@media (max-width: 430px) {
  main {
    padding: 20px 14px 155px;
  }
}
