:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #66736c;
  --line: #e2e8e4;
  --surface: #ffffff;
  --canvas: #f7f8f5;
  --green-dark: #10291f;
  --green: #20734e;
  --lime: #9be564;
  --mint: #f1faf5;
  --cream: #fff8ec;
  --amber: #a9630e;
  --amber-soft: #fff4db;
  --rust: #a4482f;
  --blue: #326c9c;
  --shadow: 0 10px 28px rgba(26, 45, 36, 0.07);
  --content-width: 1560px;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select,
input[type="checkbox"] {
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-header {
  position: relative;
  min-height: 344px;
  overflow: hidden;
  color: #fff;
  background: var(--green-dark);
}

.header-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: 59%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.header-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d241a 0%, #10291f 39%, rgba(16, 41, 31, 0.82) 53%, rgba(16, 41, 31, 0.15) 76%, rgba(16, 41, 31, 0) 100%);
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 64px), var(--content-width));
  min-height: 344px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: 22px 0;
}

.service-brand {
  position: absolute;
  top: 22px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: #fff;
}

.brand-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

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

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.14;
  letter-spacing: 0;
}

.hero-copy h1 span {
  color: #f8fbf9;
}

.hero-copy h1 em {
  color: var(--lime);
  font-style: normal;
}

.hero-copy p {
  margin: 10px 0 0;
  color: #eef7f1;
  font-size: 20px;
  font-weight: 700;
}

.header-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
  width: min(760px, 67%);
  margin-top: 24px;
}

.summary-chip {
  min-width: 0;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(5px);
}

.summary-chip > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.summary-chip strong {
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-chip small {
  overflow: hidden;
  margin-top: 2px;
  color: #cfdbd4;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #174429;
  background: var(--lime);
}

.summary-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.summary-icon.menu-icon {
  color: #8c4b02;
  background: #ffad3d;
}

.summary-icon.price-icon {
  color: #114f7f;
  background: #76bffc;
}

.summary-icon.time-icon {
  color: #533498;
  background: #b89aff;
}

main {
  width: min(calc(100% - 64px), var(--content-width));
  margin: 22px auto 0;
}

.recommendations-section,
.category-picker,
.all-restaurants-section {
  border: 1px solid var(--line);
  border-radius: 16px;
}

.recommendations-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.22fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 28px 28px;
  background: var(--mint);
  border-color: #d5e9db;
}

.recommendation-heading {
  align-self: center;
}

.today-line {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.today-badge {
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.recommendation-heading h2,
.section-heading h2 {
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.3;
  letter-spacing: 0;
}

.recommendation-heading p,
.section-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.recommendation-content {
  min-width: 0;
}

.recommendation-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding: 1px 1px 3px;
  scrollbar-width: none;
}

.recommendation-tabs::-webkit-scrollbar,
.recommendation-grid::-webkit-scrollbar {
  display: none;
}

.recommendation-tab {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 1px solid #c8dacf;
  border-radius: 999px;
  color: #506158;
  background: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.recommendation-tab:hover,
.recommendation-tab.selected {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.recommendation-carousel {
  position: relative;
  min-width: 0;
}

.recommendation-groups,
.recommendation-group {
  min-width: 0;
  max-width: 100%;
}

.recommendation-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(195px, 1fr);
  grid-template-rows: 1fr;
  gap: 12px;
  overflow-x: auto;
  padding: 1px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.recommendation-card {
  position: relative;
  min-width: 0;
  min-height: 206px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  grid-template-rows: 1fr auto;
  gap: 8px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(31, 53, 42, 0.06);
  scroll-snap-align: start;
}

.recommendation-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.recommendation-card-topline,
.recommendation-actions,
.restaurant-topline,
.restaurant-footer,
.featured-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recommendation-menu {
  min-width: 0;
  margin-top: 18px;
}

.recommendation-menu h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.recommendation-menu strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 17px;
}

.recommendation-card-copy > p {
  overflow: hidden;
  margin: auto 0 0;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-visual {
  align-self: center;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--category-color, var(--green));
  background: var(--category-soft, #e8f4ed);
}

.recommendation-visual .category-icon {
  width: 40px;
  height: 40px;
  background: transparent;
}

.recommendation-actions {
  grid-column: 1 / -1;
  align-items: stretch;
  padding-top: 10px;
  border-top: 1px solid #edf1ee;
}

.recommendation-actions a,
.recommendation-actions button {
  min-width: 0;
  min-height: 33px;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 6px 7px;
  border: 1px solid #b4c0b9;
  border-radius: 8px;
  text-align: center;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.recommendation-actions a {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.carousel-button {
  position: absolute;
  z-index: 2;
  top: calc(50% - 20px);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.carousel-button svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.carousel-button.previous {
  left: -19px;
}

.carousel-button.next {
  right: -19px;
}

.carousel-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.recommendation-empty {
  min-height: 206px;
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px dashed #bfd2c5;
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
}

.category-picker {
  margin-top: 22px;
  padding: 28px;
  background: var(--cream);
  border-color: #f0dfc2;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-kicker {
  margin: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.category-picker .section-kicker {
  color: #b96516;
}

.show-all-button {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #91aa9c;
  border-radius: 9px;
  color: var(--green);
  background: #fff;
  font-weight: 700;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.major-category-card {
  width: 100%;
  min-width: 0;
  min-height: 230px;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  justify-items: center;
  gap: 9px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(40, 45, 42, 0.05);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.major-category-card:hover {
  border-color: var(--category-color, #8ba096);
  box-shadow: 0 9px 22px rgba(31, 49, 40, 0.1);
  transform: translateY(-3px);
}

.major-category-card.selected {
  border-color: var(--category-color, var(--green));
  box-shadow: inset 0 3px 0 var(--category-color, var(--green)), 0 8px 20px rgba(31, 49, 40, 0.08);
}

.category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--category-color, var(--green));
  background: var(--category-soft, #e8f4ed);
}

.category-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}

.category-korean { --category-color: #319c4c; --category-soft: #e7f6e9; }
.category-chinese { --category-color: #e67916; --category-soft: #fff0df; }
.category-japanese { --category-color: #347fbe; --category-soft: #e8f2fb; }
.category-snack { --category-color: #dc4848; --category-soft: #fdeaea; }
.category-western { --category-color: #8257c7; --category-soft: #f0eafa; }
.category-asian { --category-color: #168f8a; --category-soft: #e2f5f3; }
.category-cafe { --category-color: #936538; --category-soft: #f5ece3; }

.major-category-name {
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 800;
}

.major-category-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 11px;
}

.major-category-counts strong {
  color: var(--category-color, var(--green));
  font-size: 14px;
}

.category-menu-examples {
  width: 100%;
  align-self: end;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid #edf0ee;
  list-style: none;
  color: #536058;
  font-size: 12px;
  text-align: left;
}

.category-menu-examples li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.all-restaurants-section {
  margin-top: 22px;
  padding: 30px 28px;
  background: #fff;
}

.restaurant-section-heading {
  margin-bottom: 0;
}

.restaurant-section-heading > span {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #eef7f2;
  font-weight: 700;
}

.filter-band {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8faf8;
}

.filter-band label:not(.toggle-field) {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.filter-band label > span:first-child:not(.toggle-track) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input[type="search"],
select {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid #c4cec8;
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
}

input[type="search"]:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(75, 151, 109, 0.3);
  outline-offset: 2px;
}

.toggle-field {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 700;
}

.toggle-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle-track {
  width: 40px;
  height: 23px;
  flex: 0 0 auto;
  padding: 3px;
  border-radius: 12px;
  background: #abb5ae;
  transition: background-color 160ms ease;
}

.toggle-track span {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.toggle-field input:checked + .toggle-track {
  background: var(--green);
}

.toggle-field input:checked + .toggle-track span {
  transform: translateX(17px);
}

.toggle-field input:focus-visible + .toggle-track {
  outline: 3px solid rgba(75, 151, 109, 0.3);
  outline-offset: 2px;
}

.reset-button {
  height: 44px;
  padding: 0 16px;
  border: 1px solid #8e9e95;
  border-radius: 9px;
  color: var(--green-dark);
  background: #fff;
  font-weight: 700;
}

.reset-button:hover {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.error-banner {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid #f0c8bc;
  border-left: 4px solid var(--rust);
  border-radius: 9px;
  color: #742e1d;
  background: #fff0eb;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(480px, 1.1fr);
  gap: 20px;
  align-items: start;
  padding-top: 22px;
}

.results-pane,
.detail-panel {
  min-width: 0;
}

.results-heading,
.menu-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.results-heading {
  margin-bottom: 11px;
}

.results-heading h3,
.menu-section-heading h3 {
  margin: 0;
  font-size: 16px;
}

.results-heading span,
.menu-section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.restaurant-list {
  display: grid;
  gap: 9px;
}

.restaurant-item {
  width: 100%;
  min-width: 0;
  min-height: 144px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 7px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.restaurant-item:hover {
  border-color: #8fa498;
  box-shadow: 0 6px 17px rgba(32, 40, 36, 0.08);
}

.restaurant-item.selected {
  border-color: var(--green);
  box-shadow: inset 4px 0 0 var(--green);
}

.category-tag,
.flag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.category-tag {
  color: #315f7f;
  background: #e8f1f7;
}

.distance,
.menu-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.restaurant-name {
  overflow-wrap: anywhere;
  font-size: 18px;
  font-weight: 800;
}

.featured-menu {
  min-width: 0;
  padding: 8px 0;
  border-top: 1px solid #edf0ee;
  border-bottom: 1px solid #edf0ee;
}

.featured-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #46514b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.featured-menu strong {
  flex: 0 0 auto;
  color: var(--green);
}

.featured-empty {
  color: var(--muted);
}

.eligible-count {
  color: #425048;
  font-size: 13px;
}

.eligible-count strong {
  color: var(--green);
}

.detail-panel {
  position: sticky;
  top: 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-close {
  display: none;
}

.empty-detail,
.no-results,
.no-menus,
.loading-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.empty-detail strong,
.no-results strong,
.no-menus strong {
  color: var(--ink);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 14px;
}

.detail-category {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.detail-header h2 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.3;
}

.place-link {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.place-link:hover {
  background: #155e3e;
}

.place-unavailable {
  color: var(--muted);
  font-size: 12px;
}

.restaurant-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8faf8;
}

.restaurant-facts > div {
  padding: 0 12px;
  border-right: 1px solid var(--line);
}

.restaurant-facts > div:first-child {
  padding-left: 0;
}

.restaurant-facts > div:last-child {
  border-right: 0;
}

.restaurant-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.restaurant-facts dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.detail-address {
  margin: 0;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.menu-section {
  padding: 18px 20px 4px;
}

.attention-section {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 6px solid var(--canvas);
}

.attention-section .menu-section-heading h3 {
  color: var(--amber);
}

.menu-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.menu-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, auto);
  gap: 16px;
  align-items: start;
  padding: 13px 0;
  border-top: 1px solid #e7ebe8;
}

.menu-row.attention {
  margin: 0 -8px;
  padding-right: 8px;
  padding-left: 8px;
  background: var(--amber-soft);
}

.menu-copy,
.menu-price {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-name,
.menu-description,
.review-reason,
.raw-price {
  overflow-wrap: anywhere;
}

.menu-description,
.raw-price {
  color: var(--muted);
  font-size: 12px;
}

.menu-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.flag.eligible {
  color: #12613f;
  background: #e6f3ec;
}

.flag.lunch {
  color: #7b4810;
  background: #ffedc5;
}

.flag.set {
  color: #7d3725;
  background: #f8e5df;
}

.review-reason {
  color: #86531b;
  font-size: 12px;
}

.menu-price {
  align-items: flex-end;
  text-align: right;
}

.menu-price strong {
  color: var(--green);
  white-space: nowrap;
}

.menu-price .price-missing {
  color: var(--amber);
  white-space: normal;
}

.operations-footer {
  width: min(calc(100% - 64px), var(--content-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 11px;
}

.operations-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.operations-footer strong {
  color: #46514b;
}

.operations-footer p {
  margin: 0;
  text-align: right;
}

@media (max-width: 1260px) {
  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .recommendations-section {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .filter-band {
    grid-template-columns: minmax(220px, 1.4fr) 1fr 1fr;
  }

  .toggle-field,
  .reset-button {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .app-header,
  .header-inner {
    min-height: 330px;
  }

  .header-meta {
    width: min(640px, 88%);
  }

  .recommendations-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .recommendation-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0 14px;
  }

  .recommendation-heading h2 {
    grid-column: 1 / -1;
  }

  .recommendation-heading p {
    grid-column: 1 / -1;
  }

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

  .workspace {
    display: block;
  }

  .detail-panel {
    position: fixed;
    z-index: 20;
    inset: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 180ms ease;
  }

  .detail-panel.open {
    transform: translateX(0);
  }

  .detail-close {
    position: sticky;
    z-index: 2;
    top: 10px;
    float: right;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin: 10px 10px -50px 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    font-size: 26px;
    line-height: 1;
  }

  body.detail-open {
    overflow: hidden;
  }

  .detail-header {
    padding-top: 64px;
  }
}

@media (max-width: 680px) {
  .app-header,
  .header-inner {
    min-height: 362px;
  }

  .header-visual {
    width: 55%;
    opacity: 0.82;
  }

  .header-shade {
    background: linear-gradient(90deg, #0d241a 0%, rgba(16, 41, 31, 0.96) 52%, rgba(16, 41, 31, 0.45) 100%);
  }

  .header-inner,
  main,
  .operations-footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .service-brand {
    top: 18px;
  }

  .hero-copy {
    margin-top: 24px;
  }

  .hero-copy h1 {
    max-width: 330px;
    font-size: 33px;
  }

  .hero-copy h1 span,
  .hero-copy h1 em {
    white-space: nowrap;
  }

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

  .header-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 22px;
  }

  .summary-chip {
    min-height: 54px;
    padding: 8px 9px;
  }

  main {
    margin-top: 14px;
  }

  .recommendations-section,
  .category-picker,
  .all-restaurants-section {
    border-radius: 14px;
  }

  .recommendations-section,
  .category-picker,
  .all-restaurants-section {
    padding: 21px 16px;
  }

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

  .recommendation-tabs {
    margin-right: -16px;
    padding-right: 16px;
  }

  .recommendation-grid {
    grid-auto-columns: minmax(278px, 82vw);
    margin-right: -16px;
    padding-right: 16px;
  }

  .recommendation-card {
    min-height: 210px;
  }

  .carousel-button {
    display: none;
  }

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

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

  .major-category-card {
    min-height: 218px;
    padding: 15px 11px;
  }

  .major-category-name {
    font-size: 16px;
  }

  .category-icon {
    width: 48px;
    height: 48px;
  }

  .filter-band {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .toggle-field {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .reset-button {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .workspace {
    padding-top: 18px;
  }

  .restaurant-item {
    min-height: 140px;
    padding: 13px 14px;
  }

  .restaurant-topline,
  .restaurant-footer {
    min-width: 0;
  }

  .category-tag {
    max-width: calc(100% - 70px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .detail-header {
    flex-direction: column;
    padding: 64px 16px 14px;
  }

  .place-link,
  .place-unavailable {
    align-self: flex-start;
  }

  .restaurant-facts,
  .detail-address,
  .menu-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .restaurant-facts > div {
    padding: 0 8px;
  }

  .menu-row {
    grid-template-columns: minmax(0, 1fr) minmax(88px, auto);
    gap: 10px;
  }

  .operations-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0 26px;
  }

  .operations-footer p {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .hero-copy h1 {
    font-size: 30px;
  }

  .summary-chip strong {
    font-size: 14px;
  }

  .summary-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .major-category-counts {
    display: grid;
    gap: 1px;
  }

  .recommendation-grid {
    grid-auto-columns: minmax(264px, 82vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
