@media (max-width: 760px) {
  :root {
    --radius-xl: 26px;
  }

  body {
    padding-bottom: 76px;
  }

  .topbar {
    position: relative;
    top: 0;
    width: calc(100% - 24px);
    height: 64px;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 20px;
  }

  .brand img {
    width: 45px;
    height: 45px;
    border-radius: 14px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    font-size: 9px;
  }

  .desktop-nav {
    display: none;
  }

  .page {
    width: calc(100% - 24px);
    padding: 42px 0 72px;
  }

  .home-page {
    padding-top: 18px;
  }

  .home-hero {
    min-height: 650px;
    grid-template-columns: 1fr;
    align-content: start;
    border-radius: 28px;
  }

  .hero-copy {
    padding: 42px 24px 0;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: 45px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .hero-actions {
    margin-top: 25px;
  }

  .hero-actions .button {
    flex: 1;
    padding: 0 14px;
  }

  .hero-note {
    display: none;
  }

  .hero-visual {
    min-height: 285px;
  }

  .hero-visual img {
    height: 300px;
  }

  .hero-bubble {
    top: 36px;
    left: 22px;
  }

  .home-decision-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .decision-card,
  .decision-card.main {
    min-height: 230px;
    grid-column: auto;
    border-radius: 24px;
  }

  .decision-card > div,
  .decision-card.main > div {
    max-width: 62%;
  }

  .decision-card img,
  .decision-card.main img,
  .decision-card:not(.main) img {
    width: 43%;
    height: 72%;
  }

  .today-strip {
    margin-top: 34px;
    grid-template-columns: 112px 1fr;
    gap: 16px;
  }

  .today-image {
    width: 112px;
    height: 112px;
  }

  .today-strip .button {
    grid-column: 1 / -1;
  }

  .today-strip h2 {
    font-size: 21px;
  }

  .today-strip p {
    display: none;
  }

  .page-intro {
    margin-bottom: 40px;
  }

  .page-intro h1,
  .decision-header h1,
  .recommend-hero h1,
  .create-hero h1 {
    font-size: 42px;
  }

  .page-intro p,
  .decision-header p,
  .recommend-hero p,
  .create-hero p {
    font-size: 14px;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h2,
  .library-heading h2 {
    font-size: 22px;
  }

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

  .taste-card {
    aspect-ratio: 1;
    border-radius: 22px;
  }

  .taste-card:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 1.65;
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }

  .category-card {
    border-radius: 18px;
  }

  .library-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    width: 100%;
  }

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

  .dish-photo {
    height: 230px;
  }

  .empty-inline {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .empty-inline img {
    margin: 0 auto;
  }

  .decision-header,
  .recommend-hero,
  .create-hero {
    min-height: 540px;
    grid-template-columns: 1fr;
    align-content: start;
    margin-bottom: 22px;
    padding: 34px 24px 0;
    border-radius: 26px;
  }

  .decision-header {
    padding: 0;
  }

  .decision-header > div {
    padding: 0 8px;
  }

  .decision-header img,
  .recommend-hero img,
  .create-hero img {
    height: 260px;
    align-self: end;
  }

  .preference-panel,
  .decision-output {
    min-height: auto;
    border-radius: 24px;
  }

  .preference-panel {
    padding: 24px;
  }

  .decision-output {
    min-height: 470px;
  }

  .waiting-state {
    padding: 35px 24px;
  }

  .mini-result {
    padding: 16px 18px 24px;
  }

  .mini-result > img {
    height: 205px;
  }

  .mini-result .button {
    flex: 1 1 calc(50% - 10px);
    padding: 0 12px;
  }

  .result-shell {
    grid-template-columns: 1fr;
  }

  .result-character {
    height: 240px;
    justify-content: center;
  }

  .result-character img {
    width: 230px;
    height: 230px;
  }

  .result-card {
    border-radius: 25px;
  }

  .result-copy {
    padding: 28px 22px;
  }

  .result-copy h2 {
    font-size: 34px;
  }

  .result-copy .button {
    flex: 1 1 calc(50% - 8px);
    padding: 0 12px;
  }

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

  .featured-card p {
    min-height: 0;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .detail-image {
    min-height: 320px;
    height: 320px;
  }

  .detail-copy {
    padding: 28px 22px;
  }

  .detail-copy h1 {
    font-size: 46px;
  }

  .detail-actions .button {
    flex: 1 1 calc(50% - 8px);
    padding: 0 10px;
  }

  .analysis-grid,
  .detail-notes {
    grid-template-columns: 1fr;
  }

  .analysis-card {
    padding: 28px 22px;
  }

  .reason-card {
    grid-template-columns: 1fr;
  }

  .reason-card > img {
    height: 260px;
  }

  .reason-card > div {
    padding: 28px 22px;
  }

  .detail-notes > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-notes > div:last-child {
    border-bottom: 0;
  }

  .empty-menu {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .empty-menu > img {
    height: 300px;
  }

  .empty-menu > div {
    padding: 32px 24px;
  }

  .empty-menu h2 {
    font-size: 34px;
  }

  .menu-row {
    grid-template-columns: 64px 1fr auto;
    gap: 10px;
  }

  .menu-row > img {
    width: 64px;
    height: 64px;
  }

  .quantity {
    grid-column: 2 / 3;
    justify-self: start;
  }

  .line-price {
    grid-column: 3;
    grid-row: 1;
  }

  .remove-button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .menu-list-actions {
    gap: 8px;
  }

  .menu-list-actions .button {
    flex: 1;
    padding: 0 12px;
  }

  .form-section {
    padding: 24px 18px;
    border-radius: 23px;
  }

  .form-grid,
  .photo-input-row,
  .nutrition-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .form-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-hero {
    grid-template-columns: 100px 1fr;
    gap: 18px;
    padding: 20px;
  }

  .profile-avatar {
    width: 100px;
    height: 150px;
  }

  .profile-hero h1 {
    font-size: 30px;
  }

  .profile-hero p {
    display: none;
  }

  .profile-stats {
    width: 100%;
  }

  .profile-stats button {
    min-width: 0;
  }

  .profile-main,
  .profile-side {
    padding: 20px;
  }

  .profile-dishes article {
    grid-template-columns: 62px 1fr auto;
  }

  .profile-dishes img {
    width: 62px;
  }

  .profile-dishes article > button:last-child {
    grid-column: 2 / -1;
  }

  footer {
    min-height: 170px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 80;
    height: 64px;
    padding: 5px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 21px;
    background: rgba(255, 253, 249, 0.9);
    box-shadow: 0 12px 32px rgba(50, 35, 20, 0.15);
    backdrop-filter: blur(20px);
  }

  .mobile-nav button {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
  }

  .mobile-nav button.active {
    background: #f0e6da;
    color: var(--ink);
  }

  .mobile-nav button > span {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-nav small {
    font-size: 9px;
    font-weight: 700;
  }

  .mobile-nav b {
    position: absolute;
    top: 3px;
    right: 7px;
  }

  .toast {
    bottom: 84px;
    width: max-content;
    max-width: calc(100% - 30px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Second-round product refinement */
.home-page {
  padding-bottom: 68px;
}
.home-utility-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.utility-card {
  min-height: 190px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(74, 51, 27, 0.05);
  text-align: left;
  transition: 180ms ease;
}
.utility-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 32px rgba(74, 51, 27, 0.08);
}
.utility-card.featured {
  background: #2b2723;
  color: white;
}
.utility-symbol {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f1e5d7;
  color: var(--gold-dark);
  font-size: 17px;
  font-weight: 800;
}
.utility-card.featured .utility-symbol {
  background: rgba(255, 255, 255, 0.1);
  color: #f3c27f;
}
.utility-card small {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.utility-card.featured small {
  color: #efbd77;
}
.utility-card h2 {
  margin: 5px 0 5px;
  font-size: 21px;
  letter-spacing: -0.035em;
}
.utility-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}
.utility-card.featured p {
  color: rgba(255, 255, 255, 0.62);
}
.utility-card > b {
  margin-top: auto;
  padding-top: 15px;
  color: var(--gold-dark);
  font-size: 11px;
}
.utility-card.featured > b {
  color: #efbd77;
}
.today-strip {
  margin-top: 22px;
  min-height: 220px;
  grid-template-columns: 260px 1fr auto;
  gap: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(74, 51, 27, 0.055);
}
.today-image {
  width: 260px;
  height: 176px;
  border-radius: 21px;
}
.today-copy p {
  max-width: 540px;
  margin-bottom: 13px;
}
.today-actions {
  min-width: 170px;
  display: grid;
  gap: 9px;
}
.menu-add {
  border-color: rgba(200, 137, 53, 0.26);
  background: #f1e2cd;
  color: #744614;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72), 0 7px 17px rgba(117, 72, 23, 0.08);
}
.menu-add:hover {
  background: #ebd7bb;
}
.filter-section {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(74, 51, 27, 0.045);
}
.filter-section.compact {
  padding: 22px 24px;
  background: rgba(255, 253, 249, 0.58);
  box-shadow: none;
}
.taste-card {
  aspect-ratio: 0.92;
  border-color: rgba(91, 65, 38, 0.14);
  box-shadow: 0 14px 32px rgba(74, 51, 27, 0.07);
}
.taste-card.selected {
  border-color: #d19040;
  box-shadow: 0 0 0 4px rgba(200, 137, 53, 0.16), 0 16px 36px rgba(93, 58, 22, 0.12);
  transform: translateY(-3px);
}
.taste-card.selected::after {
  content: "已选";
  position: absolute;
  top: 13px;
  right: 13px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #2b2723;
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.category-grid {
  gap: 10px;
}
.category-card {
  aspect-ratio: 1.08;
  border-radius: 18px;
  box-shadow: none;
}
.category-card img {
  height: calc(100% - 38px);
  opacity: 0.9;
}
.category-card span {
  height: 40px;
  font-size: 12px;
}
.category-card.selected {
  border-color: rgba(197, 126, 47, 0.52);
  background: #f6ecde;
  box-shadow: 0 0 0 2px rgba(200, 137, 53, 0.1);
}
.active-filters {
  margin: -44px 0 34px;
  min-height: 58px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.72);
}
.active-filter-label {
  padding: 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}
.active-filters > button {
  min-height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 12px;
  background: #f0e6d9;
  font-size: 11px;
}
.active-filters small {
  color: var(--muted);
  font-size: 9px;
}
.active-filters strong {
  color: var(--gold-dark);
}
.active-filters b {
  color: var(--soft);
  font-size: 13px;
}
.active-filters .reset-all {
  margin-left: auto;
  background: transparent;
  color: #9b5143;
  font-weight: 750;
}
.dish-grid {
  gap: 15px;
}
.dish-card {
  border-radius: 22px;
}
.dish-photo {
  height: 200px;
}
.favorite-button {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #8c8278;
  box-shadow: 0 5px 13px rgba(62, 43, 25, 0.07);
  font-size: 15px;
}
.dish-card-body {
  padding: 17px;
}
.dish-heading-row > span {
  padding: 5px 7px;
  border-radius: 8px;
  background: #f2ece4;
  color: var(--muted);
  font-size: 9px;
}
.dish-card-body > p {
  min-height: auto;
  margin: 7px 0 11px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dish-meta {
  margin-bottom: 11px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.dish-meta span {
  padding: 8px 5px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 8px;
  text-align: center;
}
.dish-meta strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 12px;
}
.dish-card-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}
.dish-card-actions .button {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 13px;
  font-size: 11px;
}
.choice-row button {
  min-height: 46px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}
.choice-row button.selected {
  border-color: #bd7b31;
  background: #2b2723;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 7px 18px rgba(58, 43, 28, 0.13);
  color: white;
}
.choice-row button.selected::before {
  content: "✓";
  margin-right: 5px;
  color: #f0c27f;
}
.waiting-state {
  max-width: 500px;
  padding: 42px;
}
.waiting-steps {
  margin-top: 24px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.waiting-steps div {
  min-height: 46px;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 27px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(91, 65, 38, 0.11);
  border-radius: 13px;
  background: rgba(255, 253, 249, 0.52);
}
.waiting-steps b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #2b2723;
  color: #f0c27f;
  font-size: 10px;
}
.waiting-steps span {
  color: #695f55;
  font-size: 11px;
  line-height: 1.45;
}
.result-preview {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.result-preview small {
  width: 100%;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  text-align: left;
}
.result-preview span {
  padding: 7px 9px;
  border-radius: 9px;
  background: #e4d4bf;
  color: #6d4c28;
  font-size: 9px;
  font-weight: 700;
}
.empty-menu-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  align-items: stretch;
  gap: 18px;
}
.empty-menu {
  min-height: 430px;
}
.empty-menu > img {
  height: 430px;
}
.empty-menu > div {
  padding: 44px;
}
.empty-menu h2 {
  font-size: 36px;
}
.empty-menu .button-row {
  margin-top: 22px;
}
.empty-summary {
  position: static;
  min-height: 430px;
}
.empty-summary .button.secondary {
  color: var(--ink);
  background: #fff;
}
.menu-guide {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}
.menu-guide > div {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.menu-guide > div:last-child {
  border-right: 0;
}
.menu-guide span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 850;
}
.menu-guide strong {
  font-size: 15px;
}
.menu-guide p {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.55;
}
.menu-dish-copy em {
  color: var(--gold-dark);
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}
.menu-list-actions {
  gap: 8px;
}
.menu-list-actions .button {
  padding: 0 14px;
}
.nutrition-overview {
  margin: -7px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nutrition-overview div {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
}
.nutrition-overview span {
  display: block;
  color: rgba(255, 255, 255, 0.53);
  font-size: 9px;
}
.nutrition-overview b {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.form-progress {
  min-height: 62px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--paper);
}
.form-progress span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.form-progress b {
  color: var(--gold);
  font-size: 9px;
}
.form-progress i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.nutrition-grid input:focus {
  border-color: rgba(200, 137, 53, 0.55);
  background: white;
  box-shadow: 0 0 0 3px rgba(200, 137, 53, 0.08);
}
.taste-checkboxes label input:checked + span {
  border-color: #bd7b31;
  background: #2b2723;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 7px 16px rgba(58, 43, 28, 0.12);
  color: white;
}
.form-submit .button.primary {
  min-width: 180px;
}
.profile-main {
  display: grid;
  gap: 30px;
}
.profile-section-block + .profile-section-block {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.profile-dishes article {
  grid-template-columns: 72px 1fr auto auto;
}
.profile-dishes article > button {
  min-height: 38px;
  white-space: nowrap;
}
.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.recent-grid > button {
  min-height: 88px;
  padding: 9px;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f4ee;
  text-align: left;
}
.recent-grid img {
  width: 62px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}
.recent-grid span {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.recent-grid strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-grid small {
  color: var(--muted);
  font-size: 9px;
}
.recent-grid > button > b {
  grid-column: 2;
  color: var(--gold-dark);
  font-size: 9px;
}
.simple-empty.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.simple-empty.inline p {
  margin: 0;
}
.taste-preference {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.taste-preference p {
  margin: 7px 0 12px;
  font-size: 10px;
  line-height: 1.5;
}
.taste-preference > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.taste-preference button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f7f2eb;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.taste-preference button.selected {
  border-color: rgba(200, 137, 53, 0.45);
  background: #2b2723;
  color: white;
}
@media (max-width: 1000px) {
  .home-utility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .today-strip {
    grid-template-columns: 220px 1fr;
  }

  .today-image {
    width: 220px;
  }

  .today-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .empty-menu-layout {
    grid-template-columns: 1fr;
  }

  .empty-summary {
    min-height: auto;
  }

  .recent-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .page {
    padding-top: 34px;
    padding-bottom: 56px;
  }

  .home-page {
    padding-top: 16px;
    padding-bottom: 36px;
  }

  .hero-copy h1 {
    font-size: 41px;
  }

  .home-hero {
    min-height: 605px;
  }

  .home-utility-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }

  .utility-card {
    min-height: 166px;
    padding: 16px;
    border-radius: 19px;
  }

  .utility-symbol {
    width: 33px;
    height: 33px;
    margin-bottom: 13px;
  }

  .utility-card h2 {
    font-size: 17px;
  }

  .utility-card p {
    display: none;
  }

  .utility-card > b {
    font-size: 9px;
  }

  .today-strip {
    grid-template-columns: 105px 1fr;
    padding: 13px;
    gap: 13px;
    border-radius: 22px;
  }

  .today-image {
    width: 105px;
    height: 118px;
  }

  .today-actions {
    grid-template-columns: 1fr 1.25fr;
    gap: 7px;
  }

  .today-actions .button {
    min-height: 44px;
    padding: 0 8px;
    font-size: 10px;
  }

  .filter-section,
  .filter-section.compact {
    padding: 17px;
    border-radius: 24px;
  }

  .filter-section {
    margin-bottom: 24px;
  }

  .filter-section.compact {
    margin-bottom: 68px;
  }

  .taste-card:first-child {
    grid-column: auto;
    aspect-ratio: 1;
  }

  .taste-card {
    aspect-ratio: 1;
    border-radius: 19px;
  }

  .taste-card:last-child {
    grid-column: 1 / -1;
    aspect-ratio: 1.7;
  }

  .taste-card span {
    min-width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-card {
    aspect-ratio: 0.94;
  }

  .active-filters {
    margin-top: -48px;
    margin-bottom: 28px;
    overflow-x: auto;
  }

  .active-filter-label {
    display: none;
  }

  .active-filters > button {
    flex: 0 0 auto;
  }

  .active-filters .reset-all {
    margin-left: 0;
  }

  .dish-photo {
    height: 215px;
  }

  .dish-card-actions {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .decision-header h1 {
    font-size: 38px;
  }

  .waiting-state {
    padding: 30px 20px;
  }

  .waiting-state h2 {
    font-size: 27px;
  }

  .waiting-steps div {
    grid-template-columns: 25px 1fr;
  }

  .empty-menu {
    min-height: auto;
  }

  .empty-menu > img {
    height: 265px;
  }

  .empty-menu > div {
    padding: 28px 21px;
  }

  .empty-menu h2 {
    font-size: 31px;
  }

  .empty-menu .button-row .button {
    flex: 1 1 100%;
  }

  .menu-guide {
    grid-template-columns: 1fr;
  }

  .menu-guide > div {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-guide > div:last-child {
    border-bottom: 0;
  }

  .menu-list-actions {
    flex-wrap: wrap;
  }

  .menu-list-actions .button {
    flex: 1 1 calc(50% - 8px);
  }

  .form-progress {
    min-height: 56px;
    padding: 0 12px;
    gap: 7px;
    overflow-x: auto;
  }

  .form-progress span {
    font-size: 9px;
  }

  .form-progress i {
    min-width: 18px;
  }

  .form-submit {
    position: sticky;
    bottom: 78px;
    z-index: 25;
    padding: 12px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(42, 31, 20, 0.2);
  }

  .form-submit p {
    display: none;
  }

  .form-submit .button.primary {
    width: 100%;
  }

  .profile-hero h1 {
    font-size: 28px;
  }

  .profile-main {
    gap: 24px;
  }

  .profile-section-block .section-heading {
    align-items: flex-start;
  }

  .profile-section-block .section-heading h2 {
    font-size: 19px;
  }

  .profile-dishes article {
    grid-template-columns: 62px 1fr;
  }

  .profile-dishes article > button {
    grid-column: auto;
  }

  .profile-dishes article > button:nth-of-type(1) {
    grid-column: 1 / 2;
  }

  .profile-dishes article > button:nth-of-type(2) {
    grid-column: 2 / 3;
  }

  .simple-empty.inline {
    align-items: stretch;
    flex-direction: column;
  }
}
/* Third-round cascade guard: keep micro-interactions above earlier component rules. */
.button {
  position: relative;
  min-height: 48px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 15px;
  transition: transform 190ms var(--ease-soft), box-shadow 190ms ease, border-color 190ms ease, background 190ms ease, color 190ms ease;
  -webkit-tap-highlight-color: transparent;
}
.button.primary {
  color: white;
  background: linear-gradient(180deg, #df704f 0%, #d4583d 52%, #c94b33 100%);
  border-color: rgba(120, 38, 22, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.46), inset 0 -1px rgba(112, 34, 20, 0.16), 0 9px 20px rgba(181, 65, 42, 0.2);
}
.button.secondary,
.menu-empty-secondary {
  color: var(--ink);
  background: linear-gradient(180deg, #fffefa 0%, #faf5ed 100%);
  border-color: rgba(180, 145, 99, 0.32);
  box-shadow: inset 0 1px white, inset 0 -1px rgba(181, 144, 95, 0.07), 0 6px 16px rgba(69, 49, 28, 0.07);
}
.button.tertiary {
  border-color: rgba(180, 145, 99, 0.18);
  background: rgba(255, 253, 249, 0.46);
}
.button:hover,
.button.primary:hover {
  transform: translateY(-2px);
}
.button:active,
.button.primary:active,
.button.secondary:active,
.button.tertiary:active,
.menu-add:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 140ms;
}
.menu-add {
  background: linear-gradient(180deg, #f5e7d3 0%, #ecd5b6 100%);
  border-color: rgba(187, 132, 67, 0.32);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.84), inset 0 -1px rgba(134, 87, 35, 0.08), 0 7px 17px rgba(117, 72, 23, 0.1);
}
.button.is-added,
.menu-add.is-added,
.profile-dishes button.is-added {
  border-color: rgba(80, 107, 78, 0.35);
  background: linear-gradient(180deg, #71886d, #526c50);
  color: white;
}
.desktop-nav button:hover,
.desktop-nav button.active {
  background: transparent;
}
.taste-card.selected {
  transform: translateY(-4px) scale(1.025);
}
.taste-grid.has-selection .taste-card:not(.selected) {
  opacity: 0.66;
  filter: saturate(0.75);
  transform: scale(0.985);
}
.menu-summary.empty-summary,
.menu-summary.light-summary {
  border-color: rgba(156, 113, 60, 0.18);
  background: linear-gradient(155deg, #fffdf9, #f3e6d4);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(74, 51, 27, 0.08);
}
.menu-summary.empty-summary .button.secondary,
.empty-menu .menu-empty-secondary {
  color: var(--ink) !important;
  opacity: 1 !important;
  visibility: visible !important;
}
@media (max-width: 760px) {
  .button {
    min-height: 50px;
  }
}
/* Transparent character assets, livelier IP motion and responsive refinement. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
main {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 140ms ease, transform 140ms var(--ease-soft);
}
main.page-exiting {
  opacity: 0;
  transform: translateY(-4px);
}
.site-shell main > .page {
  animation: pageRouteIn 280ms var(--ease-soft) both;
}
.button {
  border-width: 1px;
  border-style: solid;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.82),
    inset 0 -2px rgba(86, 54, 25, 0.07),
    0 8px 18px rgba(68, 45, 23, 0.1),
    0 2px 4px rgba(68, 45, 23, 0.06);
  transition:
    transform 210ms var(--ease-soft),
    box-shadow 210ms ease,
    border-color 210ms ease,
    background 210ms ease,
    color 210ms ease;
}
.button.primary {
  border-color: rgba(119, 37, 20, 0.3);
  background: linear-gradient(180deg, #e87856 0%, #d95e42 48%, #c84731 100%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.56),
    inset 0 -3px rgba(104, 29, 17, 0.16),
    0 11px 23px rgba(176, 60, 38, 0.24),
    0 3px 6px rgba(114, 41, 25, 0.12);
}
.button.secondary,
.menu-empty-secondary {
  border-color: rgba(174, 137, 88, 0.36);
  background: linear-gradient(180deg, #fffefa 0%, #fbf7f0 50%, #f4ecdf 100%);
  box-shadow:
    inset 0 1px white,
    inset 0 -2px rgba(135, 94, 47, 0.07),
    0 8px 17px rgba(69, 49, 28, 0.09),
    0 2px 4px rgba(69, 49, 28, 0.05);
}
.button:active,
.button.primary:active,
.button.secondary:active,
.button.tertiary:active,
.menu-add:active {
  transform: translateY(2px) scale(0.975);
  box-shadow: inset 0 2px 5px rgba(71, 42, 22, 0.14), 0 2px 5px rgba(69, 49, 28, 0.08);
  transition-duration: 140ms;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .button.primary:hover,
  .button.secondary:hover,
  .button.tertiary:hover {
    transform: translateY(-3px) scale(1.02);
  }

  .button.primary:hover {
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.62),
      inset 0 -3px rgba(104, 29, 17, 0.13),
      0 15px 30px rgba(176, 60, 38, 0.29),
      0 4px 8px rgba(114, 41, 25, 0.12);
  }

  .button.secondary:hover {
    box-shadow: inset 0 1px white, inset 0 -2px rgba(135, 94, 47, 0.06), 0 12px 24px rgba(69, 49, 28, 0.12);
  }
}
.hero-copy h1 {
  max-width: 560px;
  font-size: clamp(48px, 5.25vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.058em;
}
.hero-character-stage {
  position: relative;
  width: min(520px, 100%);
  height: 100%;
  min-height: 490px;
  transform-origin: 54% 78%;
  transition: transform 320ms var(--ease-soft);
  animation: heroCharacterEnter 540ms var(--ease-soft) both;
}
.hero-visual .hero-character-stage > img {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 24px 22px rgba(69, 45, 23, 0.14));
  transform-origin: 53% 78%;
}
.hero-visual img.hero-character-default {
  opacity: 1;
  transition: opacity 220ms ease;
  animation: airHeroAlive 3s 540ms ease-in-out infinite;
  will-change: transform, filter;
}
.hero-visual img.hero-character-default.is-muted {
  opacity: 0;
}
.hero-character-state {
  z-index: 2;
  opacity: 0;
  will-change: transform, opacity;
}
.home-hero.hero-decide .hero-character-state.state-decide {
  animation: heroThinkSwap 480ms var(--ease-soft) both;
}
.home-hero.hero-random .hero-character-state.state-random {
  animation: heroRandomSwap 520ms var(--ease-soft) both;
}
@media (hover: hover) and (pointer: fine) {
  .home-hero:hover .hero-character-stage {
    transform: translateY(-8px) scale(1.055) rotate(-2deg);
  }
}
.state-swap-image {
  animation: characterStateSwap 440ms var(--ease-soft) both;
}
.decision-header img {
  object-fit: contain;
  animation: characterStateSwap 500ms var(--ease-soft) both, airThinkAlive 3.8s 500ms ease-in-out infinite;
}
.recommend-hero img {
  object-fit: contain;
  animation: characterStateSwap 500ms var(--ease-soft) both, airRecommendAlive 3.5s 500ms ease-in-out infinite;
}
.result-character img {
  object-fit: contain;
  animation: characterStateSwap 440ms var(--ease-soft) both, airStateAlive 3.6s 440ms ease-in-out infinite;
}
.empty-menu > img {
  object-fit: contain;
  object-position: center bottom;
  animation: characterStateSwap 500ms var(--ease-soft) both, airPlateAlive 3.8s 500ms ease-in-out infinite;
}
.menu-live-banner img {
  object-fit: contain;
  object-position: center bottom;
  animation: characterStateSwap 480ms var(--ease-soft) both, airHappyAlive 3.4s 480ms ease-in-out infinite;
}
.create-hero img,
.smart-thinking img {
  object-fit: contain;
  animation: characterStateSwap 500ms var(--ease-soft) both, airPhotoAlive 3.7s 500ms ease-in-out infinite;
}
.profile-avatar img {
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 18px 18px rgba(72, 47, 24, 0.13));
  animation: profileTransparentEnter 620ms var(--ease-soft) both, airProfileAlive 4s 620ms ease-in-out infinite;
}
.reason-card > img {
  object-fit: contain;
  animation: characterStateSwap 460ms var(--ease-soft) both, airObserveAlive 3.5s 460ms ease-in-out infinite;
}
.empty-inline img {
  width: 190px;
  height: 150px;
  object-fit: contain;
  animation: characterStateSwap 460ms var(--ease-soft) both, airObserveAlive 3.5s 460ms ease-in-out infinite;
}
.taste-card {
  isolation: isolate;
  overflow: hidden;
  transition: transform 280ms var(--ease-soft), opacity 240ms ease, filter 240ms ease, border-color 240ms ease, box-shadow 280ms ease;
}
.taste-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  filter: drop-shadow(0 12px 12px rgba(69, 45, 23, 0.11));
  transform-origin: center 68%;
  animation: tasteBreath 5.2s ease-in-out infinite;
  transition: filter 260ms ease;
  will-change: transform;
}
.taste-card:nth-child(2) img { animation-delay: -1s; }
.taste-card:nth-child(3) img { animation-delay: -2s; }
.taste-card:nth-child(4) img { animation-delay: -3s; }
.taste-card:nth-child(5) img { animation-delay: -4s; }
.taste-card span {
  z-index: 4;
}
.taste-card.selected,
.taste-grid.has-selection .taste-card.selected {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(197, 126, 47, 0.66);
  box-shadow: 0 18px 38px rgba(92, 60, 29, 0.15), 0 0 0 3px rgba(200, 137, 53, 0.1);
}
@media (hover: hover) and (pointer: fine) {
  .taste-card:hover,
  .taste-grid.has-selection .taste-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 18px 38px rgba(92, 60, 29, 0.15);
  }

  .taste-card:hover img {
    filter: drop-shadow(0 17px 16px rgba(69, 45, 23, 0.16));
  }

  .taste-sour:hover img,
  .taste-sour.selected img {
    animation: tasteSourReact 620ms var(--ease-soft) both;
  }

  .taste-sweet:hover img,
  .taste-sweet.selected img {
    animation: tasteSweetReact 900ms ease-in-out both;
  }

  .taste-bitter:hover img,
  .taste-bitter.selected img {
    animation: tasteBitterReact 720ms var(--ease-soft) both;
  }

  .taste-spicy:hover img,
  .taste-spicy.selected img {
    animation: tasteSpicyReact 430ms ease-in-out both;
  }

  .taste-salty:hover img,
  .taste-salty.selected img {
    animation: tasteSaltyReact 720ms var(--ease-soft) both;
  }
}
.taste-salty::before {
  content: "·  ·  ·";
  position: absolute;
  top: 18%;
  right: 15%;
  z-index: 3;
  color: rgba(255, 255, 255, 0.96);
  font-size: 17px;
  letter-spacing: 4px;
  opacity: 0;
  text-shadow: 0 2px 3px rgba(90, 64, 35, 0.22);
  pointer-events: none;
}
.taste-salty.selected::before {
  animation: saltGrains 760ms ease-out both;
}
.dish-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.dish-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.dish-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dish-card-actions {
  margin-top: auto;
  padding-top: 14px;
}
.dish-photo {
  transition: transform 280ms var(--ease-soft);
}
.menu-page {
  padding-bottom: 64px;
}
.menu-page .menu-layout,
.menu-page .menu-list,
.menu-page .menu-summary,
.empty-menu,
.empty-summary {
  min-height: 0;
}
.empty-menu > img {
  height: 390px;
}
.empty-summary {
  min-height: auto;
}
.create-page {
  width: min(1120px, calc(100% - 40px));
  max-width: 100%;
  overflow: clip;
}
.create-page .create-hero,
.create-page .create-form,
.create-page .form-section,
.create-page .form-grid,
.create-page .nutrition-grid,
.create-page .photo-input-row,
.create-page label,
.create-page input,
.create-page select,
.create-page textarea {
  min-width: 0;
  max-width: 100%;
}
.create-page .photo-input-row {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.profile-avatar {
  width: 180px;
  height: 250px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}
.profile-stats button,
.profile-side > button,
.profile-dishes article,
.recent-grid > button {
  transition: transform 220ms var(--ease-soft), box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .profile-stats button:hover,
  .profile-side > button:hover,
  .profile-dishes article:hover,
  .recent-grid > button:hover {
    transform: translateY(-3px);
    border-color: rgba(183, 136, 77, 0.3);
    box-shadow: 0 12px 26px rgba(74, 51, 27, 0.09);
  }
}
@media (min-width: 1200px) {
  .categories-page .dish-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .categories-page .dish-photo {
    height: 180px;
  }
}
@media (min-width: 761px) and (max-width: 1020px) {
  .categories-page .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-page .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .page,
  .create-page,
  .categories-page {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .home-hero {
    min-height: 520px;
    display: block;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    padding: 32px 20px 205px;
  }

  .hero-copy h1 {
    max-width: 330px;
    margin: 11px 0 15px;
    font-size: clamp(35px, 10.5vw, 41px);
    line-height: 1.08;
  }

  .hero-copy > p {
    max-width: 330px;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-visual {
    position: absolute;
    right: -4px;
    bottom: 0;
    width: 52%;
    height: 205px;
    min-height: 0;
    pointer-events: none;
  }

  .hero-character-stage {
    width: 100%;
    height: 220px;
    min-height: 220px;
  }

  .hero-sparkles {
    inset: 8% 2% auto auto;
    transform: scale(0.72);
  }

  .taste-card.selected,
  .taste-grid.has-selection .taste-card.selected {
    transform: translateY(-6px) scale(1.025);
  }

  .taste-card:active {
    transform: translateY(-4px) scale(1.02);
  }

  .taste-sour:active img { animation: tasteSourReact 620ms var(--ease-soft) both; }
  .taste-sweet:active img { animation: tasteSweetReact 900ms ease-in-out both; }
  .taste-bitter:active img { animation: tasteBitterReact 720ms var(--ease-soft) both; }
  .taste-spicy:active img { animation: tasteSpicyReact 430ms ease-in-out both; }
  .taste-salty:active img { animation: tasteSaltyReact 720ms var(--ease-soft) both; }

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

  .menu-page {
    padding-bottom: 42px;
  }

  .empty-menu > img {
    height: 245px;
  }

  .create-page .create-hero {
    width: 100%;
  }

  .create-page .form-grid,
  .create-page .photo-input-row {
    grid-template-columns: 1fr;
  }

  .create-page .form-grid .wide {
    grid-column: auto;
  }

  .profile-avatar {
    width: 128px;
    height: 180px;
    margin: 0 auto;
  }

  .mobile-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
}
@media (hover: none), (pointer: coarse) {
  .button:hover,
  .button.primary:hover,
  .button.secondary:hover,
  .dish-card:hover,
  .taste-card:hover,
  .category-card:hover,
  .profile-stats button:hover,
  .profile-side > button:hover,
  .profile-dishes article:hover,
  .recent-grid > button:hover {
    transform: none;
  }
}
@keyframes pageRouteIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroCharacterEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes airHeroAlive {
  0%, 100% { transform: translateY(0) rotate(-1deg) scale(1); filter: drop-shadow(0 21px 20px rgba(69, 45, 23, 0.13)); }
  50% { transform: translateY(-12px) rotate(2deg) scale(1.008); filter: drop-shadow(0 29px 25px rgba(69, 45, 23, 0.1)); }
}
@keyframes heroThinkSwap {
  0% { opacity: 0; transform: translateY(16px) scale(0.95) rotate(0); }
  64% { opacity: 1; transform: translateY(-7px) scale(1.035) rotate(-2deg); }
  100% { opacity: 1; transform: translateY(-4px) scale(1.02) rotate(1deg); }
}
@keyframes heroRandomSwap {
  0% { opacity: 0; transform: translateY(14px) scale(0.94) rotate(-2deg); }
  58% { opacity: 1; transform: translateY(-12px) scale(1.055) rotate(3deg); }
  80% { transform: translateY(-5px) scale(1.025) rotate(-1deg); }
  100% { opacity: 1; transform: translateY(-7px) scale(1.035) rotate(1deg); }
}
@keyframes characterStateSwap {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes airThinkAlive {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-9px) rotate(2deg); }
}
@keyframes airRecommendAlive {
  0%, 100% { transform: translateY(0) rotate(0); }
  48% { transform: translateY(-10px) rotate(-1.6deg); }
  72% { transform: translateY(-6px) rotate(1deg); }
}
@keyframes airStateAlive {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-9px) rotate(1.8deg); }
}
@keyframes airPlateAlive {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.008); }
}
@keyframes airHappyAlive {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  52% { transform: translateY(-10px) rotate(1.5deg); }
}
@keyframes airPhotoAlive {
  0%, 100% { transform: translateY(0) rotate(-0.8deg); }
  50% { transform: translateY(-8px) rotate(1.6deg); }
}
@keyframes profileTransparentEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.96) rotate(-2deg); }
  72% { opacity: 1; transform: translateY(-4px) scale(1.01) rotate(1.5deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes airProfileAlive {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
}
@keyframes airObserveAlive {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}
@keyframes tasteBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.008); }
}
@keyframes tasteSourReact {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  30% { transform: translateY(-5px) rotate(-3deg) scale(1.025); }
  62% { transform: translateY(-3px) rotate(3deg) scale(1.02); }
}
@keyframes tasteSweetReact {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-11px) scale(1.03); }
}
@keyframes tasteBitterReact {
  0%, 100% { transform: translateY(0) scale(1); }
  42% { transform: translateY(7px) scale(0.985); }
  72% { transform: translateY(-3px) scale(1.012); }
}
@keyframes tasteSpicyReact {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-4px) rotate(-2deg); }
  50% { transform: translateX(4px) rotate(2deg); }
  75% { transform: translateX(-2px) rotate(-1deg); }
}
@keyframes tasteSaltyReact {
  0%, 100% { transform: translateY(0) rotate(0); }
  45% { transform: translateY(-6px) rotate(-1.5deg); }
  72% { transform: translateY(-3px) rotate(1deg); }
}
@keyframes saltGrains {
  0% { opacity: 0; transform: translateY(-8px); }
  35% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(22px); }
}
@media (prefers-reduced-motion: reduce) {
  main,
  .site-shell main > .page,
  .hero-character-stage,
  .hero-character-default,
  .hero-character-state,
  .state-swap-image,
  .decision-header img,
  .recommend-hero img,
  .result-character img,
  .empty-menu > img,
  .menu-live-banner img,
  .create-hero img,
  .smart-thinking img,
  .profile-avatar img,
  .reason-card > img,
  .empty-inline img,
  .taste-card img,
  .taste-salty::before {
    animation: none !important;
    transform: none !important;
    transition-duration: 0.01ms !important;
  }

  main.page-exiting,
  .hero-character-default.is-muted {
    opacity: 1;
  }

  .hero-character-state {
    display: none;
  }
}
/* Late cascade: preserve the established design while applying the AI refinement. */
body {
  font-size: 16px;
}
.page-intro h1,
.create-hero h1,
.recommend-hero h1,
.detail-title-row h1,
.menu-hero h1 {
  font-weight: 850;
}
.page-intro p,
.create-hero p,
.recommend-hero p,
.detail-subtitle,
.dish-card p {
  font-size: 15px;
  line-height: 1.72;
}
.dish-card h3,
.today-strip h2,
.result-copy h2,
.smart-preview-main h3 {
  font-weight: 850;
  letter-spacing: -0.025em;
}
.home-hero {
  min-height: 670px;
}
.hero-copy {
  padding-top: 58px;
  padding-bottom: 54px;
}
.hero-copy h1 {
  font-size: clamp(50px, 5.35vw, 72px);
  line-height: 1.04;
}
.today-strip.today-ai-strip {
  grid-template-columns: 292px minmax(0, 1fr) auto;
}
.taste-card {
  border-color: color-mix(in srgb, var(--taste-tone, #b98a55) 22%, #e8ddce);
}
.taste-card:nth-child(1) { --taste-tone: #e1b930; }
.taste-card:nth-child(2) { --taste-tone: #df849c; }
.taste-card:nth-child(3) { --taste-tone: #74523d; }
.taste-card:nth-child(4) { --taste-tone: #dd5c35; }
.taste-card:nth-child(5) { --taste-tone: #66859c; }
.taste-card.selected {
  border-color: color-mix(in srgb, var(--taste-tone) 68%, white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--taste-tone) 13%, transparent), 0 18px 42px color-mix(in srgb, var(--taste-tone) 18%, transparent);
}
.taste-card img.taste-symbol {
  position: absolute;
  z-index: 5;
  right: 11px;
  bottom: 12px;
  width: 54px;
  height: 54px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--taste-tone) 22%, white);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: inset 0 1px 0 white, 0 8px 18px rgba(67, 47, 31, 0.1);
  backdrop-filter: blur(8px);
  animation: tasteSymbolBreathe 4s ease-in-out infinite;
}
.taste-card > span {
  left: 12px;
  bottom: 12px;
  color: color-mix(in srgb, var(--taste-tone) 78%, #39281f);
  font-size: 22px;
}
.category-card {
  --category-tone: #9b7558;
  border-color: color-mix(in srgb, var(--category-tone) 24%, rgba(255,255,255,0.74));
  background: linear-gradient(145deg, rgba(255,255,255,0.72), color-mix(in srgb, var(--category-tone) 6%, rgba(247,240,230,0.72)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.94), 0 10px 28px color-mix(in srgb, var(--category-tone) 9%, transparent);
  backdrop-filter: blur(10px) saturate(1.05);
}
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.24), transparent 44%);
  pointer-events: none;
}
.category-meat { --category-tone: #8d6345; }
.category-veg { --category-tone: #65945f; }
.category-cold { --category-tone: #5e9b8e; }
.category-snack { --category-tone: #d6873a; }
.category-western { --category-tone: #7a4738; }
.category-soup { --category-tone: #b95d4d; }
.category-drink { --category-tone: #a6aa55; }
.category-card span {
  z-index: 3;
  height: 48px;
  background: color-mix(in srgb, var(--category-tone) 8%, rgba(255,253,249,0.88));
  color: color-mix(in srgb, var(--category-tone) 76%, #3d2c22);
  font-size: 15px;
  font-weight: 850;
}
.category-card.selected {
  border-color: color-mix(in srgb, var(--category-tone) 60%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-tone) 12%, transparent), 0 18px 36px color-mix(in srgb, var(--category-tone) 16%, transparent);
}
.reason-card.reason-card-upgraded {
  align-items: end;
  grid-template-columns: minmax(0, 1fr) 245px;
}
.reason-card.reason-card-upgraded > img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(74,48,26,0.11));
}
.create-mode-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.create-mode-switch .smart-create-choice,
.create-mode-switch .manual-create-choice {
  height: auto;
  border-radius: 22px;
}
.create-mode-switch .smart-create-choice {
  min-height: 96px;
  padding: 20px 24px;
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(202, 116, 49, 0.2);
  background: linear-gradient(145deg, #fff8ee, #f8e7d6);
  color: var(--ink);
  box-shadow: inset 0 1px 0 white, 0 14px 34px rgba(112, 68, 31, 0.09);
  text-align: left;
}
.create-mode-switch .smart-create-choice b {
  color: #b85b2b;
  font-size: 20px;
}
.create-mode-switch .smart-create-choice small {
  color: var(--muted);
  font-size: 13px;
}
.create-mode-switch .smart-create-choice.active {
  border-color: rgba(214, 107, 41, 0.48);
  background: linear-gradient(145deg, #fff7e9, #f6dfc9);
  box-shadow: 0 0 0 4px rgba(213, 115, 48, 0.08), 0 17px 38px rgba(112, 68, 31, 0.12), inset 0 1px 0 white;
}
.create-mode-switch .manual-create-choice {
  min-width: 152px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(255,253,249,0.7);
  color: var(--muted);
  box-shadow: inset 0 1px 0 white;
  font-size: 13px;
}
.create-mode-switch .manual-create-choice.active {
  border-color: rgba(130, 91, 53, 0.24);
  background: #f3ece3;
  color: var(--ink);
}
.smart-thinking .ai-machine-stage img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
@media (max-width: 1100px) {
  .today-strip.today-ai-strip {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .today-strip.today-ai-strip .today-actions {
    grid-column: 2;
  }

  .reason-card.reason-card-upgraded {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
}
@media (max-width: 900px) {
  .home-hero { min-height: 610px; }
  .reason-card.reason-card-upgraded { grid-template-columns: 1fr; }
  .reason-card.reason-card-upgraded > img { width: 210px; margin: 0 auto; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }

  .page-intro h1,
  .create-hero h1,
  .recommend-hero h1 {
    font-size: clamp(35px, 10vw, 46px);
  }

  .home-hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-copy {
    padding-top: 35px;
    padding-bottom: 20px;
  }

  .hero-copy h1 {
    max-width: 9em;
    font-size: clamp(42px, 12vw, 58px);
  }

  .today-strip.today-ai-strip {
    grid-template-columns: 1fr;
  }

  .today-strip.today-ai-strip .today-actions {
    grid-column: 1;
  }

  .taste-card img.taste-symbol {
    width: 48px;
    height: 48px;
    right: 8px;
    bottom: 9px;
  }

  .reason-card.reason-card-upgraded { grid-template-columns: 1fr; }

  .create-mode-switch { grid-template-columns: 1fr; }
  .create-mode-switch .smart-create-choice { min-height: 88px; }
  .create-mode-switch .manual-create-choice { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .taste-card img.taste-symbol {
    animation: none !important;
  }
}
/* AI 今日推荐：独立 PNG 图层揭晓舞台 */
.today-strip.today-ai-strip.ai-recommendation-card {
  display: grid;
  grid-template-columns: minmax(300px, 30%) minmax(0, 1fr) minmax(168px, 22%);
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
  min-height: 0;
  padding: clamp(18px, 2vw, 24px);
  overflow: hidden;
  overflow: clip;
  border: 1px solid rgba(184, 150, 103, 0.2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 13% 50%, rgba(235, 197, 124, 0.11), transparent 31%),
    rgba(255, 252, 246, 0.96);
  box-shadow: 0 18px 48px rgba(73, 47, 25, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.ai-recommendation-stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin-inline: auto;
  contain: layout paint;
  isolation: isolate;
}
.ai-recommendation-canvas {
  position: relative;
  width: 100%;
  height: 100%;
}
.recommendation-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 55%;
  will-change: transform, opacity, filter;
}
.recommendation-ambient {
  position: absolute;
  z-index: 0;
  left: 13%;
  right: 13%;
  bottom: 9%;
  height: 23%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 151, 67, 0.23), rgba(201, 151, 67, 0) 68%);
  filter: blur(11px);
  animation: recommendationAmbient 3.2s ease-in-out infinite;
}
.recommendation-base { z-index: 1; }
.recommendation-core-glow {
  position: absolute;
  z-index: 2;
  left: 35%;
  top: 49%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 244, 197, 0.95) 0%, rgba(225, 168, 56, 0.48) 32%, rgba(225, 168, 56, 0) 70%);
  filter: blur(5px);
  transform: scale(0.55);
  transition: opacity 380ms ease, transform 620ms ease;
  pointer-events: none;
}
.recommendation-dish {
  z-index: 3;
  opacity: 0;
  transform: translateY(6px) scale(0.25);
  filter: drop-shadow(0 12px 18px rgba(220, 161, 55, 0));
  transition: opacity 320ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1), filter 620ms ease;
}
.recommendation-scan {
  z-index: 4;
  opacity: 0.18;
  transform: rotate(-2deg) scale(0.92);
  filter: drop-shadow(0 0 10px rgba(223, 173, 74, 0.18));
  transition: opacity 440ms ease, transform 640ms ease, filter 500ms ease;
}
.recommendation-cloche {
  z-index: 5;
  transform: translateY(0) scale(1);
  transition: transform 600ms ease-out, filter 500ms ease;
  filter: drop-shadow(0 13px 14px rgba(38, 24, 13, 0.08));
}
.recommendation-badge {
  z-index: 6;
  opacity: 0;
  transform: translate(29%, -16%) scale(0.22);
  transform-origin: 50% 50%;
}
.recommendation-dish.is-dynamic {
  inset: auto;
  left: 22%;
  top: 39%;
  width: 56%;
  height: 42%;
  border-radius: 30%;
  object-fit: contain;
}
.phase-idle .recommendation-scan {
  animation: recommendationScanIdle 2.8s ease-in-out infinite;
}
.phase-scanning .recommendation-scan {
  opacity: 1;
  filter: drop-shadow(0 0 18px rgba(222, 171, 70, 0.55));
  animation: recommendationScan 700ms cubic-bezier(0.34, 0.02, 0.31, 1) both;
}
.phase-scanning .recommendation-core-glow,
.phase-revealing .recommendation-core-glow {
  opacity: 1;
  transform: scale(1);
}
.phase-revealing .recommendation-cloche,
.phase-success .recommendation-cloche {
  transform: translateY(-120px) scale(0.98);
  filter: drop-shadow(0 18px 17px rgba(38, 24, 13, 0.11));
}
.phase-revealing .recommendation-dish,
.phase-success .recommendation-dish {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: drop-shadow(0 12px 22px rgba(220, 161, 55, 0.28));
}
.phase-revealing .recommendation-dish {
  animation: recommendationDishGenerate 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.phase-revealing .recommendation-scan {
  opacity: 0.7;
  transform: rotate(2deg) scale(1.01);
  filter: drop-shadow(0 0 14px rgba(222, 171, 70, 0.4));
}
.phase-success .recommendation-dish { opacity: 1; }
.phase-success .recommendation-scan {
  opacity: 0.23;
  transform: rotate(5deg) scale(1);
  filter: drop-shadow(0 0 9px rgba(222, 171, 70, 0.25));
}
.phase-success .recommendation-badge {
  opacity: 1;
  transform: translate(29%, -16%) scale(0.34);
  animation: recommendationBadge 450ms cubic-bezier(0.22, 0.78, 0.3, 1.25) both;
}
@keyframes recommendationAmbient {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 0.82; transform: scale(1.02); }
}
@keyframes recommendationScanIdle {
  0%, 100% { opacity: 0.14; transform: scale(0.97); }
  50% { opacity: 0.3; transform: scale(1); }
}
@keyframes recommendationScan {
  0% { opacity: 0.2; transform: rotate(-2deg) scale(0.92); }
  55% { opacity: 1; transform: rotate(2deg) scale(1.05); }
  100% { opacity: 0.82; transform: rotate(3deg) scale(1); }
}
@keyframes recommendationBadge {
  0% { opacity: 0; transform: translate(29%, calc(-16% + 8px)) scale(0); }
  70% { opacity: 1; transform: translate(29%, -16%) scale(0.374); }
  100% { opacity: 1; transform: translate(29%, -16%) scale(0.34); }
}
@keyframes recommendationDishGenerate {
  0% { opacity: 0; transform: translateY(6px) scale(0.25); }
  72% { opacity: 1; transform: translateY(-3px) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.recommendation-copy {
  min-width: 0;
  padding-block: 4px;
}
.recommendation-copy .eyebrow {
  color: #9b6a24;
  font-weight: 750;
}
.recommendation-copy h2 {
  margin: 10px 0 8px;
  color: #2f241d;
  font-size: clamp(27px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.recommendation-copy > p {
  display: -webkit-box;
  max-width: 39em;
  margin: 0;
  overflow: hidden;
  color: #66584c;
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.recommendation-score {
  position: relative;
  width: min(210px, 62%);
  height: 3px;
  margin: 17px 0 15px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(151, 116, 69, 0.13);
}
.recommendation-score > span {
  display: block;
  width: var(--recommendation-score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b77a27, #efd18c);
  box-shadow: 0 0 8px rgba(194, 135, 48, 0.28);
  transform-origin: left;
  animation: recommendationScoreIn 620ms 2.8s ease both;
}
@keyframes recommendationScoreIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.recommendation-copy .tag-row { margin-top: 0; }
.recommendation-copy .tag-row span {
  border-color: rgba(189, 150, 93, 0.24);
  background: rgba(245, 231, 204, 0.54);
  color: #755a35;
}
.recommendation-ai-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: #8c6129;
  text-align: left;
  cursor: pointer;
}
.recommendation-ai-entry span { font-weight: 800; }
.recommendation-ai-entry small { color: #9b8c7d; }
.recommendation-ai-entry b { transition: transform 180ms ease; }
.recommendation-ai-entry:hover b { transform: translateX(3px); }
.today-strip.today-ai-strip.ai-recommendation-card .recommendation-actions {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.recommendation-actions .button {
  width: 100%;
  min-height: 44px;
  padding-inline: 14px;
  white-space: nowrap;
}
.recommendation-actions .recommendation-primary {
  border: 1px solid rgba(161, 110, 38, 0.26);
  color: #3c2b18;
  background: linear-gradient(180deg, #f8de9f 0%, #e8bd62 100%);
  box-shadow: 0 8px 15px rgba(164, 111, 40, 0.17), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.recommendation-actions .recommendation-secondary {
  border-color: rgba(157, 127, 88, 0.24);
  color: #4d3c2f;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 5px 12px rgba(69, 48, 28, 0.06), inset 0 1px 0 #fff;
}
.recommendation-swap {
  align-self: center;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: #8c6c4d;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, transform 160ms ease, opacity 180ms ease;
}
.recommendation-swap:disabled { opacity: 0.52; cursor: wait; }
.recommendation-actions button:focus-visible,
.recommendation-ai-entry:focus-visible,
.recommendation-swap:focus-visible {
  outline: 3px solid rgba(210, 153, 57, 0.36);
  outline-offset: 3px;
}
@media (hover: hover) {
  .recommendation-actions .button:hover { transform: translateY(-2px); filter: brightness(1.025); }
  .recommendation-actions .recommendation-primary:hover { box-shadow: 0 11px 19px rgba(164, 111, 40, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.85); }
  .recommendation-swap:not(:disabled):hover { color: #b37624; transform: translateY(-1px); }
}
.recommendation-actions .button:active,
.recommendation-swap:not(:disabled):active { transform: scale(0.97); }
@media (max-width: 1100px) {
  .today-strip.today-ai-strip.ai-recommendation-card {
    grid-template-columns: minmax(260px, 29%) minmax(0, 1fr) 170px;
    gap: 18px;
  }
  .ai-recommendation-stage { width: min(100%, 300px); }
  .today-strip.today-ai-strip.ai-recommendation-card .recommendation-actions { grid-column: auto; }
}
@media (max-width: 800px) {
  .today-strip.today-ai-strip.ai-recommendation-card {
    grid-template-columns: minmax(230px, 38%) minmax(0, 1fr);
  }
  .today-strip.today-ai-strip.ai-recommendation-card .recommendation-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .recommendation-swap { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .today-strip.today-ai-strip.ai-recommendation-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 16px;
    border-radius: 25px;
  }
  .ai-recommendation-stage { width: min(100%, 300px); }
  .recommendation-copy { padding: 0 4px 8px; }
  .recommendation-copy h2 { font-size: 30px; }
  .recommendation-score { width: 60%; }
  .today-strip.today-ai-strip.ai-recommendation-card .recommendation-actions {
    grid-column: 1;
    gap: 9px;
  }
  .recommendation-actions .button { min-height: 48px; }
  .phase-revealing .recommendation-cloche,
  .phase-success .recommendation-cloche { transform: translateY(-120px) scale(0.98); }
}
@media (max-width: 390px) {
  .ai-recommendation-stage { width: min(100%, 270px); }
  .recommendation-copy > p { font-size: 14px; }
  .recommendation-actions .button { padding-inline: 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .recommendation-ambient,
  .recommendation-layer,
  .recommendation-score > span {
    animation: none !important;
    transition: none !important;
  }
  .phase-success .recommendation-cloche { transform: translateY(-96px) scale(0.98); }
  .phase-success .recommendation-dish { opacity: 1; transform: none; }
  .phase-success .recommendation-badge { opacity: 1; transform: translate(29%, -16%) scale(0.34); }
}
/* Targeted readability and spacing refinement */
body {
  font-size: 17px;
}
.page-intro p,
.hero-copy > p,
.section-heading p,
.today-copy > p,
.dish-card-body > p,
.form-note,
.field-help,
.empty-copy p {
  font-size: 16px;
}
.button,
.nav-link,
.mobile-nav button {
  font-size: 14.5px;
}
.eyebrow,
.section-number,
.recommendation-copy .eyebrow {
  color: #b96632;
  font-size: 13px;
}
.tag-row span,
.active-filters span,
.filter-chip {
  font-size: 11.5px;
}
.dish-title-button {
  color: #28221d;
  font-size: 21px;
  line-height: 1.25;
}
.dish-heading-row > span {
  color: #9c6a2f;
  font-size: 11px;
}
.dish-meta span {
  font-size: 10px;
}
.dish-meta strong {
  font-size: 14px;
}
.dish-meta span:last-child strong {
  color: #cf6841;
}
.choice-row button.selected,
.active-filters strong,
.recommendation-score + .tag-row span {
  font-weight: 800;
}
/* Airier dish cards: 3 columns on wide screens, 2 on compact desktop, 1 on mobile. */
.categories-page .dish-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.dish-card {
  border-radius: 25px;
}
.dish-photo {
  height: 220px;
}
.dish-card-body {
  padding: 22px;
}
.dish-card-body > p {
  margin: 10px 0 16px;
  line-height: 1.65;
}
.dish-meta {
  margin-bottom: 15px;
}
.dish-meta span {
  padding: 11px 7px;
}
.dish-card .tag-row {
  gap: 8px;
  margin-top: 2px;
}
.dish-card-actions {
  gap: 12px;
  padding-top: 18px;
}
.dish-card-actions .button {
  min-height: 46px;
  padding-inline: 12px;
  font-size: 13px;
}
/* The border belongs to the complete seasonal image card, not to an inner overlay. */
.dish-photo-frame,
.detail-image-frame,
.smart-preview-image-frame,
.today-dish-frame {
  box-sizing: border-box;
  border: 1.5px solid rgba(193, 145, 81, 0.28);
  background: #fbf6ee;
}
.season-overlay b {
  display: none;
}
.favorite-button {
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #8c8278;
  font-size: 27px;
  line-height: 1;
}
.favorite-button.is-favorite {
  color: #d96c3f;
  background: rgba(255, 247, 235, 0.94);
  border-color: rgba(205, 151, 74, 0.42);
}
/* Five-level taste strength, using the existing 2.5D assets. */
.taste-strength > div {
  min-height: 22px;
  gap: 3px;
  flex-wrap: nowrap;
}
.taste-strength img,
.taste-strength img:first-child {
  width: 18px;
  height: 18px;
  margin-left: 0;
  flex: 0 0 auto;
}
.taste-strength > span {
  font-size: 12px;
}
.taste-strength small {
  font-size: 11px;
}
/* Uploaded photos are always fully visible and keep their original proportions. */
.photo-drop {
  background: #f7f0e6;
}
.photo-drop img {
  width: 100%;
  height: clamp(180px, 28vw, 360px);
  object-fit: contain;
  object-position: center;
  background: #f7f0e6;
}
/* Smart create is the clear primary path; manual creation remains available. */
.create-mode-switch {
  grid-template-columns: minmax(0, 2fr) minmax(190px, 1fr);
  gap: 18px;
}
.create-mode-switch .smart-create-choice {
  min-height: 132px;
  padding: 26px 30px;
  border-color: rgba(215, 111, 47, 0.38);
  background: linear-gradient(145deg, #fff7e9 0%, #f8dfc6 100%);
  box-shadow: 0 19px 40px rgba(124, 75, 34, 0.14), inset 0 1px 0 rgba(255,255,255,0.95);
  transition: transform 190ms ease, box-shadow 190ms ease, filter 190ms ease;
}
.create-mode-switch .smart-create-choice b {
  color: #b8562d;
  font-size: 26px;
}
.create-mode-switch .smart-create-choice b em {
  color: #d96537;
  background: rgba(255,255,255,0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
.create-mode-switch .smart-create-choice small {
  color: #79675a;
  font-size: 14.5px;
  line-height: 1.55;
}
.create-mode-switch .manual-create-choice {
  min-width: 0;
  min-height: 94px;
  padding: 20px 22px;
  border-color: rgba(125, 108, 91, 0.14);
  background: rgba(252, 250, 247, 0.78);
  color: #81766d;
  box-shadow: 0 7px 18px rgba(68, 52, 38, 0.04), inset 0 1px 0 #fff;
  font-size: 15px;
}
@media (hover: hover) {
  .create-mode-switch .smart-create-choice:hover {
    transform: translateY(-2px);
    filter: brightness(1.015);
    box-shadow: 0 23px 45px rgba(124, 75, 34, 0.17), inset 0 1px 0 rgba(255,255,255,0.96);
  }
}
@media (max-width: 1100px) {
  .categories-page .dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}
