@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* 우리동네 최저가 — 값을 읽는 화면.
   ─────────────────────────────────────────────────────────────
   키오스크 UI 를 참조로 다시 짰다. 가져온 것:
     따뜻한 오렌지 강조 · 흰 카드 + 옅은 회색 바탕 · 타일 그리드 ·
     하단 주문 패널 · 원형 수량 스테퍼

   가져오지 않은 것은 **상품 사진**이다. 참가격 API 는 이름·규격·값·매장만
   준다(카테고리도 없다). 그래서 타일의 사진 자리에 **값과 절약액**이 앉는다 —
   이 화면에서는 값이 곧 그림이다.

   채도는 강조 하나에만 몰아 준다. 나머지는 전부 따뜻한 무채색이다. */

:root {
  /* 강조 — 오렌지. 흰 글자가 3.01:1 이라 큰 굵은 글자(담기 원)에만 쓰고,
     글자를 얹는 주 버튼은 한 단계 내린 --accent-d(4.00:1)를 쓴다. */
  --accent:   #E8734A;
  --accent-d: #D25A30;
  --accent-p: #A94320;
  --accent-w: #FDEEE7;
  --ok:       #4C9A6E;   /* 담김 표시(체크 아이콘) */
  /* 배지 글자는 15px 굵기 800 — large text 가 아니라 4.5:1 이 필요하다.
     --ok 는 흰 글자에서 3.41:1 이라 미달이어서 한 단계 내린 초록을 쓴다. */
  --ok-d:     #2F7A50;   /* 흰 글자 5.22:1 */
  /* 절약액 — 빨강. 타일 바탕 4.79:1, 담긴 타일 4.65:1 로 둘 다 AA 통과. */
  --save:     #C8342F;

  /* 중립 — 강조와 같은 따뜻한 쪽. 대비는 카드·바탕 양쪽에서 쟀다.
       ink  카드 14.3:1  바탕 13.0:1
       dim  카드  5.4:1  바탕  4.9:1   ← 하한 */
  --ink:   #2B2A28;
  --dim:   #6E6A64;
  --line:  #E8E6E1;
  --line2: #D9D5CE;
  --bg:    #F5F4F1;
  --card:  #FFFFFF;

  /* 글자 — 네 단계. 15 아래는 없다. */
  --fs-total: 26px;
  --fs-price: 21px;
  --fs-name:  17px;
  --fs-sub:   15px;

  --r-card: 14px;
  --r-btn:  14px;
  --r-pill: 999px;

  /* 눌림 — 모바일에 hover 는 없다. 색만 바꾸면 손가락에 가려 안 보인다. */
  --press: transform .06s ease-out, background-color .14s, border-color .14s;
  --sink: scale(.96);
  --ring: 2px solid var(--ink);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  /* `antialiased` 는 쓰지 않는다 — 획을 깎아 보조 글자를 더 흐리게 만든다. */
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  font-size: var(--fs-name); line-height: 1.55; letter-spacing: -.015em;
  /* 값을 세로로 훑는 화면이라 자릿수가 맞아야 한다. */
  font-feature-settings: 'tnum' 1;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(166px + var(--safe-b));
}
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
a { color: inherit; }
button:disabled { opacity: .45; cursor: default; }
button:disabled:active { transform: none; }
:focus-visible { outline: var(--ring); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.wrap { max-width: 560px; margin: 0 auto; }

/* ── 머리 ───────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 120;
  background: var(--card); border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(43, 42, 40, .06);
}
.top--search { top: 67px; z-index: 110; }
.top .wrap { padding: 12px 16px 14px; }
.top__row { display: flex; align-items: center; gap: 11px; }
.logo { flex: none; display: block; line-height: 0; }
.logo img { width: 30px; height: 30px; border-radius: 9px; }
.top__t { flex: 1; min-width: 0; }
.top__t b {
  display: block; font-size: var(--fs-name); font-weight: 700; letter-spacing: -.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 왼쪽은 '어느 범위 조사인지', 오른쪽은 '내가 선 자리'다. 둘은 다른 말이라
   같은 줄에 놓되 무게를 달리한다. */
.top__t { display: flex; align-items: baseline; gap: 10px; }
.top__t b { flex: 1; min-width: 0; }
.top__t span {
  flex: none; font-size: var(--fs-sub); font-weight: 700; color: var(--accent-p);
  max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink);
  border: 1px solid rgba(43, 42, 40, .14);
  box-shadow: 0 4px 12px rgba(43, 42, 40, .10);
  transition: var(--press), box-shadow .14s, color .14s;
}
.icon:hover {
  border-color: rgba(43, 42, 40, .24);
  background: #FAFAF8;
  box-shadow: 0 6px 16px rgba(43, 42, 40, .14);
}
.icon:active { background: var(--line); transform: var(--sink); box-shadow: 0 1px 4px rgba(43, 42, 40, .08); }
.icon.is-on {
  background: #EAF6EF; border-color: rgba(47, 122, 80, .42);
  color: var(--ok-d);
}
#menu-btn[aria-expanded="true"],
.login-icon.is-on {
  background: var(--accent-w); border-color: rgba(215, 92, 49, .42);
  color: var(--accent-p);
}
#locate { color: var(--ok-d); background: #F4FBF7; }
#locate:not(.is-on) { color: #4C7660; }
.login-icon { color: var(--accent-p); background: #FFF8F2; }
#menu-btn {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 5px 14px rgba(43, 42, 40, .18);
}
#menu-btn:hover { background: #3A3835; border-color: #3A3835; color: #fff; }
#menu-btn[aria-expanded="true"] {
  background: var(--accent-d); border-color: var(--accent-d); color: #fff;
}
.icon svg {
  width: 21px; height: 21px;
  fill: none; stroke: currentColor; stroke-width: 2.15;
  stroke-linecap: round; stroke-linejoin: round;
}
.login-icon { position: relative; }
.login-badge {
  position: absolute; right: -2px; bottom: -2px;
  display: grid; place-items: center; width: 16px; height: 16px;
  border: 2px solid #fff; border-radius: 50%;
  background: var(--ok-d); color: #fff;
  box-shadow: 0 1px 5px rgba(43, 42, 40, .16);
  font-size: 9px; font-weight: 900; line-height: 1;
}
.login-badge[hidden] { display: none; }

/* 어디·언제 값인지 — 조사 단위가 구·시·도로 갈리고 조사일도 주마다 다르다. */
.basis {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 38px; align-items: start; gap: 10px;
  min-height: 116px; margin: 10px 0 0; padding: 16px 12px 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(25, 22, 18, .82) 0%, rgba(25, 22, 18, .62) 54%, rgba(25, 22, 18, .20) 100%),
    url('/assets/menu-market.png') right center / cover no-repeat,
    #30261F;
  color: rgba(255, 255, 255, .84);
  box-shadow: 0 12px 28px rgba(43, 42, 40, .16);
  font-size: var(--fs-sub); line-height: 1.35;
}
.basis[hidden] { display: none; }
.basis__txt {
  position: relative; z-index: 1;
  min-width: 0; display: grid; grid-template-columns: auto 1fr;
  align-items: center; gap: 5px 8px;
}
.basis__k {
  grid-column: 1 / 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: max-content; min-height: 24px; padding: 0 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 12px; font-weight: 900;
  backdrop-filter: blur(8px);
}
.basis__main {
  color: #fff; font-size: 18px; font-weight: 950; white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}
.basis__sub {
  grid-column: 1 / -1; min-width: 0;
  color: rgba(255, 255, 255, .82); font-size: 13px; font-weight: 760;
}
.basis__link {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; justify-content: center;
  width: max-content; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill);
  background: #fff; color: #9D3D1C;
  border: 1px solid rgba(255, 255, 255, .70);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
  font-size: 13px; font-weight: 950; text-decoration: none; white-space: nowrap;
}
.basis__link:hover { color: #7F2F15; }
.basis__warn {
  grid-column: 1 / -1; justify-self: start;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800;
}
.basis__x {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; color: rgba(255, 255, 255, .86); font-size: 20px;
  transition: var(--press);
}
.basis__x:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.basis__x:active { transform: var(--sink); }
@media (max-width: 430px) {
  .basis__txt { grid-template-columns: 1fr; }
  .basis__main { font-size: 17px; }
}

/* ── 자주 찾는 곳 ──────────────────────────────────────
   가로로 훑는 알약. 아직 없는 페이지는 링크로 걸지 않는다 —
   눌러서 404 를 만나는 것이 안 보이는 것보다 나쁘다. */
.quick {
  display: flex; gap: 7px; margin: 10px -16px 0; padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
}
.quick::-webkit-scrollbar { display: none; }
.quick a, .quick__soon {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 13px; border-radius: var(--r-pill);
  background: var(--bg); color: var(--ink);
  font-size: var(--fs-sub); font-weight: 700; text-decoration: none;
  transition: var(--press); white-space: nowrap;
  scroll-snap-align: start;
}
.quick a:hover { background: var(--accent-w); color: var(--accent-p); }
.quick a:active { transform: var(--sink); }
.quick__soon { color: var(--dim); font-weight: 600; }
.quick__soon i {
  font-style: normal; font-size: var(--fs-sub); font-weight: 700;
  color: var(--accent-p); opacity: .75;
}

.search {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; height: 48px; padding: 0 15px;
  border-radius: var(--r-btn); background: var(--bg);
}
.search:focus-within { outline: var(--ring); outline-offset: 0; }
.search svg { width: 19px; height: 19px; flex: none; color: var(--dim); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: var(--fs-sub); color: var(--ink); }
.search input::placeholder { color: var(--dim); }

/* ── 검색 중 접어 둔 담은 것 ────────────────────────────
   검색하면 결과만 남는 게 맞다. 다만 담은 것까지 사라지면 확인하려고
   검색어를 지웠다 다시 쳐야 한다. 접힌 머리에 개수와 합계를 적어,
   펼치지 않아도 답이 되게 한다. */
.kept {
  margin: 12px 16px 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
}
.grid .kept {
  margin: 0;
}
.kept summary {
  display: flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 16px; cursor: pointer;
  list-style: none; font-size: var(--fs-sub);
}
.kept summary::-webkit-details-marker { display: none; }
.kept summary:hover { background: var(--bg); border-radius: var(--r-card); }
.kept summary:focus-visible { outline: var(--ring); outline-offset: -2px; border-radius: var(--r-card); }
.kept summary b { font-weight: 700; }
.kept summary span { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
/* 펼치는 방향을 화살표로 적는다 — 접힌 게 더 있는지 모르면 안 펼친다. */
.kept summary i {
  flex: none; width: 8px; height: 8px; margin-left: 2px;
  border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s;
}
.kept[open] summary i { transform: rotate(-135deg) translate(-3px, -3px); }
.kept[open] summary { border-bottom: 1px solid var(--line); border-radius: var(--r-card) var(--r-card) 0 0; }

.kept ul { margin: 0; padding: 4px 16px; list-style: none; }
.kept li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: var(--fs-sub);
}
.kept li.is-hit {
  margin: 2px -8px; padding: 9px 8px;
  border-radius: 12px; background: #FFF7DA;
}
.kept li + li { border-top: 1px solid var(--line); }
.kept__b { flex: 1; min-width: 0; }
.kept__b b {
  display: block; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kept__b span {
  display: block; margin-top: 2px; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kept__p { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.kept li button {
  flex: none; width: 44px; height: 44px; margin-right: -12px; border-radius: var(--r-btn);
  color: var(--dim); font-size: var(--fs-price); transition: var(--press);
}
.kept li button:hover { background: var(--bg); color: var(--ink); }
.kept li button:active { background: var(--line); transform: var(--sink); }
.kept__n { margin: 0; padding: 4px 16px 14px; font-size: var(--fs-sub); line-height: 1.5; color: var(--dim); }

/* ── 목록 ──────────────────────────────────────────────
   가로 한 줄에 한 품목. 왼쪽이 '무엇을 어디서', 오른쪽이 '얼마'다.
   사진이 없으니 격자로 깔 이유가 없다 — 값을 세로로 훑는 게 빠르다.
   줄 전체가 담기 버튼이라 작은 표적을 겨냥할 일이 없다. */
.grid { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 0; }

.tile {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 14px 14px 14px 16px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  transition: var(--press);
  cursor: pointer;
}
.tile:hover { border-color: var(--line2); }
.tile:active { transform: scale(.985); background: #FCFBFA; }
.tile:focus-visible { outline: var(--ring); outline-offset: -1px; }
/* 담긴 줄 — 테두리·판·버튼이 함께 바뀐다. 훑을 때 담은 것만 도드라진다. */
.tile.is-in { border-color: var(--accent); background: #FFFBF9; }
.hit {
  padding: 1px 5px; border-radius: 7px;
  background: #FFEAA3; color: var(--ink);
  font-weight: 900;
}
.tile__b { flex: 1; min-width: 0; }
.tile__b b {
  display: block; font-size: var(--fs-name); font-weight: 700; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 매장 이름은 장식이 아니라 '어디서 사나'라는 답이다. 흐리게 흘리지 않는다. */
.tile__b span {
  display: block; margin-top: 3px;
  font-size: var(--fs-sub); font-weight: 500; color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.tile__v { flex: none; text-align: right; }
.tile__v b {
  /* 굵기 900 에 자간 -.05em 을 주면 한글·숫자 획이 서로 붙어 뭉개진다.
     800 으로 낮추고 자간을 풀어 자릿수가 또렷하게 선다. */
  display: block; font-size: var(--fs-price); font-weight: 800;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* 절약액이 없는 줄에서도 **자리는 잡아 둔다** — 줄이 사라지면 그 줄만
   값이 아래로 내려앉아 오른쪽 열이 어긋난다. */
.tile__v em {
  display: block; margin-top: 2px; font-style: normal;
  font-size: var(--fs-sub); font-weight: 800; color: var(--save);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.tile__v em::after { content: '\200B'; }

.tile__actions {
  flex: none; display: flex; align-items: center; gap: 8px;
}
.report-btn {
  flex: none; min-width: 45px; height: 34px; padding: 0 10px;
  border-radius: var(--r-pill);
  background: #F7FBF8; color: var(--ok-d);
  border: 1px solid rgba(47, 122, 80, .20);
  font-size: 12px; font-weight: 900;
  transition: var(--press);
}
.report-btn:hover { background: #EAF6EF; border-color: rgba(47, 122, 80, .34); }
.report-btn:active { transform: var(--sink); }
.add {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 19px; font-weight: 700; line-height: 1;
  transition: var(--press);
}
.tile:hover .add { background: var(--accent-d); }
.tile:active .add { transform: var(--sink); }
.tile.is-in .add { background: var(--ok); }

@media (max-width: 430px) {
  .tile { gap: 8px; padding-right: 10px; }
  .report-btn { min-width: 42px; padding: 0 8px; }
  .add { width: 34px; height: 34px; }
}

/* 기다리는 동안 — 들어올 모양 그대로 자리를 잡는다. */
.tile--sk { pointer-events: none; }
.sk { display: block; border-radius: 8px; background: var(--bg); height: 17px; }
.sk--n { flex: 1; }
.sk--v { width: 88px; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: sk 1.2s ease-in-out infinite; }
  @keyframes sk { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
}
.empty { margin: 0; padding: 56px 20px; text-align: center; font-size: var(--fs-sub); color: var(--dim); }
/* ── 광고 샘플 ─────────────────────────────────────────
   모바일은 담은 것 바로 위, 넓은 화면은 본문 양옆 세로 슬롯이다. */
.ad {
  position: fixed; left: 50%; bottom: calc(88px + var(--safe-b)); z-index: 20;
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 528px); height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid rgba(43, 42, 40, .08); border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,251,248,.96));
  color: var(--dim);
  box-shadow: 0 8px 22px rgba(43, 42, 40, .10);
  font-size: var(--fs-sub);
  backdrop-filter: blur(10px);
}
.ad span,
.ad-side span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 900; letter-spacing: .04em;
}
.ad b,
.ad-side b { font-weight: 800; color: var(--ink); }
.ad-side { display: none; }

/* ── 담은 것 ───────────────────────────────────────────
   한 줄이다. 미니 카드로 수량까지 얹었더니 세 층이 되어 목록의 절반을
   덮었다 — 수량 조절은 장보기 시트에 이미 있다. 같은 기능을 두 자리에
   두면 화면만 잃는다. */
.order {
  position: fixed; left: 50%; bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  width: min(calc(100% - 32px), 528px);
  display: flex; align-items: center; gap: 10px;
  min-height: 62px; padding: 8px 18px;
  border-radius: var(--r-btn); background: var(--accent-d); color: #fff;
  box-shadow: 0 6px 20px rgba(43, 42, 40, .18);
  z-index: 30; transition: var(--press);
}
.order[hidden] { display: none; }
.order b {
  flex: 1; min-width: 0;
  font-size: var(--fs-sub); font-weight: 750; opacity: .92;
  line-height: 1.25; white-space: normal; word-break: keep-all;
}
.order span {
  flex: none; margin-left: auto; font-size: var(--fs-name); font-weight: 800;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.order i { font-style: normal; font-size: var(--fs-sub); font-weight: 700; opacity: .75; }
.order:hover { background: #BC4C26; }
.order:active { background: var(--accent-p); transform: translateX(-50%) scale(.985); }
.order:focus-visible { outline: var(--ring); outline-offset: 3px; }

@media (max-width: 430px) {
  .order { gap: 8px; padding: 8px 14px; }
  .order span { font-size: 17px; }
  .order i { font-size: 12px; }
}

@media (min-width: 1180px) {
  .ad-side {
    position: fixed; top: 150px; bottom: calc(166px + var(--safe-b)); z-index: 130;
    width: 150px; min-height: 360px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    border: 1px solid rgba(43, 42, 40, .08); border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,251,248,.88));
    color: var(--dim);
    box-shadow: 0 10px 28px rgba(43, 42, 40, .10);
    font-size: var(--fs-sub); text-align: center;
    backdrop-filter: blur(10px);
  }
  .ad-side--left { right: calc(50% + 320px); }
  .ad-side--right { left: calc(50% + 320px); }
}

/* ── 장보기 시트 ──────────────────────────────────────── */
/* 장보기 — 아래에서 올라오는 시트가 아니라 **가운데 레이어 팝업**이다.
   비교하는 화면이라 좌우로 넘기는 동작이 주인데, 바닥에 붙어 있으면
   손이 화면 끝에 걸린다. */
.sheet {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 12px max(18px, env(safe-area-inset-bottom, 0px));
}
.sheet[hidden] { display: none; }
.sheet__dim { position: absolute; inset: 0; background: rgba(43, 42, 40, .48); }
.sheet__box {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100dvh - 36px);
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(43, 42, 40, .28);
  overflow: hidden;
}
.sheet__head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 8px; }
.sheet__head h2 { margin: 0 0 0 6px; font-size: var(--fs-price); font-weight: 800; letter-spacing: -.02em; }
.sheet__x {
  margin-left: auto; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--dim);
  font-size: var(--fs-price); transition: var(--press);
}
.sheet__x:hover { background: var(--bg); color: var(--ink); }
.sheet__x:active { background: var(--line); transform: var(--sink); }
#sheet-body { flex: 1; overflow-y: auto; padding: 0 20px 8px; }

.st { padding: 14px 0; }
.st + .st { border-top: 1px solid var(--line); }
.st h3 { display: flex; margin: 0 0 6px; font-size: var(--fs-sub); font-weight: 700; color: var(--dim); }
.st h3 em { margin-left: auto; font-style: normal; color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.st ul { margin: 0; padding: 0; list-style: none; }
.st li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: var(--fs-sub); }
.st li b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st__q { flex: none; display: inline-flex; align-items: center; gap: 3px; }
.st__q button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn);
  background: var(--bg); color: var(--ink); font-size: var(--fs-name); font-weight: 700;
  transition: var(--press);
}
.st__q button:hover { background: var(--line); }
.st__q button:active { background: var(--line2); transform: var(--sink); }
.st__q i { min-width: 26px; text-align: center; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.st__p { flex: none; min-width: 76px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.st__x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-btn); color: var(--dim); font-size: var(--fs-price);
  transition: var(--press);
}
.st__x:hover { background: var(--bg); color: var(--ink); }
.st__x:active { background: var(--line); transform: var(--sink); }

.sheet__foot { padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.sheet__sum { display: flex; align-items: baseline; }
.sheet__sum b { font-size: var(--fs-sub); font-weight: 700; color: var(--dim); }
.sheet__sum span {
  margin-left: auto; color: var(--save);
  font-size: var(--fs-total); font-weight: 900; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.sheet__saved {
  display: inline-flex; align-items: center;
  margin: 6px 0 0; padding: 5px 9px; border-radius: var(--r-pill);
  background: #FFF1EF; color: var(--save);
  font-size: var(--fs-sub); font-weight: 800;
}
.share {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; margin-top: 12px; border-radius: var(--r-btn);
  background: var(--accent-d); color: #fff;
  font-size: var(--fs-name); font-weight: 800; letter-spacing: -.03em; transition: var(--press);
}
.share:hover { background: #BC4C26; }
.share:active { background: var(--accent-p); transform: var(--sink); }

/* ── 장바구니 ──────────────────────────────────────────
   장보기보다 **먼저** 온다. 무엇을 몇 개 담았고 얼마인지 정리한 다음에야
   '어디서 사나'를 물을 수 있다. */
.cart {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 12px max(18px, env(safe-area-inset-bottom, 0px));
}
.cart[hidden] { display: none; }
.cart__dim { position: absolute; inset: 0; background: rgba(43, 42, 40, .48); }
.cart__box {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 36px);
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(43, 42, 40, .28);
}
.cart__head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 8px; }
.cart__head h2 { margin: 0 0 0 6px; font-size: var(--fs-price); font-weight: 800; letter-spacing: -.02em; }
.cart__x {
  margin-left: auto; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--dim);
  font-size: var(--fs-price); transition: var(--press);
}
.cart__x:hover { background: var(--bg); color: var(--ink); }
.cart__x:active { background: var(--line); transform: var(--sink); }
.cart__body { flex: 1; overflow-y: auto; padding: 0 16px 8px; }

.ci { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.ci + .ci { border-top: 1px solid var(--line); }
.cart__more {
  width: 100%; min-height: 46px; margin: 4px 0 8px;
  border-radius: var(--r-btn); background: var(--bg); color: var(--accent-p);
  font-size: var(--fs-sub); font-weight: 900;
  transition: var(--press);
}
.cart__more:hover { background: var(--accent-w); }
.cart__more:active { transform: var(--sink); }
.ci__b { flex: 1; min-width: 0; }
.ci__b b {
  display: block; font-size: var(--fs-sub); font-weight: 700; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ci__b span {
  display: block; margin-top: 2px; font-size: var(--fs-sub); color: var(--dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ci__q { flex: none; display: inline-flex; align-items: center; gap: 2px; }
.ci__q button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn);
  background: var(--bg); color: var(--ink); font-size: var(--fs-name); font-weight: 700;
  transition: var(--press);
}
.ci__q button:hover { background: var(--line); }
.ci__q button:active { background: var(--line2); transform: var(--sink); }
.ci__q i {
  min-width: 26px; text-align: center; font-style: normal;
  font-size: var(--fs-sub); font-weight: 800; font-variant-numeric: tabular-nums;
}
.ci__p {
  flex: none; min-width: 76px; text-align: right;
  font-size: var(--fs-sub); font-weight: 800; font-variant-numeric: tabular-nums;
}
.ci__x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-btn); color: var(--dim); font-size: var(--fs-price);
  transition: var(--press);
}
.ci__x:hover { background: var(--bg); color: var(--ink); }
.ci__x:active { background: var(--line); transform: var(--sink); }

.cart__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.cart__sum { display: flex; align-items: baseline; margin: 0; }
.cart__sum b { font-size: var(--fs-sub); font-weight: 700; color: var(--dim); }
.cart__sum span {
  margin-left: auto; font-size: var(--fs-total); font-weight: 800;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
/* '최대'라고 못 박는다 — 그만큼 아끼려면 품목마다 제일 싼 데로 가야 한다. */
.cart__save {
  margin: 4px 0 0; font-size: var(--fs-sub); font-weight: 700; color: var(--save);
  line-height: 1.45; word-break: keep-all;
}

/* 주 행동 버튼 — 장바구니의 '어디서 살지 보기', 공유하기가 같은 모양이다.
   하단 한 줄 바를 만들면서 규칙이 같이 지워져 글자만 남아 있었다. */
.cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; margin-top: 12px;
  border-radius: var(--r-btn); background: var(--accent-d); color: #fff;
  font-size: var(--fs-name); font-weight: 800; letter-spacing: -.03em;
  transition: var(--press);
}
.cta:hover { background: #BC4C26; }
.cta:active { background: var(--accent-p); transform: scale(.985); }
.cta:disabled { background: var(--line); color: var(--dim); }
.cta:disabled:active { transform: none; }

/* ── 가격 제보 ───────────────────────────────────────── */
.report {
  position: fixed; inset: 0; z-index: 155;
  display: flex; align-items: center; justify-content: center;
  padding: max(18px, env(safe-area-inset-top, 0px)) 12px max(18px, env(safe-area-inset-bottom, 0px));
}
.report[hidden] { display: none; }
.report__dim { position: absolute; inset: 0; background: rgba(43, 42, 40, .48); }
.report__box {
  position: relative; width: 100%; max-width: 430px;
  padding: 18px; border-radius: 20px;
  background: var(--card); box-shadow: var(--shadow);
}
.report__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.report__head h2 {
  flex: 1; margin: 0; font-size: 20px; font-weight: 900; letter-spacing: 0;
}
.report__x {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg); color: var(--dim); font-size: 22px;
}
.report__item {
  margin: 0 0 14px; padding: 12px;
  border-radius: 14px; background: var(--bg);
}
.report__item b {
  display: block; font-size: var(--fs-name); font-weight: 850;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.report__item span {
  display: block; margin-top: 3px;
  color: var(--dim); font-size: var(--fs-sub); font-weight: 700;
}
.report__field { display: grid; gap: 6px; margin-top: 10px; }
.report__field span { color: var(--dim); font-size: var(--fs-sub); font-weight: 850; }
.report__field input,
.report__field textarea {
  width: 100%; border: 1px solid var(--line2); border-radius: 14px;
  background: #fff; color: var(--ink);
  padding: 12px 13px; font: inherit; font-size: 16px;
}
.report__field input:focus,
.report__field textarea:focus { outline: var(--ring); border-color: transparent; }
.report__field textarea { resize: vertical; min-height: 82px; }
.report__note {
  margin: 12px 0 0; color: var(--accent-p);
  font-size: var(--fs-sub); font-weight: 850;
}
.report__go {
  width: 100%; height: 48px; margin-top: 14px;
  border-radius: var(--r-btn); background: var(--accent-d); color: #fff;
  font-weight: 900; transition: var(--press);
}
.report__go:hover { background: #BC4C26; }
.report__go:active { transform: var(--sink); }
.report__go:disabled { opacity: .6; }

/* ── 장보기 — 마트별 카드 ───────────────────────────────
   마트를 세로로 쌓으면 다섯 곳을 견주려고 계속 스크롤해야 한다.
   한 장씩 옆으로 넘기면 **같은 자리에서 값만 바뀌어** 차이가 눈에 남는다. */
.cmp__lead {
  margin: 4px 2px 12px; font-size: var(--fs-name); font-weight: 700;
  line-height: 1.5; letter-spacing: -.02em;
}
.cmp__lead b { color: var(--accent-p); }

.marts-wrap {
  position: relative;
  margin: 0 -20px;
}

.marts {
  --mart-w: min(84%, 320px);
  display: flex; gap: 10px;
  padding: 0 max(20px, calc((100% - var(--mart-w)) / 2)) 4px;
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* 끌어서 넘길 때 글자가 선택되면 드래그가 끊긴다. */
  cursor: grab; user-select: none; touch-action: pan-y;
}
.marts.is-free { scroll-snap-type: none; }
.marts.is-dragging { cursor: grabbing; }
.marts:active { cursor: grabbing; }
.marts::-webkit-scrollbar { display: none; }

.mart {
  flex: 0 0 var(--mart-w); scroll-snap-align: center;
  display: flex; flex-direction: column;
  padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: var(--card); text-align: left;
  opacity: .52;
  transition: var(--press), box-shadow .14s, opacity .18s ease, filter .18s ease;
}
.mart.is-center,
.mart.is-pick {
  opacity: 1;
}
.mart:not(.is-center):not(.is-pick) {
  filter: saturate(.86);
}
.mart:active { transform: scale(.99); }
.mart:focus-visible { outline: var(--ring); outline-offset: 2px; }
/* 강조는 둘까지 — 제일 싼 곳(채운 배지)과 제일 가까운 곳(테두리 배지).
   다섯 장이 다 튀면 어디가 답인지 사라진다. */
.mart.is-best { border-color: var(--accent); background: #FFFBF9; }
.mart.is-near { border-color: var(--ok-d); background: #F7FBF8; }

.mart__h { display: flex; align-items: flex-start; gap: 8px; }
.mart__n { flex: 1; min-width: 0; }
.mart__n b {
  display: block; font-size: var(--fs-name); font-weight: 800; letter-spacing: -.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mart__n span { display: block; margin-top: 2px; font-size: var(--fs-sub); color: var(--dim); }
.mart__tag {
  flex: none; padding: 4px 9px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-style: normal; font-size: var(--fs-sub); font-weight: 800; white-space: nowrap;
}
/* 가까운 곳도 채운 배지로 세우되, 색을 달리해 '싼 곳'과 구별한다.
   주황 = 제일 쌈, 초록 = 제일 가까움. */
.mart__tag.is-near { background: var(--ok-d); }

/* 싼 곳과 가까운 곳이 다를 때, 그 차이를 숫자로 적는다 —
   3천 원 아끼자고 20분을 더 갈지는 사람이 정한다. */
.cmp__gap {
  margin: -6px 2px 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--bg); font-size: var(--fs-sub); line-height: 1.5; color: var(--dim);
}
.cmp__gap b { color: var(--ink); font-weight: 700; }

/* 고른 마트 — 아래 합계와 공유 글이 **이 카드 하나**를 따른다.
   그래서 고른 티가 확실해야 한다: 테두리를 굵히고 도장을 찍는다. */
/* 카드마다 품목 수가 달라 높이가 다르다. 도장이 각자 다른 자리에 있으면
   눈이 매번 찾아야 한다 — **카드 맨 아래에 고정**한다(`margin-top: auto`). */
.mart__pick {
  display: block; margin: 10px -14px -12px; padding: 10px 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  font-size: var(--fs-sub); font-weight: 700; color: var(--dim); text-align: center;
}
.mart.is-pick { border-width: 2px; padding: 13px 13px 11px; border-color: var(--accent); }
.mart.is-pick .mart__pick {
  margin: 10px -13px -11px; padding: 10px 13px;
  background: var(--accent); color: #fff;
  border-radius: 0 0 13px 13px; border-top-color: var(--accent);
}
.mart.is-pick .mart__pick::before { content: '✓ '; }
.mart.is-near.is-pick { border-color: var(--ok-d); }
.mart.is-near.is-pick .mart__pick { background: var(--ok-d); border-top-color: var(--ok-d); }

.mart__l { margin: 12px 0 0; padding: 0; list-style: none; }
.mart__l li {
  display: flex; align-items: baseline; gap: 6px;
  padding: 7px 0; border-top: 1px solid var(--line);
  font-size: var(--fs-sub);
}
.mart__l li b {
  flex: 1; min-width: 0; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mart__l li i { flex: none; font-style: normal; color: var(--dim); font-weight: 700; }
.mart__l li span { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
/* 없는 품목 — 지우지 않고 남긴다. 안 보이면 '다 있는 줄' 알고 간다.
   대체 문구('대신 델몬트 후레쉬컷 슬라이스 파인애플(836g) 5,150원')는 길다.
   한 줄에 밀어 넣으면 카드 밖으로 나가 안 보인다 — 아래로 접는다. */
.mart__l li.is-miss { flex-wrap: wrap; }
.mart__l li.is-miss b { flex: 1 1 100%; color: var(--dim); text-decoration: line-through; }
.mart__l li.is-miss span {
  flex: 1 1 100%; margin-top: 3px;
  color: var(--save); font-weight: 600; line-height: 1.45;
  white-space: normal; word-break: keep-all; overflow-wrap: anywhere;
}

.mart__s {
  display: flex; align-items: baseline; gap: 8px;
  margin: 10px 0 0; padding-top: 10px; border-top: 2px solid var(--line);
}
/* 품목 목록이 남는 자리를 먹어야 합계와 도장이 아래로 내려간다. */
.mart__l { flex: 1; }
.mart__s b { font-size: var(--fs-sub); font-weight: 700; color: var(--dim); }
.mart__s span {
  margin-left: auto; font-size: var(--fs-price); font-weight: 800;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}

/* 넘기는 수단 — 마우스로는 가로 스크롤을 못 굴린다. 카드 높이 중앙에 둔다. */
.nav { display: contents; }
.nav__a {
  position: absolute; top: 50%; z-index: 2;
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 6px 18px rgba(43, 42, 40, .16);
  transition: var(--press);
  transform: translateY(-50%);
}
.nav__a--prev { left: 8px; }
.nav__a--next { right: 8px; }
.nav__a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.nav__a:hover:not(:disabled) { border-color: var(--line2); background: var(--bg); }
.nav__a:active:not(:disabled) { transform: translateY(-50%) scale(.96); background: var(--line); }
.nav__a:disabled { opacity: .3; }

.dots { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 0 4px; }
.dots button {
  width: 22px; height: 22px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
}
.dots button::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--line2); transition: background-color .2s, transform .2s;
}
.dots button.is-on::before { background: var(--accent); transform: scale(1.25); }

/* ── 아래 문 ──────────────────────────────────────────── */
.docs { padding: 14px 16px 4px; display: flex; flex-wrap: wrap; gap: 7px; }
.docs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line);
  font-size: var(--fs-sub); font-weight: 600; color: var(--dim); text-decoration: none;
  transition: var(--press);
}
.docs a:hover { border-color: var(--line2); color: var(--ink); }
.docs a:active { background: var(--line); transform: var(--sink); }

.foot {
  max-width: 560px; margin: 0 auto;
  padding: 16px 16px 24px; text-align: center;
  font-size: var(--fs-sub); line-height: 1.6; color: var(--dim);
}

/* ── 위로 ──────────────────────────────────────────────
   담은 것 띠 위에 얹되 겹치지 않게 띄운다. 44 미만으로 만들지 않는다. */
.totop {
  position: fixed; right: 16px; bottom: calc(166px + var(--safe-b)); z-index: 25;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
  box-shadow: 0 4px 14px rgba(43, 42, 40, .14);
  transition: var(--press);
}
.totop[hidden] { display: none; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.totop:hover { border-color: var(--line2); background: var(--bg); }
.totop:active { transform: var(--sink); background: var(--line); }

/* ── 뺄까요? ───────────────────────────────────────────
   되돌리기 어려운 일에만 묻는다 — 담는 건 안 묻고, 뺄 때만 묻는다. */
.ask {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ask[hidden] { display: none; }
.ask__dim { position: absolute; inset: 0; background: rgba(43, 42, 40, .5); }
.ask__box {
  position: relative; width: 100%; max-width: 340px;
  padding: 22px 20px 16px; border-radius: 18px; background: var(--card);
  box-shadow: 0 24px 60px rgba(43, 42, 40, .3);
}
.ask__t { margin: 0; font-size: var(--fs-name); font-weight: 800; letter-spacing: -.02em; }
.ask__d {
  margin: 6px 0 0; font-size: var(--fs-sub); color: var(--dim); line-height: 1.5;
  word-break: keep-all; overflow-wrap: anywhere;
}
.ask__r { display: flex; gap: 8px; margin-top: 18px; }
.ask__no, .ask__ok {
  flex: 1; height: 48px; border-radius: var(--r-btn);
  font-size: var(--fs-sub); font-weight: 800; transition: var(--press);
}
.ask__no { background: var(--bg); color: var(--dim); }
.ask__no:hover { background: var(--line); color: var(--ink); }
.ask__no:active { transform: var(--sink); }
/* 빼는 쪽이 되돌리기 어려운 일이라 색을 준다. */
.ask__ok { background: var(--save); color: #fff; }
.ask__ok:hover { background: #A82722; }
.ask__ok:active { transform: var(--sink); }

/* ── 전체 메뉴 ─────────────────────────────────────────
   오른쪽에서 밀려 나온다. 갈래 이름을 붙여 훑기 쉽게. */
.menu { position: fixed; inset: 0; z-index: 160; }
.menu[hidden] { display: none; }
.menu__dim {
  position: absolute; inset: 0;
  background: rgba(43, 42, 40, .36);
}
.menu__box {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(92%, 390px); padding: max(10px, env(safe-area-inset-top, 0px)) 0 24px;
  background: #fff; overflow-y: auto;
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(43, 42, 40, .18);
}
.menu__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 0 12px 0 18px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.menu__head b { flex: 1; font-size: 19px; font-weight: 950; letter-spacing: 0; }
.menu__x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--bg); color: var(--dim); font-size: var(--fs-price);
  transition: var(--press);
}
.menu__x:hover { background: var(--line); color: var(--ink); }
.menu__x:active { background: var(--line); transform: var(--sink); }
.menu-hero {
  position: relative;
  margin: 14px 16px 12px;
  overflow: hidden;
  border-radius: 18px;
  min-height: 154px;
  background: var(--ink);
  box-shadow: 0 16px 38px rgba(43, 42, 40, .18);
}
.menu-hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.menu-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(25,22,19,.78), rgba(25,22,19,.42) 58%, rgba(25,22,19,.16));
}
.menu-hero div {
  position: absolute; left: 16px; right: 16px; bottom: 15px; z-index: 1;
  color: #fff;
}
.menu-hero b {
  display: block; font-size: 21px; font-weight: 950; line-height: 1.16;
  text-shadow: 0 1px 8px rgba(0,0,0,.22);
}
.menu-hero span {
  display: block; margin-top: 4px;
  font-size: 13px; font-weight: 750; opacity: .92;
}
.menu-member {
  margin: 0 16px 14px; padding: 0;
  border: 1px solid var(--line); border-radius: 18px;
  background: #fff; overflow: hidden;
  box-shadow: 0 5px 16px rgba(43, 42, 40, .06);
}
.menu-member[hidden] { display: none; }
.menu-member__card {
  display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center;
  padding: 14px;
  background: #fff; border: 0; box-shadow: none;
}
.menu-member__card::before {
  content: ''; grid-column: 1;
  width: 46px; height: 46px; border-radius: 16px;
  background: var(--accent-w) url('/home/logo.png') center / 25px 25px no-repeat;
  border: 1px solid rgba(215, 92, 49, .16);
}
.menu-member__card span { min-width: 0; }
.menu-member__card b {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 17px; font-weight: 950; letter-spacing: 0;
}
.menu-member__card em {
  display: block; margin-top: 2px;
  font-style: normal; color: var(--dim); font-size: var(--fs-sub); font-weight: 700;
}
.menu-member__card strong {
  color: var(--accent-p);
  font-size: 18px; font-weight: 950; font-variant-numeric: tabular-nums;
}
.menu-member__login {
  min-height: 36px !important; padding: 0 13px !important;
  border-radius: var(--r-pill) !important;
  background: var(--accent-d) !important; color: #fff !important;
  font-size: 14px !important; font-weight: 950 !important;
}
.menu-member__login::after { content: none !important; }
.menu-member__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; margin: 0; border-top: 1px solid var(--line);
}
.menu-member .menu-member__grid a {
  min-height: 62px; margin: 0; padding: 9px 5px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border-radius: 0; background: #fff;
  color: var(--ink); font-size: 13px; font-weight: 950;
  border: 0; box-shadow: none; text-align: center;
}
.menu-member .menu-member__grid a + a { border-left: 1px solid var(--line); border-top: 0; }
.menu-member .menu-member__grid a b { display: block; font-size: 14px; font-weight: 950; }
.menu-member .menu-member__grid a small {
  display: block; color: var(--dim); font-size: 11px; font-weight: 800; line-height: 1.2;
}
.menu-member .menu-member__grid a::after { content: none; }
.menu-member .menu-member__grid a:hover {
  background: var(--accent-w); color: var(--accent-p);
}
.menu__k {
  position: relative;
  width: calc(100% - 32px);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; margin: 16px 16px 8px; padding: 0 2px;
  border-radius: 0; background: transparent;
  border: 0;
  font-size: 18px; font-weight: 950; color: var(--ink);
  letter-spacing: 0; text-align: left;
}
.menu__k::before { content: none; }
.menu__k::after {
  content: ''; width: 8px; height: 8px; margin-right: 3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .14s ease;
}
.menu__k[aria-expanded="false"]::after {
  transform: rotate(-45deg);
}
.menu__group[hidden] { display: none; }
.menu__group {
  display: block;
  margin: 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(43, 42, 40, .05);
}
.menu__box a {
  position: relative;
  display: flex; align-items: center; min-height: 56px;
  margin: 0; padding: 0 42px 0 16px;
  border: 0;
  border-radius: 0;
  background: #fff; color: var(--ink);
  font-size: 16px; font-weight: 900; text-decoration: none;
  box-shadow: none;
  transition: var(--press);
}
.menu__box a + a { border-top: 1px solid var(--line); }
.menu__box a::after {
  content: ''; position: absolute; right: 15px; top: 50%;
  width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid #BDB7AD; border-bottom: 2px solid #BDB7AD;
  transform: rotate(-45deg);
}
.menu__box a:hover {
  background: #FAFAF8; color: var(--ink);
}
.menu__box a:hover::after { border-color: var(--accent-p); }
.menu__box a:active { background: var(--line); }
.menu__soon {
  display: block; padding: 6px 20px 0;
  font-size: var(--fs-sub); color: var(--dim); line-height: 1.6;
}

.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b));
  transform: translateX(-50%); z-index: 50;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; font-size: var(--fs-sub); font-weight: 700;
}
.toast[hidden] { display: none; }
