/* 주문 페이지 + 관리자 화면 공통 스타일 (v2: 한 벌의 규칙으로 정리)
   구성: 1 토큰 → 2 바탕·글씨 → 3 버튼·입력 → 4 공용 부품 → 5 가게 첫 화면 → 6 달력 → 7 주문서
         → 8 완료·조회 → 9 관리자 → 10 테마(팝·파스텔) → 11 움직임
   간격은 4px 배수(.25rem 단위), 글씨 크기는 6단계만 씁니다. */

/* ================= 1. 토큰 ================= */
:root { --brand: #8a5a3c; }
body, .tp {
  /* 색 */
  --bg: #f3f3f1; --surface: #fff; --surface-2: #ebebe8; --text: #1f1f1d; --muted: #6b6b66; --line: #e3e3df;
  --on-brand: #fff; --ok: #0f8a5f; --err: #d92d20; --warn-bg: #fff4d6; --warn-fg: #7a5200;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, var(--surface));
  --brand-mid: color-mix(in srgb, var(--brand) 34%, var(--surface));
  --brand-ink: color-mix(in srgb, var(--brand) 78%, #000);
  --btn-bg: var(--brand); --btn-fg: var(--on-brand); --sel-bg: var(--brand); --sel-fg: var(--on-brand);
  --bar: var(--bg);
  /* 모양 */
  --radius: 20px; --radius-sm: 14px; --pill: 999px;
  --card-border: 1px solid var(--line); --ctl-border: 1px solid var(--line);
  --shadow-1: 0 1px 2px rgba(20, 20, 20, .04);
  --shadow-2: 0 10px 28px -14px rgba(20, 20, 20, .28);
  /* 글씨 크기 6단계 */
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.5rem; --fs-2xl: 1.875rem;
  --w-head: 700; --track: -.02em;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spot: rgba(255, 255, 255, .28);
}
/* 모던: 파스텔 3색 조합 — 바탕 --cream · 연한색 --blush · 중간색 --rose, 버튼·선택은 진한 대표색(--brand) */
.pal-pink  { --cream: #f6f2ef; --blush: #fae3e9; --rose: #f2b7c9; --p-text: #2b2224; --p-line: #eadfd9; --p-s2: #efe6e2; }
.pal-beige { --cream: #f6f2ea; --blush: #f3ead9; --rose: #e2cda6; --p-text: #2b261e; --p-line: #e8dfcf; --p-s2: #eee6d9; }
.pal-green { --cream: #f1f5ef; --blush: #e1f0de; --rose: #b3dab7; --p-text: #1f2620; --p-line: #dbe4d8; --p-s2: #e3eae0; }
.pal-blue  { --cream: #f0f4f8; --blush: #deebf7; --rose: #a8cbec; --p-text: #1e242c; --p-line: #d9e1ea; --p-s2: #e2e8ef; }
.pal-gray  { --cream: #f2f2f1; --blush: #e7e8e7; --rose: #c6cacd; --p-text: #222426; --p-line: #dddedd; --p-s2: #e6e6e5; }
.pal-brown { --cream: #f4efea; --blush: #efe3d9; --rose: #cdae95; --p-text: #2a211b; --p-line: #e4d9cf; --p-s2: #eae1d9; }
.t-modern {
  --bg: var(--cream); --surface: #fffefd; --surface-2: var(--p-s2); --text: var(--p-text); --line: var(--p-line);
  --muted: color-mix(in srgb, var(--p-text) 62%, var(--cream));
  --brand-soft: var(--blush); --brand-mid: var(--rose);
}

/* ================= 2. 바탕 · 글씨 ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.noscroll { overflow: hidden; }
h1, h2, h3 { font-weight: var(--w-head); letter-spacing: var(--track); line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-xl); margin-bottom: .5rem; }
h2 { font-size: var(--fs-lg); margin-bottom: 1rem; }
h3 { font-size: var(--fs-md); margin: 1.5rem 0 .75rem; }
p { margin: 0 0 .75rem; } p:last-child { margin-bottom: 0; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
strong { font-weight: 700; }
code { background: var(--surface-2); padding: .125rem .375rem; border-radius: 6px; font-size: .875em; word-break: break-all; }
.muted { color: var(--muted); } .ok-text { color: var(--ok); font-weight: 600; } p.danger, span.danger { color: var(--err); }
.small { font-size: var(--fs-sm); } .center { text-align: center; } .right { text-align: right; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
[hidden] { display: none !important; }
.ic { width: 1.2em; height: 1.2em; flex: none; }
::selection { background: var(--brand-mid); }
:is(a, button, input, select, textarea, summary, label.theme-card):focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }

/* ================= 3. 버튼 · 입력 ================= */
/* 버튼: 손가락으로 누르기 쉬운 높이(44px 이상), 한 화면에 진한 버튼은 하나만 */
.btn-primary, .btn-soft, .btn-danger, .btn-xs, .btn-link { font: inherit; cursor: pointer; border: 0; border-radius: var(--pill); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; white-space: nowrap; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn-primary, .btn-soft, .btn-danger, .btn-xs, .back, .tab, .chip.pick, .x, .cal-head button, .stepper button, .a-nav a, .menu-card > a, .links a, .theme-card, .pager a, a.kpi { position: relative; isolation: isolate; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .15s, color .15s, border-color .15s; }
.btn-primary { min-height: 3rem; padding: 0 1.5rem; background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--brand) 85%, #000); }
.btn-primary:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn-soft, .btn-danger { min-height: 2.75rem; padding: 0 1.125rem; font-weight: 600; }
.btn-soft { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-danger { background: color-mix(in srgb, var(--err) 9%, var(--surface)); color: var(--err); }
.btn-xs { min-height: 2rem; padding: 0 .75rem; font-size: var(--fs-sm); font-weight: 600; background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-xs:disabled { opacity: .35; cursor: default; }
.btn-xs.danger, .btn-link.danger, .btn-soft.danger { color: var(--err); }
.btn-link { background: none; color: var(--brand-ink); padding: 0; text-decoration: underline; font-size: var(--fs-sm); border-radius: 4px; }
/* 마우스를 올리면 포인터를 따라 은은한 빛 (fx.js가 --mx/--my를 넣어줌) */
:is(.btn-primary, .btn-soft, .tab, .a-nav a, .menu-card > a)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .25s; background: radial-gradient(110px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%); }
:is(.btn-soft, .tab, .a-nav a, .menu-card > a)::after { --spot: color-mix(in srgb, var(--brand) 12%, transparent); }
@media (hover: hover) {
  :is(.btn-primary, .btn-soft, .tab, .a-nav a, .menu-card > a):hover::after { opacity: 1; }
  .btn-primary:not(:disabled):hover { background: color-mix(in srgb, var(--brand) 90%, #000); box-shadow: var(--shadow-2); }
  .btn-soft:hover, .btn-xs:not(:disabled):hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 45%, var(--line)); }
  .btn-danger:hover { background: color-mix(in srgb, var(--err) 15%, var(--surface)); }
  .back:hover .ic { transform: translateX(-2px); }
}
:is(.btn-primary, .btn-soft, .btn-danger, .btn-xs, .back, .x, .cal-head button, .stepper button, .chip.pick):not(:disabled):active { transform: scale(.97); transition-duration: .06s; }
.ic { transition: transform .2s var(--ease); }

/* 입력: 글씨 16px(아이폰에서 화면이 확대되지 않게), 높이 48px */
.field { margin: 0 0 1.25rem; border: 0; padding: 0; min-width: 0; }
.card > .field:last-child, .stack > .field:last-child { margin-bottom: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .5rem; padding: 0; }
.help { color: var(--muted); font-size: var(--fs-sm); margin: .375rem 0 .5rem; }
.field > label + .help, .field > legend + .help { margin-top: -.25rem; }
.req { font-style: normal; font-size: .6875rem; font-weight: 700; line-height: 1; color: var(--brand-ink); background: var(--brand-soft); border-radius: 6px; padding: .1875rem .375rem; margin-left: .375rem; vertical-align: 1px; letter-spacing: 0; }
.req.optional { color: var(--muted); background: var(--surface-2); font-weight: 600; }
input, select, textarea { font: inherit; font-size: 1rem; color: inherit; width: 100%; min-height: 3rem; padding: .6875rem .875rem; border: var(--ctl-border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.125rem; }
@media (hover: hover) { input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); } }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
textarea { resize: vertical; min-height: 5rem; line-height: 1.5; }
input[type=color] { padding: .25rem; width: 5rem; }
/* 아이폰 날짜·시간 칸이 옆 칸보다 넓게 삐져나가는 것 막기: 다른 칸과 같은 너비·왼쪽 정렬 */
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.inline input[type=date] { width: auto; min-width: 9.5rem; flex: 1 1 9.5rem; }
.field.invalid :is(input:not([type=radio]):not([type=checkbox]), textarea, select), .field.invalid .opt { border-color: var(--err); }
.field-err { color: var(--err); font-size: var(--fs-sm); font-weight: 600; margin: .5rem 0 0; }
.chk { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }

/* 동그라미·네모 선택칸 */
input[type=radio], input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; width: 1.375rem; height: 1.375rem; min-width: 0; min-height: 0; padding: 0; margin: 0; border: 1.5px solid color-mix(in srgb, var(--text) 28%, transparent); background: var(--surface); box-shadow: none; cursor: pointer; display: inline-grid; place-content: center; vertical-align: middle; transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s var(--ease); }
input[type=radio] { border-radius: 50%; } input[type=checkbox] { border-radius: 7px; }
@media (hover: hover) { input[type=radio]:hover, input[type=checkbox]:hover { border-color: var(--brand); } }
input[type=radio]:checked { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 .28rem var(--surface); }
input[type=checkbox]:checked { border-color: var(--brand); background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9 6.1-6.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 82% no-repeat; }
input[type=radio]:active, input[type=checkbox]:active { transform: scale(.9); }
input[type=radio]:focus, input[type=checkbox]:focus { outline: none; }
input[type=checkbox]:focus { box-shadow: none; }
input[type=radio]:focus-visible, input[type=checkbox]:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
input[type=radio]:disabled, input[type=checkbox]:disabled { opacity: .4; cursor: not-allowed; }

/* ================= 4. 공용 부품 ================= */
.wrap { max-width: 37.5rem; margin: 0 auto; padding: 0 1rem 2rem; min-height: 100vh; min-height: 100dvh; }
.wrap.form-page { padding-bottom: 7.5rem; }
.wrap.narrow { max-width: 27rem; padding: 3rem 1rem; }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.25rem; margin: .75rem 0; border: var(--card-border); box-shadow: var(--shadow-1); }
.card > :last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--fs-xs); font-weight: 700; line-height: 1; padding: .3125rem .625rem .3125rem .5rem; border-radius: var(--pill); color: color-mix(in srgb, var(--c) 72%, var(--text)); background: color-mix(in srgb, var(--c) 12%, var(--surface)); vertical-align: middle; white-space: nowrap; }
.badge::before { content: ''; width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--c); }
.chip { display: inline-flex; align-items: center; min-height: 2rem; padding: 0 .75rem; border-radius: var(--pill); background: var(--surface-2); font-size: var(--fs-sm); text-decoration: none; color: var(--text); border: 1px solid transparent; }
.rep { display: inline-block; font-style: normal; font-size: .6875rem; font-weight: 700; line-height: 1; color: var(--warn-fg); background: var(--warn-bg); border-radius: 6px; padding: .1875rem .375rem; margin-left: .375rem; vertical-align: 1px; white-space: nowrap; }
.error-text { color: var(--err); white-space: pre-line; font-weight: 600; font-size: var(--fs-sm); }
.errors { background: color-mix(in srgb, var(--err) 7%, var(--surface)); color: var(--err); border: 1px solid color-mix(in srgb, var(--err) 30%, transparent); border-radius: var(--radius-sm); margin: .75rem 0; padding: .875rem 1rem; font-weight: 600; font-size: var(--fs-sm); }
.errors ul { margin: 0; padding-left: 1.125rem; }
.stack > * + * { margin-top: 1rem; } .stack > .field { margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.grow { flex: 1; min-width: 0; }
.cols, .cols3, .cols4 { display: grid; gap: 0 1rem; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.summary { display: grid; grid-template-columns: 6rem 1fr; gap: .625rem 1rem; margin: 0 0 1rem; }
.summary:last-child { margin-bottom: 0; }
.summary dt { color: var(--muted); font-size: var(--fs-sm); padding-top: .0625rem; } .summary dd { margin: 0; min-width: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: .5rem; }
.thumbs img { width: 5.25rem; height: 5.25rem; object-fit: cover; border-radius: 12px; }
.prose { line-height: 1.8; }
.m-only { display: none; }
@media (max-width: 640px) { .m-only { display: block; margin-top: .25rem; } .d-only { display: none; } }
/* 위쪽 고정 줄 (뒤로가기) */
.topbar { position: sticky; top: 0; z-index: 8; margin: 0 -1rem; padding: .625rem 1rem; background: var(--bar); }
.back { display: inline-flex; align-items: center; gap: .25rem; min-height: 2.5rem; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); color: var(--text); padding: 0 1rem 0 .625rem; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { text-align: center; color: var(--muted); font-size: var(--fs-xs); padding: 2rem 0 1rem; line-height: 1.7; }
.foot-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: .75rem; font-size: var(--fs-sm); }
.foot-links a { color: var(--muted); text-decoration: none; padding: .25rem 0; }
@media (hover: hover) { .foot-links a:hover { color: var(--text); text-decoration: underline; } }
.foot-mark { margin-top: 1rem; font-weight: 800; font-size: var(--fs-sm); letter-spacing: -.02em; color: color-mix(in srgb, var(--text) 26%, transparent); }

/* ---------- 접었다 펴는 목록 (알림·백업 화면) ---------- */
details.fold { margin: .75rem 0; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
details.fold > summary { list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 3rem; padding: .625rem 1rem; cursor: pointer; font-weight: 700; font-size: var(--fs-sm); -webkit-tap-highlight-color: transparent; user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary > span { flex: 1; min-width: 0; }
details.fold > summary > em { font-style: normal; font-weight: 600; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
details.fold > summary::after { content: ''; flex: none; width: .5rem; height: .5rem; margin: 0 .125rem 0 .25rem; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
details.fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
details.fold[open] > summary { border-bottom: 1px solid var(--line); }
details.fold > :not(summary) { margin: 0; padding: .25rem 1rem .75rem; }
details.fold > .tbl-wrap { padding: 0 .25rem; }
details.fold > form { padding-top: .875rem; }
details.fold[open] > :not(summary) { animation: foldIn .22s var(--ease); }
@keyframes foldIn { from { opacity: 0; transform: translateY(-4px); } }
.file-list, .log-list { list-style: none; }
.file-list li { display: flex; align-items: center; gap: .75rem; padding: .625rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.file-list li:last-child, .log-list li:last-child { border-bottom: 0; }
.fl-name { flex: 1; min-width: 0; font-weight: 600; }
.fl-name small { margin-left: .5rem; font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.fl-size { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
.file-list a { white-space: nowrap; font-weight: 600; }
.log-list li { padding: .625rem 0; border-bottom: 1px solid var(--line); }
.ll-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; font-size: var(--fs-sm); }
.ll-when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--fs-xs); }
.ll-target { color: var(--muted); font-size: var(--fs-xs); }
.ll-sub { margin-top: .125rem; color: var(--muted); font-size: var(--fs-xs); overflow-wrap: anywhere; }

/* ---------- 관리자 계정별 기기 현황 ---------- */
.acct-list { list-style: none; margin: .75rem 0 1.25rem; padding: 0; display: grid; gap: .75rem; }
.acct { padding: 1rem; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: .625rem; }
.acct-name { display: flex; align-items: center; flex-wrap: wrap; gap: .375rem .5rem; font-size: 1.0625rem; }
.acct-meta { margin-top: .25rem; }
.acct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.acct-stats > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .625rem .875rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.acct-stats span { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); line-height: 1.25; }
.acct-stats strong { flex: none; font-size: 1.25rem; line-height: 1; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.acct-stats .on strong { color: var(--text); }
.acct details.fold { margin: 0; }
.acct-dev h4 { margin: .75rem 0 .25rem; font-size: var(--fs-sm); }
.acct-dev h4:first-child { margin-top: .5rem; }
.dev-rows { list-style: none; margin: 0; padding: 0; }
.dev-rows li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .625rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.45; }
.dev-rows li:last-child { border-bottom: 0; }
.dev-rows li > div { min-width: 0; overflow-wrap: anywhere; }
.dev-rows form, .acct-all form { margin: 0; flex: none; }
.acct-all { margin-top: .5rem; gap: .5rem; flex-wrap: wrap; }
.acct-dev > form.stack { margin-top: .75rem; }
.acct-me { margin: 0; }

/* ---------- 보안 기록 ---------- */
.sec-row { display: flex; align-items: center; gap: .5rem; }
.sec-row > .btn-soft { flex: none; margin-left: auto; }
.sec-mini { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .375rem; }
.sec-mini > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1875rem; min-height: 3.25rem; padding: .375rem .25rem; border-radius: var(--radius-sm); background: var(--surface-2); }
.sec-mini span { font-size: .6875rem; font-weight: 600; color: var(--muted); line-height: 1.15; text-align: center; word-break: keep-all; }
.sec-mini strong { font-size: 1.0625rem; line-height: 1.1; }
.sec-mini .ok strong { color: var(--ok); } .sec-mini .warn strong { color: #ea580c; } .sec-mini .bad { background: color-mix(in srgb, var(--err) 9%, var(--surface)); } .sec-mini .bad strong { color: var(--err); }
.sec-row-note { margin: .5rem 0 0; }
@media (max-width: 400px) { .sec-row > .btn-soft { padding: 0 .875rem; } .sec-mini { gap: .25rem; } .sec-mini span { font-size: .625rem; } }
.sec-pill { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 3.25rem; height: 1.75rem; padding: 0 .8rem; border-radius: 999px; background: #f97316; color: #fff; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
span.sec-pill.danger { background: var(--err); color: #fff; }
span.sec-pill.scan { background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; letter-spacing: 0; }
.sec-item.scan { border-left-color: var(--line); }
.sec-item.scan .sec-verdict b { color: var(--muted); }
.sec-scan-note { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .875rem 0 0; }
.sec-day details.fold .sec-list { padding-top: .75rem; }
.sec-note { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding: .875rem 1rem; border-radius: var(--radius); background: color-mix(in srgb, #f97316 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #f97316 35%, transparent); color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.sec-note.danger { background: color-mix(in srgb, var(--err) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--err) 40%, transparent); }
.sec-note strong { margin-right: .375rem; }
.sec-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.sec-sum > div { padding: .75rem .5rem; border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; display: flex; flex-direction: column; gap: .125rem; }
.sec-sum span { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.sec-sum strong { font-size: var(--fs-xl, 1.375rem); line-height: 1.2; }
.sec-sum em { font-style: normal; font-size: .6875rem; color: var(--muted); }
.sec-sum .ok strong { color: var(--ok); } .sec-sum .warn strong { color: #ea580c; } .sec-sum .bad strong { color: var(--err); }
.sec-sum .bad { background: color-mix(in srgb, var(--err) 9%, var(--surface)); }
.sec-ban { margin-top: .875rem; justify-content: space-between; align-items: center; font-size: var(--fs-sm); }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.sec-item { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .875rem 1rem; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); border-left: 4px solid #f97316; }
.sec-item.breach { border-left-color: var(--err); background: color-mix(in srgb, var(--err) 5%, var(--surface)); }
.sec-main { min-width: 0; flex: 1; display: grid; gap: .25rem; }
.sec-what { line-height: 1.35; }
.sec-kind { display: grid; gap: .125rem; }
.sec-kind code, .sec-notes code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .75rem; padding: .125rem .375rem; border-radius: 6px; background: var(--surface-2); word-break: normal; overflow-wrap: anywhere; }
.sec-kind code { display: block; }
.sec-verdict { margin: .25rem 0 0; font-size: var(--fs-sm); line-height: 1.5; }
.sec-item.blocked .sec-verdict b { color: var(--ok); } .sec-item.check .sec-verdict b { color: #ea580c; } .sec-item.breach .sec-verdict b { color: var(--err); }
.sec-trail { margin: .125rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.sec-advice { margin: 0; padding: .5rem .75rem; border-radius: 8px; background: var(--warn-bg); color: var(--warn-fg); font-weight: 600; }
.chk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.chk-list li { display: flex; gap: .75rem; align-items: flex-start; line-height: 1.45; }
.chk-list i { flex: none; width: 1.375rem; height: 1.375rem; margin-top: .125rem; border-radius: 50%; background: var(--surface-2); position: relative; }
.chk-list i::after { content: ''; position: absolute; inset: 0; margin: auto; }
.chk-list .c-ok i { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); } .chk-list .c-ok i::after { width: .3rem; height: .6rem; border: solid var(--ok); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.chk-list .c-bad i { background: color-mix(in srgb, var(--err) 14%, var(--surface)); } .chk-list .c-bad i::after { width: 2px; height: .7rem; background: var(--err); box-shadow: none; clip-path: polygon(0 0, 100% 0, 100% 62%, 0 62%, 0 78%, 100% 78%, 100% 100%, 0 100%); }
.chk-list .c-info i::after { width: .35rem; height: .35rem; border-radius: 50%; background: var(--muted); }
ul.sec-notes { margin: 0; padding-left: 1.1rem; display: grid; gap: .5rem; line-height: 1.55; }
@media (max-width: 480px) { .sec-sum { grid-template-columns: repeat(2, 1fr); } .sec-item { padding: .75rem .75rem; } }

/* ================= 5. 가게 첫 화면 ================= */
.cover { height: 12.5rem; margin: 1rem 0 0; border-radius: var(--radius); background: center / cover no-repeat var(--surface-2); }
.cover-blank { display: none; }
.shop-head { position: relative; padding: 1.5rem .25rem .5rem; }
.logo { display: block; width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; border-radius: 50%; object-fit: cover; background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.has-cover.has-logo .shop-head { padding-top: 3.25rem; }
.has-cover .logo { position: absolute; top: -2.5rem; left: .75rem; width: 5rem; height: 5rem; margin: 0; box-shadow: 0 0 0 4px var(--bg), var(--shadow-1); }
.eyebrow { display: inline-flex; align-items: center; gap: .375rem; margin: 0 0 .75rem; padding: .25rem .625rem .25rem .5rem; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; color: var(--brand-ink); background: var(--brand-soft); }
.eyebrow i { width: .4375rem; height: .4375rem; border-radius: 50%; background: var(--brand); }
/* 첫 화면 오른쪽 위 '주문 조회' 버튼: 들어올 때 톡 튀어나오고, 가끔 빛이 지나가며 돋보기가 살짝 흔들림 */
.head-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.head-top .eyebrow { margin: 0; }
.name-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .375rem; }
.name-row .shop-name { margin-bottom: 0; min-width: 0; overflow-wrap: anywhere; }
.name-row .lookup-btn { flex: 0 0 auto; }
.lookup-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; padding: 0 1.05rem 0 .9rem; border-radius: var(--pill); background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: var(--fs-sm, .9375rem); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; touch-action: manipulation; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 90%, #000); animation: lkIn .55s cubic-bezier(.2, 1.4, .4, 1) .25s backwards; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.lookup-btn .ic { width: 1.15rem; height: 1.15rem; animation: lkWig 5s ease-in-out 1.2s infinite; transform-origin: 45% 45%; }
.lookup-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 100% 0; animation: lkShine 5s ease-in-out 1s infinite; }
.lookup-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); animation: lkRing 5s ease-out 1s infinite; }
.lookup-btn:active { transform: scale(.95); transition-duration: .06s; }
@media (hover: hover) { .lookup-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px color-mix(in srgb, var(--brand) 90%, #000); } }
@keyframes lkIn { from { opacity: 0; transform: translateY(-8px) scale(.85); } }
@keyframes lkShine { 0%, 62% { background-position: 100% 0; } 82%, 100% { background-position: 0 0; } }
@keyframes lkWig { 0%, 66%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg) scale(1.1); } 75% { transform: rotate(10deg) scale(1.1); } 80% { transform: rotate(-5deg); } 85% { transform: rotate(0); } }
@keyframes lkRing { 0%, 60% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 85%, 100% { box-shadow: 0 0 0 10px transparent; } }
.shop-name { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: .375rem; }
.tagline { color: var(--muted); margin: 0 0 .75rem; }
.intro { margin: 0 0 1rem; }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.head-actions > * { flex: 0 0 auto; }
.head-actions { align-items: center; }
/* 메뉴 / 가게 정보 전환 */
.tabs-bar { position: sticky; top: 0; z-index: 6; margin: 0 -1rem; padding: .75rem 1rem; background: var(--bar); }
.tabs { --i: 0; display: grid; grid-template-columns: 1fr 1fr; position: relative; background: var(--surface-2); border-radius: var(--pill); padding: 4px; }
.tabs::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--pill); background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); transform: translateX(calc(var(--i) * 100%)); transition: transform .3s var(--ease); }
.tab { border: 0; background: none; font: inherit; font-size: var(--fs-sm); min-height: 2.5rem; padding: 0 1rem; color: var(--muted); cursor: pointer; border-radius: var(--pill); font-weight: 600; z-index: 1; -webkit-tap-highlight-color: transparent; }
.tab.on { color: var(--text); font-weight: 700; }
/* 메뉴 카드: 카드 전체가 버튼 */
.menu-list { list-style: none; margin: 0; padding: .25rem 0 0; display: grid; gap: .75rem; }
.menu-card > a { display: grid; grid-template-columns: 6rem 1fr auto; gap: 1rem; align-items: center; min-height: 7.5rem; background: var(--surface); border-radius: var(--radius); padding: .75rem .75rem .75rem .75rem; text-decoration: none; color: inherit; border: var(--card-border); box-shadow: var(--shadow-1); -webkit-tap-highlight-color: transparent; }
.mc-img { width: 6rem; height: 6rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.mc-img img, .mc-img .ph { width: 100%; height: 100%; object-fit: cover; }
.ph { display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.75rem; font-weight: 800; }
.mc-body { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.mc-name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
.mc-sum { font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: .375rem; }
.mc-go { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: var(--muted); background: var(--surface-2); transition: background-color .15s, color .15s, transform .2s var(--ease); }
.mc-go span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mc-go .ic { width: 1rem; height: 1rem; }
@media (hover: hover) {
  .menu-card > a:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-2px); }
  .menu-card > a:hover .mc-go { background: var(--brand); color: var(--on-brand); transform: translateX(2px); }
}
.menu-card > a:active { transform: scale(.985); transition-duration: .06s; }
/* 가게 정보 */
.info { margin: .25rem 0 .75rem; background: var(--surface); border-radius: var(--radius); padding: .25rem 1.25rem; border: var(--card-border); box-shadow: var(--shadow-1); }
.info > div { display: grid; grid-template-columns: 6rem 1fr; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info > div:last-child { border-bottom: 0; }
.info dt { color: var(--muted); font-size: var(--fs-sm); display: flex; gap: .375rem; align-items: center; align-self: start; padding-top: .0625rem; }
.info dd { margin: 0; }
.links { list-style: none; padding: 0; display: grid; gap: .5rem; margin: .75rem 0; }
.links a { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; background: var(--surface); padding: 0 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; color: var(--text); border: var(--card-border); }
.links a span { flex: 1; } .links a .go { color: var(--muted); }
@media (hover: hover) { .links a:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); } .links a:hover .go { transform: translateX(3px); color: var(--brand-ink); } }
/* 일정 확인 창 */
.sheet { position: fixed; inset: 0; background: rgba(20, 16, 12, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
.sheet-box { background: var(--surface); width: 100%; max-width: 37.5rem; border-radius: 24px 24px 0 0; padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); max-height: 90vh; max-height: 90dvh; overflow: auto; overscroll-behavior: contain; animation: sheetUp .32s var(--ease) both; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: var(--fs-lg); }
.x { border: 0; background: var(--surface-2); border-radius: 50%; width: 2.5rem; height: 2.5rem; cursor: pointer; color: var(--text); font-size: 1rem; }

/* ================= 6. 달력 · 시간 ================= */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .75rem; font-weight: 700; }
.cal-head button { border: 0; background: var(--surface-2); width: 2.75rem; height: 2.75rem; border-radius: 50%; font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--text); }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; transition: opacity .15s; }
.cal-grid.loading { opacity: .45; }
.cal-wd { text-align: center; font-size: var(--fs-xs); color: var(--muted); padding: .25rem 0 .375rem; font-weight: 600; }
.cal-wd.sun { color: #d9304f; } .cal-wd.sat { color: #2f6bd8; }
.cal-day { min-height: 2.875rem; aspect-ratio: 1 / 1.08; border: 0; border-radius: 12px; background: none; font: inherit; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: color-mix(in srgb, var(--muted) 50%, transparent); cursor: default; padding: 0; transition: transform .15s var(--ease), background-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.cal-day small { font-size: .625rem; line-height: 1; min-height: .625rem; font-weight: 600; }
.cal-day.open { background: var(--brand-soft); color: var(--text); cursor: pointer; font-weight: 700; }
.cal-day.open small { color: var(--brand-ink); }
@media (hover: hover) { .cal-day.open:not(.sel):hover { box-shadow: inset 0 0 0 2px var(--brand); } }
.cal-day.open:active { transform: scale(.94); }
.cal-day.sel, .cal-day.sel small { background: var(--sel-bg); color: var(--sel-fg); }
.cal-day.sel small { background: none; }
.slots { margin-top: 1.25rem; }
.slot-group { margin: 1rem 0 .5rem; font-size: var(--fs-sm); color: var(--muted); font-weight: 700; }
.slot-group:first-child { margin-top: 0; }
.slot-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip.pick { cursor: pointer; background: var(--surface); border-color: var(--line); font: inherit; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; min-height: 2.75rem; min-width: 4.25rem; justify-content: center; padding: 0 1rem; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .chip.pick:not(.sel):hover { border-color: var(--brand); color: var(--brand-ink); } }
.chip.pick.sel { background: var(--sel-bg); color: var(--sel-fg); border-color: transparent; font-weight: 700; }
.picked { font-weight: 700; color: var(--brand-ink); margin: 1rem 0 0; font-size: var(--fs-sm); }
.picked:empty { display: none; }
.slot-preview { margin-top: 1rem; }

/* ================= 7. 주문서 ================= */
/* 진행 막대: 필수 항목을 채울수록 차오름 (목표에 가까워질수록 끝까지 하게 됨) */
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--line) 70%, transparent); }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--brand); border-radius: 0 3px 3px 0; transition: width .4s var(--ease); }
.hero { width: 100%; height: auto; margin: .25rem 0 0; border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-2); }
.menu-head { padding: 1.25rem .25rem .5rem; }
.menu-head h1 { font-size: var(--fs-xl); margin-bottom: .25rem; }
.menu-head p { margin: 0; }
.notice { background: var(--brand-soft); border-color: transparent; box-shadow: none; font-size: var(--fs-sm); }
.notice-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: .875rem 1rem; margin-bottom: 1.25rem; font-size: var(--fs-sm); }
.notice-box p { margin: .25rem 0 0; }
/* 단계 번호: 1 → 2 → 3 … 다 채우면 체크 */
#order-form { counter-reset: step; }
#order-form .card, #order-form .field { scroll-margin-top: 4.5rem; }
#order-form > .card[data-step] > h2 { display: flex; align-items: center; gap: .625rem; }
#order-form > .card[data-step] > h2::before { counter-increment: step; content: counter(step); flex: none; display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; font-size: var(--fs-sm); font-weight: 700; letter-spacing: 0; background: var(--surface-2); color: var(--muted); transition: background-color .25s, color .25s; }
#order-form > .card[data-step].is-done > h2::before { content: ''; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.9 6.1-6.3' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
#order-form > .card.attn { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 12%, transparent); }
.opts { display: grid; gap: .5rem; }
.opt { display: flex; align-items: center; gap: .75rem; min-height: 3.25rem; border: var(--ctl-border); border-radius: var(--radius-sm); padding: .625rem .875rem; cursor: pointer; background: var(--surface); transition: border-color .15s, background-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .opt:not(.sold):hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); } }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.opt:has(input:checked) .opt-label { font-weight: 600; }
.opt.sold { opacity: .5; cursor: default; }
.opt-label { flex: 1; min-width: 0; } .opt-price { color: var(--brand-ink); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
.src-tags { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--line); }
.stepper { display: flex; align-items: center; gap: .5rem; }
.stepper button { width: 3rem; height: 3rem; border-radius: 50%; border: var(--ctl-border); background: var(--surface); font-size: 1.25rem; line-height: 1; cursor: pointer; color: var(--text); }
.stepper input { width: 4.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.stepper.sm { gap: .375rem; flex: 0 0 auto; }
.stepper.sm button { width: 2.25rem; height: 2.25rem; font-size: 1.05rem; }
.stepper.sm input { width: 2.75rem; padding-left: .25rem; padding-right: .25rem; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.item-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.item-row { display: flex; align-items: center; gap: .75rem; padding: .625rem; border: var(--ctl-border); border-radius: 16px; background: var(--surface); }
.item-row.sold { opacity: .55; }
.item-img { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; border-radius: 12px; overflow: hidden; background: var(--soft, #efe7dc); display: grid; place-items: center; }
.item-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-img .ph { width: 100%; height: 100%; font-size: 1.5rem; }
.item-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.item-info strong { overflow-wrap: anywhere; }
.item-price { font-variant-numeric: tabular-nums; color: var(--muted, #8a7f72); font-size: .925rem; }
.items-sum { margin: .5rem 0 0; }
.items-sum.warn { color: #c2410c; }
.unit { color: var(--muted); font-size: var(--fs-sm); }
.photos { display: flex; flex-wrap: wrap; gap: .5rem; }
.photo-add { width: 5.5rem; height: 5.5rem; border: 1.5px dashed var(--brand-mid); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--brand-ink); font-size: var(--fs-sm); line-height: 1.35; cursor: pointer; font-weight: 600; transition: background-color .15s, border-color .15s; }
@media (hover: hover) { .photo-add:hover { background: var(--brand-soft); border-color: var(--brand); } }
.thumb { position: relative; width: 5.5rem; height: 5.5rem; }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.thumb button { position: absolute; top: -6px; right: -6px; width: 1.625rem; height: 1.625rem; border-radius: 50%; border: 2px solid var(--surface); background: #1f1c19; color: #fff; font-size: .75rem; cursor: pointer; }
/* 약관 동의 */
.agree-all { display: flex; gap: .75rem; align-items: center; min-height: 3.25rem; padding: .625rem .875rem; margin-bottom: .5rem; cursor: pointer; border-radius: var(--radius-sm); background: var(--surface-2); transition: background-color .15s; }
.agree-all:has(input:checked) { background: var(--brand-soft); }
.consents .consent { padding: .625rem .875rem; }
.consent label { display: flex; gap: .75rem; align-items: center; cursor: pointer; min-height: 1.75rem; }
.consent details { margin: .25rem 0 0 2.125rem; }
.consent summary { color: var(--muted); font-size: var(--fs-sm); cursor: pointer; padding: .25rem 0; }
.consent-body { background: var(--surface-2); border-radius: var(--radius-sm); padding: .875rem 1rem; font-size: var(--fs-sm); margin-top: .375rem; }
.consents > .small { margin: .75rem .875rem 0; }
.price-note { font-size: var(--fs-sm); color: var(--muted); margin: 1rem .875rem 0; }
/* 아래 고정 금액 바: 엄지가 닿는 곳에 가장 중요한 버튼 하나 */
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .35); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); }
.paybar-in { max-width: 35.5rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.paybar-in > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.paybar .lbl { font-size: var(--fs-xs); color: var(--muted); }
.paybar strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.paybar strong.bump { animation: bump .28s var(--ease); }
.paybar .hint { font-size: var(--fs-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.paybar .hint.ready { color: var(--ok); font-weight: 600; }
.paybar .btn-primary { flex: none; min-height: 3.25rem; min-width: 9.5rem; padding: 0 1.25rem; }
button.busy { pointer-events: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; opacity: .85; transform: scale(.98); transition: transform .15s, opacity .15s; }
button.busy::before { content: ''; flex: none; width: 1em; height: 1em; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; animation: spin .7s linear infinite; }
.paybar .btn-primary.busy { pointer-events: none; }
.paybar .btn-primary.busy::before { content: ''; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--btn-fg) 35%, transparent); border-top-color: var(--btn-fg); animation: spin .7s linear infinite; }

/* ================= 8. 완료 · 조회 ================= */
.done { text-align: center; padding: 1.75rem 1.25rem; }
.check { width: 4rem; height: 4rem; border-radius: 50%; background: var(--sel-bg); color: var(--sel-fg); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; animation: pop .5s var(--ease) both; }
.check .ic { width: 2rem; height: 2rem; stroke-width: 2.6; }
.order-no { margin: 1rem 0 .75rem; color: var(--muted); font-size: var(--fs-sm); }
.order-no strong { display: block; color: var(--text); font-size: var(--fs-xl); font-weight: 800; letter-spacing: 0; font-variant-numeric: tabular-nums; margin-top: .125rem; }
.order-no .btn-xs { margin-top: .5rem; }
/* 진행 단계: 접수 → 확정 → 준비 → 픽업 */
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 1.5rem 0 0; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .375rem; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.track li::before { content: ''; width: .875rem; height: .875rem; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); z-index: 1; }
.track li::after { content: ''; position: absolute; top: .375rem; right: 50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::after { display: none; }
.track li.on { color: var(--text); } .track li.on::before { background: var(--brand); box-shadow: none; } .track li.on::after { background: var(--brand); }
.track li.now { color: var(--brand-ink); font-weight: 700; } .track li.now::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.bank { background: var(--surface-2); padding: .875rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.cancel-note { margin-top: 1rem; padding: .875rem 1rem; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--err) 8%, var(--surface)); color: color-mix(in srgb, var(--err) 60%, var(--text)); text-align: left; }
.cancel-note p { margin: .375rem 0; } .cancel-note .cancel-title { font-weight: 700; } .cancel-note a { color: inherit; }
.msg { padding: 2.5rem 1.25rem; margin-top: 3rem; } .msg .btn-soft { margin-top: .5rem; }

/* ================= 넓은 화면 (손님) ================= */
@media (min-width: 860px) {
  .wrap.home { max-width: 67.5rem; padding: 0 1.5rem 3rem; }
  .home .masthead { display: grid; grid-template-columns: 1fr; margin-top: 1.5rem; }
  .home .masthead.has-cover { grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
  .home .cover { height: auto; min-height: 22rem; margin: 0; }
  .home .shop-head { padding: 1.5rem 0; }
  .home .has-cover.has-logo .shop-head { padding-top: 1.5rem; }
  .home .has-cover .logo { position: static; width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
  .home .shop-name { font-size: 2.5rem; }
  .home .head-actions > * { flex: 0 0 auto; }
  .home .tabs-bar { position: static; margin: 0; padding: 1.5rem 0 1rem; background: none; }
  .home .tabs { max-width: 22rem; }
  .home .menu-list { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .home .menu-card > a { grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; gap: .875rem .75rem; padding: .75rem .75rem 1rem; align-items: end; height: 100%; }
  .home .mc-img { grid-column: 1 / -1; width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .home .mc-body { padding-left: .25rem; align-self: start; }
  .home .ph { font-size: 3rem; }
  .home .info, .home .links { max-width: 40rem; }
  .sheet { align-items: center; } .sheet-box { border-radius: 24px; max-height: 86vh; padding-bottom: 1.5rem; }
}
@media (max-width: 380px) {
  .menu-card > a { grid-template-columns: 5rem 1fr auto; gap: .75rem; } .mc-img { width: 5rem; height: 5rem; }
  .summary { grid-template-columns: 5rem 1fr; }
  .paybar .btn-primary { min-width: 8rem; }
}

/* ================= 9. 관리자 ================= */
.a-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.25rem; padding: 0 1rem; background: var(--bar); position: sticky; top: 0; z-index: 30; }
.a-brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: -.02em; white-space: nowrap; }
.a-brand::before { content: ''; width: 1.375rem; height: 1.375rem; border-radius: 7px; background: var(--brand); }
.a-brand small { color: var(--muted); font-weight: 500; font-size: var(--fs-sm); }
.a-top-r { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.a-top-r form { margin: 0; }
.a-link { background: none; border: 0; font: inherit; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; text-decoration: none; padding: .5rem 0; white-space: nowrap; transition: color .15s; }
@media (hover: hover) { .a-link:hover { color: var(--text); } }
.a-nav { position: sticky; top: 3.25rem; z-index: 29; padding: .25rem 1rem .625rem; background: var(--bar); }
.a-nav-in { display: flex; gap: 2px; width: max-content; max-width: 100%; margin: 0 auto; padding: 4px; border-radius: var(--pill); background: var(--surface-2); overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.a-nav-in::-webkit-scrollbar { display: none; } .a-nav-in:empty { display: none; }
.a-nav a { flex: none; display: inline-flex; align-items: center; min-height: 2.25rem; white-space: nowrap; padding: 0 .875rem; border-radius: var(--pill); text-decoration: none; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.a-nav a.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
@media (hover: hover) { .a-nav a:not(.on):hover { color: var(--text); } }
.a-main { max-width: 67.5rem; margin: 0 auto; padding: .5rem 1rem 4rem; }
.a-title { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.03em; margin: 1rem 0 1.25rem; }
.flash { margin: .75rem 0; padding: .875rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: var(--fs-sm); animation: rise .3s var(--ease) both; }
.flash.ok { background: color-mix(in srgb, var(--ok) 11%, var(--surface)); color: color-mix(in srgb, var(--ok) 65%, #000); }
.flash.ok { cursor: pointer; overflow: hidden; transition: opacity .25s var(--ease), height .35s var(--ease) .1s, margin .35s var(--ease) .1s, padding .35s var(--ease) .1s; }
.flash.ok.out { opacity: 0; height: 0 !important; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .flash.ok { transition: none; } }
.flash.err { background: color-mix(in srgb, var(--err) 9%, var(--surface)); color: color-mix(in srgb, var(--err) 75%, #000); }
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: .75rem 0; }
.kpi { background: var(--surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 1rem 1.125rem; min-height: 6.5rem; display: flex; flex-direction: column; justify-content: flex-start; gap: .5rem; text-decoration: none; color: var(--text); }
.kpi span { color: var(--muted); font-size: var(--fs-sm); line-height: 1.35; }
.kpi strong { font-size: clamp(1.25rem, 5.4vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.2; }
.kpi em { font-style: normal; color: var(--muted); font-size: var(--fs-xs); }
.kpi > em { margin-top: auto; }
/* 요일 고르기: 7칸 한 줄 */
.field > .lbl { display: block; font-size: var(--fs-sm); font-weight: 700; margin-bottom: .5rem; }
.days7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: .375rem; }
.daychip { position: relative; display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.daychip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.daychip span { display: grid; place-items: center; height: 2.75rem; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-weight: 700; transition: background-color .15s, color .15s, transform .15s var(--ease); }
.daychip input:checked + span { background: var(--sel-bg); color: var(--sel-fg); }
.daychip.sun input:not(:checked) + span { color: #d9304f; } .daychip.sat input:not(:checked) + span { color: #2f6bd8; }
.daychip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.daychip:active span { transform: scale(.94); }
@media (hover: hover) { a.kpi:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-2); transform: translateY(-2px); } }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: var(--fs-xs); padding: .625rem .75rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .75rem; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr[data-href] { cursor: pointer; }
@media (hover: hover) { .tbl tr[data-href]:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); } }
.tbl a { text-decoration: none; color: inherit; }
.a-main > .tbl-wrap { background: var(--surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-1); margin: .75rem 0; padding: .25rem .5rem; }
.card > .tbl-wrap { margin: 0 -.5rem; }
.filters .row { align-items: flex-end; gap: .75rem; }
.filters label { display: flex; flex-direction: column; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); gap: .375rem; flex: 1 1 8rem; }
.filters label.chk { flex-direction: row; flex: none; color: var(--text); font-size: var(--fs-sm); align-self: flex-end; align-items: center; min-height: 2.75rem; }
.filters :is(input:not([type=checkbox]):not([type=radio]), select) { min-height: 2.75rem; padding: .5rem .75rem; }
/* 기간 칸 + 기간 고르기 달력 */
.range-field { display: flex; flex-direction: column; gap: .375rem; flex: 1 1 12rem; min-width: 0; }
.range-lbl { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.range-btn { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; min-height: 2.75rem; padding: .5rem .75rem; border-radius: var(--radius-sm, 12px); border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--fs-sm, .9375rem); text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; }
.range-btn.has { color: var(--text); font-weight: 600; }
.range-btn .ic { width: 1.125rem; height: 1.125rem; flex: none; color: var(--muted); }
.range-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.range-sheet .sheet-box { max-width: 26rem; }
.rq { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .875rem; }
.rq .chip { font-size: var(--fs-xs); }
.rcal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.rw { text-align: center; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding-bottom: .375rem; }
.rw.sun { color: #d9304f; } .rw.sat { color: #2f6bd8; }
.rd { position: relative; height: 2.75rem; border: 0; background: none; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); cursor: pointer; border-radius: 999px; -webkit-tap-highlight-color: transparent; }
.rd.t { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 55%, transparent); }
.rd.in { background: var(--brand-soft); border-radius: 0; }
.rd.s2 { background: linear-gradient(90deg, transparent 50%, var(--brand-soft) 50%); border-radius: 0; }
.rd.e2 { background: linear-gradient(90deg, var(--brand-soft) 50%, transparent 50%); border-radius: 0; }
.rd.s, .rd.e { color: var(--sel-fg); z-index: 0; }
.rd.s::before, .rd.e::before { content: ''; position: absolute; inset: 0; margin: auto; width: 2.75rem; height: 2.75rem; max-width: 100%; border-radius: 50%; background: var(--sel-bg); z-index: -1; animation: pop .2s var(--ease) both; }
@media (hover: hover) { .rd:not(.s):not(.e):hover { background-color: var(--surface-2); } .rd.in:hover { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); } }
.rd:active { transform: scale(.94); }
.r-hint { margin: .75rem 0 0; font-size: var(--fs-xs); color: var(--muted); text-align: center; min-height: 1.2em; }
.presets { margin-top: .75rem; }
.pager { display: flex; gap: .375rem; justify-content: center; flex-wrap: wrap; margin: 1.25rem 0; }
.pager a { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border-radius: var(--pill); background: var(--surface); text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--fs-sm); box-shadow: inset 0 0 0 1px var(--line); }
.pager a.on { background: var(--brand); color: var(--on-brand); box-shadow: none; }
.od-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.od-head h2 { margin: .125rem 0; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.od-price { text-align: right; } .od-price strong { display: block; font-size: var(--fs-xl); font-weight: 800; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.big { font-size: var(--fs-lg); font-weight: 700; margin: 0 0 .25rem; }
.card > h2:not(:first-child) { margin-top: 1.75rem; }
form.inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
form.inline input:not([type=checkbox]):not([type=radio]) { width: auto; flex: 1; min-width: 8rem; }
form.inline label { display: flex; flex-direction: column; gap: .375rem; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); flex: 1; }
form.inline-mini { display: inline; margin-left: .5rem; }
.tpl-list { display: grid; gap: .5rem; }
.tpl { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 1rem; background: var(--surface); }
.tpl summary { cursor: pointer; font-weight: 600; padding: .875rem 0; }
.tpl textarea { margin: 0 0 .75rem; font-size: var(--fs-sm); background: var(--surface-2); }
.tpl .row { margin-bottom: 1rem; }
.events { list-style: none; padding: 0; margin: 0; font-size: var(--fs-sm); display: grid; gap: .5rem; }
ul.plain { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin: .75rem 0; }
.mcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: .75rem 0; }
.mw { text-align: center; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding-bottom: .25rem; }
.mc { background: var(--surface); border-radius: 12px; min-height: 5.25rem; padding: .375rem; text-decoration: none; color: var(--text); font-size: var(--fs-xs); display: flex; flex-direction: column; gap: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
@media (hover: hover) { a.mc:hover { box-shadow: inset 0 0 0 2px var(--brand-mid); } }
.mc.empty { background: none; box-shadow: none; }
.mc.closed { background: none; color: var(--muted); }
.mc.today { background: color-mix(in srgb, var(--brand) 20%, var(--surface)); box-shadow: inset 0 0 0 2px var(--brand); }
.mc .d { display: flex; align-items: center; gap: .25rem; }
.mc.today .d > :first-child, .mc.today .d { font-weight: 800; }
.today-tag { padding: 0 .3125rem; border-radius: 6px; background: var(--brand); color: var(--on-brand); font-size: .625rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
@media (max-width: 719px) { .today-tag { display: none; } }
.cal-card { padding-top: .5rem; }
.cal-card .cal-nav { margin-top: .25rem; }
.cal-card .cal-nav .btn-soft { min-width: 2.75rem; justify-content: center; }
.cal-card .help { margin-bottom: 0; }
.mc .d { font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mc .cnt { background: var(--brand); color: var(--on-brand); border-radius: 6px; padding: 0 .3125rem; align-self: flex-start; font-weight: 700; white-space: nowrap; font-size: .6875rem; }
.mc .tag { color: var(--muted); font-size: .625rem; line-height: 1.25; }
.mc ul { list-style: none; margin: 0; padding: 0; display: none; }
.m-admin { list-style: none; padding: 0; margin: 0; }
.m-admin li { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.m-admin li.off { opacity: .6; }
.m-admin .ph, .m-admin img { width: 4rem; height: 4rem; border-radius: 12px; object-fit: cover; }
.m-admin .ph { font-size: 1.5rem; }
.m-admin form { display: inline-flex; gap: .25rem; margin: 0; }
.img-up { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.img-prev { width: 7.5rem; height: 7.5rem; border-radius: var(--radius-sm); background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--muted); font-size: var(--fs-sm); }
.img-prev.wide { width: 13.75rem; } .img-prev.round { width: 6rem; height: 6rem; border-radius: 50%; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.prefix { display: flex; align-items: center; } .prefix span { padding-right: .5rem; color: var(--muted); white-space: nowrap; }
.savebar { position: sticky; bottom: 0; z-index: 10; margin: 0 -1rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: var(--bar); border-top: 1px solid var(--line); display: flex; gap: .5rem; flex-wrap: wrap; }
.consent-edit { border-top: 1px solid var(--line); padding: 1rem 0; display: grid; gap: .5rem; }
.w60 { width: 4.5rem !important; } .w100 { width: 7rem !important; }
.fb-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: .75rem; background: var(--surface); }
.fb-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.fb-type { font-weight: 800; color: var(--brand-ink); }
.fb-opts { display: grid; gap: .375rem; margin: .5rem 0 1rem; }
.fb-items { display: grid; gap: .5rem; margin: .5rem 0 1rem; }
.fb-itm { display: flex; gap: .625rem; align-items: flex-start; padding: .5rem; border: var(--ctl-border); border-radius: 14px; background: var(--surface); }
.fb-thumb-wrap { flex: 0 0 auto; cursor: pointer; }
.fb-thumb { width: 4.25rem; height: 4.25rem; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--soft, #efe7dc); border: 1px dashed rgba(0,0,0,.18); font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-itm-main { flex: 1 1 auto; min-width: 0; display: grid; gap: .375rem; }
.fb-itm-main input:not([type=checkbox]) { min-height: 2.5rem; padding: .375rem .625rem; }
.fb-itm-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.fb-mini { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; margin: 0; }
.fb-mini input[type=number] { width: 6.5rem; }
.fb-itm-act { flex: 0 0 auto; display: flex; flex-direction: column; gap: .25rem; }
@media (max-width: 560px) { .fb-itm { flex-wrap: wrap; } .fb-itm-main { flex: 1 1 0; min-width: 9rem; } .fb-itm-act { flex-direction: row; flex-wrap: wrap; width: 100%; } }
.fb-opt { display: grid; grid-template-columns: 1fr 7.5rem 2.5rem 2.25rem; gap: .5rem; align-items: center; }
.fb-opt.hdr span { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.fb-opt input:not([type=checkbox]):not([type=radio]) { min-height: 2.5rem; padding: .375rem .625rem; }
.add-field { margin-top: .75rem; }
.chart { margin-top: .5rem; }
.svg-chart { width: 100%; height: auto; min-width: 35rem; }
.chart:has(.svg-chart) { overflow-x: auto; }
.svg-chart .grid { stroke: var(--line); } .svg-chart .axis { font-size: 11px; fill: var(--muted); }
.svg-chart .bar { fill: var(--brand-mid); } .svg-chart .bar:hover { fill: var(--brand); }
.svg-chart .line { fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.legend { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lg-bar { width: 12px; height: 12px; background: var(--brand-mid); display: inline-block; border-radius: 3px; }
.lg-line { width: 16px; height: 2px; background: var(--text); display: inline-block; margin-left: .5rem; }
.hbars { display: grid; gap: .625rem; }
.hb { display: grid; grid-template-columns: minmax(5rem, 9rem) 1fr auto; gap: .75rem; align-items: center; font-size: var(--fs-sm); }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { background: var(--surface-2); border-radius: 6px; height: .75rem; overflow: hidden; }
.hb-f { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.hb-v { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; font-variant-numeric: tabular-nums; }
.heat { border-collapse: separate; border-spacing: 3px; font-size: var(--fs-xs); }
.heat th { color: var(--muted); font-weight: 500; padding: 0 .25rem; }
.heat td { width: 2.25rem; height: 1.875rem; text-align: center; border-radius: 6px; background: color-mix(in srgb, var(--brand) calc(var(--a) * 100%), var(--surface-2)); color: #fff; font-weight: 700; }
.opt-grid { display: grid; gap: 1.5rem; } .opt-grid h3 { margin-top: 0; }
.dev-list { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .5rem; }
.dev-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 1rem; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.dev-list li form { flex: none; margin: 0; }
#push .dev-list li { flex-wrap: wrap; row-gap: .625rem; }
#push .dev-list li > div:first-child { flex: 1 1 10rem; min-width: 0; }
#push .dev-list .row { gap: .375rem; flex-wrap: nowrap; }
#push [data-push-box] { display: grid; gap: .75rem; justify-items: start; margin-bottom: .5rem; }
#push [data-push-box] .field { margin: 0; width: 100%; max-width: 22rem; }
.remember { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .625rem; font-weight: 600; }
.remember .muted { font-weight: 500; }
/* 2단계 인증 */
.otp-input { font-size: 1.375rem; letter-spacing: .25em; font-variant-numeric: tabular-nums; text-align: center; }
.twofa-add { display: grid; gap: 1rem; }
.twofa-add .qr svg { width: 12.5rem; height: 12.5rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
code.secret { display: inline-block; font-size: 1rem; letter-spacing: .06em; padding: .5rem .75rem; user-select: all; -webkit-user-select: all; }
ol.recovery { columns: 2; padding-left: 1.5rem; font-size: var(--fs-lg); line-height: 2; }
ol.recovery code { letter-spacing: .05em; }
/* 테마 고르기 */
.theme-grid { display: grid; gap: .75rem; }
.theme-card { display: grid; grid-template-columns: 8.25rem 1fr; gap: 1rem; align-items: center; padding: .75rem; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.theme-card input { position: absolute; opacity: 0; pointer-events: none; }
.theme-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.theme-card:has(input:checked) .tc-text strong::after { content: '선택됨'; margin-left: .5rem; font-size: .6875rem; color: var(--on-brand); background: var(--brand); padding: .125rem .5rem; border-radius: var(--pill); vertical-align: 1px; }
.theme-card:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.tc-text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.sw { display: flex; gap: 4px; margin-top: .25rem; }
.sw i { width: 1.125rem; height: 1.125rem; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.tp { display: block; width: 8.25rem; height: 6rem; border-radius: 12px; overflow: hidden; position: relative; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.tp-cover { position: absolute; left: 6px; right: 6px; top: 6px; height: 28px; border-radius: 8px; background: var(--brand-soft); }
.tp-cover::after { content: ''; position: absolute; right: 6px; top: 5px; width: 18px; height: 18px; border-radius: 6px; background: var(--brand); }
.tp-body { position: absolute; left: 8px; top: 40px; display: grid; gap: 4px; }
.tp-body i { display: block; border-radius: 3px; background: var(--text); }
.tp-h { width: 54px; height: 8px; opacity: .8; } .tp-l { width: 38px; height: 4px; opacity: .35; }
.tp-btn { width: 34px; height: 10px; border-radius: 999px !important; background: var(--btn-bg) !important; }
.tp-card { position: absolute; right: 8px; bottom: 8px; width: 52px; height: 44px; border-radius: 8px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 5px; display: grid; gap: 4px; align-content: start; }
.tp-card i { display: block; height: 16px; border-radius: 4px; background: var(--brand-soft); }
.tp-card i + i { height: 5px; width: 70%; background: var(--text); opacity: .3; }
.pal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.pal-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .75rem .5rem; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: var(--fs-sm); font-weight: 600; transition: box-shadow .15s; }
.pal-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pal-chip:has(input:checked) { box-shadow: inset 0 0 0 2px var(--text); }
.pal-chip:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 50%, transparent); outline-offset: 2px; }
.pal-sw { display: flex; }
.pal-sw i { width: 1.25rem; height: 1.25rem; border-radius: 50%; margin-left: -5px; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px rgba(0, 0, 0, .08); }
.pal-sw i:first-child { margin-left: 0; }
#shop-form .theme-opt { display: none; margin-top: 1.25rem; }
#shop-form:has(input[name=theme][value=basic]:checked) .basic-color-field,
#shop-form:has(input[name=theme][value=modern]:checked) .pal-field { display: block; animation: rise .25s var(--ease) both; }
@media (min-width: 760px) {
  .grid4 { grid-template-columns: repeat(4, 1fr); }
  .cols { grid-template-columns: 1fr 1fr; } .cols3 { grid-template-columns: repeat(3, 1fr); } .cols4 { grid-template-columns: repeat(4, 1fr); }
  .a-main > .cols, .a-main > form > .cols { gap: 0 .75rem; align-items: start; }
  .a-main { padding-left: 1.5rem; padding-right: 1.5rem; } .a-top { padding: 0 1.5rem; }
  .savebar { margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .card { padding: 1.5rem; }
  .mc ul { display: block; } .mc { min-height: 7rem; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-card { grid-template-columns: 1fr; align-items: start; }
  .tp { width: 100%; height: 7.5rem; }
  .pal-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1100px) { .theme-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  /* 주문 목록: 표 대신 카드처럼 */
  .orders-tbl thead { display: none; }
  .orders-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .875rem .25rem; border-bottom: 1px solid var(--line); }
  .orders-tbl tr:last-child { border-bottom: 0; }
  .orders-tbl td { border: 0; padding: 0; }
  .orders-tbl td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .orders-tbl td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; }
  .orders-tbl td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .orders-tbl td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; white-space: nowrap; }
  .orders-tbl td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; }
  .orders-tbl td br { display: none; }
  .orders-tbl td .muted { margin-left: .375rem; }
  .orders-tbl td:nth-child(5) .muted { display: block; margin: .125rem 0 0; }
  .orders-tbl td:nth-child(4) { font-weight: 700; font-variant-numeric: tabular-nums; } .orders-tbl td:nth-child(4) .muted { font-weight: 400; }
  .od-price { text-align: left; flex-basis: 100%; }
  .filters label { flex: 1 1 calc(50% - .75rem); }
  .a-top-r { gap: .75rem; } .a-brand small { display: none; }
  .a-title { font-size: var(--fs-xl); margin: .75rem 0 1rem; }
  .fb-opt { grid-template-columns: 1fr 5.5rem 2.25rem 2.25rem; gap: .375rem; }
}

/* 빠른 화면 전환: 메뉴 표시가 미끄러지듯 이동, 기다릴 때 로딩 모양 */
.fastnav .a-nav-in { position: relative; }
.a-pill { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--pill); background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); transition: transform .3s var(--ease), width .3s var(--ease); pointer-events: none; opacity: 0; }
.fastnav .a-nav a { position: relative; z-index: 1; background: none !important; box-shadow: none !important; transition: color .2s; }
.fastnav .a-main { will-change: auto; }
.sk { display: grid; gap: .75rem; padding-top: 1rem; }
.sk i { display: block; border-radius: var(--radius); background: color-mix(in srgb, var(--surface-2) 80%, var(--surface)); animation: skp 1.1s ease-in-out infinite alternate; }
.sk-title { height: 2rem; width: 30%; border-radius: 10px !important; margin-bottom: .5rem; }
.sk-card { height: 7.5rem; } .sk-card.short { height: 4.5rem; }
@keyframes skp { to { opacity: .55; } }

/* ================= 10. 테마: 팝 · 파스텔 ================= */
/* 팝 · 헬로컵: 굵은 검정 테두리 + 스티커 그림자 + 컨페티 */
.t-pop {
  --pink: #ec7fae; --pink-soft: #ffe3ee; --yellow: #f6d23c; --blue: #2c4fa8; --ink: #1b1a1a;
  --bg: #fff3f8; --surface: #fff; --surface-2: #ffe9f2; --text: var(--ink); --muted: #6a5a62; --line: var(--ink);
  --card-border: 2px solid var(--ink); --ctl-border: 2px solid var(--ink);
  --shadow-1: 3px 3px 0 var(--ink); --shadow-2: 5px 5px 0 var(--ink);
  --brand-soft: #e6f5e8; --w-head: 800;
}
body.t-pop { background-color: var(--bg); background-image: radial-gradient(circle at 18px 22px, var(--pink) 0 3px, transparent 3.5px), radial-gradient(circle at 92px 70px, var(--yellow) 0 3.5px, transparent 4px), radial-gradient(circle at 150px 18px, var(--blue) 0 2.5px, transparent 3px), radial-gradient(circle at 60px 130px, var(--brand) 0 3px, transparent 3.5px); background-size: 190px 160px; }
.t-pop :is(.btn-primary, .btn-soft, .btn-danger) { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.t-pop .btn-soft { background: var(--pink-soft); }
.t-pop :is(.btn-primary, .btn-soft, .btn-danger):not(:disabled):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.t-pop :is(.btn-xs, .back, .links a, .chip.pick, .tabs, .pager a) { box-shadow: none; border: 2px solid var(--ink); }
.t-pop .tabs { background: #fff; } .t-pop .tabs::before { background: var(--brand); box-shadow: none; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); } .t-pop .tab.on { color: #fff; }
.t-pop .cover-blank { display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink); background-color: var(--pink); background-image: linear-gradient(#fff 2px, transparent 2px), linear-gradient(90deg, #fff 2px, transparent 2px); background-size: 34px 34px; background-position: -1px -1px; }
.t-pop .cover-blank span { color: #fff; font-size: clamp(2rem, 9vw, 3.25rem); font-weight: 900; letter-spacing: -.04em; text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); transform: rotate(-3deg); }
.t-pop .cover { border: 2px solid var(--ink); }
.t-pop .logo, .t-pop .has-cover .logo { box-shadow: 0 0 0 2px var(--ink), 3px 3px 0 2px var(--ink); }
.t-pop .lookup-btn { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.t-pop .eyebrow { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.t-pop .price { background: linear-gradient(transparent 60%, var(--yellow) 60%); align-self: flex-start; }
.t-pop .mc-img, .t-pop .hero { border: 2px solid var(--ink); }
.t-pop .mc-go { background: var(--brand); color: #fff; border: 2px solid var(--ink); }
.t-pop .notice { background: #fff8d6; border: 2px solid var(--ink); }
.t-pop .opt:has(input:checked) { box-shadow: 3px 3px 0 var(--ink); border-color: var(--ink); }
.t-pop .cal-day.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.t-pop .paybar { border-top: 2px solid var(--ink); box-shadow: none; }
.t-pop .info > div { border-bottom: 2px dashed var(--ink); } .t-pop .info > div:last-child { border-bottom: 0; }
.t-pop :is(input[type=radio], input[type=checkbox]) { border: 2px solid var(--ink); }
/* 파스텔 3색: 라벤더 · 베이비핑크 · 스카이블루 */
.t-pastel {
  --lav: #cdb4db; --pink: #ffc8dd; --sky: #a2d2ff;
  --bg: #fffaf6; --surface: rgba(255, 255, 255, .86); --surface-2: #f4edf9; --text: #352844; --muted: #6f6380; --line: #e9dff1;
  --radius: 24px; --radius-sm: 16px;
  --shadow-1: 0 8px 24px -18px rgba(125, 91, 166, .45); --shadow-2: 0 16px 36px -18px rgba(125, 91, 166, .5);
  --btn-bg: linear-gradient(120deg, var(--lav), var(--pink) 50%, var(--sky)); --btn-fg: #352844;
  --sel-bg: linear-gradient(135deg, var(--lav), var(--pink)); --sel-fg: #352844;
  --brand-soft: #f3eaf8; --bar: #fffaf6;
}
body.t-pastel::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60vmax 50vmax at -10% -10%, rgba(255, 200, 221, .5), transparent 60%), radial-gradient(55vmax 45vmax at 110% 5%, rgba(162, 210, 255, .45), transparent 60%), radial-gradient(60vmax 50vmax at 50% 115%, rgba(205, 180, 219, .4), transparent 60%); }
.t-pastel .btn-primary { box-shadow: 0 8px 20px -12px rgba(125, 91, 166, .6); }
@media (hover: hover) { .t-pastel .btn-primary:not(:disabled):hover { background: linear-gradient(120deg, var(--pink), var(--sky) 50%, var(--lav)); } }
.t-pastel .cover-blank { display: block; background: radial-gradient(80% 120% at 0% 0%, var(--pink), transparent 60%), radial-gradient(80% 120% at 100% 0%, var(--sky), transparent 60%), radial-gradient(90% 120% at 50% 100%, var(--lav), transparent 65%), #fff; }
.t-pastel .cover-blank span { display: none; }
.t-pastel .ph { background: linear-gradient(135deg, var(--pink), var(--sky)); color: #fff; }
.t-pastel .tabs::before { background: linear-gradient(120deg, var(--lav), var(--pink)); }
.t-pastel .paybar, .t-pastel .sheet-box { background: #fffdfb; }
.t-pastel .progress i, .t-pastel #order-form > .card[data-step].is-done > h2::before { background-color: #a986c9; }
.t-pop .has-cover .logo, .t-pastel .has-cover .logo { top: -2.5rem; }
:is(.t-pop, .t-pastel) .masthead:not(.has-cover) .cover-blank { height: 9rem; margin-top: 1rem; border-radius: var(--radius); }
:is(.t-pop, .t-pastel) .masthead:not(.has-cover).has-logo .logo { margin-top: -3.5rem; position: relative; }
/* 테마 미리보기 그림 */
.tp.t-pop { background-image: radial-gradient(circle at 10px 12px, var(--pink) 0 2px, transparent 2.5px), radial-gradient(circle at 40px 30px, var(--yellow) 0 2px, transparent 2.5px), radial-gradient(circle at 25px 45px, var(--blue) 0 1.5px, transparent 2px); background-size: 50px 50px; }
.tp.t-pop .tp-cover { background-color: var(--pink); border: 1.5px solid var(--ink); } .tp.t-pop .tp-cover::after { display: none; }
.tp.t-pop .tp-btn, .tp.t-pop .tp-card { border: 1.5px solid var(--ink); box-shadow: 1.5px 1.5px 0 var(--ink); }
.tp.t-pastel { background: radial-gradient(70% 70% at 0 0, var(--pink), transparent 70%), radial-gradient(70% 70% at 100% 0, var(--sky), transparent 70%), radial-gradient(80% 70% at 50% 100%, var(--lav), transparent 70%), #fffaf6; }
.tp.t-pastel .tp-cover { background: rgba(255, 255, 255, .6); } .tp.t-pastel .tp-cover::after { background: linear-gradient(135deg, var(--lav), var(--pink)); }

/* ================= 11. 움직임 (꼭 필요한 곳에만) ================= */
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(32px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } }
@keyframes bump { 40% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* 화면이 바뀔 때 부드럽게 겹쳐 넘어감 (지원하는 브라우저만) */
/* ---------- 작업판 (주방 화면) ---------- */
.kds-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin: .25rem 0 .75rem; }
.kds-day { display: flex; align-items: center; gap: .5rem; }
.kds-arrow { min-width: 2.75rem; justify-content: center; font-size: 1.125rem; }
.kds-date { display: flex; align-items: center; gap: .5rem; min-width: 9.5rem; justify-content: center; }
.kds-date strong { font-size: var(--fs-lg, 1.125rem); letter-spacing: -.02em; }
.kds-rel { padding: .125rem .5rem; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); font-size: var(--fs-xs); font-weight: 700; }
.kds-rel.now { background: var(--sel-bg); color: var(--sel-fg); }
.kds-tools { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.kds-tools .chip { font-size: var(--fs-xs); cursor: pointer; border: 0; font: inherit; font-size: var(--fs-xs); font-weight: 600; }
.kds-wake[aria-pressed=true] { background: var(--sel-bg); color: var(--sel-fg); }
.kds-live { display: inline-flex; align-items: center; gap: .375rem; font-size: var(--fs-xs); color: var(--muted); }
.kds-live i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: livePulse 2.4s ease-out infinite; }
.kds-live.off i { background: var(--err); animation: none; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 .5rem transparent; } }
.kds-next { margin: -.25rem 0 .75rem; } .kds-next a { margin-left: .5rem; }
.kds-tabs { display: flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: var(--surface-2); margin-bottom: .875rem; }
.kds-tab { flex: 1; min-height: 2.5rem; border: 0; background: none; border-radius: var(--pill); font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s; }
.kds-tab b { margin-left: .125rem; font-variant-numeric: tabular-nums; }
.kds-tab[aria-selected=true] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.kds-tab.t-todo b { color: var(--brand-ink); }
.kds-board { display: grid; gap: .875rem; align-items: start; }
.lane { display: none; gap: .75rem; }
.lane.on { display: grid; }
.lane-h { display: none; }
.lane-empty { margin: 0; padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: var(--fs-sm); border-radius: var(--radius); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (min-width: 1000px) {
  .kds-tabs { display: none; }
  .kds-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lane, .lane.on { display: grid; align-content: start; padding: .625rem; border-radius: calc(var(--radius) + 4px); background: color-mix(in srgb, var(--surface-2) 60%, transparent); min-height: 60vh; }
  .lane-h { display: flex; align-items: center; gap: .375rem; margin: .125rem .25rem .125rem; font-size: var(--fs-sm); font-weight: 700; }
  .lane-h b { padding: 0 .4375rem; border-radius: var(--pill); background: var(--surface); font-size: var(--fs-xs); line-height: 1.6; font-variant-numeric: tabular-nums; }
  .l-done .kc { opacity: .72; }
  .a-main:has(#kds) { max-width: 90rem; }
}
.kc { --tint: color-mix(in srgb, var(--c) 9%, var(--surface)); background: var(--surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; transition: opacity .2s, transform .2s var(--ease), box-shadow .2s; }
.kc-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; background: var(--tint); box-shadow: inset 4px 0 0 var(--c); }
.kc-t { display: flex; align-items: baseline; gap: .5rem; }
.kc-t strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kc-due { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.kc.soon .kc-due { color: #b45309; }
.kc.late { --tint: color-mix(in srgb, var(--err) 10%, var(--surface)); }
.kc.late .kc-h { box-shadow: inset 4px 0 0 var(--err); }
.kc.late .kc-due { color: var(--err); }
.kc-no { display: flex; align-items: center; gap: .375rem; font-size: var(--fs-xs); color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.kc-st { color: color-mix(in srgb, var(--c) 80%, #000); }
.kc-pre { font-style: normal; padding: .0625rem .4375rem; border-radius: var(--pill); background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: color-mix(in srgb, var(--c) 80%, #000); }
.kc-who { padding: .75rem 1rem 0; font-size: var(--fs-sm); font-weight: 600; }
.kc-who .muted { font-weight: 400; font-size: var(--fs-xs); }
.kc-menu { margin: .125rem 1rem .5rem; font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; }
.kc-note { margin: 0 1rem .625rem; padding: .625rem .75rem; border-radius: var(--radius-sm, 12px); background: var(--brand-soft); font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; }
.kc-note span { display: block; font-size: var(--fs-xs); color: var(--brand-ink); font-weight: 700; margin-bottom: .125rem; }
.kc-items { list-style: none; margin: 0; padding: 0 .5rem .25rem; }
.kc-items li + li { border-top: 1px solid var(--line); }
.kc-chk { display: grid; grid-template-columns: 1.375rem minmax(4.5rem, auto) 1fr; align-items: start; gap: .5rem; width: 100%; padding: .5625rem .5rem; border: 0; background: none; font: inherit; text-align: left; color: var(--text); cursor: pointer; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
.kc-chk:active { background: var(--surface-2); }
.kc-chk i { width: 1.25rem; height: 1.25rem; margin-top: .0625rem; border-radius: 50%; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--muted) 50%, transparent); display: grid; place-items: center; transition: background-color .15s, box-shadow .15s; }
.kc-chk i::after { content: ''; width: .375rem; height: .625rem; border: solid var(--sel-fg); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg) scale(0); transition: transform .15s var(--ease); }
.kc-chk[aria-pressed=true] i { background: var(--sel-bg); box-shadow: none; }
.kc-chk[aria-pressed=true] i::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.kc-l { font-size: var(--fs-xs); color: var(--muted); padding-top: .125rem; }
.kc-v { font-size: var(--fs-sm); font-weight: 700; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.kc-chk[aria-pressed=true] .kc-v { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.kc.allchk { box-shadow: var(--shadow-1), 0 0 0 2px color-mix(in srgb, var(--ok) 55%, transparent); }
.kc-memo, .kc-photo { margin: .25rem 1rem 0; font-size: var(--fs-xs); color: var(--muted); }
.kc-f { display: flex; gap: .375rem; padding: .75rem; margin-top: auto; }
.kc-b { min-height: 2.75rem; padding: 0 .875rem; font-size: var(--fs-sm); justify-content: center; }
.kc-main { flex: 1; }
.kc.busy { pointer-events: none; }
.kc.leaving { opacity: 0; transform: scale(.96); }
.kc.fresh { animation: kcFresh 1.6s var(--ease) 2; }
.kc.moved { animation: rise .35s var(--ease) both; }
@keyframes kcFresh { 0% { box-shadow: var(--shadow-1), 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 60% { box-shadow: var(--shadow-1), 0 0 0 .5rem transparent; } 100% { box-shadow: var(--shadow-1), 0 0 0 0 transparent; } }
.kds-help { margin-top: 1rem; }
/* 머리글·메뉴줄은 제자리에 두고, 본문만 살짝 사라졌다가 아래에서 떠오르며 나타남 */
@view-transition { navigation: auto; }
main { view-transition-name: page; }
.a-top { view-transition-name: a-top; }
.a-nav { view-transition-name: a-nav; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; }
::view-transition-group(page) { animation: none; }
::view-transition-old(page) { animation: vtOut .14s ease-in both; }
::view-transition-new(page) { animation: vtIn .32s cubic-bezier(.2, .8, .2, 1) .05s both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(10px); } }
/* 화면 전환 기능이 없는 옛 브라우저: 새 화면 본문만 떠오르듯 나타남 */
@supports not (view-transition-name: none) { main { animation: vtIn .3s cubic-bezier(.2, .8, .2, 1) both; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* 주문 조회 */
dialog.pop { border: 0; border-radius: 22px; padding: 1.5rem 1.25rem 1.25rem; max-width: min(26rem, calc(100vw - 2rem)); width: 100%; background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.pop::backdrop { background: rgba(20, 14, 8, .45); }
dialog.pop h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
dialog.pop p, dialog.pop li { line-height: 1.6; }
dialog.pop ul { padding-left: 1.1rem; margin: .5rem 0 1rem; display: grid; gap: .375rem; }
dialog.pop form { margin-top: 1rem; }
dialog.pop .btn-primary { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.lookup-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.lookup-list a { display: flex; align-items: center; gap: .625rem; padding: .875rem 1rem; border: var(--ctl-border); border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; }
.lookup-list .ll-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.lookup-list svg { flex: 0 0 auto; width: 1rem; height: 1rem; opacity: .5; }

/* 주문 완료 → 카카오톡으로 알리기 (첫 화면 바로 아래, 가장 눈에 띄게) */
.next-step { margin: 1.25rem auto .25rem; max-width: 24rem; padding: 1.125rem 1rem 1rem; border-radius: 20px; background: #fffbe6; border: 1.5px solid #f5d90a; text-align: center; }
.ns-tag { display: inline-block; margin: 0 0 .375rem; padding: .2rem .625rem; border-radius: 999px; background: #3b1e1e; color: #fee500; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.ns-title { margin: 0 0 .875rem; font-size: 1.15rem; font-weight: 800; color: #191919; }
.kakao-cta { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 3.5rem; padding: .875rem 1rem; border-radius: 16px; background: #fee500; color: #191919; font-weight: 800; font-size: 1.08rem; text-decoration: none; box-shadow: 0 6px 18px rgba(254, 229, 0, .55), 0 2px 0 rgba(0,0,0,.06); position: relative; transition: transform .15s ease; }
.kakao-cta svg { width: 1.35rem; height: 1.35rem; }
.kakao-cta:active { transform: scale(.97); }
.next-step.fresh .kakao-cta { animation: kk-nudge 2.4s ease-in-out .9s infinite; }
.next-step.fresh .kakao-cta::after { content: ''; position: absolute; inset: -4px; border-radius: 20px; border: 2px solid #fee500; animation: kk-ring 2.4s ease-out .9s infinite; pointer-events: none; }
@keyframes kk-nudge { 0%, 70%, 100% { transform: translateY(0); } 78% { transform: translateY(-3px); } 86% { transform: translateY(0); } 92% { transform: translateY(-1.5px); } }
@keyframes kk-ring { 0% { opacity: .9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .next-step.fresh .kakao-cta, .next-step.fresh .kakao-cta::after { animation: none; } }
.ns-help { margin: .75rem 0 0; font-size: .9rem; color: #4a4a4a; line-height: 1.5; }
.ns-help.done { color: #166534; }
.ns-sub { margin: .375rem 0 0; font-size: .8rem; color: #8a8a8a; }
.next-plain { margin: 1rem 0 0; color: var(--muted); }

/* 주문서 수정 기록 */
.rev-tag { display: inline-block; font-style: normal; font-size: .75rem; font-weight: 800; padding: .12rem .5rem; border-radius: 999px; background: #fff1e6; color: #c2410c; border: 1px solid #fdba74; vertical-align: middle; white-space: nowrap; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.card-head h2 { margin: 0; }
.btn-sm { padding: .45rem .875rem; min-height: 0; font-size: .9rem; }
.rev-box { margin: .75rem 0 1rem; border: 1.5px solid #fdba74; background: #fff7ed; border-radius: 14px; padding: .625rem .875rem; }
.rev-box summary { cursor: pointer; }
.rev-diff { width: 100%; border-collapse: collapse; margin: .625rem 0; font-size: .92rem; }
.rev-diff th, .rev-diff td { text-align: left; padding: .4rem .375rem; border-top: 1px solid rgba(0,0,0,.06); vertical-align: top; }
.rev-diff thead th { color: var(--muted); font-size: .78rem; font-weight: 700; border-top: 0; }
.rev-diff td.was { color: var(--muted); text-decoration: line-through; }
.rev-diff td.now { font-weight: 700; color: #9a3412; }
.rev-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; }
.rev-list > li > p { margin: 0 0 .2rem; }
.rev-list ul { margin: 0; padding-left: 1.1rem; font-size: .9rem; }
.rev-note { margin: .25rem 0 1rem; padding: .75rem .875rem; border-radius: 14px; background: #fff7ed; border: 1.5px solid #fdba74; }
.rev-note p { margin: 0 0 .375rem; }
.rev-note ul { margin: 0; padding-left: 1.1rem; }
.rev-note s { color: var(--muted); }
.edit-items { display: grid; gap: .375rem; }
.ei-row { display: flex; align-items: center; gap: .5rem; }
.ei-row > span:first-child { flex: 1 1 auto; }
.ei-row input { width: 5.5rem; }
.rev-diff tbody th { white-space: nowrap; padding-right: .875rem; width: 1%; }

.stats-title { margin: 2rem 0 .75rem; font-size: 1.35rem; scroll-margin-top: 9rem; }
.presets .chip.on { background: var(--sel-bg); color: var(--sel-fg); }
/* 주문 조회 안내 (조회 칸 아래 고정) */
.lk-rule { background: transparent; box-shadow: none; border: 1px solid var(--line, #e6e1d8); }
.lk-rule h2 { font-size: var(--fs-md, 1rem); margin: 0 0 .5rem; }
.lk-rule p, .lk-rule li { color: var(--muted); font-size: var(--fs-sm); line-height: 1.6; }
.lk-rule ul { margin: .375rem 0 0; padding-left: 1.1rem; }
/* 가게 첫 화면: 전화(초록) · 카카오톡(노랑+진갈색 말풍선) + 누를 수 있다는 움직임 */
.btn-soft.btn-tel, .btn-soft.btn-kakao { box-shadow: 0 3px 10px rgba(0,0,0,.12), inset 0 -2px 0 rgba(0,0,0,.08); font-weight: 700; }
.btn-soft.btn-tel { background: linear-gradient(180deg, #6fe07a 0%, #34c759 100%); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.15); }
.btn-soft.btn-kakao { background: linear-gradient(180deg, #ffeb3b 0%, #fee500 100%); color: #3a1d1d; }
:is(.btn-tel, .btn-kakao)::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-18deg); animation: cta-shine 4.2s ease-in-out infinite; }
.btn-kakao::before { animation-delay: .35s; }
:is(.btn-tel, .btn-kakao) .ic-solid { animation: cta-nudge 4.2s ease-in-out infinite; transform-origin: 50% 60%; }
.btn-kakao .ic-solid { animation-delay: .35s; }
@keyframes cta-shine { 0%, 62% { left: -60%; } 82%, 100% { left: 130%; } }
@keyframes cta-nudge { 0%, 64%, 100% { transform: rotate(0); } 68% { transform: rotate(-12deg) scale(1.08); } 72% { transform: rotate(10deg) scale(1.08); } 76% { transform: rotate(-6deg); } 80% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { :is(.btn-tel, .btn-kakao)::before, :is(.btn-tel, .btn-kakao) .ic-solid { animation: none; } }
/* 날짜 달력 고르기 (작업판·녹화 목록) */
.dcal-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border-radius: 999px; border: 1.5px solid var(--line, #e7e2dc); background: var(--card, #fff); color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s, box-shadow .12s; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.dcal-btn:active { transform: scale(.97); }
.dcal-btn .dcal-ic { width: 1.15rem; height: 1.15rem; color: var(--brand, #8a5a3c); flex: none; }
.dcal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.dcal-back { position: absolute; inset: 0; background: rgba(20,16,12,.38); opacity: 0; transition: opacity .16s; }
.dcal-card { position: relative; width: min(420px, 100%); background: #fff; color: #2b2825; border-radius: 22px 22px 0 0; padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); transform: translateY(24px); opacity: 0; transition: transform .18s ease, opacity .16s; box-shadow: 0 -8px 30px rgba(0,0,0,.18); }
@media (min-width: 640px) { .dcal { align-items: center; } .dcal-card { border-radius: 22px; } }
.dcal.on .dcal-back { opacity: 1; } .dcal.on .dcal-card { transform: none; opacity: 1; }
.dcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dcal-head strong { font-size: 1.1rem; }
.dcal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #ebe6e0; background: #fff; font-size: 1.4rem; cursor: pointer; color: inherit; }
.dcal-wd, .dcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dcal-wd span { font-size: .78rem; color: #8b857f; padding: 4px 0; }
.dcal-wd .sun, .dcal-d.sun b { color: #d9534f; } .dcal-wd .sat, .dcal-d.sat b { color: #3b6fd8; }
.dcal-d { position: relative; aspect-ratio: 1 / 1; min-height: 42px; border: 0; border-radius: 12px; background: transparent; font: inherit; cursor: pointer; display: grid; place-items: center; color: inherit; }
.dcal-d b { font-weight: 600; font-size: .98rem; }
.dcal-d.has { background: #f6f1ea; }
.dcal-d i { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand, #8a5a3c); color: #fff; font-style: normal; font-size: .64rem; font-weight: 800; line-height: 14px; }
.dcal-d.today b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.dcal-d.sel { background: var(--brand, #8a5a3c); box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.dcal-d.sel b { color: #fff !important; } .dcal-d.sel i { background: #fff; color: var(--brand, #8a5a3c); }
.dcal-d:disabled { opacity: .3; cursor: default; }
.dcal-d:not(:disabled):active { transform: scale(.94); }
.dcal-foot { display: flex; gap: 8px; margin-top: 12px; }
.dcal-foot button { flex: 1; min-height: 46px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; }
.dcal-today { border: 0; background: var(--brand, #8a5a3c); color: #fff; }
.dcal-close { border: 1px solid #e7e2dc; background: #fff; color: inherit; }
@media (prefers-reduced-motion: reduce) { .dcal-card, .dcal-back { transition: none; } }
/* 녹화 목록 날짜 버튼 */
.rc-date { padding: .4rem .75rem; }

/* ---------- 주문서: 매장 안내 · 취소·환불 기준 (약관 제10조: 다른 내용과 구분해 굵게) · 주문 전 확인 ---------- */
.pickup-where p { margin: 0; }
.pickup-where p + p { margin-top: .35rem; }
.refund-box { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); padding: .75rem .85rem; margin: 0 0 1rem; }
section.card.refund-box { border-radius: var(--radius); }
.refund-box .rf-head { margin: 0 0 .4rem; font-size: var(--fs-sm); line-height: 1.5; }
.refund-box .rf-head strong { font-weight: 700; }
.rf-lines { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .35rem; font-weight: 700; }
.rf-lines li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .45rem .6rem; background: var(--surface); border-radius: 10px; }
.rf-lines li strong { font-weight: 800; }
.rf-lines li.rf-2 { color: var(--err); }
.rf-lines li.muted { font-weight: 500; justify-content: flex-start; }
.rf-lines li.rf-bulk { background: none; padding: 0 .2rem; font-weight: 600; }
.refund-box .rf-more { margin: .35rem 0 0; font-size: var(--fs-sm); }
.refund-box.flash { animation: rf-flash 1.2s var(--ease); }
@keyframes rf-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--err) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .refund-box.flash { animation: none; } }
.consent-refund { margin-top: .25rem; }
.consent-refund label { align-items: flex-start; }
dialog.review { max-width: 32rem; width: calc(100% - 2rem); }
dialog.review .summary { margin: .5rem 0 1rem; }
dialog.review dd.strong { font-weight: 800; }
.rv-sub { margin: .5rem 0 .25rem; }
.rv-refund { margin: 0 0 .25rem; }
.rv-actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.rv-actions .btn-primary { flex: 1 1 12rem; }
.terms h2 { font-size: var(--fs-lg); margin: 1.5rem 0 .5rem; }
.terms ol { padding-left: 1.25rem; }
.terms blockquote { margin: .5rem 0; padding: .6rem .8rem; background: var(--surface-2); border-radius: 10px; }
.terms-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: .5rem 0 1rem; }
.terms-table th, .terms-table td { border: 1px solid var(--line); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.terms-table th { background: var(--surface-2); }
.rf-lines li.past { opacity: .55; }
.rf-lines li.past strong { text-decoration: line-through; }
/* 취소·환불 기준 표 (주문서·확인 창·주문 완료 화면 공통) — 위약금 공제·환불 불가 칸은 빨간 굵은 글씨 */
.rf-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: .5rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .8125rem; }
.rf-table th, .rf-table td { padding: .45rem .6rem; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); font-weight: 700; color: var(--text); }
.rf-table thead th { border-top: 0; background: var(--surface-2); font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.rf-table thead th + th, .rf-table td { width: 1%; white-space: nowrap; text-align: center; }
.rf-table tbody th { font-weight: 700; }
.rf-table .nw { white-space: nowrap; }
.rf-table thead th { word-break: keep-all; overflow-wrap: normal; }
.rf-table thead th + th { white-space: nowrap; }
.refund-box .small { font-size: var(--fs-xs); }
@media (max-width: 360px) { .rf-table thead th + th { white-space: normal; } .rf-table { font-size: var(--fs-xs); } .rf-table th, .rf-table td { padding: .55rem .4rem; } }

.rf-table tr.past th, .rf-table tr.past td { opacity: .5; }
.rf-table .rf-past { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.rf-table .rf-empty td { width: auto; white-space: normal; text-align: left; font-weight: 500; color: var(--muted); }
.rf-cap { margin: 0 0 .4rem; font-size: var(--fs-xs); font-weight: 700; }
.rf-notes { list-style: none; margin: .5rem 0; padding: 0; display: grid; gap: .2rem; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); }
.rf-notes li { position: relative; padding-left: .9em; }
.rf-notes li::before { content: '·'; position: absolute; left: .15em; font-weight: 800; }
.rf-notes li.bad { color: var(--text); }
.rv-refund .rf-table { margin-top: .25rem; }
.rf-bad-line { margin: 0 0 .75rem; font-size: var(--fs-xs); font-weight: 700; }
.rv-note { margin: 0 0 1rem; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 장바구니형 첫 화면 (시즌 판매) ---------- */
html.noscroll, html.noscroll body { overflow: hidden; }
.store { padding-bottom: 7rem; }
.store-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; padding: 1.25rem 0 .5rem; }
.store-head .logo { width: 3.5rem; height: 3.5rem; margin: 0; }
.store-head .eyebrow { margin: 0 0 .25rem; }
.store-head .shop-name { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.store-head .tagline { margin: .25rem 0 0; color: var(--muted); font-size: var(--fs-sm); }
.store-head .lookup-btn { align-self: start; }
.store-strip { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 1rem; padding: .625rem .875rem; border-radius: var(--radius-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); color: var(--muted); }
.store-strip .ic { width: 1.1rem; height: 1.1rem; flex: none; color: var(--brand); }
.store-strip strong { color: var(--text); }
.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.prod-btn { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0 0 .75rem; text-align: left; background: var(--surface); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; cursor: pointer; color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.prod-btn:active { transform: scale(.97); }
.prod-img { display: block; aspect-ratio: 1; background: var(--surface-2); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-img .ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 2rem; font-weight: 800; color: var(--brand); background: var(--brand-soft); }
.prod-name { display: block; margin: .625rem .75rem 0; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.prod-desc { display: block; margin: .125rem .75rem 0; font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }
.prod-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: auto .75rem 0; padding-top: .5rem; }
.prod-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.prod-add { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); flex: none; box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand) 90%, #000); }
.prod-add .ic { width: 1.15rem; height: 1.15rem; stroke-width: 2.6; }
.prod.sold .prod-btn { opacity: .5; cursor: not-allowed; }
.store-info { margin-top: 1.5rem; }
.store-info .head-actions { margin: .75rem 0; }

/* 오른쪽 아래 장바구니 */
.cart-fab { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: .625rem; min-height: 3.5rem; padding: 0 1.125rem 0 .875rem; border: 0; border-radius: var(--pill); background: var(--btn-bg); color: var(--btn-fg); font: inherit; cursor: pointer; box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--brand) 90%, #000), 0 2px 6px rgba(0,0,0,.12); -webkit-tap-highlight-color: transparent; transition: transform .15s var(--ease); }
.cart-fab:active { transform: scale(.95); }
.cf-ico { position: relative; display: inline-flex; }
.cf-ico .ic { width: 1.6rem; height: 1.6rem; }
.cf-badge { position: absolute; top: -.5rem; right: -.625rem; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: var(--pill); background: #e23d28; color: #fff; font-size: .75rem; font-weight: 800; line-height: 1.25rem; text-align: center; box-shadow: 0 0 0 2px var(--btn-bg); }
.cart-fab:not(.has) .cf-badge { background: color-mix(in srgb, var(--btn-fg) 30%, transparent); }
.cf-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cf-lbl { font-size: .72rem; opacity: .85; }
.cf-text strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.cart-fab.bump { animation: fabBump .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes fabBump { 0% { transform: scale(1); } 35% { transform: scale(1.14); } 100% { transform: scale(1); } }
.fly-dot { position: fixed; z-index: 40; pointer-events: none; border-radius: 50%; overflow: hidden; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.fly-dot img { width: 100%; height: 100%; object-fit: cover; }
.cart-toast { position: fixed; left: 50%; bottom: calc(5.25rem + env(safe-area-inset-bottom)); z-index: 31; margin: 0; padding: .625rem 1rem; border-radius: var(--pill); background: rgba(25, 20, 15, .88); color: #fff; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; transform: translate(-50%, .5rem); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.cart-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 아래에서 올라오는 주문 창 */
dialog.sheet { position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 37.5rem; max-height: 92dvh; max-height: 92vh; height: 92dvh; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--bg); color: var(--text); display: none; flex-direction: column; overflow: hidden; box-shadow: 0 -20px 60px rgba(0,0,0,.25); }
dialog.sheet[open] { display: flex; animation: sheetUp .32s cubic-bezier(.2, .9, .3, 1); }
dialog.sheet.closing { animation: sheetDown .22s ease-in forwards; }
dialog.sheet::backdrop { background: rgba(20, 14, 8, .45); animation: fadeIn .25s; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
.sheet-grip { width: 2.5rem; height: .3125rem; margin: .5rem auto 0; border-radius: var(--pill); background: color-mix(in srgb, var(--text) 18%, transparent); flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .25rem 1rem .5rem 1.25rem; flex: none; touch-action: none; }
.sheet-head h2 { margin: 0; font-size: 1.15rem; }
.x-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); cursor: pointer; }
.x-btn .ic { width: 1.15rem; height: 1.15rem; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 1rem; -webkit-overflow-scrolling: touch; }
.sheet .paybar { position: sticky; bottom: 0; margin: 0 -1rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.cart-line:last-of-type { border-bottom: 0; }
.cl-info { display: flex; flex-direction: column; min-width: 0; gap: .125rem; }
.cl-price { font-size: var(--fs-sm); color: var(--muted); }
.cl-picks { margin: .375rem 0 0; padding: 0 0 0 1.1rem; font-size: var(--fs-xs); color: var(--text); display: grid; gap: .25rem; }
.cl-picks li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cl-x { border: 0; background: var(--surface-2); color: var(--muted); width: 1.5rem; height: 1.5rem; border-radius: 50%; font-size: .75rem; cursor: pointer; flex: none; }
.cart-line .stepper input[readonly] { pointer-events: none; }
.cart-empty { margin: .25rem 0 0; font-size: var(--fs-sm); }

/* C형 고르기 · 맛 고르기 창 */
dialog.pick-pop { max-height: 88dvh; overflow-y: auto; }
.pk-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.pk-head h2 { margin: 0 !important; }
.pk-vlabel { margin: 0 0 .5rem; font-size: var(--fs-sm); color: var(--muted); }
.pk-variants { display: grid; gap: .5rem; margin-bottom: 1rem; }
.pk-var { display: grid; grid-template-columns: 1fr auto; gap: .125rem .75rem; align-items: center; width: 100%; padding: .875rem 1rem; text-align: left; border: var(--ctl-border); border-radius: var(--radius-sm); background: var(--surface); color: inherit; font: inherit; cursor: pointer; }
.pk-var small { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-xs); }
.pk-var span { font-weight: 700; font-variant-numeric: tabular-nums; }
.pk-var.on { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 30%, transparent); background: var(--brand-soft); }
.pk-flabel { display: flex; align-items: center; justify-content: space-between; margin: 0 0 .5rem; }
.pk-count { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.pk-count.full { color: var(--ok); }
dialog.pop .pk-list { list-style: none; padding: 0; margin: 0 0 1rem; gap: 0; }
.pk-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .375rem 0; border-bottom: 1px solid var(--line); }
.pk-row.on .pk-name { font-weight: 700; }
.pk-row output { width: 1.75rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pk-ok { margin-top: .25rem; }

/* 접수 전 확인 창: 메시지를 보내야 진행된다는 안내 */
.rv-must { margin: 0 0 .5rem; padding: .625rem .75rem; border-radius: var(--radius-sm); background: #fffbe6; border: 1px solid #f5d90a; font-size: var(--fs-sm); }
.next-step.must .ns-title { line-height: 1.4; }
.next-step.must.fresh { animation: nsIn .5s cubic-bezier(.2, 1.3, .4, 1) .15s backwards; }
@keyframes nsIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.sms-cta { display: block; margin: .75rem 0 0; padding: .75rem 1rem; border-radius: 14px; background: #fff; border: 1px solid #e6dca0; color: #191919; text-decoration: none; font-size: var(--fs-sm); }
.sms-cta.solo { background: #34c759; border-color: #34c759; color: #fff; min-height: 3.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.ns-sub strong { color: #191919; }
.sheet-head h2 { flex: 1; text-align: left; }
/* 고르기 창: 제목과 담기 버튼은 늘 보이게(가운데만 스크롤) */
dialog.pick-pop { padding-bottom: 0; }
.pk-head { position: sticky; top: -1.5rem; z-index: 2; margin: -1.5rem -1.25rem .75rem; padding: 1.25rem 1.25rem .5rem; background: var(--surface); }
.pk-ok { position: sticky; bottom: 0; z-index: 2; margin: .25rem 0 0; box-shadow: 0 -14px 14px -2px var(--surface), 0 1rem 0 0 var(--surface); }
dialog.pick-pop::after { content: ''; display: block; height: 1rem; }
.pk-ok { bottom: .875rem; box-shadow: 0 0 0 .875rem var(--surface), 0 -1.75rem 1.25rem .5rem var(--surface); }
.pk-ok:disabled { opacity: 1; background: color-mix(in srgb, var(--brand) 38%, #fff); color: #fff; }
dialog.pick-pop::after { height: .875rem; }
.sheet-head { justify-content: flex-start; }
.sheet-head h2 { margin: 0 auto 0 0 !important; text-align: left !important; }
.src-card .help + .src-tags { margin-top: .5rem; padding-top: 0; border-top: 0; }
dialog.sheet { align-items: stretch; }
.sheet-head, .sheet-body { align-self: stretch; width: 100%; box-sizing: border-box; }
/* 픽업 시간: 4칸 격자로 오와 열 맞춤 (정각도 '00분') */
.slot-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem .375rem; }
.slot-chips .chip.pick { min-width: 0; width: 100%; padding: 0 .25rem; white-space: nowrap; font-size: .8125rem; letter-spacing: -.02em; }
@media (max-width: 360px) { .slot-chips .chip.pick { font-size: .75rem; letter-spacing: -.04em; } }
/* 담기 버튼 위로 번지던 흰 그림자 제거(위 선택지를 가리던 문제) — 버튼 둘레만 바탕색으로 덮음 */
.pk-ok { box-shadow: 0 0 0 .875rem var(--surface); }
/* 전화 · 카카오톡 · 인스타그램: 같은 크기로 한 줄 */
.head-actions.contact-3 { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: .5rem; }
.head-actions.contact-3 > a { width: 100%; min-width: 0; justify-content: center; gap: .375rem; padding: 0 .5rem; min-height: 3rem; font-size: .875rem; white-space: nowrap; }
.head-actions.contact-3 .ic-solid { width: 1.15rem; height: 1.15rem; flex: none; }
.btn-soft.btn-insta { background: linear-gradient(135deg, #f9b24a 0%, #ef5a6f 48%, #b347c4 100%); color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.18); box-shadow: 0 3px 10px rgba(0,0,0,.12), inset 0 -2px 0 rgba(0,0,0,.08); font-weight: 700; }
.btn-insta::before { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); animation: cta-shine 4.2s ease-in-out .7s infinite; }
.btn-insta .ic-solid { animation: cta-nudge 4.2s ease-in-out .7s infinite; transform-origin: 50% 60%; }
@media (prefers-reduced-motion: reduce) { .btn-insta::before, .btn-insta .ic-solid { animation: none; } }
@media (max-width: 360px) { .head-actions.contact-3 > a { font-size: .8125rem; gap: .25rem; padding: 0 .25rem; } .head-actions.contact-3 .ic-solid { width: 1rem; height: 1rem; } }
