/* 있는걸로 — 흰 카드 + 보관 칸별 옅은 색. 색은 재료 칩과 주요 버튼에만 쓴다. */
:root {
  --ground: #f3f7f6; --surface: #ffffff; --raised: #e9f0ee; --border: #e1e9e7; --rule: #edf2f0; --control: #ccd8d5;
  --text: #17211f; --muted: #52605c;
  --accent: #0e6f63; --accent-soft: #d6f0ea; --accent-ink: #0a4a42;
  --butter: #ffdf85; --butter-ink: #3d2d00;
  --cold-bg: #d6f0ea; --cold-ink: #0a4a42;
  --freeze-bg: #d9ebfc; --freeze-ink: #123f73;
  --room-bg: #fdf0c7; --room-ink: #54400f;
  --sauce-bg: #fde0d6; --sauce-ink: #7a2e14;
  --warn-bg: #fff0c2; --warn-ink: #7a4a00;
  --radius-card: 16px; --radius-control: 10px;
  --gap: 16px; --pad: 20px;
  --fs-title: 28px; --fs-section: 20px; --fs-body: 16px; --fs-small: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-body)/1.5 "Pretendard Variable", Pretendard, system-ui, "Malgun Gothic", sans-serif; word-break: keep-all; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, a { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { padding: 32px 16px; position: sticky; top: 0; height: 100dvh; }
.mark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); padding: 0 12px 24px; }
.mark-phone { display: none; }
#nav { display: grid; gap: 4px; }
.nav-btn { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 12px; border-radius: var(--radius-control); color: var(--muted); width: 100%; transition: background .15s; }
.nav-btn:hover { background: var(--raised); }
.nav-btn[aria-current="page"] { background: #dfe9e6; color: var(--text); font-weight: 600; }
.nav-btn span.label { display: inline-flex; align-items: center; gap: 10px; }
.nav-btn .ico { font-size: 20px; line-height: 1; }
.count { font-size: var(--fs-small); font-variant-numeric: tabular-nums; }

main { padding: 32px 32px 64px; max-width: 1120px; width: 100%; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1 { font-size: var(--fs-title); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.finding { margin-top: 4px; font-size: var(--fs-body); }
.finding b { font-weight: 600; color: var(--accent-ink); }
h2 { font-size: var(--fs-section); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-control); font-weight: 600; white-space: nowrap; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #0b5c52; }
.btn-soft { background: var(--raised); color: var(--text); }
.btn-soft:hover { background: #dfe9e6; }
.btn-buy { background: var(--accent-soft); color: var(--accent-ink); }
.btn-buy:hover { background: #c3e7df; }
.btn-text { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-weight: 400; padding: 0 4px; }
.btn-wide { width: 100%; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.col { display: grid; gap: var(--gap); min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--pad); min-width: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head .num { color: var(--muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 8px 2px; border-radius: 12px; font-size: 13px; font-weight: 500; line-height: 1.2; transition: transform .1s; }
.tile:active { transform: scale(.95); }
.te { font-size: 28px; line-height: 1.1; }
.tn { word-break: keep-all; text-align: center; }
.tile small { position: absolute; top: 4px; right: 4px; font-size: 11px; font-weight: 700; background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 0 4px; }
.tile-ghost { background: var(--surface); color: var(--muted); border: 1.5px dashed var(--control); }
.tile-ghost .te { opacity: .5; }
.tile-plus { background: var(--raised); color: var(--accent-ink); font-weight: 600; }
.tile-plus .te { font-size: 24px; }
.z-냉장 { background: var(--cold-bg); color: var(--cold-ink); }
.z-냉동 { background: var(--freeze-bg); color: var(--freeze-ink); }
.z-실온 { background: var(--room-bg); color: var(--room-ink); }
.z-양념 { background: var(--sauce-bg); color: var(--sauce-ink); }
.zdot { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; margin-right: 8px; font-size: 18px; vertical-align: middle; }
.banner { background: var(--accent); color: #fff; border-radius: var(--radius-card); padding: var(--pad); margin-bottom: var(--gap); }
.banner-title { font-size: 20px; font-weight: 700; color: inherit; margin-bottom: 12px; }
.banner-start { background: var(--butter); color: var(--butter-ink); }
.banner-start .banner-title { margin-bottom: 4px; }
.banner-start p { margin-bottom: 14px; }
.banner-art { font-size: 44px; line-height: 1.2; margin-bottom: 8px; }
.banner .acts, .hero .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.minis { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--pad) * -1); padding-right: var(--pad); }
.minis::-webkit-scrollbar { display: none; }
.mini { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 96px; min-height: 92px; padding: 8px 4px; background: #fff; color: var(--text); border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.me { font-size: 32px; line-height: 1.1; }
.hero { display: flex; align-items: center; gap: 16px; background: var(--butter); color: var(--butter-ink); border-radius: var(--radius-card); padding: var(--pad); margin-bottom: var(--gap); }
.hero-art { flex: none; display: grid; place-items: center; width: 104px; height: 104px; background: #fff; border-radius: 50%; font-size: 60px; line-height: 1; }
.hero-text { min-width: 0; flex: 1; }
.hero-label { font-size: 14px; font-weight: 600; }
.hero h2 { font-size: 24px; font-weight: 700; margin: 0 0 2px; }
.hero p { margin: 0; }
.hero .acts { margin-top: 12px; }
.btn-dark { background: var(--butter-ink); color: #fff; }
.btn-white { background: #fff; color: var(--butter-ink); }
.thumb { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 26px; line-height: 1; }
.th0, .th5, .th9 { background: var(--cold-bg); } .th1, .th6 { background: var(--sauce-bg); } .th2, .th7 { background: var(--room-bg); } .th3, .th8 { background: var(--freeze-bg); } .th4 { background: var(--raised); }
.with-thumb { display: flex; align-items: center; gap: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 12px 8px; }
.gal { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; text-align: center; line-height: 1.25; min-height: 44px; }
.search { margin-bottom: 12px; }
.total { font-size: var(--fs-small); color: var(--muted); margin: -4px 0 12px; }
.total b { color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.ing-name { min-width: 0; }
.sub { display: block; font-size: 13px; color: var(--muted); }
.sub.must { color: var(--sauce-ink); font-weight: 600; }
.tip { background: var(--room-bg); color: var(--room-ink); border-radius: var(--radius-control); padding: 12px 14px; margin-bottom: 16px; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: var(--gap); }
.stat { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 14px; font-size: var(--fs-small); }
.stat b { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.se { font-size: 22px; line-height: 1.2; }
.st-ok { background: var(--cold-bg); color: var(--cold-ink); } .st-low { background: var(--room-bg); color: var(--room-ink); } .st-out { background: var(--sauce-bg); color: var(--sauce-ink); }
.empty-note { color: var(--muted); font-size: var(--fs-small); min-height: 44px; display: flex; align-items: center; }

.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.rows > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); min-height: 64px; }
.rows > li:first-child { border-top: 0; }
.row-main { flex: 1; min-width: 0; text-align: left; min-height: 44px; }
.row-title { display: block; font-weight: 600; }
.row-sub { display: block; font-size: var(--fs-small); color: var(--muted); }
.row-sub b { font-weight: 600; color: var(--sauce-ink); }
.row-actions { display: flex; gap: 6px; flex: none; }
.more { margin-top: 8px; }

.unlock .row-title { font-size: 18px; }
.level { display: flex; flex: none; background: var(--raised); border-radius: var(--radius-control); padding: 2px; }
.level button { min-height: 40px; min-width: 44px; padding: 0 8px; border-radius: 10px; font-size: var(--fs-small); color: var(--muted); }
.level button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; }
.level button.low[aria-pressed="true"] { background: var(--warn-bg); color: var(--warn-ink); }


.notice { margin-top: 16px; font-size: 13px; color: var(--muted); }
.foot-acts { margin-top: 24px; }

/* 시트 */
dialog { border: 0; padding: 0; background: var(--surface); color: var(--text); border-radius: var(--radius-card); width: min(560px, calc(100vw - 32px)); max-height: 86vh; max-height: 86dvh; box-shadow: 0 12px 40px rgba(0,0,0,.18); overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; animation: rise .18s ease-out; }
dialog::backdrop { background: rgba(20,24,20,.4); }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--pad) 8px; }
.sheet-head h2 { font-size: 22px; }
.close { min-width: 44px; min-height: 44px; margin-right: -10px; color: var(--muted); display: grid; place-items: center; }
.close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sheet-body { padding: 4px var(--pad) var(--pad); overflow-y: auto; flex: 1; }
.sheet-foot { padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.field { display: flex; gap: 8px; margin-bottom: 8px; }
.field input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
.field input::placeholder { color: #6a7068; }
.help { font-size: var(--fs-small); color: var(--muted); margin-bottom: 16px; }
.group { margin-bottom: 18px; }
.group h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.meta { color: var(--muted); margin-bottom: 12px; }
.callout { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius-control); padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }
.callout.ready { background: var(--raised); color: var(--text); }
.ing > li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; border-top: 1px solid var(--rule); padding: 4px 0; }
.ing > li:first-child { border-top: 0; }
.ing .amt { color: var(--muted); font-size: var(--fs-small); margin-left: 6px; }
.ing .st { color: var(--muted); font-size: var(--fs-small); flex: none; }
.steps { counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; }
.steps li::before { content: counter(s); font-weight: 700; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.state-btns { display: grid; gap: 8px; }

#toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: #2a2e29; color: #fff; padding: 10px 10px 10px 16px; border-radius: 14px; display: flex; align-items: center; gap: 8px; z-index: 50; width: max-content; max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
#toast[hidden] { display: none; }
#toast button { color: #ffdf85; font-weight: 600; min-height: 36px; padding: 0 8px; white-space: nowrap; }

@media (max-width: 760px) {
  .shell { display: block; }
  .side { position: fixed; inset: auto 0 0 0; height: auto; padding: 4px 8px calc(4px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border); z-index: 20; }
  .side .mark { display: none; }
  #nav { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
  .nav-btn { flex-direction: column; justify-content: center; min-height: 54px; padding: 0; font-size: 13px; }
  .nav-btn:hover { background: none; }
  .nav-btn[aria-current="page"] { background: none; color: var(--accent-ink); }
  .nav-btn span.label { flex-direction: column; gap: 2px; }
  .nav-btn .count { display: none; }
  main { padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); }
  .mark-phone { display: block; font-size: 16px; padding: 0 0 8px; }
  .head { margin-bottom: 16px; }
  h1 { font-size: 24px; }
  :root { --pad: 16px; --gap: 12px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--radius-card) var(--radius-card) 0 0; max-height: 90vh; max-height: 90dvh; }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 맞춤 추천 슬라이드 */
.promo { background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius-card); padding: 16px; margin-bottom: var(--gap); min-width: 0; }
.promo-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.promo-head h2 { font-size: 17px; font-weight: 700; line-height: 1.35; }
.promo-head .btn { flex: none; }
.promo-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-control); }
.promo-track::-webkit-scrollbar { display: none; }
.promo-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; gap: 16px; background: var(--surface); color: var(--text); padding: 16px; min-width: 0; }
.promo-art { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--raised); font-size: 40px; line-height: 1; }
.promo-text { min-width: 0; display: grid; gap: 2px; }
.promo-text b { font-size: 18px; font-weight: 700; }
.promo-text span { font-size: var(--fs-small); color: var(--muted); }
.promo-text .promo-go { color: var(--accent); font-weight: 600; margin-top: 4px; }
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.promo-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--control); }
.promo-dots i.on { background: var(--accent); }
.promo .notice { margin-top: 8px; font-size: 12px; color: var(--accent-ink); }
.intro-group { margin-top: 16px; }
.intro-group h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.intro-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.btn[disabled] { opacity: .45; cursor: default; }

/* 재료 양·인분·요리하기 */
.tile small.qty { background: var(--accent-soft); color: var(--accent-ink); }
.qty-hint { margin: 12px 0 0; }
.qty-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.qty-row input { width: 88px; min-height: 48px; padding: 0 8px; text-align: center; font-size: 20px; font-weight: 700; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
.qty-btn { min-width: 48px; min-height: 48px; padding: 0; font-size: 22px; }
.qty-units { display: flex; gap: 6px; }
.qty-note { margin: 8px 0 0; }
.serv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.serv-ctl { display: flex; align-items: center; gap: 10px; }
.serv-ctl b { min-width: 52px; text-align: center; font-size: 17px; }
.cook-foot { display: grid; gap: 8px; }
.th10 { background: var(--warn-bg); }

/* 11/11 — 로고 Eat는걸로 */
.mark { color: var(--text); }
.mark-eat { color: var(--accent); font-weight: 900; letter-spacing: -0.01em; margin-right: 1px; }

/* 첫 화면 유형·나이: 작은 폰·카톡 안 브라우저에서도 한 화면에 */
.intro-body .meta { font-size: 14px; }
.intro-body .intro-group { margin-top: 12px; }
.intro-body .intro-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.intro-body .intro-ages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.intro-body .filter { min-height: 40px; padding: 0 4px; justify-content: center; font-size: 15px; white-space: nowrap; }
@media (max-height: 640px) { .intro-body .filter { min-height: 36px; } .sheet-head h2 { font-size: 19px; } }

/* 기본 요리 + 바꿔 먹기 */
.fam { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fam-chip { font-size: 13px; line-height: 1.3; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.fam-chip b { font-weight: 700; }
.fam-up { background: var(--warn-bg); color: var(--warn-ink); }
.fam-list li { align-items: center; }
.fam-list .btn { min-height: 36px; flex: none; }
.fam-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.mine-tag { font-size: 12px; font-weight: 600; color: var(--accent); }

/* 산 날·보관 기한 */
.tile .soon { display: block; font-size: 11px; font-weight: 700; color: #a3200f; }
.soon-card { border-color: #f3c2b4; background: #fff7f4; margin-bottom: var(--gap); }
.soon-sub { color: #a3200f; }
.date-row { display: flex; gap: 8px; }
.date-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
.keep-tip { margin-top: 8px; padding: 10px 12px; border-radius: var(--radius-control); background: var(--raised); font-size: 15px; }
.keep-tip .sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* 레시피북·올리기 */
.book-banner { margin-bottom: var(--gap); }
.share-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.upload { display: grid; gap: 12px; }
.ocr-box { display: grid; gap: 6px; padding: 12px; border-radius: var(--radius-control); background: var(--accent-soft); }
.ocr-pick { cursor: pointer; }
.fld { display: grid; gap: 4px; min-width: 0; }
.fld span { font-weight: 600; font-size: 15px; }
.fld small { font-weight: 400; color: var(--muted); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); font: inherit; color: inherit; }
.fld textarea { resize: vertical; line-height: 1.5; }
.fld-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
@media (max-width: 720px) { .nav-btn { font-size: 12px; } }

/* 11/11 — 위쪽 로그인 버튼 */
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 8px; }
.topbar .mark-phone { margin-right: auto; padding: 0; }
.acct-btn { min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; max-width: 50%; overflow: hidden; text-overflow: ellipsis; }
.acct-btn.on { background: var(--accent-soft); border-color: transparent; }
.seg { margin: 4px 0; }

/* 첫 화면: 어떻게 지내세요? 화면 전체 */
body.intro-mode .side, body.intro-mode .topbar { display: none; }
body.intro-mode main { padding-bottom: 32px; }
.intro-page { max-width: 560px; margin: 0 auto; padding: 8px 0 24px; display: grid; gap: 14px; }
.intro-logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.intro-title { font-size: clamp(32px, 9vw, 44px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
.intro-lead { font-size: 18px; color: var(--muted); line-height: 1.5; }
.intro-h { font-size: 20px; font-weight: 700; margin-top: 10px; }
.who-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.who-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 0 16px; border-radius: var(--radius-card); background: var(--surface); border: 2px solid var(--border); font-size: 20px; font-weight: 700; text-align: left; }
.who-card .who-em { font-size: 34px; line-height: 1; }
.who-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.who-card[aria-pressed="true"], .age-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.age-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.age-chip { min-height: 56px; border-radius: var(--radius-control); background: var(--surface); border: 2px solid var(--border); font-size: 19px; font-weight: 600; }
.intro-go { position: sticky; bottom: 0; display: grid; gap: 4px; padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--ground) 30%); margin-top: 6px; }
.btn-big { min-height: 58px; font-size: 19px; border-radius: 14px; width: 100%; }
.btn-big:disabled { background: var(--control); color: var(--muted); }
.intro-login { text-align: center; font-size: 16px; }
.intro-note { text-align: center; font-size: 14px; color: var(--muted); }
@media (min-width: 761px) { .topbar { position: absolute; top: 28px; right: 32px; } main { position: relative; } .who-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .who-card:last-child:nth-child(odd) { grid-column: auto; } }

/* 11/11 오후 — 첫 화면(로그인) · 가입 · 찾기 */
.gate { max-width: 480px; margin: 0 auto; padding: 8px 0 32px; display: grid; gap: 16px; }
.gate-top { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.gate-logo { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-left: auto; }
.gate-top:not(:has(.back)) .gate-logo { margin: 12px 0 0; font-size: 30px; }
.gate-title { font-size: clamp(34px, 10vw, 48px); line-height: 1.12; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; }
.gate-h { font-size: 30px; letter-spacing: -0.03em; font-weight: 800; }
.gate-lead { font-size: 17px; line-height: 1.55; color: var(--muted); }
.gate-keep { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius-card); background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; line-height: 1.5; }
.gate-keep b { font-size: 16px; }
.gate-form { display: grid; gap: 12px; }
.gate-form .form-msg:empty { display: none; }
.gate-form .form-msg { color: var(--accent-ink); font-weight: 600; }
.gate-links { display: grid; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); margin-top: 4px; }
.link { background: none; border: 0; padding: 4px 2px; min-height: 32px; font: inherit; font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.back { text-decoration: none; font-size: 15px; padding-left: 0; }
.addr { border: 0; padding: 0; margin: 0; min-width: 0; }
.addr legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.addr-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.addr-row select, .addr-row input { min-width: 0; width: 100%; }
.terms { font-size: 13px; color: var(--muted); line-height: 1.6; }
.terms summary { cursor: pointer; font-weight: 600; color: var(--text); min-height: 32px; }
.callout.warn { background: var(--raised); color: var(--text); border-left: 4px solid var(--accent); font-weight: 500; line-height: 1.55; }
.sheet-foot.stack { display: grid; gap: 8px; }
.news { display: grid; gap: 10px; padding-left: 20px; font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
/* 레시피 올리기 — 사진 먼저 */
.up-lead { font-size: 16px; line-height: 1.55; margin-bottom: 14px; }
.up-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.up-pick { display: grid; justify-items: center; gap: 4px; padding: 20px 10px; border-radius: var(--radius-card); background: var(--surface); border: 2px solid var(--border); text-align: center; cursor: pointer; }
.up-pick:hover, .up-pick:focus-within { border-color: var(--accent); }
.up-pick .up-em { font-size: 36px; line-height: 1; }
.up-pick b { font-size: 17px; }
.up-pick small { font-size: 13px; color: var(--muted); }
.up-reading { text-align: center; padding-block: 40px; }
.up-spin { font-size: 48px; animation: upspin 1.2s ease-in-out infinite alternate; }
@keyframes upspin { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .up-spin { animation: none; } }

/* 11/11 로고 이미지 */
.logo-img { display: block; height: auto; max-width: 100%; }
.mark .logo-img { width: 168px; }
.mark-phone .logo-img { width: 128px; }
.gate-logo .logo-img { width: 150px; }
.gate-top:not(:has(.back)) .gate-logo .logo-img { width: min(260px, 70vw); }
.intro-logo .logo-img { width: 180px; }
