/* 모양 규칙: 토스(TDS) 느낌. 회색 바탕 위에 흰 카드, 테두리·그림자 없이 바탕색 차이와 가는 실선으로 나눈다.
   강조색은 파랑 하나(누르는 것, 아낀 돈). 채운 파랑은 흰 글자와 4.5:1 이 넘도록 토스 블루(#3182F6)보다 한 단계 짙게 잡았다.
   넘친 돈만 붉게 쓴다. 글꼴은 Pretendard, 굵기는 700 까지. 숫자는 폭이 같은 숫자(tabular-nums)로 맞춘다. */
:root {
  color-scheme: light;
  --bg: #f2f4f6;
  --surface: #ffffff;
  --fill: #f2f4f6; /* 카드 위에 놓는 옅은 조각 */
  --fill-2: #e5e8eb; /* 그 조각 위에 올리거나 눌렀을 때 */
  --fill-bg: #e8ebed; /* 바탕 위에 바로 놓는 옅은 조각 */
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #626d7a; /* 글자는 이 단계까지만. 카드와 바탕 위에서 4.5:1 이 넘는다 */
  --ink-4: #b0b8c1; /* 글자가 아닌 선과 테두리 */
  --line: #e5e8eb;
  --accent: #2171ea;
  --accent-press: #1b64da;
  --accent-ink: #ffffff;
  --accent-text: #1b64da;
  --accent-wash: #e8f3ff;
  --bad: #d22030;
  --bad-fill: #f04452;
  --bad-wash: #ffeeee;
  --glow: rgba(0, 29, 58, 0.08);
  --r-card: 24px;
  --r-btn: 16px;
  --r-chip: 999px;
  --r-pill: 999px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17171c;
    --surface: #202027;
    --fill: #2c2c35;
    --fill-2: #3c3c47;
    --fill-bg: #26262d;
    --ink: #ececef;
    --ink-2: #c3c3c6;
    --ink-3: #9e9ea7;
    --ink-4: #5e5e69;
    --line: #2c2c35;
    --accent: #2171ea;
    --accent-press: #1b64da;
    --accent-ink: #ffffff;
    --accent-text: #64a8ff;
    --accent-wash: #1c2a40;
    --bad: #fb8890;
    --bad-fill: #f04452;
    --bad-wash: #3c1e22;
    --glow: transparent;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17171c;
  --surface: #202027;
  --fill: #2c2c35;
  --fill-2: #3c3c47;
  --fill-bg: #26262d;
  --ink: #ececef;
  --ink-2: #c3c3c6;
  --ink-3: #9e9ea7;
  --ink-4: #5e5e69;
  --line: #2c2c35;
  --accent: #2171ea;
  --accent-press: #1b64da;
  --accent-ink: #ffffff;
  --accent-text: #64a8ff;
  --accent-wash: #1c2a40;
  --bad: #fb8890;
  --bad-fill: #f04452;
  --bad-wash: #3c1e22;
  --glow: transparent;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  word-break: keep-all;
}
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.ic { flex: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 20; padding: 10px 16px; border-radius: var(--r-btn); background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }

/* 맨 위 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; padding: 0 4px; }
.mark { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.mark i { font-style: normal; color: var(--accent); }
.note { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-chip); background: var(--fill-bg); color: var(--ink-2); font-size: 13px; font-weight: 500; white-space: nowrap; }
.note:empty { display: none; }

/* 좁은 화면은 한 줄, 넓은 화면은 음식 옆에 장보기 목록 */
.cols { display: grid; gap: 20px; padding-bottom: 32px; }
.col-main, .col-side { min-width: 0; }

/* 누르는 것. 누르면 살짝 작아진다. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-btn);
  font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, transform 0.1s, opacity 0.15s, filter 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.4; cursor: default; transform: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:not([disabled]):active { background: var(--accent-press); }
.btn.weak { background: var(--accent-wash); color: var(--accent-text); }
.btn.ghost { background: var(--fill); color: var(--ink-2); }
.btn.ghost:active { background: var(--fill-2); }
.btn.small { height: 42px; padding: 0 18px; border-radius: 12px; }
.linkish { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; background: none; border: 0; padding: 0; color: var(--ink-3); font-size: 13px; font-weight: 600; cursor: pointer; transition: color 0.15s, background-color 0.15s, transform 0.1s; }
.linkish .ic { transition: transform 0.15s; }
[aria-expanded="true"] > .ic { transform: rotate(180deg); }
.btn:focus-visible, .linkish:focus-visible, .chip:focus-visible, .stepper button:focus-visible,
.line-link:focus-visible, .shop:focus-visible, .dock:focus-visible, .mark:focus-visible, .skip:focus-visible, .check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.chips, .prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { flex: 1 1 0; padding: 0 6px; } /* 한 줄을 같은 너비로 나눠 채운다 */
.chip { height: 40px; padding: 0 16px; border: 0; border-radius: var(--r-chip); background: var(--fill); color: var(--ink-2); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color 0.15s, color 0.15s, transform 0.1s; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* 예산과 사람 수 */
.ask { padding: 28px 22px 26px; border-radius: var(--r-card); background: var(--surface); }
.eyebrow { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-chip); background: var(--accent-wash); color: var(--accent-text); font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.ask h1 { margin-top: 16px; font-size: clamp(28px, 7.2vw, 40px); line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lede { margin-top: 14px; max-width: 34em; color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.field { min-width: 0; }
.label { display: block; color: var(--ink-3); font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.help { color: var(--ink-3); font-size: 13px; margin-top: 10px; }
/* 큰 숫자 아래에 가는 줄 하나. 눌러서 쓰는 동안 줄이 파랗다. */
.money { display: flex; align-items: baseline; gap: 2px; height: 64px; margin-bottom: 14px; border-bottom: 2px solid var(--ink-4); cursor: text; transition: border-color 0.15s; }
.money:focus-within { border-color: var(--accent); }
.money input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; caret-color: var(--accent); font-size: 38px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.money input::placeholder { color: var(--ink-4); opacity: 1; }
.money span { font-size: 28px; font-weight: 700; }
/* 숫자 바로 뒤에 "원"이 붙게 칸을 글자 너비로 줄인다. 못 하는 브라우저에서는 "원"이 오른쪽 끝에 선다. */
@supports (field-sizing: content) {
  .money input { flex: none; field-sizing: content; min-width: 1ch; max-width: calc(100% - 1.6em); }
}
.stepper { display: inline-flex; align-items: center; gap: 4px; height: 64px; }
.stepper button { width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--fill); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: background-color 0.15s, transform 0.1s, opacity 0.15s; }
.stepper button:not([disabled]):active { background: var(--fill-2); transform: scale(0.94); }
.stepper button[disabled] { opacity: 0.35; cursor: default; }
.stepper output { min-width: 84px; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.prefs { margin-top: 24px; }
.delivery { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 16px; }
.delivery input { width: 6em; padding: 2px 4px; border: 0; border-bottom: 2px solid var(--ink-4); border-radius: 0; outline: 0; background: none; color: var(--ink); text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color 0.15s, box-shadow 0.15s; }
.delivery input:focus { border-color: var(--accent); box-shadow: 0 2px 0 0 var(--accent); }

/* 예상가 알림 */
.sample-bar { margin-top: 14px; padding: 12px 16px; border-radius: var(--r-btn); background: var(--fill-bg); color: var(--ink-2); font-size: 13px; }
.disclosure { margin-top: 8px; padding: 0 16px; color: var(--ink-2); font-size: 13px; }

/* 메뉴 */
.list-head { margin: 36px 4px 14px; }
.list-head h2, .cart h2 { font-size: 22px; line-height: 1.35; font-weight: 700; letter-spacing: -0.03em; }
.block-sub { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.none { padding: 20px 0; color: var(--ink-2); }
.empty { display: grid; justify-items: start; gap: 14px; padding: 24px; background: var(--surface); border-radius: var(--r-card); color: var(--ink-2); }
.menus { display: grid; gap: 14px; }
.menu { background: var(--surface); border-radius: var(--r-card); padding: 22px; transition: box-shadow 0.2s, transform 0.2s; }
.menu.chosen { box-shadow: inset 0 0 0 2px var(--accent), 0 16px 32px -24px var(--glow); }
.menu-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.menu-label { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--fill); color: var(--ink-2); font-size: 12px; font-weight: 700; }
.menu-name h3 { margin-top: 10px; font-size: 20px; line-height: 1.35; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.menu-why { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.menu-facts { display: flex; flex-wrap: wrap; gap: 2px 0; margin-top: 8px; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.menu-facts li + li::before { content: "·"; margin: 0 6px; }
.menu-cost { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.menu-cost strong { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-cost span { margin-top: 4px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.menu-cost .bad { color: var(--bad); font-weight: 700; }
.menu-save { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 14px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-text); font-size: 14px; }
.menu-save b { font-weight: 700; font-variant-numeric: tabular-nums; }
.bought { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.bought span { margin-right: 4px; }
.chip.small { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px 0 14px; font-size: 13px; background: var(--surface); color: var(--ink-2); }
/* 좁은 화면에서는 두 단추를 나란히 채우고, 자리가 모자라면 두 줄로 내린다. */
.menu-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.menu-foot > * { flex: 1 1 0; }
.menu-foot .btn, .menu-foot .linkish { height: 48px; padding: 0 12px; border-radius: 12px; font-size: 15px; white-space: nowrap; }
.menu-foot .linkish { justify-content: center; background: var(--fill); color: var(--ink-2); }
.menu-foot .linkish:active { background: var(--fill-2); transform: scale(0.97); }
.menu-body { margin-top: 16px; border-top: 1px solid var(--line); }
.menu-dishes { padding: 16px 0 4px; display: grid; gap: 10px; }
.menu-dishes > li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 10px; font-size: 14px; }
.menu-dishes b { font-weight: 700; }
.menu-dishes span { color: var(--ink-2); }
.menu-dishes + .lines { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 4px; }
.dish-more { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -6px; font-size: 13px; }
.dish-more span { color: var(--ink-3); }
.dish-more .linkish { min-height: 36px; }
.recipe { grid-column: 1 / -1; display: grid; gap: 10px; margin-bottom: 8px; padding: 16px; background: var(--fill); border-radius: var(--r-btn); color: var(--ink-2); font-size: 14px; }
.recipe b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; }
.recipe-steps { display: grid; gap: 8px; margin: 0; padding-left: 1.5em; color: var(--ink); }
.recipe-steps small { display: block; margin-top: 2px; color: var(--ink-2); font-size: 13px; }
.recipe-note { color: var(--ink-2); font-size: 13px; }
.btn.wide { width: 100%; height: 52px; margin-top: 14px; }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 36px 0 12px; padding: 20px 22px; background: var(--surface); border-radius: var(--r-card); }
.ai-head h2 { font-size: 18px; }
.ai-head + .block-sub { margin: 0 4px 12px; }
.ai-error { margin-bottom: 12px; padding: 12px 16px; border-radius: var(--r-btn); background: var(--bad-wash); color: var(--bad); font-size: 14px; }

/* 재료 한 줄 */
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.line-img { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--fill); }
.line-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.line-name { font-size: 16px; font-weight: 700; }
.line-prod { color: var(--ink-3); font-size: 13px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.line-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.line-cost { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-link { color: var(--accent-text); font-size: 13px; font-weight: 700; text-decoration: none; text-underline-offset: 3px; white-space: nowrap; padding: 4px 0; }
.sub:not(.on) .line-cost { color: var(--ink-3); font-weight: 600; }
.check { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
/* 체크는 동그라미. 고르면 파랗게 차고 흰 표시가 들어간다. */
.check input {
  flex: none; appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 50%;
  background: transparent center / 16px 16px no-repeat; box-shadow: inset 0 0 0 2px var(--ink-4); cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.check input:checked {
  background-color: var(--accent); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 12.5l4.2 4.2L18.5 8' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input:active { transform: scale(0.9); }
@media (forced-colors: active) {
  .check input { appearance: auto; -webkit-appearance: auto; background: none; box-shadow: none; }
}
.lines-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.lines-head span { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.tag { padding: 2px 7px; border-radius: 6px; background: var(--accent-wash); color: var(--accent-text); font-size: 12px; font-weight: 700; }
.tag.soft { background: var(--fill); color: var(--ink-2); }

/* 장보기 목록. 흰 카드 안에서 가는 실선으로 줄을 나눈다. */
.block { background: var(--surface); border-radius: var(--r-card); }
.cart { padding: 26px 22px 28px; }
.cart .line { border-bottom: 1px solid var(--line); }
.cart .lines > .line:last-child { border-bottom: 0; }
.cart .lines-head { border-top: 1px solid var(--line); }
.cart .line.done .line-name { color: var(--ink-3); }
.meter { margin-top: 16px; }
.meter-nums { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
.meter-nums strong { font-size: 36px; line-height: 1.25; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.meter-nums span { color: var(--ink-3); font-size: 14px; }
.meter-bar { height: 8px; margin-top: 12px; border-radius: var(--r-pill); background: var(--fill); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.meter-left { margin-top: 10px; color: var(--accent-text); font-size: 14px; font-weight: 700; }
.meter.bad .meter-bar i { background: var(--bad-fill); }
.meter.bad .meter-left { color: var(--bad); }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart .menu-save { margin-top: 14px; }
.chosen-dishes { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 14px; }
.chosen-dishes li { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--r-chip); background: var(--fill); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.progress { margin: 4px 0 8px; padding: 14px 0 6px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.progress .meter-bar { height: 6px; margin-top: 8px; }
.shop { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 14px; border-radius: var(--r-chip); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 0.15s, transform 0.1s; }
.shop:active { transform: scale(0.96); background: var(--accent-press); }
.shop.done { background: var(--accent-wash); color: var(--accent-text); }
.cart-actions { display: flex; margin-top: 16px; }
.cart-actions .btn { flex: 1; }
.cart-note, .legal { font-size: 13px; }
.cart-note { margin-top: 16px; color: var(--ink-3); }
.legal { margin-top: 14px; padding: 0 8px; color: var(--ink-2); }

.foot { display: grid; gap: 6px; max-width: 46em; padding: 28px 4px 40px; color: var(--ink-3); font-size: 12px; }

/* 좁은 화면 맨 아래에 붙는 합계. 둘레의 바탕색 번짐이 뒤에 깔린 글을 흐리게 가린다. */
.dock { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; padding: 0 20px; border-radius: var(--r-btn); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; box-shadow: 0 6px 14px 14px var(--bg); transition: background-color 0.15s, transform 0.1s; }
.dock:active { background: var(--accent-press); transform: scale(0.98); }
.dock span { display: inline-flex; align-items: center; gap: 8px; }
.dock strong { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dock.bad strong::after { content: " 넘음"; font-size: 13px; font-weight: 600; }
.wrap { padding-bottom: 96px; } /* 좁은 화면에서 맨 아래 합계 띠가 끝을 가리지 않게 */

/* 마우스를 올렸을 때. 손가락으로 누르는 화면에서는 올린 모양이 남지 않게 뺀다. */
@media (hover: hover) {
  .btn.primary:not([disabled]):hover, .dock:hover, .shop:hover { background: var(--accent-press); }
  .shop.done:hover { background: var(--accent-wash); filter: brightness(0.96); }
  .btn.weak:not([disabled]):hover { filter: brightness(0.97); }
  .btn.ghost:hover, .chip:not([aria-pressed="true"]):hover, .stepper button:not([disabled]):hover, .menu-foot .linkish:hover { background: var(--fill-2); }
  .chip[aria-pressed="true"]:hover { background: var(--accent-press); }
  .linkish:hover { color: var(--ink); }
  .line-link:hover { text-decoration: underline; }
  .menu:not(.chosen):hover { box-shadow: 0 8px 24px var(--glow); }
}

@media (min-width: 620px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .ask { padding: 44px 40px 36px; }
  .fields { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; }
  .menu { padding: 26px; }
  /* 넓은 화면에서는 단추를 제 너비로 두고 양 끝에 놓는다. */
  .menu-foot { flex-wrap: nowrap; align-items: center; justify-content: space-between; }
  .menu-foot > * { flex: none; }
  .menu-foot .btn { height: 46px; padding: 0 22px; }
  .menu-foot .linkish, .menu-foot .linkish:hover, .menu-foot .linkish:active { height: 46px; padding: 0; background: none; transform: none; }
  .menu-foot .linkish { color: var(--ink-3); }
  .cart { padding: 30px 24px 30px; }
}
@media (min-width: 980px) {
  .top { height: 72px; }
  .wrap { padding-bottom: 0; }
  .cols { grid-template-columns: minmax(0, 1fr) 392px; gap: 24px; align-items: start; padding-bottom: 24px; }
  .col-side { position: sticky; top: 16px; max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: thin; }
  .dock { display: none; }
}
