:root {
  color-scheme: light;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: #182820;
  background: #f7f9f6;
  --green: #126441;
  --deep: #164831;
  --dark: #182820;
  --muted: #657369;
  --line: #e3e9e2;
  --soft: #f4f7f3;
  --mint: #e7f3ea;
  --header: 73px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #56a77f; outline-offset: 3px; }
.site-header {
  height: var(--header); padding: 0 34px; background: white; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; z-index: 3;
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 25px; font-weight: 850; letter-spacing: -.095em; }
.brand-icon { display: block; width: 31px; height: 31px; object-fit: contain; }
.brand-accent { color: var(--green); }
.main-nav { display: flex; gap: 11px; color: #58655b; align-items: center; }
.main-nav a { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 10px; font-size: .91rem; font-weight: 740; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current=page] { background: var(--mint); color: var(--green); }
.main-nav svg, .login-button svg { width: 17px; height: 17px; }
.account-controls { display: flex; align-items: center; justify-self: end; gap: 6px; min-width: 0; max-width: 100%; }
.login-button { border: 1px solid #dce5dc; border-radius: 10px; background: white; color: var(--deep); padding: 10px 15px; display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 750; min-width: 0; }
.login-button:hover { background: var(--soft); }
#account-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-status {
  display: inline-flex; align-items: center; flex: none; gap: 5px; padding: 5px 8px; border-radius: 8px;
  background: var(--mint); color: var(--green); font-size: .84rem; font-weight: 760; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.account-status-values { display: inline-flex; align-items: center; gap: 6px; }
.account-points { border-left: 1px solid #b9d4be; padding-left: 6px; }
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
.main-layout > :is(.workspace, .hall, .goods, .history) { grid-column: 1; min-width: 0; }
.workspace { height: calc(100dvh - var(--header)); min-height: 525px; display: grid; grid-template-columns: 344px minmax(0, 1fr); }
.search-panel { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid #dfe5df; background: #fbfcfa; z-index: 2; }
.search-panel-toolbar { display: none; }
.search-content { padding: 29px 18px 20px; }
.section-kicker { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: .86rem; font-weight: 800; letter-spacing: -.025em; }
.section-kicker svg { width: 16px; height: 16px; }
h1, h2, h3, p { margin: 0; }
h1 { margin: 7px 0 9px; font-size: clamp(1.9rem, 2.65vw, 2.5rem); line-height: 1.21; letter-spacing: -.09em; font-weight: 850; }
.section-description { font-size: .95rem; line-height: 1.6; color: var(--muted); letter-spacing: -.04em; }
.search-form {
  height: 49px; margin-top: 22px; display: flex; align-items: center; gap: 10px; padding: 0 13px;
  border: 1px solid #d6e1d7; background: white; border-radius: 11px; color: var(--green);
}
.search-form:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #e1f1e6; }
.search-submit { margin-left: -5px; color: var(--green); }
.search-submit svg { width: 20px; height: 20px; }
.search-form input { min-width: 0; width: 100%; border: 0; outline: none; font-size: .93rem; background: transparent; color: var(--dark); }
.search-form input::placeholder { color: #6e7a70; }
.search-form input::-webkit-search-cancel-button { display: none; }
.icon-button { display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #53675a; padding: 6px; }
.icon-button:hover { background: #edf2eb; }
.icon-button svg { width: 18px; height: 18px; }
.icon-button.review-guide-button { flex: none; width: 36px; height: 36px; color: var(--green); }
.filter-list { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.category-filter {
  display: flex; align-items: center; gap: 9px; margin-top: 13px; font-size: .86rem; font-weight: 760;
}
.category-filter select {
  flex: 1; min-width: 0; padding: 7px 9px; border: 1px solid #dee6de; border-radius: 8px; background: white;
  color: var(--dark); font: inherit;
}
.category-filter select:disabled { color: var(--muted); background: var(--soft); cursor: default; }
.filter {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: white; border: 1px solid #dee6de;
  border-radius: 8px; color: #49584e; padding: 8px 7px; font-size: .82rem; font-weight: 720; white-space: nowrap;
}
.filter svg { width: 15px; height: 15px; }
.filter:hover { background: var(--mint); }
.filter.active { border-color: var(--deep); background: var(--deep); color: #fff; }
.results-header { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 15px 18px 11px; gap: 8px; }
.results-title { display: flex; align-items: center; gap: 7px; }
.results-title h2 { font-size: 1.03rem; letter-spacing: -.053em; font-weight: 820; }
#result-count { color: var(--green); background: var(--mint); font-size: .85rem; font-weight: 810; padding: 3px 7px; border-radius: 7px; }
.sort-control { position: relative; }
.sort-control select { appearance: none; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 5px 21px 5px 5px; color: #5d6b60; font-size: .84rem; }
.sort-control select:hover { border-color: var(--line); }
.sort-control > span { position: absolute; top: 9px; right: 3px; pointer-events: none; }
.sort-control svg { width: 14px; height: 14px; color: #69776c; }
.result-notice { margin: 0 18px 10px; background: #f0f4ed; color: #536356; padding: 9px 11px; border-radius: 8px; font-size: .83rem; line-height: 1.5; }
.restaurant-list { min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #dae5d9 transparent; padding: 0 17px 22px; }
.restaurant-card {
  width: 100%; display: flex; gap: 13px; text-align: left; min-width: 0; align-items: center; padding: 11px;
  background: white; border: 1px solid #e4ebe3; border-radius: 12px; margin: 0 0 8px; min-height: 104px;
  transition: background .15s, border-color .15s;
}
.restaurant-card:hover, .restaurant-card.selected { border-color: #87ba98; background: #f3faf4; }
.food-photo { background-color: #e8efe6; display: grid; place-items: center; color: #518365; overflow: hidden; flex-shrink: 0; }
.restaurant-card .food-photo { width: 83px; height: 81px; border-radius: 8px; }
.food-photo.has-photo { background-image: url('/food.jpg'); background-size: 200% 200%; }
.food-photo[data-photo="0"] { background-position: left top; }
.food-photo[data-photo="1"] { background-position: right top; }
.food-photo[data-photo="2"] { background-position: left bottom; }
.food-photo[data-photo="3"] { background-position: right bottom; }
.food-photo svg { width: 22px; height: 22px; }
.restaurant-card-content { flex: 1; min-width: 0; display: grid; gap: 6px; }
.restaurant-title { display: flex; gap: 7px; align-items: baseline; min-width: 0; }
.restaurant-title strong { font-size: 1rem; font-weight: 850; letter-spacing: -.055em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.restaurant-title small { font-size: .77rem; color: var(--muted); white-space: nowrap; }
.restaurant-address { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; color: var(--muted); }
.restaurant-rating { display: flex; align-items: center; gap: 5px; color: #626e64; font-size: .79rem; white-space: nowrap; }
.restaurant-rating strong { color: #253a2d; font-size: .87rem; }
.restaurant-rating svg { height: 14px; width: 14px; fill: #f3ac32; stroke: #ae710e; }
.distance { margin-left: 3px; padding-left: 7px; border-left: 1px solid #dbe4dc; }
.facility-list { display: flex; flex-wrap: wrap; gap: 4px; }
.facility { display: inline-flex; align-items: center; gap: 3px; border-radius: 5px; background: #e9f3e9; color: #36634a; padding: 3px 6px; font-size: .73rem; font-weight: 700; white-space: nowrap; }
.facility svg { height: 12px; width: 12px; }
.empty { display: grid; justify-items: center; text-align: center; gap: 7px; padding: 38px 14px; color: var(--muted); line-height: 1.5; font-size: .91rem; }
.empty > svg { width: 28px; height: 28px; color: #699077; margin-bottom: 4px; }
.empty strong { color: var(--dark); font-size: 1rem; }
.map-panel { position: relative; overflow: hidden; isolation: isolate; background: #eaede6; min-width: 0; }
.map-graphic { position: absolute; inset: 0; z-index: 0; }
#demo-map { cursor: grab; touch-action: none; }
#demo-map.dragging { cursor: grabbing; }
#map-canvas, .demo-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-markers { pointer-events: none; }
.demo-markers .restaurant-pin { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; }
.restaurant-pin {
  z-index: 1; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; min-width: 34px; border: 2px solid #fff; border-radius: 50%; background: #1b774e; color: white;
  box-shadow: 0 2px 6px #263d3652; padding: 0 7px; white-space: nowrap;
}
.restaurant-pin::after { content: ''; position: absolute; top: calc(100% - 3px); left: calc(50% - 4px); width: 7px; height: 7px; background: inherit; transform: rotate(45deg); border-right: 1px solid white; border-bottom: 1px solid white; }
.restaurant-pin svg { width: 16px; height: 16px; }
.restaurant-pin:hover, .restaurant-pin:focus-visible { z-index: 5; background: #0b4f35; }
.restaurant-pin.selected { z-index: 6; height: 40px; border-radius: 10px; padding: 0 11px; background: #115334; font-size: .84rem; font-weight: 800; }
.user-pin { display: block; width: 19px; height: 19px; background: #3478e5; border: 3px solid white; box-shadow: 0 0 0 8px #3478e539; border-radius: 50%; }
.map-top, .map-controls, .map-scale, .map-preview, .map-search { z-index: 2; }
.map-top { position: absolute; top: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; pointer-events: none; }
.area-pill, .demo-indicator { display: flex; align-items: center; gap: 7px; background: white; border: 1px solid #e3eae2; border-radius: 9px; box-shadow: 0 3px 12px #1b322a10; }
.area-pill { padding: 10px 12px; font-weight: 800; font-size: .89rem; letter-spacing: -.035em; }
.area-icon { color: var(--green); }
.area-icon svg { width: 18px; height: 18px; }
.demo-indicator { padding: 8px 10px; color: #536658; font-size: .78rem; font-weight: 760; white-space: nowrap; }
.demo-indicator span { width: 7px; height: 7px; background: #67a276; border-radius: 50%; }
.map-controls { position: absolute; right: 22px; bottom: 47px; display: grid; gap: 9px; width: 42px; }
.map-controls button { width: 42px; height: 42px; border: none; background: white; display: grid; place-items: center; color: #2f4a3a; }
.map-controls button:hover { background: #e7f3ea; }
.map-controls button svg { width: 19px; height: 19px; }
.locate-button, .zoom-controls { border-radius: 9px; box-shadow: 0 3px 13px #1b322a24; overflow: hidden; }
.zoom-controls button + button { border-top: 1px solid var(--line); }
.map-scale { position: absolute; bottom: 12px; right: 22px; display: grid; gap: 3px; color: #44584c; font-size: .69rem; text-align: center; }
.map-scale i { width: 46px; height: 5px; border: 1.5px solid #586e61; border-top: 0; }
.map-search {
  position: absolute; left: 50%; bottom: 21px; transform: translateX(-50%); min-height: 44px;
  box-shadow: 0 3px 14px #19382d3d;
}
.map-preview {
  position: absolute; bottom: 76px; left: 23px; background: white; border: 1px solid #e0e8df; border-radius: 13px;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; width: min(433px, calc(100% - 91px)); box-shadow: 0 6px 22px #21433222;
}
.map-preview .food-photo { width: 65px; height: 64px; border-radius: 8px; }
.preview-body { min-width: 0; flex: 1; display: grid; gap: 4px; }
.preview-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 840; letter-spacing: -.04em; }
.preview-body p { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-size: .78rem; color: var(--muted); }
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; border: 1px solid transparent;
  padding: 10px 14px; font-size: .91rem; font-weight: 780; line-height: 1.3; white-space: nowrap;
}
.primary { background: var(--green); color: white; }
.primary:hover { background: #0b4e34; }
.primary.danger { background: #a22f27; }
.primary.danger:hover { background: #85251f; }
.secondary { border-color: #d7e5d8; background: white; color: var(--green); }
.secondary:hover { background: var(--mint); }
.primary:disabled { opacity: .58; cursor: wait; }
.primary svg, .secondary svg { height: 16px; width: 16px; }
.map-preview .primary { padding: 9px 11px; font-size: .81rem; }
.hall { min-height: calc(100dvh - var(--header)); padding: 48px 28px 60px; background: #f5f8f3; }
.hall-inner { max-width: 1130px; margin: auto; }
.hall-heading {
  padding: 39px 36px; border: 1px solid #dce9db; border-radius: 19px; background: radial-gradient(ellipse at 102% 32%, #d9ebd7, transparent 55%), #edf5eb;
  position: relative; overflow: hidden;
}
.hall-heading h1 { font-size: clamp(2.15rem, 4vw, 3.55rem); }
.hall-emblem { position: absolute; top: 50%; right: 7%; transform: translateY(-50%) rotate(-10deg); color: #6ea281; opacity: .7; }
.hall-emblem svg { width: clamp(56px, 12vw, 120px); height: auto; stroke-width: 1.3; }
.hall-heading .section-description { max-width: min(75%, 620px); position: relative; }
.rankings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.rank-card { padding: 0; min-width: 0; text-align: left; background: white; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.rank-card:hover, .rank-card[aria-expanded=true] { border-color: #7fb694; }
.rank-graphic { position: relative; }
.rank-graphic .food-photo { height: 148px; }
.rank-number { position: absolute; top: 12px; left: 12px; background: var(--deep); color: #fff; padding: 5px 9px; border-radius: 7px; font-weight: 800; font-size: .82rem; }
.rank-card-content { padding: 15px; display: grid; gap: 8px; }
.rankings > .empty { grid-column: 1 / -1; }
.goods { min-height: calc(100dvh - var(--header)); padding: 42px 28px 60px; background: #f5f8f3; }
.goods-inner { max-width: 984px; margin: auto; }
.goods-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 32px 36px; border: 1px solid #dce9db; border-radius: 20px; background: radial-gradient(ellipse at 100% 20%, #dcefdc, transparent 65%), #edf5eb; }
.goods-heading h1 { font-size: 2.8rem; margin-top: 10px; }
.goods-heading > .primary { grid-column: 1; justify-self: start; }
.goods-emblem { grid-column: 2; grid-row: 1 / 3; display: grid; place-items: center; width: 124px; height: 124px; border: 1px solid #d5e8d5; border-radius: 30px; background: #ffffff90; color: #699675; transform: rotate(8deg); }
.goods-emblem svg { width: 67px; height: 67px; stroke-width: 1.25; }
.goods-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 26px 0; }
.goods-tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.goods-tabs button { min-height: 37px; padding: 8px 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 700; }
.goods-tabs button[aria-pressed=true] { background: var(--mint); color: var(--green); }
.goods-search { flex: 1; max-width: 380px; min-width: 230px; }
.goods-category-filter { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 11px; min-height: 45px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); font-size: .8rem; }
.goods-category-filter select { max-width: 190px; min-width: 0; border: 0; padding: 9px 2px; background: transparent; color: var(--dark); font-size: .81rem; }
.goods-category-filter:focus-within { outline: 2px solid #56a77f; }
.goods-card-tags { display: flex; flex-wrap: wrap; gap: 4px 7px; align-items: center; margin-bottom: 4px; }
.goods-category-badge { display: inline-flex; padding: 3px 7px; border: 1px solid #e0eadd; border-radius: 6px; background: #f2f8ef; color: var(--green); font-size: .7rem; font-weight: 700; overflow-wrap: anywhere; }
.goods-satisfaction { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: .76rem; }
.goods-satisfaction strong { color: #8a6220; font-size: .77rem; }
.goods-satisfaction-unknown { color: #87958b; }
.goods-stars { display: inline-flex; gap: 2px; color: #d5ddd3; }
.goods-stars svg { width: 16px; height: 16px; }
.goods-stars .is-filled { color: #bc882a; }
.goods-stars .is-filled svg { fill: #f7d576; }
.goods-rating-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.goods-rating-field legend { font-size: .88rem; font-weight: 760; margin-bottom: 5px; }
.goods-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; }
.goods-rating-stars { display: flex; gap: 4px; }
.goods-rating-choice { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 9px; color: #cbd5c9; cursor: pointer; }
.goods-rating-choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.goods-rating-choice svg { width: 29px; height: 29px; stroke-width: 1.5; }
.goods-rating-choice.is-filled { color: #b78020; }
.goods-rating-choice.is-filled svg { fill: #f5cf6e; }
.goods-rating-choice:hover { background: #fbf5e4; }
.goods-rating-choice:has(input:focus-visible) { outline: 3px solid #56a77f; outline-offset: 2px; }
#goods-rating-value { color: var(--muted); font-size: .78rem; }
[data-goods-detail] > .goods-satisfaction { margin: 13px 0; }
.goods-list-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.goods-list-heading h2 { font-size: 1.02rem; letter-spacing: -.035em; }
#goods-count { color: var(--muted); font-size: .8rem; }
.goods-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.goods-card { display: flex; flex-direction: column; gap: 15px; min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.goods-card-heading { display: flex; gap: 12px; align-items: flex-start; }
.goods-card-heading > div { min-width: 0; }
.goods-card-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; border: 1px solid #e3eee3; border-radius: 13px; background: #f0f7ee; color: #5b8e6b; }
.goods-card-icon svg { width: 23px; height: 23px; }
.goods-card h3 { margin: 2px 0 5px; line-height: 1.4; }
.goods-card h3 button { border: 0; padding: 0; background: transparent; text-align: left; font-size: 1.07rem; font-weight: 800; overflow-wrap: anywhere; }
.goods-card h3 button:hover { color: var(--green); }
.goods-recipient { color: var(--green); font-size: .73rem; font-weight: 650; overflow-wrap: anywhere; }
.goods-card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: .73rem; line-height: 1.5; overflow-wrap: anywhere; }
.goods-prices { display: grid; grid-template-columns: .7fr 1.15fr 1.15fr; gap: 0; margin: 0; padding: 13px 0; border: 1px solid #e6eee3; border-radius: 11px; background: #f5f9f2; }
.goods-prices > div { min-width: 0; padding: 0 11px; }
.goods-prices > div + div { border-left: 1px solid #e0e9dc; }
.goods-prices dt { color: var(--muted); font-size: .73rem; margin-bottom: 6px; }
.goods-prices dd { margin: 0; color: var(--deep); font-size: .94rem; font-weight: 800; overflow-wrap: anywhere; line-height: 1.45; }
.goods-prices dd small { margin-left: 2px; font-size: .75rem; font-weight: 500; }
.goods-card-comment { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; font-size: .87rem; color: #4f6154; }
.goods-card-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.goods-card-photos button { position: relative; min-width: 0; overflow: hidden; padding: 0; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 9px; background: var(--soft); }
.goods-card-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.goods-card-photos button > span { position: absolute; inset: 0; display: grid; place-items: center; background: #162b2280; color: white; font-weight: 750; }
.goods-price-fields { min-width: 0; }
.goods-store { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; line-height: 1.6; }
.goods-store span { margin-left: 5px; color: var(--dark); }
.goods-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.goods-card-actions button { display: inline-flex; gap: 4px; align-items: center; min-height: 32px; border: 0; padding: 3px 0; background: transparent; font-size: .76rem; color: var(--muted); }
.goods-card-actions button:first-child { margin-right: auto; color: var(--green); font-weight: 700; }
.goods-card-actions button:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.goods-card-actions svg { width: 14px; height: 14px; }
.goods-empty { grid-column: 1 / -1; display: grid; justify-items: center; padding: 12px 16px 32px; border: 1px dashed #d3e3d2; border-radius: 16px; background: #ffffffaa; }
.goods-empty .empty { padding-bottom: 20px; }
.goods-pagination { display: flex; justify-content: center; margin-top: 24px; }
.goods-detail-note { margin: 22px 0; }
.goods-unit-preview { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 13px; border: 1px solid #dce9d7; border-radius: 9px; background: #f1f7ed; color: var(--deep); }
.goods-unit-preview > span { font-size: .8rem; }
.goods-unit-preview strong { font-size: .91rem; overflow-wrap: anywhere; }
.field-optional { margin-left: 3px; color: var(--muted); font-size: .74rem; font-weight: 450; }
.history { min-height: calc(100dvh - var(--header)); padding: 42px 28px 60px; background: #f5f8f3; }
.history-inner { max-width: 752px; margin-inline: auto; }
.history h1 { margin: 0 0 20px; }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.history-heading h1 { margin: 0; }
.history-heading .primary { flex: none; }
.history-private-note { color: var(--deep); }
.history-controls { display: grid; gap: 15px; margin-bottom: 24px; }
.history-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #dce9db;
  border-radius: 14px; background: #edf5eb;
}
.history-stats > div { padding: 13px 18px; }
.history-stats > div + div { border-left: 1px solid #dce9db; }
.history-stats dt { color: var(--deep); font-size: .84rem; font-weight: 730; }
.history-stats dd { margin: 3px 0 0; color: var(--green); font-size: 1.45rem; font-weight: 850; }
.history-search {
  min-width: 0; display: flex; align-items: center; gap: 8px; padding-inline: 13px;
  border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted);
}
.history-search:focus-within { outline: 2px solid #56a77f; }
.history-search input { width: 100%; min-width: 0; min-height: 43px; border: 0; outline: none; background: transparent; color: var(--dark); }
.history-search svg, .history-card svg { width: 16px; height: 16px; }
.history-month + .history-month { margin-top: 22px; }
.history-month h2 { margin-bottom: 9px; color: var(--deep); font-size: .97rem; }
.history-month ul { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.history-card {
  display: flex; width: 100%; align-items: center; gap: 12px; padding: 13px 14px; text-align: left;
  background: white; border: 1px solid var(--line); border-radius: 12px;
}
.history-card:hover, .history-card[aria-expanded=true] { border-color: #7fb694; }
.history-card-content { display: grid; flex: 1; gap: 5px; min-width: 0; }
.history-card-content strong, .history-comment { overflow-wrap: anywhere; }
.history-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: .81rem; }
.history-card-meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.history-rating svg { color: #90651b; fill: #f6d38e; }
.history-comment { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.history-card img { width: 72px; height: 64px; object-fit: cover; border-radius: 8px; }
.history-chevron { color: var(--green); }
.history-prompt { display: grid; justify-items: center; }
.history-prompt .empty { padding-bottom: 16px; }
dialog {
  border: 1px solid #e1e8e0; border-radius: 17px; padding: 8px; width: min(520px, calc(100% - 28px)); max-height: calc(100dvh - 34px);
  overflow: hidden;
  color: var(--dark); background: #fff; box-shadow: 0 18px 80px #142c2945;
}
dialog::backdrop { background: #162b22a0; backdrop-filter: blur(3px); }
.modal-inner {
  padding: 21px; position: relative; max-height: calc(100dvh - 52px); border-radius: 9px;
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #bfd0c2 transparent;
}
@supports selector(::-webkit-scrollbar) {
  .modal-inner { scrollbar-width: auto; scrollbar-color: auto; }
  .modal-inner::-webkit-scrollbar { width: 8px; }
  .modal-inner::-webkit-scrollbar-track { background: transparent; margin-block: 9px; }
  .modal-inner::-webkit-scrollbar-thumb { min-height: 44px; border: 2px solid transparent; border-radius: 999px; background: #bfd0c2; background-clip: padding-box; }
  .modal-inner::-webkit-scrollbar-thumb:hover { background-color: #93ad98; }
  .modal-inner::-webkit-scrollbar-thumb:active { background-color: #78947f; }
  .modal-inner::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  .modal-inner::-webkit-scrollbar-corner { background: transparent; }
}
.modal-close { position: absolute; z-index: 1; top: 7px; right: 7px; background: #f4f7f4; }
.modal-title { font-size: 1.55rem; font-weight: 850; letter-spacing: -.06em; padding-right: 25px; }
.modal-subtitle { margin-top: 6px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.profile-fields { margin: 16px 0 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.profile-fields > div { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 10px; padding: 11px 0; font-size: .9rem; }
.profile-fields > div + div { border-top: 1px solid var(--line); }
.profile-fields dt { color: var(--muted); }
.profile-fields dd { margin: 0; color: var(--dark); font-weight: 680; overflow-wrap: anywhere; }
.profile-nickname { display: inline-flex; align-items: center; gap: 6px; }
.review-guide-grades { margin: 16px 0 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.review-guide-grades > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; font-size: .9rem; }
.review-guide-grades > div + div { border-top: 1px solid var(--line); }
.review-guide-grades dt { display: flex; align-items: center; gap: 7px; font-weight: 680; }
.review-guide-grades dt > span { display: inline-flex; justify-content: center; width: 20px; }
.review-guide-grades dd { margin: 0; color: var(--muted); white-space: nowrap; }
.review-guide-points { margin-top: 20px; }
.review-guide-points h3 { color: var(--dark); font-size: 1rem; }
.place-details {
  position: fixed; inset: var(--header) 0 0 auto; z-index: 5; width: min(390px, calc(100% - 30px));
  display: flex; flex-direction: column; min-height: 0; background: #fbfcfa;
  border-left: 1px solid var(--line); box-shadow: -5px 0 22px #19352923;
}
.detail-toolbar {
  display: flex; flex: none; justify-content: space-between; align-items: center;
  gap: 12px; padding: 11px 21px; border-bottom: 1px solid var(--line);
}
.detail-close { width: 40px; height: 40px; background: var(--soft); }
.detail-content { min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 21px 21px 28px; }
.detail-title { font-size: 1.5rem; letter-spacing: -.05em; font-weight: 850; line-height: 1.3; overflow-wrap: anywhere; }
.detail-category, .detail-message { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-top: 5px; }
.detail-photo { height: 148px; margin: 16px 0 13px; border-radius: 10px; }
.detail-content .details-meta { overflow-wrap: anywhere; }
.detail-content .details-meta svg { flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .place-details { animation: reveal-details .17s ease-out; }
  @keyframes reveal-details { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
}
@media (min-width: 1120px) {
  .main-layout.has-details { grid-template-columns: minmax(0, 1fr) clamp(318px, 28vw, 390px); }
  .place-details {
    position: sticky; inset: 0 auto auto; grid-row: 1; grid-column: 2;
    width: auto; height: calc(100dvh - var(--header)); box-shadow: none;
  }
}
.details-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 15px 0; }
.details-meta { margin: 13px 0; display: grid; gap: 7px; color: var(--muted); font-size: .89rem; }
.details-meta p { display: flex; align-items: center; gap: 7px; }
.details-meta svg { width: 16px; height: 16px; }
.review-list { border-top: 1px solid var(--line); padding-top: 15px; }
.review-list h3 { margin-bottom: 7px; font-size: 1rem; }
.review-card { border-bottom: 1px solid var(--line); padding: 13px 0; display: grid; gap: 7px; }
.review-card:last-child { border: 0; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; }
.review-author { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.review-author > span:last-child { overflow-wrap: anywhere; }
.review-badge { display: inline-flex; flex: none; }
.review-badge svg { width: 17px; height: 17px; }
.review-badge-bronze { color: #844923; --medal-fill: #ebaf7c; --medal-ribbon: #f4d7bc; }
.review-badge-silver { color: #526276; --medal-fill: #d2dce7; --medal-ribbon: #e3ebf2; }
.review-badge-gold { color: #815900; --medal-fill: #ffd66e; --medal-ribbon: #ffe69f; }
.review-badge-challenger { color: #15558b; }
.review-badge-challenger svg { width: 20px; height: 20px; }
.review-meta time { color: var(--muted); font-size: .75rem; margin-left: auto; }
.review-comment { font-size: .92rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.review-photo { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.review-photo img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.review-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.review-gallery figure { margin: 0; min-width: 0; }
.review-gallery figure:only-child { grid-column: 1 / -1; }
.review-gallery figcaption { color: var(--muted); font-size: .78rem; padding-top: 4px; }
.record-meta { margin: 12px 0; color: var(--muted); font-size: .86rem; }
.record-label { margin: 0 0 6px; font-size: .91rem; }
.private-record { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 12px; }
.record-actions { margin-top: 20px; }
.place-picker { display: grid; gap: 7px; }
.place-search-row { display: flex; gap: 7px; }
.place-search-row input { flex: 1; width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.place-search-row button { flex: none; }
.place-search-results { display: grid; max-height: 230px; overflow: auto; gap: 5px; }
.place-search-result { display: grid; text-align: left; gap: 3px; padding: 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.place-search-result:hover, .place-search-result:focus-visible { border-color: var(--green); }
.place-search-result span { font-size: .8rem; color: var(--muted); }
.review-card .facility[data-value="false"] { background: #f1f3f0; color: #536356; }
.review-actions, .review-owner-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.review-actions { justify-content: space-between; }
.review-owner-actions button {
  min-height: 36px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: .84rem;
}
.review-owner-actions button:hover { background: var(--soft); color: var(--dark); }
.review-owner-actions [data-action="delete-review"] { color: #a22f27; }
.review-owner-actions [data-action="delete-review"]:hover { background: #fcf1ef; color: #85251f; }
.review-recommendation {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; min-height: 36px;
  background: white; border: 1px solid var(--line); border-radius: 8px; color: var(--green); font-size: .84rem;
}
.review-recommendation svg { width: 16px; height: 16px; }
.review-recommendation:not(:disabled):hover, .review-recommendation[aria-pressed=true] { background: var(--mint); border-color: #8dbd9b; }
.review-recommendation[aria-disabled=true] { opacity: .65; cursor: wait; }
.review-recommendation:disabled { color: var(--muted); background: var(--soft); cursor: default; }
@media (pointer: coarse) { .review-recommendation, .review-owner-actions button { min-height: 44px; } }
.form { display: grid; gap: 12px; margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.review-facilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.review-facilities-column { display: grid; align-content: start; gap: 12px; min-width: 0; }
.review-facilities .options-list { flex-wrap: wrap; }
.field { color: var(--dark); font-size: .88rem; font-weight: 760; display: grid; gap: 6px; min-width: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; padding: 10px; border: 1px solid #d7e1d7; border-radius: 8px;
  background: white; color: var(--dark); font-size: .91rem; font-weight: 450;
}
.field input[aria-invalid="true"] { border-color: #a22f27; box-shadow: 0 0 0 1px #a22f27; }
.field-select { position: relative; min-width: 0; }
.field-select select { appearance: none; padding-right: 30px; }
.field-select svg { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.field-select select:disabled { background: var(--soft); color: var(--muted); cursor: default; }
.field textarea { min-height: 108px; resize: vertical; }
.dialog-tabs { display: flex; gap: 6px; background: #eef3ee; padding: 4px; border-radius: 9px; margin-top: 17px; }
.dialog-tabs button { flex: 1; border: none; background: transparent; padding: 8px; border-radius: 7px; color: #59695d; font-size: .9rem; font-weight: 750; }
.dialog-tabs button[aria-pressed=true] { background: white; color: var(--green); box-shadow: 0 1px 4px #192e2220; }
.form-error { color: #a22f27; line-height: 1.5; font-size: .85rem; }
.signup-error { margin-top: 14px; text-align: center; font-size: .94rem; font-weight: 760; }
.signup-error > span { display: block; }
.form-note { color: var(--muted); line-height: 1.5; font-size: .8rem; font-weight: 460; }
.review-photo-field { display: grid; gap: 10px; min-width: 0; margin-top: 6px; }
.photo-field-heading { display: flex; justify-content: space-between; align-items: center; }
.photo-count { padding: 3px 9px; border-radius: 20px; background: var(--soft); color: var(--muted); font-size: .75rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.photo-upload-zone {
  display: flex; flex-direction: column; align-items: center; gap: 13px; width: 100%; padding: 25px 14px 21px;
  border: 1.5px dashed #b8d3c2; border-radius: 16px; background: linear-gradient(145deg, #f5faf6, #edf6f0);
  color: var(--deep); text-align: center; transition: background .18s, border-color .18s, box-shadow .18s;
}
.photo-upload-zone:hover, .photo-upload-zone.is-dragging { border-color: var(--green); background: #e7f3eb; box-shadow: 0 0 0 3px #1264410a; }
.photo-upload-zone.is-dragging { border-style: solid; box-shadow: inset 0 0 0 2px #12644120; }
.photo-upload-zone[aria-invalid=true] { border-color: #b96960; }
.photo-upload-icon { display: grid; place-items: center; position: relative; width: 49px; height: 49px; border: 1px solid #deebe2; border-radius: 15px; background: white; color: #4f8b69; box-shadow: 0 4px 10px #16483108; transform: rotate(-5deg); }
.photo-upload-icon > svg { width: 26px; height: 26px; stroke-width: 1.5; }
.photo-upload-icon > span { position: absolute; right: -5px; bottom: -3px; display: grid; place-items: center; width: 21px; height: 21px; background: var(--green); color: white; border: 2px solid #f0f7f2; border-radius: 50%; }
.photo-upload-icon > span svg { width: 12px; height: 12px; }
.photo-upload-copy { display: grid; gap: 6px; }
.photo-upload-copy strong { font-size: .93rem; font-weight: 760; }
.photo-upload-copy > span { color: var(--muted); font-size: .77rem; line-height: 1.5; }
.photo-upload-copy .photo-upload-mobile { display: none; }
.photo-upload-action { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border: 1px solid #d3e4d9; border-radius: 9px; background: white; font-size: .79rem; font-weight: 730; box-shadow: 0 2px 3px #16483104; }
.photo-upload-action svg { width: 14px; height: 14px; }
.photo-upload-hint { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; text-align: center; }
.photo-privacy-note { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; color: #627369; font-size: .76rem; line-height: 1.6; }
.photo-privacy-note svg { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.photo-selection-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.photo-selection-toolbar:has([hidden] + [hidden]) { display: none; }
.photo-selection-status { margin: 0; font-size: .74rem; color: var(--muted); }
.review-photo-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.photo-choice { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.photo-choice-image { position: relative; aspect-ratio: 4 / 3; background: var(--soft); }
.photo-choice-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-choice-number { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border-radius: 5px; background: #162b2275; color: white; font-size: .64rem; font-weight: 650; }
.photo-remove { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 1px solid #ffffff90; border-radius: 50%; background: #fffffff2; color: #3a5143; box-shadow: 0 2px 7px #162b2220; }
.photo-remove:hover { background: white; color: #a22f27; }
.photo-remove svg { width: 14px; height: 14px; }
.photo-choice-footer { display: grid; gap: 6px; padding: 10px; }
.photo-visibility { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 25px; width: fit-content; font-size: .77rem; font-weight: 650; cursor: pointer; }
.photo-visibility input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.photo-toggle { position: relative; width: 27px; height: 16px; flex: none; border-radius: 20px; background: #c8d2cb; transition: background .18s; }
.photo-toggle::after { content: ''; position: absolute; width: 12px; height: 12px; top: 2px; left: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 3px #162b2225; transition: transform .18s; }
.photo-visibility input:checked + .photo-toggle { background: var(--green); }
.photo-visibility input:checked + .photo-toggle::after { transform: translateX(11px); }
.photo-visibility input:focus-visible + .photo-toggle { outline: 3px solid #56a77f; outline-offset: 3px; }
.photo-choice-caption { color: var(--muted); font-size: .69rem; line-height: 1.5; }
.photo-visibility-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #a0afa5; }
.photo-visibility-actions button { border: 0; background: transparent; color: var(--green); font-size: .73rem; font-weight: 650; padding: 6px 0; }
.photo-visibility-actions button:hover { text-decoration: underline; text-underline-offset: 3px; }
.review-photo-error, .goods-price-error { color: #a22f27; font-size: .85rem; }
@media (hover: none) {
  .photo-upload-copy .photo-upload-desktop { display: none; }
  .photo-upload-copy .photo-upload-mobile { display: block; }
  .photo-remove { width: 32px; height: 32px; }
  .photo-visibility { min-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-upload-zone, .photo-toggle, .photo-toggle::after { transition: none; }
}
.full-width { width: 100%; }
.options-set { margin: 0; border: 0; padding: 0; }
.options-set legend { font-weight: 760; font-size: .88rem; margin-bottom: 6px; }
.options-list { display: flex; gap: 5px; }
.radio-option { display: flex; position: relative; }
.radio-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.radio-option span { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); font-size: .85rem; cursor: pointer; white-space: nowrap; }
.radio-option input:checked + span { background: var(--mint); color: var(--green); border-color: #8dbd9b; font-weight: 790; }
.radio-option input:focus-visible + span { outline: 3px solid #56a77f; outline-offset: 2px; }
.toast {
  position: fixed; z-index: 10; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: calc(100vw - 30px);
  width: max-content; border-radius: 9px; color: #fff; background: #1b4030; padding: 11px 15px; font-size: .9rem; box-shadow: 0 6px 20px #162e2340;
}
@media (max-width: 900px) {
  .site-header { padding-inline: 21px; }
  .restaurant-card .food-photo { width: 73px; }
  .map-top { left: 14px; right: 14px; }
  .map-controls, .map-scale { right: 14px; }
  .map-preview { left: 14px; width: min(360px, calc(100% - 76px)); }
}
@media (max-width: 650px) {
  :root { --header: 61px; }
  .site-header { padding-inline: 11px; gap: 4px; }
  .brand { font-size: 1.14rem; gap: 5px; }
  .brand-icon { width: 23px; height: 23px; }
  .main-nav { gap: 1px; }
  .main-nav a { font-size: .81rem; padding: 9px 6px; gap: 4px; }
  .main-nav svg, .login-button svg { width: 14px; height: 14px; }
  .account-controls { gap: 3px; }
  .account-status { gap: 3px; padding: 4px 6px; font-size: .75rem; }
  .account-status-values { display: grid; gap: 1px; line-height: 1.2; }
  .account-points { border-left: 0; padding-left: 0; }
  .icon-button.review-guide-button { width: 30px; height: 34px; }
  .login-button { padding: 7px; font-size: .8rem; gap: 4px; }
  .workspace { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .map-panel { order: -2; height: min(51dvh, 410px); min-height: 300px; }
  .workspace.search-panel-collapsed .map-panel { height: calc(100dvh - var(--header) - 44px); min-height: 240px; }
  .search-panel-toolbar { display: block; order: -1; }
  .search-panel-toggle {
    width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--green); font-size: .86rem; font-weight: 760;
  }
  .search-panel-toggle svg { width: 15px; height: 15px; }
  .search-panel-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .search-panel { border-right: 0; }
  .search-content { padding-top: 21px; }
  h1 { font-size: 1.95rem; }
  .search-form { margin-top: 15px; }
  .map-top { top: 12px; }
  .area-pill { padding: 7px 9px; }
  .map-controls { bottom: 33px; gap: 7px; width: 37px; }
  .map-controls button { width: 37px; height: 37px; }
  .map-search { bottom: 12px; }
  .map-preview { bottom: 64px; width: calc(100% - 69px); max-width: 350px; gap: 8px; padding: 7px; }
  .map-preview .food-photo { width: 43px; height: 43px; }
  .map-preview .primary { font-size: .75rem; padding: 7px; }
  .map-scale { bottom: 6px; }
  .map-scale i { width: 35px; }
  .restaurant-card .food-photo { width: 81px; }
  .restaurant-list { overflow: visible; }
  .place-details { inset-block-start: 0; }
  .detail-toolbar { padding-inline: 15px; }
  .detail-close { width: 44px; height: 44px; }
  .detail-content { padding-inline: 15px; }
  .hall { padding: 23px 14px 40px; }
  .history { padding: 23px 14px 40px; }
  .hall-heading { padding: 25px 18px; }
  .hall-emblem { right: 5%; }
  .rankings { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rank-graphic .food-photo { height: 104px; }
  .rank-card-content { padding: 10px; }
  .rank-card .restaurant-title { flex-wrap: wrap; gap: 3px; }
  .modal-inner { padding: 14px 8px; }
}
@media (max-width: 520px) {
  :root { --header: 92px; }
  .site-header { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 54px 1fr; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .main-nav a { padding-inline: 11px; }
  .account-controls { grid-column: 2; grid-row: 1; }
  .history-card { gap: 8px; padding-inline: 10px; }
  .history-card img { width: 56px; height: 56px; }
}
@media (max-width: 365px) {
  .main-nav a > span, .login-button > span:first-child { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .rankings { grid-template-columns: 1fr; }
}
@media (min-width: 521px) and (max-width: 1000px) {
  :root { --header: 104px; }
  .site-header { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 57px 1fr; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .account-controls { grid-column: 2; grid-row: 1; }
}
@media (max-width: 650px) {
  .goods { padding: 23px 14px 40px; }
  .goods-heading { padding: 23px 20px; gap: 17px 10px; }
  .goods-heading h1 { font-size: 2.2rem; }
  .goods-heading .section-description { font-size: .83rem; }
  .goods-emblem { width: 70px; height: 70px; border-radius: 20px; }
  .goods-emblem svg { width: 39px; height: 39px; }
  .goods-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 12px; margin: 22px 0; }
  .goods-tabs { justify-self: start; }
  .goods-search { width: 100%; max-width: none; min-width: 0; }
  .goods-category-filter { width: 100%; }
  .goods-category-filter select { flex: 1; max-width: none; }
  .goods-list { grid-template-columns: 1fr; gap: 12px; }
  .goods-card { padding: 17px; }
}
@media (max-width: 365px) {
  .goods-emblem { display: none; }
  .goods-heading { grid-template-columns: 1fr; }
  .goods-card { padding: 14px; }
  .goods-prices > div { padding-inline: 8px; }
}
