:root {
  color-scheme: light;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --ink: #3f302a;
  --muted: #8b7b70;
  --line: #eadfd2;
  --orange: #d86f4c;
  --orange-soft: #f4d8c8;
  --green: #71876b;
  --green-soft: #dfe8dc;
  --shadow: 0 10px 32px rgba(89, 59, 42, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { background: #e8ded1; }

body {
  margin: 0 auto;
  min-width: 320px;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

button { color: inherit; }

button, .tap { -webkit-tap-highlight-color: transparent; }

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

#app { min-height: 100vh; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }

.page { animation: enter .22s ease both; }

@keyframes enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(17px + env(safe-area-inset-top)) 20px 10px;
}

.topbar h1, .topbar h2 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.5px; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.subtle { color: var(--muted); font-size: 13px; }
.topbar-copy .subtle { margin: 5px 0 0; }

.round-button, .back-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(119, 90, 70, .1);
  border-radius: 50%;
  background: rgba(255, 253, 248, .82);
  box-shadow: 0 5px 18px rgba(76, 50, 37, .08);
  cursor: pointer;
}

.back-button { font-size: 22px; }

.content { padding: 8px 18px 28px; }

.hero {
  position: relative;
  min-height: 194px;
  margin: 6px 18px 22px;
  padding: 24px;
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #d56e4c, #b9543a);
  box-shadow: 0 16px 35px rgba(170, 79, 49, .24);
}

.hero::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -68px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.hero .eyebrow { color: #ffe7da; }
.hero h2 { max-width: 260px; margin: 10px 0 9px; font-size: 28px; line-height: 1.2; }
.hero p { max-width: 250px; margin: 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.6; }

.primary-button, .secondary-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 15px;
  font-weight: 750;
  cursor: pointer;
}

.primary-button { color: #fff; background: var(--orange); box-shadow: 0 8px 18px rgba(178, 81, 51, .2); }
.hero .primary-button { position: relative; z-index: 1; margin-top: 18px; color: #9f422c; background: #fff7f1; box-shadow: none; }
.secondary-button { color: var(--ink); background: var(--green-soft); }
.full { width: 100%; }

.section { margin: 0 18px 26px; }
.section-header { display: flex; align-items: end; justify-content: space-between; margin: 0 0 13px; }
.section-header h2, .section-header h3 { margin: 0; font-size: 19px; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; border: 0; color: var(--orange); background: none; font-size: 13px; cursor: pointer; }
.action-header { align-items: center; gap: 12px; }
.action-header > div h2 { margin-top: 3px; }
.section-action {
  display: inline-flex;
  flex: 0 0 122px;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  width: 122px;
  min-height: 48px;
  padding: 0 14px 0 16px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(178, 81, 51, .18);
  font-weight: 750;
  cursor: pointer;
}
.section-action b { font-size: 21px; line-height: 1; }
.fruit-section { margin-top: 0; }
.fruit-row .ingredient-card .text-art { background: linear-gradient(145deg, #a4b39b, #70866c); }

.ingredient-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 126px;
  gap: 12px;
  margin-right: -18px;
  padding-right: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ingredient-row::-webkit-scrollbar { display: none; }

.ingredient-card, .dish-card {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 19px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
}

.ingredient-card img { width: 100%; height: 112px; object-fit: cover; }
.text-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / .92;
  padding: 14px;
  color: #fff;
  background: linear-gradient(145deg, #8fa386, #647b62);
  text-align: center;
}
.text-art span { margin-bottom: 6px; font-size: 11px; opacity: .78; }
.text-art strong { max-width: 100%; font-size: 18px; line-height: 1.28; }
.ingredient-card .text-art { height: 112px; aspect-ratio: auto; background: linear-gradient(145deg, #a4b39b, #70866c); }
.dish-card:nth-child(3n+2) .text-art { background: linear-gradient(145deg, #d88a67, #ad5e43); }
.dish-card:nth-child(3n+3) .text-art { background: linear-gradient(145deg, #b9976e, #84684d); }
.ingredient-card-copy { min-height: 68px; padding: 11px 12px 13px; }
.ingredient-card strong { display: block; font-size: 16px; }
.ingredient-card small { display: block; margin-top: 4px; color: var(--green); font-weight: 700; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-card {
  position: relative;
  min-height: 112px;
  padding: 17px;
  border: 1px solid rgba(126, 91, 69, .06);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}
.quick-card strong { display: block; font-size: 17px; }
.quick-card small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.45; }
.quick-card b { position: absolute; right: 14px; bottom: 11px; color: var(--orange); font-size: 23px; }

.urgent-list { display: grid; gap: 10px; }
.urgent-item { display: flex; align-items: center; gap: 12px; padding: 11px; border-radius: 18px; background: var(--paper); }
.urgent-visual { flex: 0 0 54px; width: 54px; height: 54px; overflow: hidden; border-radius: 15px; }
.urgent-visual img, .urgent-visual .text-art { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; padding: 5px; }
.urgent-visual .text-art span { display: none; }
.urgent-visual .text-art strong { font-size: 13px; }
.urgent-item strong { display: block; }
.urgent-item small { display: block; margin-top: 4px; color: var(--orange); }

.filter-row { display: flex; gap: 8px; padding: 0 18px 15px; overflow-x: auto; scrollbar-width: none; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); cursor: pointer; }
.chip.active { border-color: var(--orange); color: #fff; background: var(--orange); }

.dish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.dish-card { position: relative; }
.dish-card img { width: 100%; aspect-ratio: 1 / .92; object-fit: cover; }
.dish-card-copy { padding: 12px; }
.dish-card strong { display: block; font-size: 15px; }
.dish-card small { display: block; margin-top: 5px; color: var(--muted); }
.heart-mini { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--orange); background: rgba(255,255,255,.92); font-size: 20px; box-shadow: 0 3px 12px rgba(61,38,28,.12); }
.heart-mini.liked { color: #fff; background: var(--orange); }

.detail-cover { position: relative; height: 330px; overflow: hidden; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover > .text-art { width: 100%; height: 100%; aspect-ratio: auto; padding: 54px 32px 86px; background: linear-gradient(145deg, #9bac91, #5f765d); }
.detail-cover > .dish-art { background: linear-gradient(145deg, #d88864, #a8533b); }
.detail-cover > .text-art span { font-size: 14px; }
.detail-cover > .text-art strong { font-size: 34px; }
.detail-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 40%, rgba(40,24,18,.58)); }
.detail-cover .back-button { position: absolute; z-index: 2; top: calc(16px + env(safe-area-inset-top)); left: 17px; }
.cover-title { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; color: #fff; }
.cover-title h1 { margin: 5px 0 0; font-size: 29px; }
.cover-title p { margin: 7px 0 0; color: rgba(255,255,255,.82); font-size: 13px; }

.detail-body { position: relative; z-index: 3; margin-top: -1px; padding: 20px 18px 28px; border-radius: 24px 24px 0 0; background: var(--cream); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 22px; }
.fact { padding: 13px 8px; border-radius: 15px; background: var(--paper); text-align: center; }
.fact strong { display: block; font-size: 14px; }
.fact small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }

.info-card { margin-bottom: 14px; padding: 17px; border-radius: 20px; background: var(--paper); box-shadow: 0 6px 22px rgba(83,53,37,.06); }
.info-card h3 { margin: 0 0 11px; font-size: 17px; }
.info-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.bullet-list, .ingredient-list, .step-list { margin: 0; padding: 0; list-style: none; }
.bullet-list li { position: relative; padding: 7px 0 7px 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bullet-list li::before { content: ""; position: absolute; left: 1px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.ingredient-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ingredient-list li:last-child { border-bottom: 0; }
.ingredient-list span:last-child { color: var(--muted); }
.ingredient-hint { margin: -3px 0 8px !important; font-size: 12px !important; }
.ingredient-link { display: inline-flex; flex: 1; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.ingredient-link b { color: var(--orange); font-size: 11px; white-space: nowrap; }
.step-list { counter-reset: steps; }
.step-list li { position: relative; padding: 0 0 18px 43px; color: #66554b; font-size: 14px; line-height: 1.65; }
.step-list li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: 0; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: var(--orange); font-weight: 750; }
.step-label { color: var(--ink); }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-status { padding: 9px 11px; border-radius: 12px; color: #4e6649; background: var(--green-soft); font-size: 13px; }
.tool-status.missing { color: #8d7f76; background: #eee8e1; }

.cuisine-list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.cuisine-button { min-height: 42px; padding: 0 18px; border: 0; border-radius: 13px; color: #4f654b; background: var(--green-soft); font-weight: 700; cursor: pointer; }

.member-hearts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.member-heart { min-height: 48px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); cursor: pointer; }
.member-heart.liked { border-color: var(--orange-soft); color: var(--orange); background: #fff3ed; }

.nutrition-row { display: flex; flex-wrap: wrap; gap: 8px; }
.nutrition-pill { padding: 8px 10px; border-radius: 11px; background: var(--green-soft); color: #4e6649; font-size: 12px; }
.nutrition-pill.warn { color: #a24d31; background: #f7dfd2; }

.planner-days { display: grid; gap: 13px; }
.day-card { padding: 15px; border-radius: 20px; background: var(--paper); box-shadow: 0 6px 22px rgba(83,53,37,.06); }
.day-card h3 { margin: 0 0 11px; font-size: 16px; }
.day-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.day-card-header h3 { margin: 0; }
.day-remove { width: 44px; height: 44px; border: 0; border-radius: 50%; color: #a76551; background: #f7e5dc; font-size: 22px; line-height: 1; cursor: pointer; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 7px; }
.meal-slot { min-height: 78px; padding: 8px; border: 1px dashed #d6c6b8; border-radius: 13px; color: var(--muted); background: #fbf7f0; font-size: 12px; cursor: pointer; }
.meal-slot.filled { border-style: solid; border-color: #efd0c0; color: var(--ink); background: #fff4ed; }
.meal-slot small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.day-add-actions { display: flex; gap: 8px; margin-top: 10px; }
.day-add-actions button { min-height: 44px; padding: 0 13px; border: 0; border-radius: 11px; color: #597154; background: var(--green-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.add-day-panel { margin-bottom: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,248,.72); }
.add-day-panel strong { display: block; margin-bottom: 10px; font-size: 14px; }
.add-day-panel > div { display: flex; flex-wrap: wrap; gap: 7px; }
.planner-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 8; display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; margin-top: 16px; padding: 10px; border-radius: 19px; background: rgba(247,241,231,.9); backdrop-filter: blur(14px); }
.planner-actions button { padding-left: 9px; padding-right: 9px; white-space: nowrap; font-size: 13px; }

.picker-list { display: grid; gap: 11px; }
.picker-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 0; border-radius: 17px; background: var(--paper); box-shadow: 0 5px 18px rgba(83,53,37,.06); text-align: left; cursor: pointer; }
.picker-item img, .picker-item > .text-art { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 14px; object-fit: cover; aspect-ratio: auto; padding: 6px; }
.picker-item > .text-art span { display: none; }
.picker-item > .text-art strong { font-size: 13px; }
.picker-item strong { display: block; }
.picker-item small { display: block; margin-top: 6px; color: var(--muted); }

.shopping-group { margin-bottom: 19px; }
.shopping-group h3 { margin: 0 0 9px; font-size: 15px; color: var(--green); }
.check-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.check-row input { width: 21px; height: 21px; accent-color: var(--orange); }
.check-row label { display: flex; flex: 1; justify-content: space-between; gap: 10px; font-size: 14px; }
.check-row label span:last-child { color: var(--muted); }
.check-row.checked label { color: var(--muted); text-decoration: line-through; }

.inventory-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.inventory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px 10px; }
.inventory-button { padding: 0; border: 0; background: none; cursor: pointer; }
.inventory-picture { display: grid; width: 64px; height: 64px; margin: auto; overflow: hidden; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 5px 15px rgba(68,54,46,.12); font-weight: 800; }
.inventory-picture img { width: 100%; height: 100%; object-fit: cover; }
.inventory-button:not(.owned) .inventory-picture { filter: grayscale(1); opacity: .35; }
.inventory-button small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }

.masterpiece { overflow: hidden; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.masterpiece img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.masterpiece-copy { padding: 14px; }
.masterpiece-copy strong { display: block; }
.masterpiece-copy small { display: block; margin-top: 5px; color: var(--muted); }
.upload-label { display: inline-flex; align-items: center; min-height: 42px; margin-top: 11px; padding: 0 14px; border-radius: 13px; color: #fff; background: var(--orange); font-size: 13px; font-weight: 700; cursor: pointer; }
.upload-label input { display: none; }

.empty { padding: 38px 20px; border: 1px dashed #dacabd; border-radius: 20px; color: var(--muted); text-align: center; line-height: 1.7; }

.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 0;
  display: grid;
  width: min(520px, 100%);
  height: calc(70px + env(safe-area-inset-bottom));
  padding: 7px 13px env(safe-area-inset-bottom);
  grid-template-columns: repeat(4, 1fr);
  transform: translateX(-50%);
  border-top: 1px solid rgba(112,85,65,.1);
  background: rgba(255,253,248,.94);
  box-shadow: 0 -8px 28px rgba(62,40,29,.06);
  backdrop-filter: blur(18px);
}

.bottom-nav button { border: 0; color: #a08e82; background: none; cursor: pointer; }
.bottom-nav span { display: block; font-size: 23px; line-height: 1; }
.bottom-nav small { display: block; margin-top: 5px; font-size: 11px; }
.bottom-nav button.active { color: var(--orange); }

.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); max-width: calc(100% - 48px); padding: 11px 16px; border-radius: 999px; color: #fff; background: rgba(58,42,34,.91); opacity: 0; transform: translate(-50%, 10px); transition: .2s ease; pointer-events: none; font-size: 13px; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.pwa-prompt {
  position: fixed;
  z-index: 90;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: min(496px, calc(100% - 24px));
  margin: auto;
  padding: 13px 12px 13px 16px;
  border: 1px solid rgba(112,85,65,.12);
  border-radius: 18px;
  background: rgba(255,253,248,.98);
  box-shadow: 0 12px 34px rgba(58,42,34,.2);
}
.pwa-prompt[hidden] { display: none; }
.pwa-prompt strong, .pwa-prompt small { display: block; }
.pwa-prompt strong { font-size: 14px; }
.pwa-prompt small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pwa-prompt-action { min-height: 40px; padding: 0 13px; border: 0; border-radius: 12px; color: #fff; background: var(--orange); font-size: 12px; font-weight: 750; cursor: pointer; }
.pwa-prompt-close { width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--muted); background: #f2ebe2; font-size: 20px; cursor: pointer; }

button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(216,111,76,.28);
  outline-offset: 2px;
}

.sync-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}
.sync-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #b5a89f; }
.sync-status.online { color: var(--green); }
.sync-status.online::before { background: var(--green); }

.hero-actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.hero-actions .primary-button { margin-top: 0; }
.hero-secondary { min-height: 46px; padding: 0 4px; border: 0; color: rgba(255,255,255,.9); background: none; font-weight: 700; cursor: pointer; }

.browse-controls { padding-bottom: 5px; }
.filter-panel { margin-top: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,248,.78); }
.filter-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.filter-title strong, .filter-block > strong, .field-label { font-size: 13px; }
.filter-title small, .filter-block strong small { color: var(--muted); font-size: 11px; font-weight: 500; }
.filter-title button { min-height: 36px; padding: 0 11px; border: 0; border-radius: 11px; color: var(--orange); background: #fff0e8; cursor: pointer; }
.segment-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 15px; background: #eee6dc; }
.segment-control button { min-height: 42px; border: 0; border-radius: 12px; color: var(--muted); background: transparent; font-weight: 700; cursor: pointer; }
.segment-control button.active { color: #fff; background: var(--orange); box-shadow: 0 4px 12px rgba(178,81,51,.18); }
.field-label { display: block; margin-top: 14px; color: var(--ink); font-weight: 700; }
.select-field.compact { margin-top: 7px; }
.filter-block { margin-top: 14px; }
.filter-block > strong { display: block; margin-bottom: 8px; }
.filter-row.embedded { margin: 0 -14px; padding: 0 14px 2px; }
.filter-row.embedded .chip { min-height: 42px; }
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}
.search-box span { color: var(--orange); font-size: 21px; }
.search-box input { flex: 1; align-self: stretch; min-width: 0; min-height: 44px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-submit { align-self: stretch; min-width: 66px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; color: #fff; background: var(--orange); font-size: 13px; font-weight: 750; cursor: pointer; }
.fruit-page .section-header { align-items: center; }
.filter-row.inset { margin: 12px -18px 0; padding-bottom: 0; }
.select-field, .note-field {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
}
.result-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 5px 0 13px; }
.result-summary span { font-size: 14px; font-weight: 750; }
.result-summary small { color: var(--muted); font-size: 11px; text-align: right; }
.more-button { margin-top: 16px; }
.spaced { margin-top: 28px; }
.top-gap { margin-top: 12px; }

.reason-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.reason-row i { padding: 3px 6px; border-radius: 7px; color: #587052; background: var(--green-soft); font-size: 10px; font-style: normal; line-height: 1.2; }

.sorting-note { margin: 10px 0 14px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.picker-item > span { min-width: 0; }
.picker-item .reason-row { display: flex; }

.tonight-card { padding: 20px; border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); }
.tonight-card h2 { margin: 8px 0 6px; font-size: 25px; }
.tonight-card > p { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.tonight-slots { margin-bottom: 18px; }
.centered { display: block; min-height: 44px; margin: 10px auto 0; padding: 0 12px; }
.plan-status { margin-top: 14px; padding: 12px 14px; border-radius: 14px; font-size: 13px; }
.plan-status.incomplete { color: #8b654f; background: #f5e7dc; }
.plan-status.complete { color: #526d4c; background: var(--green-soft); }
.planner-actions .danger { color: #9c3f31; background: #f6d9d2; white-space: normal; }
.planner-actions button:disabled { opacity: .45; cursor: not-allowed; }

.place-dish-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px; border-radius: 18px; background: var(--paper); }
.place-dish-preview img, .place-dish-preview > .text-art { flex: 0 0 78px; width: 78px; height: 78px; border-radius: 14px; object-fit: cover; aspect-ratio: auto; }
.place-dish-preview strong { display: block; }
.place-dish-preview small { display: block; margin-top: 6px; color: var(--muted); }
.place-list { display: grid; gap: 10px; }
.place-list button { min-height: 64px; padding: 12px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: left; cursor: pointer; }
.place-list span, .place-list small { display: block; }
.place-list span { font-weight: 750; }
.place-list small { margin-top: 5px; color: var(--muted); }

.warning-card { display: grid; gap: 6px; margin-bottom: 18px; padding: 15px; border-radius: 17px; color: #7d4c37; background: #f7dfd2; }
.warning-card span { font-size: 13px; }
.warning-card button { min-height: 44px; margin-top: 5px; border: 0; border-radius: 12px; color: #fff; background: var(--orange); font-weight: 700; }
.section.flush { margin-right: 0; margin-left: 0; }
.section.flush + .section.flush { padding-top: 4px; }
.masterpiece { margin-bottom: 12px; cursor: pointer; }
.note-field { margin: 12px 0 0; }

@media (max-width: 359px) {
  .hero-actions { align-items: stretch; flex-direction: column; gap: 4px; }
  .hero-secondary { text-align: left; }
  .planner-actions { grid-template-columns: 1fr; }
}

@media (min-width: 521px) {
  body { box-shadow: 0 0 40px rgba(59,42,32,.16); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
