/* 새판 손님 읽기 화면 모양(묶음 1) — 지금 판 도쿄 app.css 의 손님 규칙을 tm- 이름으로 옮김(국내 · 도쿄 같은 금색 · 갈색 · 글자 크기)
   글자 크기: 본문 15 · 단추 18 · 핵심 20 이상(tokens.css) · 320px 에서 넘치지 않게 모든 글 칸에 overflow-wrap
   이어지는 칸은 guest-b.css(가게 화면 · 직원 큰 화면 · 편의점 · 버스 · 맨 아래 · 위쪽 칸) */
:root { --tm-sale: #B3291E; --tm-sale-bg: #FDF1EF; --tm-ok: #2E7D4F; --tm-ok-bg: #EAF5EE; --tm-brown: #6B4428; }

/* 글자 크기(G-051) — 이 휴대폰에만 · html data-fs */
html[data-fs="L"] .tm-app > main { zoom: 1.12; }
html[data-fs="XL"] .tm-app > main { zoom: 1.25; }

/* 띠 */
.tm-strip { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; font-weight: 700; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tm-strip.preview { background: var(--tm-gold-soft); color: var(--tm-gold-deep); border: 1px dashed var(--tm-gold); }
.tm-strip.test { background: #333; color: #fff; }
.tm-strip.warn { background: var(--tm-sale-bg); color: var(--tm-sale); border: 1px solid var(--tm-sale); }
.tm-strip.note { background: var(--tm-gold-soft); color: var(--tm-gold-deep); font-weight: 600; }
.tm-strip-act { min-height: 40px; padding: 0 12px; border: 1px solid currentColor; border-radius: 8px; background: #fff; color: inherit; font-weight: 700; }
.tm-offline { position: sticky; top: 0; z-index: 94; padding: 10px 12px; background: #3B2A12; color: #fff; font-weight: 700; text-align: center; overflow-wrap: anywhere; }

/* 첫 화면 머리 · 거리 기준 */
.tm-head { margin: 4px 0 8px; }
.tm-title { font-size: var(--tm-text-title); margin: 0; color: var(--tm-brown); overflow-wrap: anywhere; word-break: keep-all; }
.tm-sub { color: var(--tm-text-weak); }
.tm-geobase { margin-top: 8px; background: var(--tm-surface); border: 1px solid var(--tm-gold-line); border-radius: var(--tm-radius); padding: 10px 12px; overflow-wrap: anywhere; }
.tm-geobase .m { font-weight: 700; }
.tm-geobase .f { color: var(--tm-sale); margin-top: 4px; }
.tm-geobase .n { color: var(--tm-text-faint); font-size: 13px; margin-top: 4px; }
.tm-bubble { margin: 4px 0 10px; padding: 10px 14px; border-radius: 14px; background: var(--tm-gold-soft); color: var(--tm-brown); font-weight: 700; overflow-wrap: anywhere; }
.tm-small { font-size: 13px; color: var(--tm-text-faint); margin: 6px 0 0; overflow-wrap: anywhere; }
.tm-note { color: var(--tm-text-weak); overflow-wrap: anywhere; }
.tm-empty { color: var(--tm-text-weak); }
.tm-link { min-height: 44px; background: none; border: 0; padding: 0 4px; color: var(--tm-gold-deep); text-decoration: underline; font-size: 15px; }
.tm-btn.wide { display: flex; width: 100%; align-items: center; justify-content: center; margin-top: 10px; text-align: center; overflow-wrap: anywhere; }
a.tm-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.tm-btn.on { border-color: var(--tm-gold); background: var(--tm-gold-soft); }
.tm-btn[disabled] { opacity: .65; }
.tm-ranklink { display: inline-block; margin: 0 0 6px; color: var(--tm-gold-deep); font-size: 14px; }

/* 묶음 · 카드 */
.tm-group { margin-top: 18px; }
.tm-g-title { font-size: 18px; margin: 14px 0 8px; color: var(--tm-brown); overflow-wrap: anywhere; }
.tm-pager-rows { display: grid; gap: 10px; }
.tm-more { width: 100%; min-height: 48px; margin-top: 10px; border: 2px solid var(--tm-gold); border-radius: 12px; background: var(--tm-surface); color: var(--tm-gold-deep); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.tm-card, .tm-wantcard { display: block; width: 100%; min-width: 0; text-align: left; background: var(--tm-surface); border: 1px solid var(--tm-gold-line); border-radius: var(--tm-radius); padding: 12px 14px; color: inherit; font-size: 15px; }
.tm-card.place { background: #FBFAF7; }
.tm-card:focus-visible, .tm-dealrow:focus-visible { outline: 3px solid var(--tm-gold); outline-offset: 2px; }
.tm-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; }
.tm-shop-name { font-size: 19px; font-weight: 800; word-break: keep-all; overflow-wrap: anywhere; min-width: 0; }
.tm-walk { color: var(--tm-text-weak); font-size: 14px; }
.tm-sig-ph { display: flex; gap: 6px; margin: 6px 0 2px; overflow: hidden; }
.tm-ph { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--tm-gold-line); flex: none; }
.tm-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.tm-badge { display: inline-block; max-width: 100%; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 20px; border: 1px solid transparent; overflow-wrap: anywhere; line-height: 1.5; }
.tm-badge.tap { cursor: pointer; font-family: inherit; }
.tm-badge.sale, .tm-badge.off, .tm-badge.daily { background: var(--tm-sale); color: #fff; }
.tm-badge.sale-later, .tm-badge.sale-closing { background: #F1EFEC; color: var(--tm-sale); border: 1px dashed var(--tm-sale); }
.tm-badge.open { background: var(--tm-ok-bg); color: var(--tm-ok); }
.tm-badge.closed { background: #F1EFEC; color: var(--tm-text-faint); }
.tm-badge.test { background: #333; color: #fff; }
.tm-badge.basic { background: #F1EFE9; color: var(--tm-text-weak); border: 1px dashed var(--tm-gold-line); }
.tm-badge.ko { background: #EEF3FB; color: #22508C; }
.tm-badge.kofood { background: #FBEFEF; color: #9A2E2E; }
.tm-badge.cu { background: var(--tm-gold-soft); color: var(--tm-gold-deep); }
.tm-dealline { display: flex; gap: 4px 8px; align-items: baseline; flex-wrap: wrap; background: var(--tm-sale-bg); border-radius: 10px; padding: 6px 10px; margin: 6px 0; min-width: 0; }
.tm-dealline .nm { font-weight: 700; overflow-wrap: anywhere; }
.tm-dealline .left { color: var(--tm-text-weak); font-size: 14px; }
.tm-dealline.later { background: #F4F2EF; }
.tm-price.sale .now { color: var(--tm-sale); }
.tm-price.small .now { font-size: 16px; }
.tm-price.big .now { font-size: 28px; font-weight: 900; }
.tm-sig { list-style: none; margin: 4px 0 0; padding: 0; }
.tm-sig li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 3px 0; }
.tm-sig .nm { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; word-break: keep-all; overflow-wrap: anywhere; min-width: 0; }
.tm-osm { display: block; margin: 14px 0 4px; color: var(--tm-text-faint); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.tm-wantlink { display: flex; flex-direction: column; width: 100%; margin: 12px 0 4px; padding: 10px 14px; border: 2px solid var(--tm-gold); border-radius: var(--tm-radius); background: var(--tm-surface); color: var(--tm-gold-deep); text-align: left; }
.tm-wantlink b { font-size: 19px; }
.tm-wantlink small { color: var(--tm-text-weak); font-size: 14px; overflow-wrap: anywhere; }
.tm-mo-promo { width: 100%; margin: 12px 0 4px; padding: 10px 14px; border: 2px solid var(--tm-gold); border-radius: var(--tm-radius); background: var(--tm-surface); }   /* 💛 바로 할인 안내(10-27) */
.tm-mo-promo b { display: block; font-size: 19px; color: var(--tm-gold-deep); }
.tm-mo-promo p { margin: 4px 0; overflow-wrap: anywhere; }
.tm-mo-promo small { color: var(--tm-text-weak); font-size: 14px; }

/* 음식 종류 줄 */
.tm-cu-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; min-width: 0; }
.tm-cu-label { flex-basis: 100%; font-weight: 700; font-size: 14px; }
.tm-cu-front { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tm-cu-chip { min-height: 38px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--tm-line-strong); background: var(--tm-surface); color: inherit; font-size: 14px; overflow-wrap: anywhere; max-width: 100%; }
.tm-cu-chip.on { border-color: var(--tm-gold); font-weight: 700; box-shadow: inset 0 0 0 1px var(--tm-gold); background: var(--tm-gold-soft); }
.tm-cu-chip.has-sub { font-weight: 700; }
.tm-cu-sub { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: var(--tm-gold-soft); min-width: 0; }
.tm-cu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tm-cu-tier { padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--tm-gold-deep); font-size: 12px; font-weight: 800; }
.tm-cu-tag { display: inline-block; margin: 2px 0 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--tm-line-strong); font-size: 13px; }
.tm-cu-none { margin: 4px 0 10px; }

/* 긴급할인 줄 */
.tm-deal-list .tm-rows { gap: 10px; }
.tm-dealrow { display: flex; gap: 10px; width: 100%; min-width: 0; text-align: left; padding: 10px; border: 2px solid var(--tm-sale); border-radius: var(--tm-radius); background: var(--tm-sale-bg); color: inherit; }
.tm-dealrow.later { border-style: dashed; background: #FAF8F6; }
.tm-dealrow .ph { position: relative; flex: none; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; }
.tm-dealrow .ph .tm-ph { width: 100%; height: 100%; border: 0; border-radius: 0; }
.tm-dealrow .pct, .tm-deal .ph .pct { position: absolute; left: 0; bottom: 0; padding: 1px 6px; background: var(--tm-sale); color: #fff; font-weight: 800; font-size: 14px; border-top-right-radius: 8px; }
.tm-dealrow .body { flex: 1 1 auto; min-width: 0; }
.tm-dealrow .top { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.tm-dealrow .nm { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.tm-dealrow .shop { color: var(--tm-text-weak); font-size: 14px; overflow-wrap: anywhere; }
.tm-dealrow .meta, .tm-deal .meta { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--tm-text-weak); font-size: 14px; margin-top: 2px; align-items: center; }
.tm-soonrow { padding: 10px 12px; border: 1px dashed var(--tm-gold); border-radius: var(--tm-radius); background: var(--tm-surface); overflow-wrap: anywhere; }
.tm-soonrow .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.tm-soonrow .nm { font-weight: 800; }
.tm-soonrow .at { color: var(--tm-gold-deep); font-weight: 700; }
.tm-soonrow .note { font-size: 13px; color: var(--tm-text-weak); margin: 4px 0; }
.tm-spot { margin: 8px 0; padding: 10px; border: 2px solid var(--tm-gold); border-radius: var(--tm-radius); background: var(--tm-gold-soft); }
.tm-spot .h { font-weight: 800; color: var(--tm-gold-deep); margin-bottom: 6px; }
.tm-spot .off { margin: 0; color: var(--tm-text-weak); font-size: 14px; overflow-wrap: anywhere; }
.tm-verdict { margin: 8px 0; padding: 8px 12px; border-radius: 10px; font-weight: 700; overflow-wrap: anywhere; }
.tm-verdict.ok { background: var(--tm-ok-bg); color: var(--tm-ok); }
.tm-verdict.tight { background: #FFF6DC; color: #7A5A00; }
.tm-verdict.hard { background: var(--tm-sale-bg); color: var(--tm-sale); }
.tm-verdict.unknown { background: var(--tm-surface-alt); color: var(--tm-text-weak); }
.tm-search-row { display: grid; gap: 4px; }

/* 뭐 먹지 */
.tm-want-form { background: var(--tm-surface); border: 2px solid var(--tm-gold); border-radius: var(--tm-radius); padding: 6px 12px 12px; }
.tm-want-row { display: block; margin: 10px 0; }
.tm-want-row .k { font-weight: 700; color: var(--tm-brown); margin-bottom: 4px; }
.tm-want-row .tm-chips { margin-top: 0; }
.tm-want-q { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 8px 0; overflow-wrap: anywhere; }
.tm-want-q .k { color: var(--tm-text-weak); }
.tm-want-list .tm-rows { gap: 8px; }
.tm-want-total { margin-top: 4px; font-weight: 700; color: var(--tm-gold-deep); overflow-wrap: anywhere; }
/* 「지금 뭐 먹지」 회원 · 비회원 모두(2026-10-23) — 회원 상호 금색 밑줄 · 파란 점 영업 · 예약 수 · 식사 시각 · 비회원은 연한 칸 */
a.mb-card:has(.tm-member-name) { text-decoration: none; }
.tm-member-name { text-decoration: underline; text-decoration-color: var(--tm-gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tm-wantwrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tm-wantcard.nonmember { border-color: var(--tm-line-strong); background: #fafafa; }
.tm-eat-open { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 700; color: #1d4ed8; }
.tm-eat-open .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: #2563eb; }
.tm-eat-open.no, .tm-eat-open.unknown { color: var(--tm-text-weak); }
.tm-eat-open.no .dot { background: transparent; border: 2px solid #2563eb; }
.tm-eat-open.unknown .dot { background: transparent; border: 2px dashed #2563eb; }
.tm-eat-facts { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; font-size: 14px; overflow-wrap: anywhere; }
.tm-eat-facts .at { font-weight: 700; }
.tm-eat-act { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between; margin-top: 6px; }
.tm-want-others { display: flex; flex-direction: column; gap: 8px; }
.tm-eat-warn { margin: 12px 0 4px; padding: 10px 12px; border-radius: 10px; background: #fff8e6; border: 1px solid var(--tm-gold-line); font-size: 14px; overflow-wrap: anywhere; }
/* 비회원 가게 자료 기준 · 「정보가 달라요」(2026-10-24) */
.tm-src { margin-top: 4px; font-size: 12px; color: var(--tm-text-weak); overflow-wrap: anywhere; }
.tm-wrong { margin-top: 4px; font-size: 13px; color: var(--tm-text-weak); }
.tm-input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--tm-line-strong); border-radius: 10px; font-size: 17px; background: #fff; }

/* 먹는 법 꼬리표 */
.tm-eat { flex: 1 0 100%; margin-top: 4px; }
.tm-eat-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tm-eat-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 13px; line-height: 1.6; background: #F4F1EA; color: var(--tm-text-weak); border: 1px solid var(--tm-gold-line); overflow-wrap: anywhere; }
.tm-eat-tag.spicy.s0 { background: #EEF6EE; color: #2E6B35; border-color: #CFE3D1; }
.tm-eat-tag.spicy.s2, .tm-eat-tag.spicy.s3 { background: #FBECEC; color: #9A2E2E; border-color: #EFCFCF; }
.tm-eat-tag.tex-soft { background: #EEF3FB; color: #22508C; border-color: #D3DFF2; }
.tm-eat-tag.tex-hard, .tm-eat-tag.bones { background: #FFF4E5; color: #8A5300; border-color: #F0DCBC; }
.tm-eat-how { margin-top: 4px; font-size: 14px; overflow-wrap: anywhere; }
.tm-eat-how .k { color: var(--tm-text-weak); font-weight: 700; }
.tm-eat.compact .tm-eat-tag { font-size: 12px; }
/* ⏰ 미리 예약 최대 할인 단추(지금 뭐 먹지 회원 가게 · 2026-10-23) */
.tm-eat-adv { border-color: var(--tm-gold); color: var(--tm-gold-deep); font-weight: 700; }
/* 🍽 지금 뭐 먹지 — 맨 위 탭(🔎 조건 없이 보기 / 🎯 조건으로 찾기 · 2026-10-25) */
.tm-eat-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.tm-eat-tab { flex: 1 1 0; min-height: 48px; padding: 8px 6px; border: 2px solid var(--tm-gold); border-radius: var(--tm-radius); background: var(--tm-surface); color: var(--tm-brown); font-weight: 700; font-size: 16px; }
.tm-eat-tab.on { background: var(--tm-gold); color: var(--tm-ink, #2b1d0e); }
/* 📒 예약수첩 — 다가오는 예약이 있을 때만 첫 화면 맨 위(2026-10-25) */
.tm-rbook { background: var(--tm-surface); border: 3px solid var(--tm-gold); border-radius: var(--tm-radius); padding: 10px 12px; margin: 0 0 12px; }
.tm-rbook-h { margin: 0 0 2px; font-size: 18px; color: var(--tm-brown); }
.tm-rbook-lead { margin: 0 0 8px; font-size: 14px; }
.tm-rbook-row { display: flex; gap: 6px; align-items: stretch; margin: 0 0 6px; border: 1px solid var(--tm-gold); border-radius: var(--tm-radius); background: var(--tm-bg, #fff); }
.tm-rbook-go { flex: 1 1 auto; min-width: 0; min-height: 56px; text-align: left; padding: 8px 10px; border: 0; background: none; color: inherit; font: inherit; }
.tm-rbook-x { flex: 0 0 auto; min-width: 56px; min-height: 48px; margin: 4px; padding: 0 10px; border: 2px solid #b3261e; border-radius: var(--tm-radius); background: #fff; color: #b3261e; font-weight: 700; font-size: 15px; }
.tm-rbook-row .a, .tm-rbook-row .b { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tm-rbook-row .nm { font-size: 17px; }
.tm-rbook-row .st { font-size: 13px; font-weight: 700; color: #1d6b2f; }
.tm-rbook-row.wait .st { color: var(--tm-brown); }
.tm-rbook-row .at { font-size: 16px; font-weight: 700; }
.tm-rbook-row .left { font-size: 14px; font-weight: 700; color: #b3261e; }
.tm-rbook-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13px; }
/* 📒 취소 4자리 창(2026-10-25) · 사장님 예약수첩 취소됨 줄 */
.tm-cpin-f { display: block; margin: 0 0 10px; }
.tm-cpin-f .k { display: block; font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.tm-cpin-in { width: 100%; max-width: 200px; min-height: 52px; font-size: 28px; letter-spacing: 12px; text-align: center; border: 2px solid var(--tm-line); border-radius: var(--tm-radius-sm); }
.tm-cpin-msg { min-height: 1.4em; margin: 0 0 8px; color: #b3261e; font-weight: 700; font-size: 14px; }
.tm-cpin-forgot { display: block; margin: 10px auto 0; }
.tm-rbook-row.off { opacity: .75; border-style: dashed; }
.tm-rbook-row.off .st { color: #b3261e; }
.tm-rbook-row.off .at { text-decoration: line-through; }
.tm-rbook-row .cd { display: block; font-size: 13px; color: var(--tm-text-weak); margin-top: 2px; }
.tm-cpin-note { margin: 0 0 10px; font-size: 13px; color: var(--tm-text-weak); }
.tm-cpin-in.mail { max-width: 100%; letter-spacing: 0; font-size: 18px; text-align: left; padding: 0 10px; }
