.create-page .create-mode-switch .manual-create-choice,
.create-page .create-mode-switch .manual-create-choice.active {
  min-width: 215px;
  min-height: 42px;
  padding: 8px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a19890;
  box-shadow: none;
  font-size: 12px;
  text-align: right;
}
.create-page .create-mode-switch .manual-create-choice b {
  color: #756a61;
  font-size: 13px;
}
.create-page .smart-create-input {
  padding: 34px;
}
.create-page .smart-input-grid {
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}
.create-page .smart-photo-field {
  display: block;
  min-height: 100%;
}
.create-page .smart-photo-field .photo-drop {
  width: 100%;
  height: 100%;
  min-height: 354px;
  padding: 18px;
}
.create-page .smart-photo-field .photo-drop img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.create-page .smart-fields textarea {
  min-height: 132px;
}
.create-page .smart-fill-button {
  min-height: 54px;
}
@media (max-width: 980px) {
  .categories-page .taste-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-page .detail-hero { grid-template-columns: 1fr; }
  .detail-season-frame { max-width: 720px; }
}
@media (max-width: 760px) {
  .categories-page .taste-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories-page .taste-card { min-height: 178px; }
  .categories-page .taste-card:last-child { grid-column: 1 / -1; }
  .categories-page .taste-card > img:first-child { height: 138px; }
  .categories-page .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories-page .category-card { min-height: 132px; }
  .categories-page .category-card:last-child { grid-column: 1 / -1; }
  .categories-page .favorite-button { width: 38px; height: 38px; }

  .detail-page .detail-image-frame { min-height: 0; padding: 8px; }
  .detail-season-frame { width: 100%; max-width: none; }

  .create-page .create-mode-switch { grid-template-columns: 1fr; gap: 4px; }
  .create-page .create-mode-switch .smart-create-choice { min-height: 148px; padding: 26px 24px; }
  .create-page .create-mode-switch .manual-create-choice,
  .create-page .create-mode-switch .manual-create-choice.active { min-width: 0; width: 100%; text-align: right; }
  .create-page .smart-create-input { padding: 22px 16px; }
  .create-page .smart-input-grid { grid-template-columns: 1fr; gap: 18px; }
  .create-page .smart-photo-field .photo-drop { min-height: 260px; }
}
.detail-page .fit-people span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f6ecdf;
  color: #8c6030;
  font-size: 11px;
}
@media (max-width: 980px) {
  .detail-page .detail-hero { grid-template-columns: 1fr; }
  .detail-page .detail-image-frame { border-radius: 28px 28px 0 0; }
  .detail-season-frame { width: min(78vw, 430px); }
  .menu-empty-focus { grid-template-columns: 300px minmax(0,1fr); padding: 45px; }
}
@media (max-width: 760px) {
  .category-flow { gap: 6px; flex-wrap: wrap; }
  .category-flow i { display: none; }
  .category-flow span { padding: 8px 10px; font-size: 10px; }
  .categories-page .filter-section { padding: 22px 16px; }
  .categories-page .taste-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories-page .taste-card { min-height: 150px; }
  .categories-page .taste-card:last-child { grid-column: 1 / -1; }
  .categories-page .taste-card > img:first-child { width: 88px; height: 88px; }
  .categories-page .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .categories-page .category-card:last-child { grid-column: 1 / -1; }
  .categories-page .category-ai-search { padding: 18px; grid-template-columns: 1fr; }
  .categories-page .category-ai-search .ai-machine-stage { display: none; }
  .categories-page .favorite-button { width: 50px; height: 50px; }

  .menu-page .page-intro h1 { font-size: 43px; }
  .menu-empty-focus { min-height: 580px; padding: 28px 22px; grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .menu-empty-character { min-height: 260px; }
  .menu-empty-character img { width: 250px; max-height: 270px; }
  .menu-empty-focus > div:last-child { display: grid; justify-items: center; }
  .menu-empty-focus h2 { font-size: 31px; }
  .menu-page .menu-ai-optimizer { padding: 24px 18px; grid-template-columns: 1fr; }
  .menu-page .menu-ai-optimizer .ai-machine-stage { min-height: 190px; }
  .menu-page .menu-ai-optimizer h2 { font-size: 25px; }
  .menu-page .menu-live-banner { padding: 24px 20px; }
  .menu-page .menu-list-actions { display: grid; grid-template-columns: 1fr 1fr; }

  .detail-page .detail-image-frame { min-height: 510px; padding: 10px; }
  .detail-season-frame { width: min(92vw, 350px); }
  .detail-page .detail-copy { padding: 30px 20px; }
  .detail-page .detail-copy h1 { font-size: 43px; }
  .detail-signal-row { align-items: flex-start; }
  .detail-signal-row .taste-marker { min-width: 44px; grid-template-columns: 22px auto; }
  .detail-page .detail-actions { grid-template-columns: 1fr 1fr; }
  .detail-page .detail-menu-action { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .detail-season-frame { width: 100%; max-width: 720px; }
}
@media (max-width: 760px) {
  .categories-page .taste-card { min-height: 178px; }
  .categories-page .taste-card > img:first-child { width: 100%; height: 138px; }
  .categories-page .favorite-button { width: 38px; height: 38px; }
  .detail-page .detail-image-frame { min-height: 0; padding: 8px; }
  .detail-season-frame { width: 100%; max-width: none; }
}
/* Independent dish analysis — scoped to the new page. */
.analyze-page {
  width: min(1120px, calc(100% - 40px));
}
.analyze-hero {
  min-height: 390px;
  padding: 62px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 34px;
  overflow: hidden;
  border: 1px solid rgba(154, 112, 67, .1);
  border-radius: 34px;
  background: linear-gradient(135deg, #f3e7d7 0%, #f8f0e5 72%, #f5e9da 100%);
  box-shadow: 0 20px 46px rgba(74, 51, 27, .07);
}
.analyze-hero h1 {
  max-width: 650px;
  margin: 14px 0 18px;
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: .98;
  letter-spacing: -.065em;
}
.analyze-hero p {
  margin: 0 0 8px;
  color: #665b52;
  font-size: 17px;
}
.analyze-hero small {
  color: #95887c;
  font-size: 12px;
}
.analyze-hero > img {
  width: 100%;
  height: 300px;
  object-fit: contain;
}
.analysis-input-card {
  margin-top: 24px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
  gap: 30px;
  border: 1px solid rgba(109, 82, 53, .11);
  border-radius: 30px;
  background: #fffdfa;
  box-shadow: 0 16px 42px rgba(73, 51, 29, .065);
}
.analysis-photo-input,
.analysis-text-inputs {
  min-width: 0;
}
.analysis-photo-input {
  position: relative;
  padding-top: 2px;
}
.analysis-field-number {
  position: absolute;
  top: 0;
  left: 0;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(190, 128, 79, .16);
  border-radius: 12px;
  background: #fffaf4;
  color: #bc7650;
  font-size: 11px;
  font-weight: 850;
}
.analysis-field-heading {
  min-height: 40px;
  margin-left: 49px;
  display: grid;
  align-content: center;
  gap: 2px;
}
.analysis-field-heading strong {
  color: #413a34;
  font-size: 14px;
}
.analysis-field-heading small {
  color: #a09489;
  font-size: 10px;
}
.analysis-photo-drop {
  width: 100%;
  min-height: 318px;
  margin-top: 16px;
  padding: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px dashed rgba(173, 123, 74, .32);
  border-radius: 24px;
  background: #f8f2ea;
  color: #665a50;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.analysis-photo-drop:hover {
  border-color: rgba(195, 111, 63, .48);
  background: #fbf4ea;
}
.analysis-photo-drop > b {
  color: #b57048;
  font-size: 28px;
  font-weight: 400;
}
.analysis-photo-drop > strong {
  font-size: 15px;
}
.analysis-photo-drop > small {
  color: #9b8e82;
  font-size: 10px;
}
.analysis-photo-drop img {
  width: 100%;
  height: 282px;
  object-fit: contain;
  object-position: center;
}
.analysis-text-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.analysis-text-inputs label {
  display: grid;
  gap: 8px;
}
.analysis-text-inputs label > span {
  color: #4e453e;
  font-size: 12px;
  font-weight: 780;
}
.analysis-text-inputs label > span b {
  margin-right: 5px;
  color: #bb754d;
  font-size: 10px;
}
.analysis-text-inputs label > span small {
  margin-left: 4px;
  color: #aaa097;
  font-size: 9px;
  font-weight: 600;
}
.analysis-text-inputs input,
.analysis-text-inputs textarea {
  width: 100%;
  border: 1px solid rgba(105, 78, 50, .12);
  border-radius: 17px;
  background: #f8f4ee;
  color: #332d28;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.analysis-text-inputs input {
  min-height: 56px;
  padding: 0 17px;
}
.analysis-text-inputs textarea {
  min-height: 150px;
  padding: 16px 17px;
  resize: vertical;
}
.analysis-text-inputs input:focus,
.analysis-text-inputs textarea:focus {
  border-color: rgba(199, 111, 58, .4);
  background: #fffdfa;
  box-shadow: 0 0 0 4px rgba(211, 132, 75, .09);
}
.analysis-submit {
  min-height: 56px;
  margin-top: auto;
  font-size: 15px;
}
.analysis-submit:disabled {
  opacity: .42;
  filter: saturate(.4);
  box-shadow: none;
  cursor: not-allowed;
}
.analysis-text-inputs > p {
  margin: -5px 2px 0;
  color: #a49990;
  font-size: 10px;
}
.analysis-loading {
  min-height: 330px;
  margin-top: 24px;
  padding: 42px 54px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: center;
  gap: 44px;
  border: 1px solid rgba(111, 82, 52, .1);
  border-radius: 30px;
  background: #2d2925;
  color: #fffaf4;
  box-shadow: 0 18px 42px rgba(44, 34, 25, .13);
}
.analysis-loading > img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  animation: analysisBreathe 1.8s ease-in-out infinite;
}
.analysis-loading h2 {
  margin: 8px 0 24px;
  font-size: 31px;
  letter-spacing: -.045em;
}
.analysis-progress-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.analysis-progress-list span {
  padding: 12px 9px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  color: #8e8984;
  font-size: 10px;
  transition: opacity 220ms ease, background 220ms ease, color 220ms ease;
}
.analysis-progress-list i {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  font-style: normal;
  font-size: 9px;
}
.analysis-progress-list span.current {
  background: rgba(231, 160, 93, .12);
  color: #f2cfab;
  opacity: 1;
}
.analysis-progress-list span.current i {
  animation: analysisBreathe 1.2s ease-in-out infinite;
}
.analysis-progress-list span.done {
  color: #f1e7dc;
}
@keyframes analysisBreathe {
  0%, 100% { opacity: .82; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.018); }
}
.analysis-error {
  margin-top: 24px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(189, 95, 68, .18);
  border-radius: 22px;
  background: #fff5f1;
  color: #8f4e3d;
}
.analysis-result {
  margin-top: 26px;
  scroll-margin-top: 105px;
}
.analysis-result-summary {
  min-height: 190px;
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(105, 78, 50, .1);
  border-radius: 28px;
  background: linear-gradient(135deg, #fffdfa, #f7ede0);
  box-shadow: 0 14px 34px rgba(70, 49, 28, .06);
}
.analysis-result-summary h2 {
  margin: 8px 0 9px;
  font-size: 42px;
  letter-spacing: -.055em;
}
.analysis-result-summary p {
  max-width: 650px;
  margin: 0;
  color: #70645a;
  font-size: 14px;
  line-height: 1.7;
}
.analysis-result-summary > div:last-child {
  width: 180px;
  height: 122px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 19px;
  background: #f4ede4;
}
.analysis-result-summary > div:last-child img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.analysis-result-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr);
  align-items: start;
  gap: 18px;
}
.analysis-main-column,
.analysis-side-column {
  display: grid;
  gap: 18px;
}
.dish-analysis-card {
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(105, 78, 50, .105);
  border-radius: 26px;
  background: #fffdfa;
  box-shadow: 0 12px 30px rgba(70, 49, 28, .045);
}
.analysis-card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
.analysis-card-heading > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #f6e9db;
  color: #b96d43;
  font-size: 10px;
  font-weight: 850;
}
.analysis-card-heading small {
  color: #b7aa9d;
  font-size: 9px;
}
.analysis-card-heading h3 {
  margin: 2px 0 0;
  font-size: 22px;
  letter-spacing: -.035em;
}
.ingredient-groups {
  margin-top: 23px;
  display: grid;
  gap: 18px;
}
.ingredient-groups section {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.ingredient-groups h4 {
  margin: 8px 0 0;
  color: #8f7c6a;
  font-size: 11px;
}
.ingredient-groups section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ingredient-groups section span {
  min-width: 112px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(103, 78, 51, .085);
  border-radius: 13px;
  background: #faf6f0;
}
.ingredient-groups b {
  color: #4e443b;
  font-size: 12px;
}
.ingredient-groups small {
  color: #9d8e81;
  font-size: 9px;
}
.analysis-steps-card {
  padding: 32px;
}
.analysis-steps-card ol {
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}
.analysis-steps-card li {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 24px;
}
.analysis-steps-card li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 38px;
  bottom: 4px;
  left: 22px;
  width: 1px;
  background: #eadfd3;
}
.analysis-steps-card li > b {
  width: 46px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #2e2a26;
  color: #f1c495;
  font-size: 11px;
}
.analysis-steps-card h4 {
  margin: 1px 0 6px;
  font-size: 15px;
}
.analysis-steps-card p {
  margin: 0 0 7px;
  color: #776c62;
  font-size: 12px;
  line-height: 1.65;
}
.analysis-steps-card li div > span {
  color: #b0784d;
  font-size: 9px;
  font-weight: 750;
}
.analysis-cookware-card {
  background: #f3eadf;
}
.analysis-cookware-card > div:last-child {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.analysis-cookware-card > div:last-child span {
  padding: 9px 12px;
  border: 1px solid rgba(111, 80, 48, .1);
  border-radius: 999px;
  background: rgba(255, 253, 249, .72);
  color: #655649;
  font-size: 11px;
  font-weight: 750;
}
.analysis-time-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(104, 77, 50, .1);
  border-radius: 17px;
  background: rgba(104, 77, 50, .1);
}
.analysis-time-grid span {
  min-height: 72px;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: #fffdfa;
}
.analysis-time-grid span.total {
  grid-column: 1 / -1;
  background: #2e2a26;
  color: white;
}
.analysis-time-grid small {
  color: #a09184;
  font-size: 9px;
}
.analysis-time-grid b {
  font-size: 15px;
}
.analysis-pitfalls-card > div:last-child {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}
.analysis-pitfalls-card section {
  padding: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  border-radius: 15px;
  background: #faf4ee;
}
.analysis-pitfalls-card section > b {
  color: #c1694b;
  font-size: 9px;
}
.analysis-pitfalls-card p {
  margin: 0;
  display: grid;
  gap: 4px;
}
.analysis-pitfalls-card strong {
  color: #51463d;
  font-size: 12px;
}
.analysis-pitfalls-card p span {
  color: #8a7d72;
  font-size: 10px;
  line-height: 1.55;
}
.analysis-tips-card {
  background: linear-gradient(145deg, #fff9ed, #f5e4ca);
}
.analysis-tips-card > div:last-child {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}
.analysis-tips-card p {
  margin: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  color: #665649;
  font-size: 11px;
  line-height: 1.6;
}
.analysis-tips-card p b {
  color: #bd743d;
  font-size: 9px;
}
.analysis-result-actions {
  margin-top: 18px;
  padding: 24px 28px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid rgba(105, 78, 50, .1);
  border-radius: 24px;
  background: #fffdfa;
}
.analysis-result-actions .button.primary {
  min-width: 210px;
}
.smart-review-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.smart-analysis-link {
  padding: 8px 2px;
  background: transparent;
  color: #9b8d82;
  font-size: 11px;
  font-weight: 720;
}
.smart-analysis-link:hover {
  color: #b56d44;
}
@media (max-width: 1000px) {
  .desktop-nav button { padding-inline: 10px; }
  .analyze-hero { grid-template-columns: minmax(0, 1fr) 260px; padding: 48px; }
  .analysis-result-layout { grid-template-columns: 1fr; }
  .analysis-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 760px) {
  .analyze-page { width: calc(100% - 24px); }
  .analyze-hero { min-height: 0; padding: 34px 24px 22px; grid-template-columns: 1fr; gap: 10px; }
  .analyze-hero h1 { font-size: 43px; }
  .analyze-hero p { font-size: 14px; }
  .analyze-hero > img { height: 210px; }
  .analysis-input-card { padding: 20px 16px; grid-template-columns: 1fr; gap: 24px; }
  .analysis-photo-drop { min-height: 250px; }
  .analysis-photo-drop img { height: 220px; }
  .analysis-loading { min-height: 0; padding: 28px 20px; grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .analysis-loading > img { height: 190px; }
  .analysis-loading h2 { font-size: 25px; }
  .analysis-progress-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analysis-result-summary { padding: 28px 22px; align-items: flex-start; flex-direction: column-reverse; }
  .analysis-result-summary h2 { font-size: 34px; }
  .analysis-result-summary > div:last-child { width: 100%; height: 190px; }
  .analysis-result-layout { grid-template-columns: 1fr; }
  .analysis-side-column { grid-template-columns: 1fr; }
  .dish-analysis-card, .analysis-steps-card { padding: 22px 18px; }
  .ingredient-groups section { grid-template-columns: 1fr; gap: 7px; }
  .ingredient-groups h4 { margin: 0; }
  .analysis-result-actions { padding: 18px; display: grid; }
  .analysis-result-actions .button.primary { min-width: 0; }
  .smart-review-links { align-items: flex-start; flex-direction: column; gap: 2px; }
  .mobile-nav { padding-inline: 5px; }
  .mobile-nav small { font-size: 8px; }
  .mobile-nav button > span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .analysis-loading > img,
  .analysis-progress-list span.current i { animation: none; }
}
/* Local visual balance pass: analysis hero, smart-create entry and taste cards only. */
@media (min-width: 1001px) {
  .analyze-page .analyze-hero {
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 10px;
  }

  .analyze-page .analyze-hero > img {
    width: 138%;
    max-width: 520px;
    height: 360px;
    justify-self: center;
    align-self: end;
    object-position: center bottom;
  }
}
.create-page .create-mode-switch .smart-create-choice {
  justify-items: center;
}
.create-page .create-mode-switch .smart-create-choice > b,
.create-page .create-mode-switch .smart-create-choice > small {
  width: min(100%, 620px);
  display: block;
  text-align: left;
}
.categories-page .taste-card {
  --taste-soft: #fffaf0;
  min-height: 228px;
  border-color: color-mix(in srgb, var(--taste-tone) 28%, #e8ded3);
  background: linear-gradient(155deg, #fffdfa 0%, var(--taste-soft) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 10px 28px color-mix(in srgb, var(--taste-tone) 8%, transparent);
}
.categories-page .taste-card > img:first-child {
  height: 184px;
  transform: scale(1.08);
  transform-origin: center bottom;
}
.categories-page .taste-card > span {
  color: color-mix(in srgb, var(--taste-tone) 86%, #392d26);
  border: 1px solid color-mix(in srgb, var(--taste-tone) 20%, transparent);
  background: color-mix(in srgb, var(--taste-tone) 9%, rgba(255,253,249,.96));
}
.categories-page .taste-card img.taste-symbol {
  border-color: color-mix(in srgb, var(--taste-tone) 30%, white);
  background: color-mix(in srgb, var(--taste-tone) 8%, rgba(255,253,249,.95));
}
.categories-page .taste-card.taste-sour { --taste-tone: #d3aa22; --taste-soft: #fff9dc; }
.categories-page .taste-card.taste-sweet { --taste-tone: #d88b9f; --taste-soft: #fff0f3; }
.categories-page .taste-card.taste-bitter { --taste-tone: #79533c; --taste-soft: #f5ece6; }
.categories-page .taste-card.taste-spicy { --taste-tone: #d8604c; --taste-soft: #ffefeb; }
.categories-page .taste-card.taste-salty { --taste-tone: #69879b; --taste-soft: #edf4f6; }
.categories-page .taste-card.selected {
  border-color: color-mix(in srgb, var(--taste-tone) 55%, white);
  background: linear-gradient(155deg, #fffdfa 0%, color-mix(in srgb, var(--taste-tone) 14%, white) 100%);
}
@media (max-width: 1000px) and (min-width: 761px) {
  .analyze-page .analyze-hero > img {
    width: 118%;
    height: 330px;
    justify-self: center;
    object-position: center bottom;
  }
}
@media (max-width: 760px) {
  .create-page .create-mode-switch .smart-create-choice > b,
  .create-page .create-mode-switch .smart-create-choice > small {
    width: 100%;
  }

  .categories-page .taste-card {
    min-height: 186px;
  }

  .categories-page .taste-card > img:first-child {
    height: 148px;
    transform: scale(1.04);
  }
}
/* Warm, restrained typography hierarchy shared by the existing pages. */
body {
  color: var(--text-primary);
  font-weight: 450;
}
p {
  color: var(--text-muted);
  font-weight: 450;
}
.page-intro h1,
.decision-header h1,
.recommend-hero h1,
.create-hero h1,
.profile-hero h1,
.detail-title-row h1,
.menu-hero h1,
.analyze-hero h1,
.home-hero h1,
.settings-hero h1,
.home-decision-copy h1,
.settings-hero-copy h1 {
  color: var(--text-primary);
  font-weight: 780;
}
.section-heading h2,
.library-heading h2,
.home-recommend-panel h2,
.home-random-panel h2,
.smart-create-heading h2,
.form-section-title h2,
.settings-card-heading h2,
.analysis-card-heading h3 {
  color: var(--text-accent-alt);
  font-weight: 680;
}
.section-heading h2,
.library-heading h2 {
  font-size: 30px;
}
.smart-create-heading h2,
.form-section-title h2,
.settings-card-heading h2 {
  font-size: clamp(21px, 2vw, 25px);
}
.dish-card h3,
.home-result-card h3,
.smart-preview-main h3,
.analysis-card-heading h3 {
  font-weight: 680;
}
.dish-card h3,
.home-result-card h3,
.smart-preview-main h3 {
  color: var(--text-secondary);
  font-size: clamp(17px, 1.6vw, 20px);
}
.analysis-card-heading h3 {
  font-size: 18px;
}
.page-intro p,
.decision-header p,
.recommend-hero p,
.create-hero p,
.profile-hero p,
.menu-hero p,
.analyze-hero p,
.settings-hero p {
  color: var(--text-muted);
  font-size: 17px;
  font-weight: 480;
  line-height: 1.75;
}
.smart-create-heading p,
.form-section-title p,
.settings-card-heading p,
.analysis-field-heading small,
.analysis-card-heading small {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 480;
  line-height: 1.65;
}
.eyebrow,
.section-number,
.analysis-card-heading > span,
.form-section-title > span {
  color: var(--text-accent);
}
.analysis-field-heading > strong {
  color: var(--text-info);
  font-size: 16px;
}
.create-page .create-mode-switch .smart-create-choice > b,
.create-page .create-mode-switch .smart-create-choice > small {
  transform: none;
}
.create-page .create-mode-switch .smart-create-choice > b {
  color: var(--text-accent);
  font-weight: 720;
}
.create-page .create-mode-switch .smart-create-choice > small {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.68;
}
@media (min-width: 1001px) {
  .create-page .create-mode-switch .smart-create-choice > b,
  .create-page .create-mode-switch .smart-create-choice > small {
    width: min(620px, calc(100% - 260px));
    transform: translateX(130px);
  }
}
@media (max-width: 760px) {
  body {
    font-weight: 430;
  }

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

  .page-intro p,
  .decision-header p,
  .recommend-hero p,
  .create-hero p,
  .profile-hero p,
  .menu-hero p,
  .analyze-hero p,
  .settings-hero p {
    font-size: 15.5px;
  }

  .create-page .create-mode-switch .smart-create-choice > b,
  .create-page .create-mode-switch .smart-create-choice > small {
    transform: none;
  }

  .create-page .create-mode-switch .smart-create-choice > small {
    font-size: 14.5px;
  }
}
/* Main-project merge: AI recommendation stays in the homepage core; sentence search lives in categories. */
.home-ai-core-shell {
  grid-template-columns: minmax(270px, 0.88fr) minmax(280px, 0.9fr) minmax(360px, 1.22fr);
  align-items: stretch;
}
.home-recommend-plate {
  min-width: 0;
}
.home-recommend-plate > div {
  min-height: 100%;
}
.category-finder-result {
  margin-top: 16px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(74, 112, 91, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}
.category-finder-result > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.category-finder-result small { color: #688276; }
.category-finder-result strong { color: #2e473b; font-size: 19px; }
.category-finder-result p { margin: 0; color: var(--text-secondary); }
.finder-inline-message { margin: 12px 0 0; color: #a25c45; font-weight: 650; }
@media (max-width: 1180px) {
  .home-ai-core-shell { grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr); }
  .home-recommend-plate { grid-row: span 2; }
}
@media (max-width: 760px) {
  .home-ai-core-shell { grid-template-columns: 1fr; }
  .home-recommend-plate { grid-row: auto; }
  .category-finder-result { align-items: stretch; flex-direction: column; }
}
/* Layout-only refinement: dish detail analysis and the homepage AI recommendation. */
@media (min-width: 1001px) {
  .detail-page .detail-hero {
    grid-template-columns: minmax(0, 1.42fr) minmax(360px, .72fr);
    min-height: 600px;
  }

  .detail-page .detail-image-frame {
    min-height: 600px;
    padding: 34px 28px;
  }

  .detail-page .detail-season-frame {
    width: min(100%, 760px);
    max-width: none;
    aspect-ratio: 5 / 3;
  }

  .detail-page .detail-copy {
    padding: 46px 42px;
  }

  .detail-page .analysis-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 22px;
  }

  .detail-page .analysis-card,
  .detail-page .reason-card {
    min-height: 500px;
  }

  .detail-page .reason-card-upgraded {
    grid-template-columns: minmax(0, 1fr) 190px;
    align-items: end;
    gap: 24px;
  }

  .detail-page .reason-card-upgraded > img {
    width: 210px;
    max-height: 270px;
    align-self: end;
    justify-self: end;
  }

  .home-ai-core-shell {
    grid-template-columns: minmax(280px, 3fr) minmax(520px, 7fr);
    gap: 24px;
  }

  .home-recommend-result {
    grid-template-columns: minmax(240px, 1.14fr) minmax(210px, .86fr);
    gap: 20px;
  }

  .home-result-photo {
    min-height: 388px;
  }
}
.detail-page .detail-season-dish {
  inset: 13% 9% 13%;
  border-radius: 22px;
  background: transparent;
}
.detail-page .detail-season-dish img,
.home-result-photo > img {
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center;
}
.detail-page .detail-season-decoration {
  object-fit: contain;
}
.detail-page .ai-analysis-intro {
  margin: 28px 0;
  padding: 28px 34px;
  gap: 30px;
}
.detail-page .analysis-card,
.detail-page .reason-card {
  padding: 42px;
}
.detail-page .reason-intelligence .radar-chart-wrap {
  min-height: 245px;
}
.home-result-photo {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f3ece3, #fffdfa);
}
@media (max-width: 1180px) and (min-width: 761px) {
  .home-ai-core-shell {
    grid-template-columns: minmax(250px, 3fr) minmax(0, 7fr);
  }

  .home-recommend-result {
    grid-template-columns: minmax(300px, 1.05fr) minmax(0, .95fr);
  }

  .detail-page .detail-image-frame {
    min-height: 470px;
    padding: 24px;
  }

  .detail-page .detail-season-frame {
    width: min(100%, 720px);
    max-width: none;
    aspect-ratio: 5 / 3;
  }
}
@media (max-width: 760px) {
  .detail-page .detail-image-frame {
    min-height: 0;
    padding: 14px;
  }

  .detail-page .detail-season-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: 5 / 3;
  }

  .detail-page .detail-season-dish {
    inset: 13% 8% 13%;
    border-radius: 15px;
  }

  .detail-page .ai-analysis-intro {
    margin: 18px 0;
    padding: 22px 18px;
  }

  .detail-page .analysis-card,
  .detail-page .reason-card {
    min-height: 0;
    padding: 26px 20px;
  }

  .detail-page .reason-card-upgraded > img {
    width: min(230px, 72vw);
    max-height: 250px;
    justify-self: center;
  }

  .home-result-photo {
    width: 100%;
    height: auto;
    min-height: 260px;
    aspect-ratio: 4 / 3;
  }
}
/* Reference-guided polish, scoped to the homepage and dish detail only. */
.home-decision-copy h1 {
  max-width: 680px;
  color: #2b241f;
  font-weight: 760;
  line-height: 1.035;
}
.home-decision-copy .eyebrow,
.home-section-intro .eyebrow,
.home-result-copy .eyebrow {
  color: #b8733e;
}
.home-decision-copy > p {
  max-width: 430px;
  color: #746960;
  line-height: 1.82;
}
.home-hero-promise {
  color: #8c6b4e;
}
.home-recommend-section {
  padding: 50px;
}
.home-section-intro {
  margin-bottom: 32px;
}
.home-section-intro h2 {
  color: #342b25;
  font-weight: 720;
  line-height: 1.12;
}
.home-recommend-control {
  min-height: 430px;
  padding: 32px 28px;
}
.home-recommend-input {
  min-height: 64px;
  align-items: center;
}
.home-recommend-input input {
  font-size: 14px;
}
.home-recommend-result {
  min-height: 430px;
  overflow: hidden;
}
.home-result-photo {
  min-width: 0;
  height: 100%;
}
.home-result-copy {
  padding: 28px 24px 20px 2px;
  justify-content: flex-start;
}
.home-result-copy h3 {
  margin: 12px 0 14px;
  color: #302721;
  font-size: clamp(32px, 3vw, 42px);
  font-weight: 760;
  line-height: 1.08;
}
.home-result-copy > p {
  color: #756a61;
  font-size: 14px;
  line-height: 1.78;
}
.home-result-copy .tag-row {
  margin-top: 20px;
}
.home-result-copy .tag-row > span:nth-child(n + 3) {
  display: none;
}
.home-result-actions {
  padding-top: 28px;
}
.home-result-actions button {
  min-height: 48px;
  flex: 1;
}
.home-random-section {
  min-height: 330px;
  padding: 50px 52px;
  grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr);
  gap: 54px;
}
.home-random-copy h2 {
  margin-top: 11px;
  font-size: 42px;
}
.home-random-button {
  min-width: 166px;
  min-height: 54px;
  border-radius: 17px;
}
.home-random-card {
  min-height: 238px;
  grid-template-columns: minmax(210px, .88fr) minmax(0, 1.12fr);
  padding: 16px;
  gap: 30px;
}
.home-random-card > img {
  width: 100%;
  height: 206px;
  object-fit: contain;
  background: rgba(255, 255, 255, .055);
}
.detail-page .detail-hero {
  background: rgba(255, 253, 249, .96);
}
.detail-page .detail-image-frame {
  background: linear-gradient(145deg, #f6efe5, #fcf8f1);
}
.detail-page .detail-copy h1 {
  color: #302721;
  font-weight: 760;
  line-height: 1.02;
}
.detail-page .detail-feature {
  color: #73685f;
  line-height: 1.7;
}
.detail-page .detail-kicker span,
.detail-page .tag-row span {
  color: #8b6340;
  background: #f4eadc;
}
.detail-page .detail-tag-row > span:nth-child(n + 4),
.detail-page .detail-copy > .tag-row > span:nth-child(n + 4) {
  display: none;
}
.detail-page .detail-highlights strong {
  color: #b86d3c;
}
.detail-page .detail-menu-action {
  background: linear-gradient(135deg, #de7552, #c95439);
  box-shadow: 0 12px 24px rgba(177, 74, 46, .22);
}
.detail-page .ai-analysis-intro {
  min-height: 290px;
  grid-template-columns: minmax(250px, .74fr) minmax(0, 1.26fr);
  background:
    radial-gradient(circle at 15% 50%, rgba(231, 191, 111, .15), transparent 30%),
    linear-gradient(135deg, #fffaf0, #f7f0e5);
}
.detail-page .ai-analysis-intro .ai-machine-stage {
  width: 100%;
  min-height: 230px;
}
.detail-page .ai-analysis-intro h2 {
  max-width: 650px;
  margin: 9px 0 12px;
  color: #352c26;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.18;
}
.detail-page .ai-analysis-intro p {
  max-width: 720px;
  color: #786d63;
  line-height: 1.75;
}
.detail-page .ai-analysis-facts span {
  color: #76695e;
  background: rgba(255, 255, 255, .78);
}
.detail-page .analysis-card h2,
.detail-page .reason-card h2 {
  color: #352d27;
  font-weight: 720;
}
.detail-page .analysis-card {
  background: #fffefa;
}
.detail-page .reason-card-upgraded {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f2e6d8, #ede0d0);
}
.detail-page .reason-intelligence {
  position: relative;
  z-index: 1;
}
.detail-page .reason-intelligence > p {
  color: #70645a;
  line-height: 1.78;
}
.detail-page .reason-card-upgraded .radar-chart-wrap {
  width: min(100%, 340px);
  padding: 20px;
  border-color: rgba(146, 107, 65, .12);
  background: rgba(255, 253, 248, .82);
}
.detail-page .reason-card-upgraded .radar-chart {
  max-height: 285px;
}
.detail-page .fit-people > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-page .fit-people > div > span:nth-child(n + 2) {
  display: none;
}
.detail-page .reason-facts strong,
.detail-page .radar-labels small {
  color: #b96d3a;
}
@media (min-width: 1001px) {
  .detail-page .reason-card-upgraded > img {
    width: 230px;
    max-height: 300px;
    margin-right: -12px;
    transform: translateY(10px);
  }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .home-recommend-section {
    padding: 38px;
  }

  .home-recommend-control,
  .home-recommend-result {
    min-height: 390px;
  }

  .home-result-copy h3 {
    font-size: 32px;
  }

  .home-random-section {
    padding: 42px 38px;
    gap: 34px;
  }
}
@media (max-width: 760px) {
  .home-decision-copy h1 {
    font-size: clamp(41px, 12vw, 54px);
    line-height: 1.06;
  }

  .home-decision-copy > p {
    margin-top: 20px;
    line-height: 1.68;
  }

  .home-recommend-section {
    padding: 25px 17px 18px;
  }

  .home-recommend-control,
  .home-recommend-result {
    min-height: 0;
  }

  .home-result-copy {
    padding: 22px 12px 14px;
  }

  .home-result-copy h3 {
    font-size: 31px;
  }

  .home-result-actions {
    padding-top: 22px;
  }

  .home-random-section {
    min-height: 0;
    padding: 32px 18px 20px;
    gap: 26px;
  }

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

  .home-random-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-random-card > img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .detail-page .ai-analysis-intro {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .detail-page .ai-analysis-intro .ai-machine-stage {
    min-height: 210px;
  }

  .detail-page .ai-analysis-facts {
    grid-template-columns: 1fr;
  }

  .detail-page .reason-card-upgraded .radar-chart-wrap {
    width: 100%;
  }

  .detail-page .reason-card-upgraded > img {
    margin-top: -18px;
  }
}
/* Structural layout pass for the two reference-driven surfaces. */
.home-recommend-control-heading {
  display: grid;
  gap: 6px;
}
.home-recommend-control-heading > span {
  color: #b8733e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.home-recommend-control-heading > strong {
  color: #352c26;
  font-size: 24px;
  line-height: 1.2;
}
.home-recommend-control-heading > p {
  margin: 0;
  color: #8a7e74;
  font-size: 12px;
  line-height: 1.65;
}
.home-recommend-query {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}
.home-recommend-query label {
  color: #65584e;
  font-size: 12px;
  font-weight: 750;
}
.home-recommend-query input {
  width: 100%;
  min-width: 0;
  height: 58px;
  padding: 0 17px;
  overflow: visible;
  border: 1px solid rgba(117, 84, 52, .14);
  border-radius: 17px;
  outline: 0;
  background: #fffefa;
  color: #352d27;
  font: inherit;
  text-overflow: clip;
  box-shadow: 0 8px 24px rgba(86, 60, 34, .045);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.home-recommend-query input:focus {
  border-color: rgba(204, 125, 55, .55);
  box-shadow: 0 0 0 4px rgba(212, 139, 70, .1);
}
.home-recommend-query input::placeholder {
  color: #a99e94;
  opacity: 1;
}
.home-recommend-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #dd7c52, #c95738);
  color: white;
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 10px 22px rgba(183, 76, 44, .2);
}
.home-recommend-submit:disabled {
  cursor: wait;
  opacity: .72;
}
.home-result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.home-result-heading > strong {
  flex: 0 0 auto;
  color: #a86c37;
  font-size: 11px;
}
.home-result-primary {
  margin-top: 18px;
}
.home-result-primary h3 {
  margin: 0 0 15px;
  color: #302721;
  font-size: clamp(34px, 3vw, 44px);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.home-result-primary p {
  margin: 0;
  color: #756a61;
  font-size: 14px;
  line-height: 1.78;
}
.home-result-meta {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.home-result-meta .tag-row {
  margin: 0;
}
.home-result-meta > small {
  color: #9a8e84;
  font-size: 11px;
  line-height: 1.55;
}
.detail-product-card .detail-media-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: linear-gradient(145deg, #f6efe5, #fcf8f1);
}
.detail-product-card .detail-image-frame {
  width: 100%;
  border-radius: 32px 0 0 0;
}
.detail-image-note {
  margin: 0;
  padding: 12px 24px 18px;
  color: #93877c;
  font-size: 10px;
  text-align: center;
}
.detail-image-note span {
  margin-right: 6px;
  color: #4f8b78;
  font-weight: 800;
}
.detail-info-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fffdfa;
}
.detail-info-main {
  min-width: 0;
}
.detail-essential-tags {
  margin-top: 18px;
}
.detail-info-footer {
  margin-top: 24px;
}
.ai-analysis-visual,
.ai-analysis-content {
  min-width: 0;
}
.ai-analysis-content > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ai-analysis-content > header > strong {
  padding: 7px 11px;
  border-radius: 999px;
  background: #e7f1ed;
  color: #4f8573;
  font-size: 10px;
}
.detail-page .ai-analysis-facts span {
  display: grid;
  gap: 4px;
}
.detail-page .ai-analysis-facts small {
  color: #9b8f84;
  font-size: 9px;
}
.detail-page .ai-analysis-facts b {
  color: #a76936;
  font-size: 14px;
}
.taste-analysis-heading > h2 {
  margin-bottom: 9px;
}
.taste-analysis-heading > p {
  margin: 0;
  color: #91857a;
  font-size: 12px;
  line-height: 1.65;
}
.taste-metric-list {
  margin-top: 26px;
}
.taste-strength-panel {
  min-height: 190px;
  margin-top: 30px;
  padding: 20px;
  display: grid;
  align-content: start;
  border: 1px solid rgba(119, 89, 58, .09);
  border-radius: 20px;
  background: #faf6f0;
}
.taste-strength-panel > strong {
  color: #6c5f54;
  font-size: 12px;
}
.taste-strength-panel .taste-strengths {
  margin-top: 15px;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}
.reason-card-upgraded .reason-intelligence {
  align-self: stretch;
  padding: 42px 24px 42px 42px;
}
.reason-heading h2 {
  margin-bottom: 12px;
}
.reason-heading p {
  margin: 0;
}
.reason-dashboard {
  margin-top: 26px;
  display: grid;
  grid-template-columns: minmax(270px, 1.08fr) minmax(170px, .92fr);
  align-items: stretch;
  gap: 18px;
}
.reason-radar,
.reason-summary {
  min-width: 0;
}
.detail-page .reason-radar .radar-chart-wrap {
  width: 100%;
  min-height: 310px;
}
.reason-summary {
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(119, 88, 56, .1);
  border-radius: 20px;
  background: rgba(255, 253, 249, .58);
}
.reason-summary .fit-people {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(100, 75, 49, .1);
}
.reason-summary .fit-people > strong {
  display: block;
  margin-bottom: 10px;
  color: #78685b;
  font-size: 11px;
}
.reason-summary .reason-facts {
  margin-top: auto;
}
.reason-character-assist {
  min-width: 0;
  padding: 30px 20px 28px 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
}
.reason-character-assist > span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f1f3;
  color: #5c8190;
  font-size: 10px;
  font-weight: 800;
}
.reason-character-assist > img {
  width: 100%;
  max-width: 220px;
  max-height: 270px;
  margin: 12px 0 4px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(74,48,26,.11));
}
.reason-character-assist > p {
  margin: 0;
  color: #8a7d72;
  font-size: 10px;
  line-height: 1.55;
}
@media (min-width: 1181px) {
  .home-ai-core-shell {
    grid-template-columns: minmax(300px, 3fr) minmax(0, 7fr);
  }

  .home-recommend-result {
    grid-template-columns: minmax(340px, 1.2fr) minmax(270px, .8fr);
  }

  .detail-product-card {
    grid-template-columns: minmax(0, 1.48fr) minmax(390px, .72fr);
  }

  .detail-product-card .detail-season-frame {
    width: min(100%, 820px);
    aspect-ratio: 5 / 3;
  }

  .detail-page .analysis-grid {
    grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  }

  .detail-page .reason-card-upgraded {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
}
@media (max-width: 1180px) and (min-width: 761px) {
  .home-recommend-control-heading > strong {
    font-size: 21px;
  }

  .home-result-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-product-card .detail-media-column {
    border-radius: 28px 28px 0 0;
  }

  .detail-product-card .detail-image-frame {
    border-radius: 28px 28px 0 0;
  }

  .detail-page .reason-card-upgraded {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .reason-dashboard {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .home-recommend-control-heading > strong {
    font-size: 22px;
  }

  .home-recommend-query input {
    height: 56px;
    font-size: 13px;
  }

  .home-result-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .home-result-primary {
    margin-top: 15px;
  }

  .detail-product-card .detail-media-column,
  .detail-product-card .detail-image-frame {
    border-radius: 26px 26px 0 0;
  }

  .detail-image-note {
    padding-inline: 14px;
  }

  .detail-info-card {
    padding: 30px 20px;
  }

  .ai-analysis-content > header {
    align-items: flex-start;
  }

  .taste-strength-panel {
    min-height: 0;
    padding: 16px;
  }

  .reason-card-upgraded .reason-intelligence {
    padding: 28px 20px 10px;
  }

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

  .detail-page .reason-radar .radar-chart-wrap {
    min-height: 0;
  }

  .reason-character-assist {
    padding: 0 20px 24px;
  }

  .reason-character-assist > img {
    max-width: 210px;
    max-height: 230px;
  }
}
/* Dish-analysis reference pass: explicit hierarchy and six-part recommendation card. */
.detail-page .detail-product-card {
  min-height: 660px;
}
.detail-page .detail-media-column {
  background: rgba(246, 239, 229, .42);
}
.detail-page .detail-image-frame {
  min-height: 610px;
  padding: 28px 34px 8px;
  background: transparent;
}
.detail-page .detail-season-frame {
  width: min(100%, 860px);
  max-width: none;
  aspect-ratio: 5 / 3;
}
.detail-page .detail-season-dish {
  inset: 10% 6.5% 10%;
  border-radius: 22px;
}
.detail-page .detail-season-decoration {
  opacity: .1;
}
.detail-page .detail-info-card {
  padding: 48px 38px 34px;
}
.detail-page .detail-info-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(48px, 4.8vw, 66px);
}
.detail-page .detail-info-footer {
  margin-top: 28px;
}
.detail-page .detail-highlights {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-page .detail-actions {
  grid-template-columns: minmax(0, 1fr) 56px;
}
.detail-page .detail-favorite-action {
  width: 56px;
  min-width: 56px;
  padding: 0;
  border-radius: 16px;
}
.detail-page .detail-favorite-action .favorite-asset {
  width: 50px;
  height: 50px;
}
.detail-page .detail-favorite-action .favorite-asset img {
  width: 106px;
  min-width: 106px;
  height: 76px;
}
.detail-page .detail-secondary-action,
.detail-page .detail-actions > .button.secondary {
  min-height: 32px;
}
.detail-page .ai-analysis-intro {
  min-height: 330px;
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
  padding: 30px 42px 30px 26px;
  gap: 22px;
}
.detail-page .ai-analysis-visual .ai-machine-stage {
  min-height: 275px;
  transform: scale(1.08);
  transform-origin: center;
}
.detail-page .ai-analysis-content h2 {
  max-width: 630px;
  font-size: clamp(30px, 3vw, 41px);
}
.detail-page .analysis-grid {
  grid-template-columns: minmax(370px, .78fr) minmax(0, 1.22fr);
  gap: 24px;
}
.detail-page .analysis-card,
.detail-page .reason-card-upgraded {
  min-height: 680px;
}
.detail-page .taste-strength-panel {
  min-height: 240px;
  margin-top: 34px;
  padding: 24px;
}
.detail-page .taste-strength-panel > strong {
  font-size: 14px;
}
.detail-page .taste-strength-panel .taste-strengths {
  margin-top: 22px;
}
.detail-page .taste-strength-panel .taste-strength {
  min-height: 138px;
  padding: 18px 10px;
  align-content: center;
  gap: 11px;
}
.detail-page .taste-strength-panel .taste-strength > span {
  font-size: 14px;
}
.detail-page .taste-strength-panel .taste-strength img,
.detail-page .taste-strength-panel .taste-strength img:first-child {
  width: 25px;
  height: 25px;
}
.detail-page .taste-strength-panel .taste-strength small {
  font-size: 12px;
}
.detail-page .reason-card-upgraded {
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: stretch;
}
.detail-page .reason-card-upgraded .reason-intelligence {
  padding: 42px 12px 42px 42px;
}
.detail-page .reason-heading h2 {
  margin: 8px 0 0;
  font-size: 34px;
}
.detail-page .reason-dashboard {
  grid-template-columns: minmax(330px, 1.2fr) minmax(190px, .8fr);
  gap: 22px;
}
.detail-page .reason-radar .radar-chart-wrap {
  min-height: 410px;
  padding: 26px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
}
.detail-page .reason-radar .radar-chart {
  max-height: 340px;
}
.detail-page .reason-radar .radar-labels b {
  font-size: 12px;
}
.detail-page .reason-radar .radar-labels small {
  font-size: 13px;
}
.detail-page .reason-summary {
  padding: 22px;
  gap: 22px;
  justify-content: flex-start;
}
.detail-page .reason-summary .fit-people {
  padding: 0;
  border: 0;
}
.detail-page .reason-summary .fit-people > strong,
.detail-page .reason-copy > strong {
  display: block;
  margin-bottom: 10px;
  color: #7c6b5e;
  font-size: 11px;
}
.detail-page .reason-summary .fit-people span {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: #e7f1ed;
  color: #4f806f;
  font-size: 11px;
  font-weight: 800;
}
.detail-page .reason-copy {
  padding-top: 20px;
  border-top: 1px solid rgba(100, 75, 49, .1);
}
.detail-page .reason-copy p {
  margin: 0;
  color: #6f6258;
  font-size: 13px;
  line-height: 1.72;
}
.detail-page .reason-price {
  margin-top: auto;
  padding-top: 17px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(100, 75, 49, .1);
}
.detail-page .reason-price span {
  color: #938477;
  font-size: 11px;
}
.detail-page .reason-price strong {
  color: #b96d3a;
  font-size: 20px;
}
.detail-page .reason-character-assist {
  padding: 34px 20px 28px 0;
  justify-content: flex-end;
}
.detail-page .reason-character-assist > img {
  width: 205px;
  max-width: 100%;
  max-height: 285px;
  margin: 0;
  animation: airCompanionFloat 3.8s ease-in-out infinite;
  transform-origin: 50% 82%;
}
@keyframes airCompanionFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .96; }
  35% { transform: translateY(-7px) rotate(-.7deg); opacity: 1; }
  58% { transform: translateY(-4px) rotate(.55deg); opacity: 1; }
}
@media (max-width: 1180px) {
  .detail-page .detail-product-card {
    min-height: 0;
  }

  .detail-page .detail-image-frame {
    min-height: 480px;
  }

  .detail-page .detail-info-card {
    padding: 42px 36px;
  }

  .detail-page .ai-analysis-intro {
    grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
  }

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

  .detail-page .analysis-card,
  .detail-page .reason-card-upgraded {
    min-height: 0;
  }
}
@media (max-width: 760px) {
  .detail-page .detail-image-frame {
    min-height: 0;
    padding: 16px 12px 4px;
  }

  .detail-page .detail-season-frame {
    width: 100%;
    aspect-ratio: 5 / 3;
  }

  .detail-page .detail-season-dish {
    inset: 10% 6% 10%;
  }

  .detail-page .detail-info-card {
    padding: 30px 20px;
  }

  .detail-page .detail-info-card h1 {
    font-size: 43px;
  }

  .detail-page .detail-actions {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .detail-page .detail-favorite-action {
    width: 52px;
    min-width: 52px;
  }

  .detail-page .ai-analysis-intro {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }

  .detail-page .ai-analysis-visual .ai-machine-stage {
    min-height: 240px;
    transform: none;
  }

  .detail-page .taste-strength-panel {
    min-height: 0;
  }

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

  .detail-page .reason-card-upgraded .reason-intelligence {
    padding: 28px 20px 12px;
  }

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

  .detail-page .reason-radar .radar-chart-wrap {
    min-height: 350px;
    padding: 18px;
  }

  .detail-page .reason-character-assist {
    padding: 0 24px 26px;
  }

  .detail-page .reason-character-assist > img {
    width: min(220px, 66vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  .detail-page .reason-character-assist > img {
    animation: none;
  }
}
/* Only the dish information page needs a full, uncropped source image. */
.detail-page .detail-image-frame {
  place-items: stretch;
}
.detail-page .detail-season-frame {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 550px;
  aspect-ratio: auto;
}
.detail-page .detail-season-dish {
  inset: 18px;
  border-radius: 24px;
}
.detail-page .detail-season-dish > img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 20px;
}
@media (max-width: 760px) {
  .detail-page .detail-season-frame {
    min-height: min(72vh, 620px);
  }

  .detail-page .detail-season-dish {
    inset: 8px;
  }
}
/* Category page: compact primary phone layout. */
@media (max-width: 480px) {
  .categories-page {
    padding-top: 18px;
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  .categories-page .page-intro {
    margin-bottom: 18px;
    padding-bottom: 0;
  }

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

  .categories-page .page-intro > p {
    margin-top: 10px;
    font-size: 13px;
  }

  .categories-page .category-flow {
    margin-top: 14px;
    gap: 5px;
  }

  .categories-page .category-flow span {
    padding: 6px 8px;
    font-size: 9px;
  }

  .categories-page .filter-section,
  .categories-page .filter-section.compact {
    padding: 13px 10px 15px;
    border-radius: 24px;
  }

  .categories-page .filter-section + .filter-section {
    margin-top: 18px;
  }

  .categories-page .section-heading {
    margin-bottom: 13px;
  }

  .categories-page .filter-section .section-heading h2 {
    font-size: 22px;
  }

  .categories-page .clear-filter {
    font-size: 10px;
  }

  .categories-page .taste-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 12px) / 2.35);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .categories-page .taste-grid::-webkit-scrollbar,
  .categories-page .category-grid::-webkit-scrollbar { display: none; }

  .categories-page .taste-card,
  .categories-page .taste-card:last-child {
    width: 100%;
    min-height: 104px;
    height: 132px;
    aspect-ratio: auto;
    padding: 5px;
    grid-column: auto;
    border-radius: 19px;
    scroll-snap-align: start;
  }

  .categories-page .taste-card:last-child {
    grid-column: auto;
  }

  .categories-page .taste-card > img:first-child {
    width: 78%;
    height: 104px;
    transform: none;
    object-fit: contain;
    object-position: center bottom;
  }

  .categories-page .taste-card > span {
    left: 6px;
    bottom: 6px;
    min-width: 30px;
    padding: 4px 6px;
    border-radius: 9px;
    font-size: 13px;
  }

  .categories-page .taste-card img.taste-symbol {
    right: 6px;
    bottom: 6px;
    width: 32px;
    height: 32px;
    padding: 5px;
    border-radius: 11px;
  }

  .categories-page .category-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 16px) / 2.75);
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .categories-page .category-card,
  .categories-page .category-card:last-child {
    width: 100%;
    min-height: 116px;
    height: 116px;
    aspect-ratio: auto;
    grid-column: auto;
    border-radius: 19px;
    scroll-snap-align: start;
  }

  .categories-page .category-card:last-child {
    grid-column: auto;
  }

  .categories-page .category-card img {
    width: 100%;
    height: calc(100% - 30px);
    padding: 3px 7px 0;
    object-fit: contain;
    object-position: center;
  }

  .categories-page .category-card span {
    height: 30px;
    font-size: 12px;
  }

  .site-shell:has(.categories-page) .mobile-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
    height: calc(58px + env(safe-area-inset-bottom));
    padding-top: 4px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .site-shell:has(.categories-page) .mobile-nav button > span {
    font-size: 15px;
  }

  .site-shell:has(.categories-page) .mobile-nav small {
    font-size: 8px;
  }
}
/* Homepage: compact primary phone layout. */
@media (max-width: 480px) {
  .home-page {
    width: calc(100% - 20px);
    gap: 14px;
    padding-top: 12px;
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
    overflow-x: clip;
  }

  .home-decision-hero {
    min-height: 438px;
    height: 438px;
    padding: 28px 20px 0;
    display: block;
    border-radius: 29px;
  }

  .home-decision-copy {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: none;
  }

  .home-decision-copy .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: .1em;
  }

  .home-decision-copy h1 {
    width: 100%;
    max-width: 315px;
    font-size: 32px;
    line-height: 1.06;
    letter-spacing: -.055em;
    white-space: normal;
    word-break: keep-all;
  }

  .home-decision-copy > p {
    width: 52%;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
  }

  .home-decision-copy > p br:nth-child(2) {
    display: none;
  }

  .home-hero-promise {
    width: 51%;
    margin-top: 10px;
    gap: 5px;
    flex-wrap: wrap;
    font-size: 9px;
  }

  .home-decision-character {
    position: absolute;
    right: -9px;
    bottom: 0;
    width: 58%;
    height: 228px;
    margin: 0;
    place-items: end right;
  }

  .home-decision-character > img {
    width: min(210px, 54vw);
    max-height: 220px;
  }

  .home-decision-character .character-halo {
    inset: 2% 8% -8%;
  }

  .home-character-bubble {
    top: 24px;
    left: -55px;
    min-width: 108px;
    padding: 8px 9px;
    border-radius: 14px 14px 5px 14px;
  }

  .home-character-bubble b { font-size: 12px; }
  .home-character-bubble span { font-size: 9px; }

  .home-recommend-section {
    padding: 18px 10px 12px;
    border-radius: 27px;
  }

  .home-section-intro {
    margin-bottom: 13px;
    gap: 9px;
  }

  .home-section-intro h2 {
    font-size: 24px;
  }

  .home-section-intro p {
    margin-top: 4px;
    font-size: 11px;
  }

  .home-recommend-shell,
  .home-ai-core-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .home-recommend-control {
    min-height: 0;
    padding: 16px 12px 13px;
    border-radius: 21px;
  }

  .home-recommend-control-heading > span { font-size: 9px; }
  .home-recommend-control-heading > strong { font-size: 21px; }
  .home-recommend-control-heading > p { margin-top: 5px; font-size: 11px; }

  .home-recommend-query {
    margin-top: 12px;
  }

  .home-recommend-query input {
    height: 52px;
    padding: 0 13px;
    font-size: 13px;
  }

  .home-recommend-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 9px;
    border-radius: 14px;
  }

  .home-prompt-chips {
    margin-top: 9px;
    gap: 5px;
  }

  .home-prompt-chips button {
    padding: 7px 9px;
    font-size: 10px;
  }

  .home-local-note {
    margin-top: 10px;
    padding-top: 0;
    font-size: 9px;
  }

  .home-recommend-result {
    min-height: 0;
    padding: 8px;
    grid-template-columns: 1fr;
    gap: 0;
    border-radius: 22px;
  }

  .home-result-photo {
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 17px;
  }

  .home-result-photo > img {
    object-fit: contain;
    object-position: center;
    background: #f5eee5;
  }

  .home-recommend-result:hover .home-result-photo > img {
    transform: none;
  }

  .home-result-photo > span {
    left: 10px;
    bottom: 10px;
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .home-result-copy {
    padding: 17px 10px 10px;
  }

  .home-result-heading {
    gap: 4px;
  }

  .home-result-heading > strong {
    font-size: 10px;
  }

  .home-result-primary {
    margin-top: 11px;
  }

  .home-result-primary h3 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.08;
  }

  .home-result-primary p {
    font-size: 12px;
    line-height: 1.62;
  }

  .home-result-meta {
    margin-top: 13px;
    gap: 8px;
  }

  .home-result-meta > small {
    font-size: 9px;
  }

  .home-result-actions {
    padding-top: 15px;
    gap: 7px;
  }

  .home-result-actions button {
    min-width: 0;
    min-height: 45px;
    padding: 0 8px;
    font-size: 11px;
  }

  .home-random-section {
    min-height: 0;
    padding: 20px 12px 12px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    border-radius: 28px;
  }

  .home-random-copy {
    padding: 0 4px;
  }

  .home-random-copy .home-section-index {
    margin-bottom: 9px;
  }

  .home-random-copy h2 {
    margin: 5px 0 6px;
    font-size: 28px;
    line-height: 1.08;
  }

  .home-random-copy p {
    font-size: 12px;
    line-height: 1.6;
  }

  .home-random-button {
    width: 100%;
    min-height: 49px;
    margin-top: 12px;
    border-radius: 14px;
  }

  .home-random-card {
    width: 100%;
    min-width: 0;
    min-height: 132px;
    padding: 9px;
    display: grid;
    grid-template-columns: minmax(104px, 36%) minmax(0, 64%);
    gap: 11px;
    align-items: stretch;
    border-radius: 20px;
    background: rgba(255, 255, 255, .09);
  }

  .home-random-card > img {
    width: 100%;
    height: 100%;
    min-height: 114px;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
  }

  .home-random-card > div {
    min-width: 0;
    padding: 5px 5px 4px 0;
    align-self: center;
  }

  .home-random-card > div > span {
    font-size: 9px;
  }

  .home-random-card h3 {
    margin: 4px 0 6px;
    font-size: 21px;
    line-height: 1.15;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
    writing-mode: horizontal-tb;
  }

  .home-random-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .home-random-card button {
    margin-top: 9px;
    font-size: 11px;
  }

  .site-shell:has(.home-page) .mobile-nav {
    bottom: max(8px, env(safe-area-inset-bottom));
    height: calc(60px + env(safe-area-inset-bottom));
    padding-top: 4px;
    padding-bottom: env(safe-area-inset-bottom);
  }
}
/* Homepage and category page: wider phones and small screens. */
