:root {
  --bg: #f4f1eb;
  --phone-bg: #fbfaf7;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: #ffffff;
  --line: rgba(42, 40, 35, 0.1);
  --text: #23221f;
  --muted: #827f77;
  --subtle: #b7b1a6;
  --tomato: #d85c45;
  --tomato-soft: #fff0eb;
  --sage: #6d8c74;
  --sage-soft: #edf5ee;
  --egg: #d6a83d;
  --blue: #668aa0;
  --shadow: 0 18px 50px rgba(38, 32, 22, 0.14);
  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.96), rgba(244, 241, 235, 0.94)),
    #f4f1eb;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overscroll-behavior-y: none;
}

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

button {
  border: 0;
  cursor: pointer;
}

.prototype-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.phone-frame {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--phone-bg);
  box-shadow: none;
  isolation: isolate;
}

.status-bar {
  display: none;
}

.system-icons {
  display: flex;
  gap: 5px;
  align-items: center;
}

.system-icons span {
  display: block;
  background: #1e1e1e;
}

.system-icons span:nth-child(1) {
  width: 17px;
  height: 10px;
  clip-path: polygon(0 100%, 22% 72%, 44% 48%, 66% 24%, 88% 0, 100% 0, 100% 100%);
}

.system-icons span:nth-child(2) {
  width: 15px;
  height: 10px;
  border-radius: 2px;
  opacity: 0.85;
}

.system-icons span:nth-child(3) {
  width: 22px;
  height: 10px;
  border-radius: 3px;
}

.mini-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: calc(58px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: end;
  padding: calc(8px + env(safe-area-inset-top)) 18px 10px;
  border-bottom: 1px solid rgba(42, 40, 35, 0.06);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(26px);
}

.mini-header h1 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.ghost-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(35, 34, 31, 0.14);
  transition: opacity 160ms ease;
}

.header-action {
  justify-self: end;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 34, 31, 0.12);
}

.header-action .tab-my {
  width: 18px;
  height: 18px;
}

.ghost-icon.is-muted {
  opacity: 0.38;
}

.chevron-left {
  width: 11px;
  height: 11px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
}

.wechat-capsule {
  display: none;
}

.wechat-capsule span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1b1b1b;
  box-shadow: 7px 0 0 #1b1b1b, 14px 0 0 #1b1b1b;
}

.wechat-capsule span:last-child {
  width: 14px;
  height: 14px;
  box-shadow: none;
  background: transparent;
  border: 2px solid #1b1b1b;
}

.wechat-capsule i {
  height: 18px;
  width: 1px;
  background: rgba(30, 30, 30, 0.14);
}

.app-scroll {
  height: calc(100dvh - 58px - env(safe-area-inset-top) - 78px - env(safe-area-inset-bottom));
  overflow-y: auto;
  scrollbar-width: none;
  padding: 14px 18px calc(96px + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.app-scroll::-webkit-scrollbar {
  display: none;
}

.page {
  display: none;
  animation: fadeIn 180ms ease-out;
}

.page.is-active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-panel,
.random-card,
.tonight-summary,
.recommend-card,
.decision-card,
.combo-card,
.cook-summary,
.cook-section,
.prep-hero,
.prep-panel,
.recipe-hero,
.recipe-panel,
.dish-form,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 8px 28px rgba(48, 43, 34, 0.07);
  backdrop-filter: blur(18px);
}

.hero-panel {
  padding: 26px 22px 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 249, 240, 0.78)),
    radial-gradient(circle at 92% 14%, rgba(216, 92, 69, 0.14), transparent 34%);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--sage);
  font-size: 12px;
  font-weight: 750;
}

.hero-panel h2,
.random-card h2,
.tonight-summary h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.12;
}

.hero-panel p:not(.eyebrow),
.tonight-summary p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.hero-actions,
.tonight-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.primary-btn,
.secondary-btn,
.quiet-btn {
  min-height: 46px;
  border-radius: 999px;
  font-weight: 750;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(180deg, #df705d 0%, var(--tomato) 100%);
  box-shadow: 0 8px 18px rgba(216, 92, 69, 0.24);
}

.secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.quiet-btn {
  grid-column: 1 / -1;
  color: var(--tomato);
  background: rgba(216, 92, 69, 0.08);
  border: 1px solid rgba(216, 92, 69, 0.12);
}

.section-block {
  margin-top: 26px;
}

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

.section-heading h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.text-btn {
  color: var(--tomato);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.recent-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -18px;
  padding: 0 18px 4px;
  scrollbar-width: none;
}

.recent-scroller::-webkit-scrollbar {
  display: none;
}

.recent-card {
  flex: 0 0 132px;
  display: grid;
  gap: 7px;
  text-align: left;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.recent-card .dish-photo {
  width: 100%;
  height: 68px;
  border-radius: 14px;
}

.recent-card strong {
  color: var(--text);
  font-size: 14px;
}

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

.compact-row,
.selected-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-card {
  position: relative;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  text-align: left;
}

.dish-photo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(35, 34, 31, 0.08);
  object-fit: cover;
  background: #eee7dc;
  box-shadow: 0 6px 14px rgba(48, 43, 34, 0.1);
}

.quick-card .dish-photo {
  width: 100%;
  height: 64px;
  margin-bottom: 10px;
  border-radius: 14px;
}

.dish-card .dish-photo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
}

.tab-home,
.tab-menu,
.tab-tonight,
.tab-add,
.tab-my,
.search-icon,
.line-bowl {
  content: "";
  display: block;
}

.dish-title {
  min-width: 0;
  flex: 1;
}

.dish-title strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.dish-title span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.055);
  font-size: 11px;
  font-weight: 700;
}

.status-pill.is-want {
  color: var(--tomato);
  background: var(--tomato-soft);
}

.status-pill.is-done {
  color: var(--blue);
  background: #edf5f9;
}

.status-pill.is-regular {
  color: var(--sage);
  background: var(--sage-soft);
}

.search-row {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(235, 232, 226, 0.78);
}

.search-icon {
  width: 16px;
  height: 16px;
  border: 2px solid var(--subtle);
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 7px;
  height: 2px;
  border-radius: 2px;
  background: var(--subtle);
  transform: rotate(45deg);
}

.search-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.dimension-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 12px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(235, 232, 226, 0.78);
  scrollbar-width: none;
}

.dimension-tabs::-webkit-scrollbar {
  display: none;
}

.dimension-tabs button {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.dimension-tabs button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 5px 14px rgba(48, 43, 34, 0.08);
}

.menu-order-layout {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
  align-items: start;
}

.category-rail {
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-rail button {
  min-height: 42px;
  padding: 0 8px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 750;
}

.category-rail button.is-active {
  color: #fff;
  background: var(--text);
  box-shadow: 0 8px 18px rgba(35, 34, 31, 0.14);
}

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

.menu-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.menu-section-title strong {
  color: var(--tomato);
  font-size: 12px;
  font-weight: 800;
}

.dish-list,
.selected-list {
  display: grid;
  gap: 12px;
}

.dish-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 32px;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.dish-open {
  margin-top: 7px;
  padding: 0;
  color: var(--tomato);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.add-btn,
.remove-btn,
.mini-add-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--tomato);
}

.add-btn::before,
.add-btn::after,
.mini-add-btn::before,
.mini-add-btn::after {
  content: "";
  grid-area: 1 / 1;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.add-btn::after {
  transform: rotate(90deg);
}

.mini-add-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  background: rgba(216, 92, 69, 0.92);
}

.mini-add-btn::before,
.mini-add-btn::after {
  display: block;
}

.mini-add-btn::after {
  transform: rotate(90deg);
}

.add-btn.is-selected,
.mini-add-btn.is-selected {
  background: var(--sage);
}

.add-btn.is-selected::after,
.mini-add-btn.is-selected::after {
  display: none;
}

.remove-btn {
  background: rgba(35, 34, 31, 0.09);
  color: var(--muted);
}

.remove-btn::before {
  content: "";
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.random-card,
.tonight-summary,
.recommend-card,
.decision-card,
.cook-summary,
.cook-section,
.prep-hero,
.prep-panel,
.recipe-hero,
.recipe-panel {
  padding: 20px;
}

.mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.mood-grid button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.recommend-panel {
  margin-top: 16px;
}

.empty-recommend,
.empty-state {
  min-height: 188px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.line-bowl {
  width: 46px;
  height: 30px;
  border: 2px solid var(--subtle);
  border-top: 0;
  border-radius: 0 0 26px 26px;
}

.recommend-card {
  display: grid;
  gap: 16px;
}

.recommend-card .dish-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.tonight-summary {
  margin-bottom: 14px;
}

.selected-row {
  padding-right: 10px;
  cursor: pointer;
}

.combo-card {
  margin-top: 14px;
  padding: 16px;
}

.combo-card.is-supporting {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.combo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.combo-grid div {
  min-height: 62px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.combo-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.combo-grid strong {
  color: var(--text);
  font-size: 22px;
}

.combo-card p {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.confirmed-card {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(109, 140, 116, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(237, 245, 238, 0.76);
  box-shadow: 0 8px 28px rgba(48, 43, 34, 0.06);
}

.confirmed-card.is-visible {
  display: grid;
}

.confirmed-card strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.confirmed-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.selected-list.is-confirmed-focus {
  display: block;
}

.confirmed-dish-focus {
  padding: 16px;
  border: 1px solid rgba(216, 92, 69, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 236, 0.9)),
    radial-gradient(circle at 92% 8%, rgba(216, 92, 69, 0.12), transparent 30%);
  box-shadow: 0 16px 36px rgba(48, 43, 34, 0.08);
}

.confirmed-dish-focus-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.confirmed-dish-focus-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  letter-spacing: 0;
  line-height: 1.05;
}

.confirmed-dish-focus-head span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--tomato);
  background: rgba(216, 92, 69, 0.1);
  font-size: 12px;
  font-weight: 850;
}

.confirmed-dish-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.confirmed-dish-card {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 9px 12px 9px 9px;
  border: 1px solid rgba(42, 40, 35, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.confirmed-dish-card .dish-photo {
  width: 62px;
  height: 62px;
}

.confirmed-index {
  position: absolute;
  left: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--tomato);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(216, 92, 69, 0.2);
}

.cook-summary {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 235, 0.82)),
    radial-gradient(circle at 85% 16%, rgba(216, 92, 69, 0.12), transparent 32%);
}

.cook-summary h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0;
}

.cook-summary p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.cook-section,
.prep-panel {
  margin-top: 14px;
}

.cook-section .section-heading,
.prep-panel .section-heading {
  margin-bottom: 12px;
}

.cook-section .section-heading span,
.prep-panel .section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cook-dish-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 4px;
  scrollbar-width: none;
}

.cook-dish-list::-webkit-scrollbar {
  display: none;
}

.cook-dish {
  flex: 0 0 112px;
  display: grid;
  gap: 7px;
  text-align: left;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.cook-dish .dish-photo {
  width: 100%;
  height: 62px;
  border-radius: 14px;
}

.cook-dish span {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.cook-dish em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

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

.ingredient-card-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  margin: 0 -20px;
  padding: 0 20px 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ingredient-card-scroller::-webkit-scrollbar {
  display: none;
}

.ingredient-card {
  flex: 0 0 286px;
  scroll-snap-align: start;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.ingredient-card.is-total {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 240, 0.88)),
    radial-gradient(circle at 92% 10%, rgba(216, 92, 69, 0.1), transparent 34%);
}

.ingredient-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

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

.ingredient-card-head strong {
  color: var(--text);
  font-size: 16px;
}

.ingredient-card-head span,
.ingredient-card-head em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.ingredient-group {
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.ingredient-group > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tomato);
  font-size: 13px;
}

.ingredient-group div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(42, 40, 35, 0.06);
  color: var(--text);
  font-size: 14px;
}

.ingredient-group div:first-of-type {
  border-top: 0;
}

.ingredient-group em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.cook-order {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cook-step;
}

.cook-order li {
  counter-increment: cook-step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.cook-order li::before {
  content: counter(cook-step);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--tomato);
  font-weight: 900;
}

.cook-order strong,
.cook-order span {
  display: block;
}

.cook-order strong {
  color: var(--text);
  font-size: 14px;
}

.cook-order span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.cook-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.shopping-summary h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

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

.shopping-section-label {
  margin: 4px 2px 0;
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
}

.shopping-edit-row {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.shopping-edit-row.is-have {
  background: rgba(237, 245, 238, 0.72);
}

.shopping-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shopping-row-main strong,
.shopping-row-main span {
  display: block;
}

.shopping-row-main strong {
  font-size: 15px;
  color: var(--text);
}

.shopping-row-main span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.shopping-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--sage);
  background: var(--sage-soft);
  font-size: 12px;
  font-weight: 800;
}

.shopping-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--sage);
}

.shopping-amount {
  display: grid;
  grid-template-columns: 1fr 78px auto;
  align-items: end;
  gap: 7px;
}

.shopping-amount label {
  display: grid;
  gap: 4px;
}

.shopping-amount label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.shopping-amount input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.shopping-amount em {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.shopping-home-note {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--sage);
  background: rgba(109, 140, 116, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.prep-hero {
  overflow: hidden;
  padding: 0;
}

.prep-hero .recipe-cover {
  height: 188px;
  border-radius: 0;
}

.prep-hero .recipe-hero-text {
  padding: 17px 18px 18px;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-list span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(35, 34, 31, 0.055);
  font-size: 13px;
  font-weight: 750;
}

.decision-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.decision-card strong {
  display: block;
  margin-top: 6px;
  font-size: 16px;
}

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

.recipe-hero {
  overflow: hidden;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.recipe-cover {
  width: 100%;
  height: 92px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

.recipe-hero-text {
  min-width: 0;
  padding: 0;
}

.recipe-hero-text h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.recipe-hero-text p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.recipe-panel {
  margin-top: 14px;
  min-height: 454px;
}

.recipe-ingredients-panel,
.recipe-flow-panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 8px 28px rgba(48, 43, 34, 0.07);
  backdrop-filter: blur(18px);
}

.recipe-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.recipe-prep-time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--sage);
  background: var(--sage-soft);
  font-size: 12px;
  font-weight: 850;
}

.recipe-tool-row span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(35, 34, 31, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.recipe-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.recipe-progress strong {
  color: var(--tomato);
}

.recipe-step-card {
  margin-top: 14px;
  min-height: 336px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 250, 242, 0.88);
  border: 1px solid rgba(216, 92, 69, 0.12);
}

.vertical-step-list {
  display: grid;
  gap: 14px;
}

.vertical-step-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 250, 242, 0.94);
  border: 1px solid rgba(216, 92, 69, 0.12);
}

.vertical-step-card .step-visual {
  height: 238px;
  object-fit: cover;
  object-position: center;
}

.vertical-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vertical-step-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.vertical-step-head em {
  color: var(--tomato);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.vertical-step-card h3 {
  margin: 14px 0 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.vertical-step-card p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.42;
  font-size: 18px;
  font-weight: 760;
}

.step-visual {
  width: 100%;
  height: 156px;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(48, 43, 34, 0.08);
}

.recipe-step-card h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.recipe-step-card p {
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.45;
  font-size: 18px;
  font-weight: 650;
}

.recipe-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.vertical-step-card .tag-pill {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 850;
}

.recipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.prep-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.recipe-actions .primary-btn,
.recipe-actions .secondary-btn,
.prep-actions .primary-btn,
.prep-actions .secondary-btn {
  min-height: 62px;
  font-size: 18px;
}

.dish-form,
.recipe-compose,
.edit-form {
  display: grid;
  gap: 14px;
}

.dish-form,
.recipe-compose {
  padding: 0;
}

.edit-form {
  padding: 0 0 8px;
}

.add-hero,
.edit-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: 0 8px 28px rgba(48, 43, 34, 0.07);
}

.add-hero h2 {
  margin: 0;
  font-size: 28px;
}

.dish-form label,
.edit-form label {
  display: grid;
  gap: 7px;
}

.dish-form label > span,
.edit-form label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auto-suggest {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--sage-soft);
  border: 1px solid rgba(109, 140, 116, 0.16);
}

.auto-suggest span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
}

.auto-suggest strong {
  color: var(--text);
  font-size: 14px;
}

.dish-form input,
.dish-form select,
.dish-form textarea,
.edit-form input,
.edit-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
}

.dish-form textarea,
.edit-form textarea {
  min-height: 78px;
  resize: none;
  padding-top: 12px;
}

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

.slot-card {
  min-height: 62px;
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.8);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.slot-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.slot-card strong {
  color: var(--text);
  font-size: 16px;
}

.choice-groups {
  display: grid;
  gap: 12px;
}

.choice-group > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.choice-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-group button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.055);
  font-size: 13px;
  font-weight: 800;
}

.choice-group button.is-active {
  color: #fff;
  background: var(--tomato);
}

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

.edit-row {
  display: grid;
  grid-template-columns: 1fr 70px 58px;
  gap: 8px;
}

.step-edit-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.step-edit-card span {
  color: var(--tomato);
  font-size: 12px;
  font-weight: 900;
}

.submit-btn {
  margin-top: 4px;
}

.recipe-compose {
  padding-bottom: 18px;
}

.compose-title-block {
  display: grid;
  gap: 14px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(42, 40, 35, 0.08);
}

.compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.compose-actions .secondary-btn {
  min-height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(48, 43, 34, 0.08);
}

.recipe-title-input,
.recipe-story-input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.recipe-title-input {
  width: 100%;
  min-height: 52px;
  padding: 0;
  font-size: 30px;
  font-weight: 850;
}

.recipe-title-input::placeholder,
.recipe-story-input::placeholder {
  color: rgba(35, 34, 31, 0.36);
}

.recipe-story-input {
  min-height: 76px;
  resize: none;
  padding: 0;
  font-size: 20px;
  line-height: 1.45;
}

.cover-uploader {
  width: 100%;
  min-height: 154px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.045);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.cover-uploader span,
.cover-uploader strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.cover-uploader em {
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.cover-uploader.has-image {
  position: relative;
  display: block;
}

.cover-uploader.has-image img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.cover-uploader.has-image strong {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(35, 34, 31, 0.72);
  font-size: 13px;
  backdrop-filter: blur(12px);
}

.compose-section,
.advanced-settings,
.profile-section,
.profile-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 28px rgba(48, 43, 34, 0.06);
  backdrop-filter: blur(18px);
}

.compose-section {
  display: grid;
  gap: 12px;
  padding: 18px;
}

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

.compose-ingredient-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 46px 48px 28px;
  gap: 6px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.compose-ingredient-card input,
.compose-ingredient-card select,
.compose-step-title-input,
.tag-custom-input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(42, 40, 35, 0.08);
  outline: 0;
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.compose-ingredient-card input,
.compose-ingredient-card select {
  min-height: 32px;
  padding: 0 7px;
  font-size: 12px;
}

.compose-ingredient-card .ingredient-name-input {
  font-size: 14px;
  font-weight: 850;
}

.compose-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.07);
  font-size: 20px;
  font-weight: 700;
}

.mini-inline-btn {
  justify-self: start;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(42, 40, 35, 0.08);
  font-size: 13px;
  font-weight: 850;
}

.compose-ingredient-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(42, 40, 35, 0.08);
}

.compose-ingredient-row input,
.compose-step-card textarea,
.advanced-settings select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.compose-ingredient-row input {
  min-height: 38px;
  font-size: 16px;
}

.compose-ingredient-row input::placeholder,
.compose-step-card textarea::placeholder {
  color: rgba(35, 34, 31, 0.38);
}

.compose-two-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compose-step-tools {
  display: flex;
  gap: 8px;
}

.compose-step-tools button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(35, 34, 31, 0.055);
  font-size: 12px;
  font-weight: 800;
}

.compose-step-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 250, 242, 0.62);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.compose-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compose-step-card > strong {
  font-size: 16px;
}

.compose-step-head strong {
  color: var(--text);
  font-size: 16px;
}

.compose-step-head button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.step-image-placeholder {
  width: 100%;
  min-height: 178px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 18px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.045);
  overflow: hidden;
}

.step-image-placeholder.has-image {
  display: block;
  padding: 0;
}

.step-image-placeholder img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
}

.step-image-placeholder span,
.step-image-placeholder em {
  display: block;
}

.step-image-placeholder span {
  font-size: 15px;
  font-weight: 800;
}

.step-image-placeholder em {
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.compose-step-card textarea {
  min-height: 74px;
  resize: none;
  padding: 0;
  font-size: 18px;
  line-height: 1.45;
}

.compose-step-title-input {
  min-height: 40px;
  padding: 0 12px;
  font-size: 16px;
}

.step-tag-picker,
.step-chip-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(35, 34, 31, 0.035);
}

.step-tag-picker p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.step-chip-group {
  display: grid;
  gap: 7px;
}

.step-chip-group > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.step-chip-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.step-chip-group button {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(42, 40, 35, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.step-chip-group button.is-active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.tag-custom-input {
  min-height: 34px;
  margin-top: 2px;
  padding: 0 10px;
  font-size: 13px;
}

.advanced-settings {
  padding: 0 18px;
}

.advanced-settings summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
  cursor: pointer;
}

.advanced-settings summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--subtle);
  border-bottom: 3px solid var(--subtle);
  transform: rotate(-45deg);
}

.advanced-settings[open] summary::after {
  transform: rotate(45deg);
}

.advanced-hint {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.advanced-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.advanced-label-row span {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}

.advanced-label-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  text-align: right;
  line-height: 1.35;
}

.advanced-settings label {
  display: grid;
  gap: 7px;
  padding-bottom: 14px;
}

.advanced-settings label > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.advanced-settings select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.advanced-settings .slot-grid,
.advanced-settings .choice-groups {
  margin-bottom: 14px;
}

.compose-submit {
  min-height: 56px;
  border-radius: 18px;
  font-size: 17px;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 240, 0.84)),
    radial-gradient(circle at 88% 16%, rgba(109, 140, 116, 0.14), transparent 34%);
}

.profile-hero h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.profile-hero p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: var(--text);
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(35, 34, 31, 0.14);
}

.profile-section {
  margin-top: 14px;
  padding: 6px 16px;
}

.kitchen-card {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(109, 140, 116, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 245, 238, 0.76)),
    radial-gradient(circle at 88% 18%, rgba(109, 140, 116, 0.16), transparent 34%);
  box-shadow: 0 10px 30px rgba(48, 43, 34, 0.08);
  backdrop-filter: blur(18px);
}

.kitchen-card .section-heading {
  margin-bottom: 8px;
}

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

.kitchen-device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.kitchen-device-grid article {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.kitchen-device-grid strong,
.kitchen-device-grid span {
  display: block;
}

.kitchen-device-grid strong {
  color: var(--text);
  font-size: 15px;
}

.kitchen-device-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.kitchen-match-note {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(109, 140, 116, 0.1);
}

.kitchen-match-note span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 900;
}

.kitchen-match-note strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.profile-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 0;
  border-top: 1px solid rgba(42, 40, 35, 0.08);
  color: inherit;
  background: transparent;
  text-align: left;
}

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

.profile-row strong,
.profile-row span {
  display: block;
}

.profile-row strong {
  color: var(--text);
  font-size: 16px;
}

.profile-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
}

.profile-row:active {
  opacity: 0.72;
}

.profile-sheet-panel {
  max-height: 72%;
  overflow: auto;
}

.profile-sheet-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.profile-sheet-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

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

.profile-device-list article {
  min-height: 58px;
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.profile-device-list strong,
.profile-device-list span {
  display: block;
}

.profile-device-list strong {
  color: var(--text);
  font-size: 15px;
}

.profile-device-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.profile-device-list button {
  justify-self: start;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.06);
  font-size: 12px;
  font-weight: 850;
}

.device-editor-fields,
.kitchen-add-box {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.device-editor-fields input,
.kitchen-add-box input,
.kitchen-add-box select {
  min-width: 0;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(42, 40, 35, 0.08);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  outline: 0;
}

.kitchen-add-box {
  margin-top: 12px;
}

.kitchen-add-box button {
  grid-column: 1 / -1;
  min-height: 38px;
  border-radius: 14px;
  color: #fff;
  background: var(--tomato);
  font-weight: 900;
}

.leave-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.profile-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-choice-grid button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.055);
  border: 1px solid rgba(42, 40, 35, 0.08);
  font-size: 13px;
  font-weight: 850;
}

.profile-choice-grid button.is-active {
  color: #fff;
  background: var(--text);
  border-color: var(--text);
}

.is-large-kitchen-font .vertical-step-card h3 {
  font-size: 30px;
}

.is-large-kitchen-font .vertical-step-card p {
  font-size: 22px;
  line-height: 1.45;
}

.selected-dock {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 12;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease;
}

.selected-dock.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.selected-dock button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 40, 35, 0.1);
  box-shadow: 0 12px 26px rgba(48, 43, 34, 0.16);
  backdrop-filter: blur(24px);
}

.selected-dock span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.selected-dock strong {
  color: var(--tomato);
  font-size: 14px;
}

.dish-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  align-items: end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
}

.dish-sheet.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 34, 31, 0.18);
}

.sheet-panel {
  position: relative;
  margin: 0 14px calc(82px + env(safe-area-inset-bottom));
  padding: 10px 16px 16px;
  border-radius: 26px;
  background: rgba(255, 253, 250, 0.96);
  border: 1px solid rgba(42, 40, 35, 0.1);
  box-shadow: 0 18px 42px rgba(35, 34, 31, 0.18);
  backdrop-filter: blur(26px);
  transform: translateY(18px);
  transition: transform 180ms ease;
}

.dish-sheet.is-visible .sheet-panel {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(35, 34, 31, 0.18);
}

.sheet-dish {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet-dish .dish-photo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
}

.sheet-panel > p {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.selected-sheet-panel {
  margin-bottom: calc(96px + env(safe-area-inset-bottom));
}

.selected-sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.selected-sheet-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  letter-spacing: 0;
}

.selected-sheet-head > span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--tomato);
  background: var(--tomato-soft);
  font-size: 12px;
  font-weight: 900;
}

.selected-sheet-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.selected-sheet-list article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.mini-combo-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}

.mini-combo-row span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(35, 34, 31, 0.055);
  font-size: 12px;
  font-weight: 850;
}

.sheet-full-btn {
  width: 100%;
  margin-top: 14px;
}

.shopping-sheet-panel {
  max-height: calc(100% - 58px);
  margin: 0 14px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 28px;
  scrollbar-width: none;
}

.shopping-sheet-panel::-webkit-scrollbar {
  display: none;
}

.shopping-sheet-panel .sheet-handle {
  position: sticky;
  top: 0;
  z-index: 2;
  margin-bottom: 14px;
}

.export-card {
  padding: 6px 2px 0;
}

.export-card h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.export-list {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid rgba(42, 40, 35, 0.08);
}

.export-list.is-muted {
  background: rgba(237, 245, 238, 0.72);
}

.export-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--tomato);
  font-size: 13px;
}

.export-list.is-muted strong {
  color: var(--sage);
}

.export-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid rgba(42, 40, 35, 0.06);
  font-size: 14px;
}

.export-list div:first-of-type {
  border-top: 0;
}

.export-list em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.export-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.export-note {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tab-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(78px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(42, 40, 35, 0.08);
  background: rgba(253, 251, 247, 0.9);
  backdrop-filter: blur(24px);
}

.tab-bar button {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.tab-bar button.is-active {
  color: var(--tomato);
}

.tab-home,
.tab-menu,
.tab-tonight,
.tab-add,
.tab-my {
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
}

.tab-home {
  border-radius: 6px;
  clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
}

.tab-menu {
  border-radius: 7px;
  position: relative;
}

.tab-menu::before,
.tab-menu::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.tab-menu::before {
  top: 6px;
}

.tab-menu::after {
  bottom: 6px;
}

.tab-tonight {
  border-radius: 7px;
  position: relative;
}

.tab-tonight::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 7px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.tab-add {
  border-radius: 50%;
  position: relative;
}

.tab-add::before,
.tab-add::after {
  content: "";
  position: absolute;
  inset: 9px 5px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.tab-add::after {
  transform: rotate(90deg);
}

.tab-create-button {
  transform: translateY(-15px);
}

.tab-create-button .tab-add {
  width: 54px;
  height: 54px;
  color: #fff;
  border: 0;
  background: linear-gradient(180deg, #df705d 0%, var(--tomato) 100%);
  box-shadow: 0 12px 24px rgba(216, 92, 69, 0.28);
}

.tab-create-button .tab-add::before,
.tab-create-button .tab-add::after {
  inset: 26px 17px;
  background: currentColor;
}

.tab-create-button.is-active {
  color: var(--tomato);
}

.tab-my {
  border-radius: 50%;
  position: relative;
}

.tab-my::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.tab-my::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 4px 4px;
  border-bottom: 0;
}

.design-notes {
  display: none;
}

.design-notes p {
  margin: 0 0 12px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 750;
}

.design-notes h2 {
  margin: 0 0 18px;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0;
}

.design-notes ul {
  margin: 0;
  padding-left: 18px;
  color: #5f5a52;
  line-height: 1.8;
}

@media (min-width: 700px) {
  .prototype-shell {
    align-items: center;
    padding: 24px;
    background:
      radial-gradient(circle at 30% 14%, rgba(216, 92, 69, 0.08), transparent 28%),
      linear-gradient(135deg, #f7f3ec 0%, #ece7dd 100%);
  }

  .phone-frame {
    width: 430px;
    height: min(900px, calc(100vh - 48px));
    min-height: 0;
    border: 1px solid rgba(42, 40, 35, 0.08);
    border-radius: 32px;
    box-shadow:
      0 28px 80px rgba(38, 32, 22, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  }

  .app-scroll {
    height: calc(100% - 58px - 78px - env(safe-area-inset-bottom));
  }
}

@media (display-mode: standalone) {
  body {
    background: var(--phone-bg);
  }
}
