:root {
  --kraft: #EFE3CB; --kraft2: #E4D3B2; --tag: #D8BC88; --paper: #FBF6EA; --bar: #F4EBD8; --line: #DDCCAA; --line2: #E8DCC3;
  --green: #1F4B34; --green-d: #143726; --green-t: #DCE7D3; --green-m: #3E6B4F;
  --tomato: #D6452C; --tomato-d: #AF3520; --tomato-t: #F7DCD1;
  --ink: #2A2317; --mute: #7E6F57; --soft: #AC9D80;
  --hand: 'Gaegu', 'Gowun Dodum', cursive;
  --sans: 'Gowun Dodum', -apple-system, 'Apple SD Gothic Neo', sans-serif;
  --band: 34px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: #D5C19B; color: var(--ink); font: 15px/1.5 var(--sans); word-break: keep-all; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
b, strong { font-weight: 700; }

.demo { height: var(--band); background: #111418; color: #C9CCD1; font: 13px/18px -apple-system, 'Apple SD Gothic Neo', sans-serif; text-align: center; padding: 8px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 20; }
.demo a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.demo b { color: #FF5A36; font-family: Menlo, monospace; font-weight: 400; }

/* 무대: 왼쪽 휴대폰 + 오른쪽 설명판 */
.stage { height: calc(100vh - var(--band)); min-height: 540px; display: flex; justify-content: center; align-items: center; gap: 72px; padding: 24px 40px; }
/* 휴대폰 기기: 화면은 늘 390×844, 창이 낮으면 통째로 줄인다(app.js fit) */
.device { position: relative; flex: none; zoom: var(--s, 1); padding: 11px; background: #161B16; border-radius: 61px; box-shadow: inset 0 0 0 1.5px #343E35, 0 0 0 2px #75806F, 0 0 0 3.5px #262D25, 0 46px 80px -34px rgba(48, 40, 20, .6); }
.device::before { content: ''; position: absolute; left: -5.5px; top: 148px; width: 3px; height: 190px; border-radius: 2px 0 0 2px; background: linear-gradient(to bottom, #6D7768 0 30px, transparent 30px 62px, #6D7768 62px 118px, transparent 118px 134px, #6D7768 134px 190px); }
.device::after { content: ''; position: absolute; right: -5.5px; top: 240px; width: 3px; height: 96px; border-radius: 0 2px 2px 0; background: #6D7768; }
.phone { width: 390px; height: 844px; border-radius: 50px; overflow: hidden; position: relative; background: var(--kraft); display: flex; flex-direction: column; isolation: isolate; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.phone input, .phone textarea { -webkit-user-select: text; user-select: text; }

.side { width: 580px; padding: 0 10px; flex: none; color: #4B3F2B; font-size: 14px; max-height: 100%; overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.side-brand { display: flex; align-items: center; gap: 10px; }
.side-brand .logo { font-size: 32px; }
.side-kind { font-size: 13px; color: #6E5F45; border: 1px solid #B9A47D; border-radius: 99px; padding: 1px 9px; }
.side-lead { margin-top: 12px; line-height: 1.7; max-width: 470px; }
.role { margin-top: 18px; display: inline-flex; background: #C7B188; border-radius: 10px; padding: 3px; }
.role a { padding: 6px 18px; border-radius: 8px; font-size: 14px; color: #4B3F2B; }
.role a.on { background: var(--paper); color: var(--green); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.side-cols { margin-top: 26px; display: grid; grid-template-columns: 1fr 230px; gap: 28px; align-items: start; }
/* 지금 화면: 가격표 모양 카드 */
.now { position: relative; background: var(--paper); border-radius: 6px 18px 18px 6px; padding: 22px 22px 22px 34px; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 14px 30px -18px rgba(60, 45, 15, .45); }
.now::before { content: ''; position: absolute; left: 13px; top: 26px; width: 9px; height: 9px; border-radius: 50%; background: #D5C19B; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .25); }
.now small { font-size: 12px; letter-spacing: .06em; color: var(--mute); }
.now h3 { font: 700 27px/1.2 var(--hand); color: var(--green); margin: 4px 0 10px; letter-spacing: -.07em; }
.now p { line-height: 1.7; color: #4B3F2B; }
.now code { font: 12px Menlo, monospace; color: var(--mute); display: block; margin-top: 14px; }
.side-h { font-size: 12px; letter-spacing: .06em; color: #6E5F45; font-weight: 400; }
.jump { margin-top: 8px; display: grid; }
.jump h4 { font-size: 12px; color: #8A7856; font-weight: 400; margin: 12px 0 2px; }
.jump a { padding: 5px 10px; margin: 0 -10px; border-radius: 8px; display: flex; justify-content: space-between; gap: 8px; color: #3F3524; }
.jump a:hover { background: #CDB892; }
.jump a.on { background: var(--green); color: #F4EBD8; }
.jump a code { font: 11px Menlo, monospace; opacity: .55; align-self: center; white-space: nowrap; }
.side-reset { margin-top: 18px; border: 1px solid #B39E76; border-radius: 10px; padding: 8px 14px; font-size: 14px; color: #4B3F2B; }
.side-reset:hover { background: #CDB892; }
.side-note { margin-top: 8px; font-size: 12px; color: #7A6A4C; }

@media (max-width: 1180px) {
  .stage { gap: 48px; padding: 24px; }
  .side { width: 320px; }
  .side-cols { grid-template-columns: 1fr; gap: 22px; }
  .side-lead { font-size: 13.5px; }
}

/* 상태바·홈 인디케이터 (데스크톱 프레임에만) */
.statusbar { height: 54px; flex: none; display: grid; grid-template-columns: 1fr 126px 1fr; align-items: center; padding: 0 10px; font-weight: 600; position: relative; z-index: 6; background: var(--kraft); }
.sb-time { justify-self: center; font: 600 17px -apple-system, 'SF Pro Text', sans-serif; letter-spacing: -.01em; }
.island { width: 126px; height: 37px; border-radius: 20px; background: #070807; justify-self: center; }
.sb-r { justify-self: center; display: flex; align-items: center; gap: 6px; }
.wifi { display: block; }
.sig { display: flex; align-items: flex-end; gap: 1.5px; height: 11px; }
.sig i { width: 3px; background: currentColor; border-radius: 1px; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; } .sig i:nth-child(3) { height: 8.5px; } .sig i:nth-child(4) { height: 11px; }
.bat { width: 24px; height: 12px; border: 1.5px solid rgba(42, 35, 23, .45); border-radius: 4px; position: relative; padding: 1.5px; display: block; }
.bat::before { content: ''; display: block; height: 100%; width: 72%; background: var(--ink); border-radius: 1.5px; }
.bat::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: rgba(42, 35, 23, .45); border-radius: 0 1px 1px 0; }
.homebar { flex: none; height: 22px; background: var(--bar); display: grid; place-items: center; }
.homebar i { width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: .85; }

@media (max-width: 719px) {
  body { background: var(--kraft); overflow: hidden; }
  .stage { display: block; padding: 0; min-height: 0; height: auto; }
  .side { display: none; }
  .device { zoom: 1; padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .device::before, .device::after { display: none; }
  .phone { width: 100%; height: calc(100vh - var(--band)); height: calc(100dvh - var(--band)); border-radius: 0; }
  .statusbar, .homebar { display: none; }
  .tabbar { height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
}

/* 화면 틀: 새 화면이 오른쪽에서 밀려 들어오고 이전 화면(.ghost)은 왼쪽으로 물러난다 */
.view { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; z-index: 1; background: var(--kraft); }
.view.push { animation: push .36s cubic-bezier(.2, .85, .25, 1); box-shadow: -10px 0 28px rgba(42, 35, 23, .12); }
.view.pop { animation: pop .32s cubic-bezier(.2, .85, .25, 1); }
.view.tabsw { animation: fade .16s ease-out; }
@keyframes push { from { transform: translateX(100%); } }
@keyframes pop { from { transform: translateX(-30%); } }
.ghost { position: absolute; left: 0; right: 0; z-index: 0; pointer-events: none; }
.ghost.push { animation: ghost-out .36s cubic-bezier(.2, .85, .25, 1) forwards; }
.ghost.pop { z-index: 2; box-shadow: -10px 0 28px rgba(42, 35, 23, .12); animation: ghost-away .32s cubic-bezier(.2, .85, .25, 1) forwards; }
@keyframes ghost-out { to { transform: translateX(-30%); filter: brightness(.94); } }
@keyframes ghost-away { to { transform: translateX(100%); } }

/* 내비게이션 바: 뿌리 화면은 큰 제목, 내리면 가운데 작은 제목 */
.nav { height: 44px; flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 0 8px; position: relative; z-index: 3; border-bottom: .5px solid transparent; transition: background-color .2s, border-color .2s; }
.nav.solid { background: var(--bar); border-bottom-color: var(--line); }
.nav-t { font-size: 17px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.nav.lg .nav-t { opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; }
.nav.lg.solid .nav-t { opacity: 1; transform: none; }
.back { justify-self: start; display: inline-flex; align-items: center; height: 44px; padding-right: 8px; color: var(--green); font-size: 17px; white-space: nowrap; max-width: 130px; overflow: hidden; }
.back span { overflow: hidden; text-overflow: ellipsis; }
.back svg { width: 28px; height: 28px; margin-right: -2px; flex: none; }
.back:active, .nav-r a:active, .nav-r button:active { opacity: .45; }
.nav-r { justify-self: end; display: flex; align-items: center; gap: 2px; padding-right: 4px; color: var(--green); }
.nav-ic { width: 38px; height: 38px; display: grid; place-items: center; color: var(--green); position: relative; }
.nav-ic .dot { position: absolute; top: 3px; right: 1px; }
.scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 0 18px 28px; scrollbar-width: none; }
.scroll::-webkit-scrollbar, .sheet::-webkit-scrollbar, .hscroll::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.large { font: 700 34px/1.15 var(--hand); letter-spacing: -.07em; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.large small { font: 14px var(--sans); color: var(--mute); }
.large .logo { font-size: 34px; }
.cta { flex: none; padding: 12px 18px; background: var(--bar); border-top: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.cta-t { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.cta-t b { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-t small { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta-t small.bad { color: var(--tomato-d); }
.cta .btn { flex: none; }
.cta .btn.wide { flex: 1; }

/* 하단 탭바 */
.tabbar { flex: none; height: 56px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bar); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10.5px; color: #A29372; position: relative; }
.tab.on { color: var(--green); }
.tab svg { width: 25px; height: 25px; }
.dot { min-width: 18px; height: 18px; border-radius: 9px; background: var(--tomato); color: #fff; font: 700 10.5px/14px -apple-system, sans-serif; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--bar); }
.tab .dot { position: absolute; top: 3px; left: calc(50% + 6px); }

/* 로고: 밭고랑 도장 + 손글씨 상호 */
.logo { display: inline-flex; align-items: center; gap: 8px; font: 700 24px/1 var(--hand); color: var(--green); letter-spacing: -.07em; }
.stamp { flex: none; width: .9em; height: .9em; border-radius: .2em; background: var(--tomato) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 22c5-4 13-4 18 0M7 16c5-4 13-4 18 0M7 10c5-4 13-4 18 0' fill='none' stroke='%23FBF6EA' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; transform: rotate(-5deg); }

/* 공통 부품 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 50px; padding: 0 22px; border-radius: 14px; background: var(--green); color: #F7EFDD; font-size: 16px; font-weight: 700; white-space: nowrap; }
.btn:active { background: var(--green-d); transform: scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { background: #CDBE9F; color: #F8F1E2; transform: none; }
.btn.red { background: var(--tomato); }
.btn.red:active { background: var(--tomato-d); }
.btn.line { background: transparent; color: var(--green); box-shadow: inset 0 0 0 1.5px #BFAE89; }
.btn.line.red { color: var(--tomato-d); box-shadow: inset 0 0 0 1.5px #E3B5A6; }
.btn.sm { height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn.block { display: flex; width: 100%; }
.sec { font-size: 13px; color: var(--mute); margin: 24px 2px 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sec b { font: 700 21px var(--hand); color: var(--ink); letter-spacing: -.07em; }
.sec a { color: var(--green); font-size: 14px; }
.hint { font-size: 13px; color: var(--mute); line-height: 1.55; }
.err-msg { color: var(--tomato-d); font-size: 13px; margin-top: 6px; }
.empty { text-align: center; padding: 56px 16px; color: var(--mute); }
.empty b { display: block; font: 700 24px var(--hand); color: var(--ink); margin-bottom: 4px; letter-spacing: -.07em; }
.empty .btn { margin-top: 18px; }
.empty .crate { width: 76px; height: 54px; margin: 0 auto 16px; border: 2px dashed #BFAE89; border-radius: 8px; position: relative; }
.empty .crate::before { content: ''; position: absolute; left: 10px; right: 10px; top: 18px; height: 2px; background: #CFC0A0; box-shadow: 0 10px 0 #CFC0A0; }
.card { background: var(--paper); border: 1px solid var(--line2); border-radius: 16px; padding: 16px; }
.card + .card { margin-top: 10px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; background: #E8DCC2; color: #6B5B3D; flex: none; }
.badge.shipped { background: var(--green-t); color: var(--green); }
.badge.transit { background: var(--tomato-t); color: var(--tomato-d); }
.badge.done { background: var(--green); color: #F4EBD8; }
.badge.cancel { background: transparent; color: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.badge.rg { background: transparent; color: var(--tomato-d); box-shadow: inset 0 0 0 1px #E4B7A8; }
.badge.late { background: var(--tomato); color: #fff; }
.badge.pre { background: #F1E1BC; color: #7A5414; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--kraft2); border-radius: 11px; padding: 3px; }
.seg > * { height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 14px; color: #6B5B3D; white-space: nowrap; padding: 0 6px; }
.seg > .on { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(60, 45, 15, .14); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px; padding: 0 18px; scrollbar-width: none; }
.chip { flex: none; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; color: #5B4D35; display: inline-flex; align-items: center; gap: 4px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
input[type="text"], input[type="search"], input[type="tel"], input:not([type]) { width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 11px 13px; font-size: 16px; }
input:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: transparent; }
.field-err { outline: 2px solid var(--tomato) !important; outline-offset: -1px; border-color: transparent !important; }
.chev { width: 18px; height: 18px; color: #B7A786; flex: none; }

/* 스위치 */
.switch { position: relative; flex: none; width: 51px; height: 31px; display: inline-block; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: #D9CBAE; transition: background-color .2s; }
.switch i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .22s cubic-bezier(.3, .8, .3, 1); }
.switch input:checked + i { background: var(--green-m); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--green); outline-offset: 2px; }

/* 목록 셀 */
.cells { background: var(--paper); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden; }
.cell { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; width: 100%; position: relative; }
.cell + .cell::before { content: ''; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--line2); }
.cell.ind + .cell.ind::before { left: 66px; }
.cell-t { flex: 1; min-width: 0; display: grid; line-height: 1.4; }
.cell-t b { font-size: 15.5px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-t small { font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell-v { font-size: 14px; color: var(--mute); white-space: nowrap; }
.cell.red .cell-t b { color: var(--tomato-d); }
a.cell:active, button.cell:active { background: #F1E8D6; }

/* 품목 색 타일: 사진 대신 색과 손글씨 이름 */
.tile { --c: #B3342C; --k: #fff; position: relative; background: var(--c); color: var(--k); border-radius: 14px; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; padding: 10px 12px; overflow: hidden; }
.tile::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); pointer-events: none; }
.tile b { font: 700 30px/1.05 var(--hand); letter-spacing: -.07em; }
.tile small { font-size: 11.5px; opacity: .8; }
.tile.t4 b { font-size: 25px; }
.tile.t5 b { font-size: 21px; }
.tile.mini { width: 44px; height: 44px; aspect-ratio: auto; padding: 0; border-radius: 10px; flex: none; display: grid; place-items: center; }
.tile.mini b { font-size: 15px; text-align: center; line-height: 1; padding: 0 2px; }
.tile.mini small { display: none; }
.tile.mini.long b { font-size: 12.5px; }
.tile.dim { filter: grayscale(.65) brightness(1.05); opacity: .75; }

/* 가격표: 끈 구멍이 있는 크라프트 꼬리표 */
.ptag { position: relative; display: inline-flex; align-items: baseline; gap: 1px; height: 28px; padding: 0 11px 0 19px; background: var(--tag); color: var(--ink); font: 700 20px/28px var(--hand); clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); transform: rotate(-2.5deg); white-space: nowrap; letter-spacing: -.07em; }
.ptag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .25); }
.ptag small { font: 13px var(--sans); margin-left: 1px; }
.ptag.lg { height: 36px; font-size: 27px; line-height: 36px; padding: 0 14px 0 24px; clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); }
.ptag.lg::before { left: 10px; width: 8px; height: 8px; margin-top: -4px; background: var(--kraft); }
.ptag.lg small { font-size: 14px; }
.ptag.so { background: #D9D0BE; color: #8A7F6A; }

/* 홈 */
.addr-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: #5B4D35; margin: -8px 0 14px; max-width: 100%; }
.addr-chip svg { width: 17px; height: 17px; color: var(--tomato); flex: none; }
.addr-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-chip .chev { width: 15px; height: 15px; transform: rotate(90deg); }
.shipcard { background: var(--green); color: #F4EBD8; border-radius: 18px; padding: 16px 16px 14px; }
.sc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.sc-top small { display: block; font-size: 12.5px; color: #B9CBB5; }
.sc-top b { display: block; font: 700 28px/1.15 var(--hand); color: #FFF7E6; margin-top: 2px; letter-spacing: -.07em; }
.sc-left { text-align: right; font-size: 13px; color: #DCE7D3; line-height: 1.4; }
.sc-left em { display: block; font: 700 22px/1.1 var(--hand); font-style: normal; color: var(--tag); letter-spacing: -.07em; }
.week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 14px; }
.week li { display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 10px; font-size: 11px; color: #B9CBB5; }
.week li b { font-size: 16px; color: #F4EBD8; font-weight: 400; font-variant-numeric: tabular-nums; }
.week li span { height: 17px; font-size: 11px; }
.week li.today { background: rgba(255, 255, 255, .1); }
.week li.ship span { background: var(--tag); color: var(--green-d); border-radius: 5px; padding: 0 5px; line-height: 17px; }
.week li.cut span { color: #FFB49F; }
.sc-note { margin-top: 10px; font-size: 12.5px; color: #C9D8C4; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 18px; }
.hscroll .pc { flex: none; width: 140px; scroll-snap-align: start; }
.pc { display: block; position: relative; }
.pc .tile { aspect-ratio: 1 / 1.02; }
.pc-b { padding: 8px 2px 0; display: grid; gap: 1px; }
.pc-b b { font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-b small { font-size: 12.5px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-b .ptag { justify-self: start; margin-top: 6px; }
.pc:active .tile { filter: brightness(.94); }
.flag { position: absolute; bottom: 8px; right: 8px; z-index: 1; font: 700 15px/22px var(--hand); font-style: normal; padding: 0 8px; border-radius: 6px; background: var(--paper); color: var(--ink); transform: rotate(3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); letter-spacing: -.07em; }
.flag.so, .flag.off { background: var(--ink); color: var(--paper); }
.flag.low { background: var(--tomato); color: #fff; }
.flag.pre { background: #F7E7BF; color: #7A5414; }
.farm-row .stamp-rg { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tomato); color: var(--tomato-d); display: grid; place-items: center; font: 700 17px var(--hand); transform: rotate(-6deg); letter-spacing: -.07em; }
.pre-row .cell-v { text-align: right; line-height: 1.35; }
.pre-row .cell-v b { display: block; color: var(--ink); font-weight: 400; }

/* 장터 */
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; color: var(--mute); }
.search input { padding-left: 38px; background: var(--paper); border-radius: 11px; height: 42px; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search .clr { position: absolute; right: 6px; top: 50%; margin-top: -15px; width: 30px; height: 30px; display: grid; place-items: center; color: var(--soft); }
.mk-filters { display: grid; gap: 10px; margin-top: 12px; }
.mk-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 2px 10px; font-size: 13px; color: var(--mute); }
.mk-head label { display: inline-flex; align-items: center; gap: 8px; color: #5B4D35; font-size: 13.5px; }
.mk-head .switch { transform: scale(.82); transform-origin: right center; margin-left: -6px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }

/* 상품 상세 */
.hero { position: relative; margin: 2px 0 0; aspect-ratio: 1 / .78; border-radius: 22px; background: var(--c); color: var(--k); padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.hero b { font: 700 64px/1 var(--hand); letter-spacing: -.07em; }
.hero .kgs { align-self: flex-start; font: 700 19px/1 var(--hand); border: 1.5px solid currentColor; border-radius: 8px; padding: 5px 10px 3px; transform: rotate(-3deg); opacity: .92; letter-spacing: -.07em; }
.hero small { font-size: 13px; opacity: .85; }
.hero .flag { top: auto; bottom: 18px; right: 18px; font-size: 18px; line-height: 26px; padding: 0 10px; }
.hero.dim { filter: grayscale(.6); }
.pd-head { padding: 16px 2px 4px; display: grid; gap: 6px; justify-items: start; }
.pd-name { font: 700 30px/1.15 var(--hand); letter-spacing: -.07em; }
.farm-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--green); }
.farm-link .chev { width: 15px; height: 15px; color: var(--green); }
.pd-head .ptag { margin-top: 6px; }
.facts { margin-top: 14px; background: var(--paper); border: 1px solid var(--line2); border-radius: 16px; padding: 4px 14px; }
.facts > div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px 0; }
.facts > div + div { border-top: 1px dashed var(--line); }
.facts dt { font-size: 13.5px; color: var(--mute); }
.facts dd { font-size: 14.5px; }
.facts dd small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 1px; }
.facts dd .low { color: var(--tomato-d); }
.pd-desc { margin: 16px 2px 0; line-height: 1.7; color: #3F3524; }
.alert-cell { margin-top: 14px; }

/* 옵션 시트 */
.opts { display: grid; gap: 8px; margin-top: 14px; }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); width: 100%; }
.opt .kg { font: 700 22px/1 var(--hand); min-width: 48px; letter-spacing: -.07em; }
.opt .o-t { display: grid; line-height: 1.35; }
.opt .o-t small { font-size: 12.5px; color: var(--mute); }
.opt .o-t small.low { color: var(--tomato-d); }
.opt .o-p { font-size: 16px; }
.opt.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: #F4F3E4; }
.opt:disabled { opacity: .5; }
.qty-row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.stepper { display: inline-grid; grid-template-columns: 36px 36px 36px; align-items: center; background: var(--kraft); border-radius: 10px; height: 36px; flex: none; }
.stepper button { height: 36px; display: grid; place-items: center; color: var(--green); }
.stepper button:disabled { color: #C9BA9A; }
.stepper button svg { width: 18px; height: 18px; }
.stepper output { text-align: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.sum-line { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.sum-line b { font: 700 26px var(--hand); letter-spacing: -.07em; }

/* 장바구니 · 상자 */
.addr-cell { margin-bottom: 14px; }
.addr-cell svg.pin { width: 22px; height: 22px; color: var(--tomato); flex: none; }
.box { background: var(--paper); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; }
.box + .box { margin-top: 12px; }
.box-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; background: linear-gradient(to bottom, #E9DABB, #E4D3B2); border-bottom: 1px solid var(--line); }
.box-h .bf { min-width: 0; display: grid; line-height: 1.3; }
.box-h .bf b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.box-h .bf small { font-size: 12px; color: var(--mute); }
.ship-tag { flex: none; font: 700 16px/24px var(--hand); background: var(--paper); color: var(--green); padding: 0 9px; border-radius: 6px; transform: rotate(-2deg); white-space: nowrap; letter-spacing: -.07em; }
.ship-tag.pre { background: #F7E7BF; color: #7A5414; }
.ci { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.ci + .ci { border-top: 1px solid var(--line2); }
.ci-t { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.ci-t b { font-size: 15px; font-weight: 400; }
.ci-t small { font-size: 12.5px; color: var(--mute); }
.ci-t .err-msg { margin-top: 2px; font-size: 12.5px; }
.ci-r { display: grid; justify-items: end; gap: 6px; align-self: center; }
.ci-r .price, .ci-q .price { font-size: 15px; font-variant-numeric: tabular-nums; }
.ci-q { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.ci .x { width: 28px; height: 28px; display: grid; place-items: center; color: var(--soft); margin: -4px -6px 0 0; align-self: flex-start; }
.ci .x svg { width: 16px; height: 16px; }
.box-f { padding: 10px 14px 12px; border-top: 1px dashed var(--line); display: grid; gap: 3px; font-size: 13.5px; }
.box-f .row { display: flex; justify-content: space-between; gap: 10px; }
.box-f .row span:first-child { color: var(--mute); }
.box-f .row.tot { font-size: 15px; margin-top: 3px; }
.box-f .row.tot span:first-child { color: var(--ink); }
.box-f .free { color: var(--green-m); font-size: 12.5px; }
.box-f .warn { margin-top: 6px; padding: 9px 11px; border-radius: 10px; background: var(--tomato-t); color: #8A2A18; font-size: 13px; line-height: 1.45; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.box-f .warn a { flex: none; font-size: 13px; color: var(--tomato-d); border-bottom: 1px solid currentColor; }
.summary { margin-top: 14px; }
.summary .row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14.5px; }
.summary .row span:first-child { color: var(--mute); }
.summary .row.tot { margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 16px; align-items: baseline; }
.summary .row.tot b { font: 700 26px var(--hand); color: var(--green); letter-spacing: -.07em; }
.summary .row.minus { color: var(--tomato-d); }
.cart-note { margin: 12px 4px 0; }

/* 주문서 */
.reqs { display: flex; gap: 6px; flex-wrap: wrap; }
.demo-pay { border: 1.5px dashed #BFAE89; background: transparent; border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.demo-pay .card-ic { flex: none; width: 46px; height: 32px; border-radius: 6px; background: var(--ink); position: relative; }
.demo-pay .card-ic::after { content: ''; position: absolute; left: 7px; top: 9px; width: 10px; height: 8px; border-radius: 2px; background: var(--tag); }
.demo-pay b { display: block; font-size: 15px; }
.demo-pay small { font-size: 12.5px; color: var(--mute); }
.agree { margin-top: 12px; }
.agree.err { box-shadow: 0 0 0 2px var(--tomato); animation: shake .32s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.co-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; }
.co-box + .co-box { border-top: 1px solid var(--line2); }
.co-box b { font-size: 15px; font-weight: 400; }
.co-box small { font-size: 12.5px; color: var(--mute); grid-column: 1; }
.co-box .v { grid-row: 1 / span 2; grid-column: 2; align-self: center; text-align: right; font-size: 14.5px; }
.banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: var(--tomato-t); color: #8A2A18; font-size: 13.5px; margin-bottom: 12px; }
.banner a { flex: none; color: var(--tomato-d); border-bottom: 1px solid currentColor; }

/* 결제 중 · 완료 */
.paying { text-align: center; padding: 28px 0 16px; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--green-t); border-top-color: var(--green); margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.paying small { display: block; margin-top: 6px; color: var(--mute); font-size: 13px; }
.done-top { text-align: center; padding: 30px 0 10px; }
.done-mark { width: 74px; height: 74px; border-radius: 50%; background: var(--green); color: #F4EBD8; display: grid; place-items: center; margin: 0 auto 14px; transform: rotate(-6deg); }
.done-mark svg { width: 38px; height: 38px; }
.done-top h2 { font: 700 32px var(--hand); letter-spacing: -.07em; }
.done-top p { color: var(--mute); margin-top: 2px; }
.done-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }

/* 주문 조회 */
.seg-wrap { margin-bottom: 14px; }
.oc { display: block; background: var(--paper); border: 1px solid var(--line2); border-radius: 16px; padding: 14px; }
.oc + .oc { margin-top: 10px; }
.oc:active { background: #F3EBDA; }
.oc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.oc-top b { font-size: 15px; margin-right: auto; }
.oc-top small { width: 100%; font-size: 12px; color: var(--mute); order: 9; }
.oc-mid { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.stack { display: flex; flex: none; }
.stack .tile.mini + .tile.mini { margin-left: -14px; box-shadow: -2px 0 0 var(--paper); }
.oc-mid .t { min-width: 0; display: grid; line-height: 1.4; }
.oc-mid .t b { font-size: 15px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-mid .t small { font-size: 13px; color: var(--mute); }
.mini-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 12px; }
.mini-track i { height: 4px; border-radius: 2px; background: var(--line2); }
.mini-track i.on { background: var(--green-m); }
.mini-track.cx i { background: var(--line2); }

/* 주문 상세: 상자별 단계 */
.od-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.od-head small { display: block; font-size: 13px; color: var(--mute); }
.od-head b { font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 8px 10px; position: relative; }
.track li { display: grid; justify-items: center; text-align: center; gap: 3px; position: relative; font-size: 12.5px; color: var(--soft); }
.track li::before { content: ''; position: absolute; top: 7px; left: calc(-50% + 9px); right: calc(50% + 9px); height: 2px; background: var(--line); }
.track li:first-child::before { display: none; }
.track li i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); position: relative; z-index: 1; }
.track li small { font-size: 11.5px; color: var(--soft); min-height: 16px; }
.track li.on { color: var(--ink); }
.track li.on i { background: var(--green-m); border-color: var(--green-m); }
.track li.on::before { background: var(--green-m); }
.track li.cur i { background: var(--paper); border-color: var(--tomato); box-shadow: 0 0 0 3px var(--tomato-t); }
.track li.cur { color: var(--tomato-d); }
.track li.on small { color: var(--mute); }
.inv { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 14px 12px; padding: 10px 12px; border-radius: 12px; background: var(--kraft); font-size: 13.5px; }
.inv b { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-weight: 400; font-size: 15px; display: block; }
.inv small { color: var(--mute); font-size: 12px; }
.inv button { flex: none; font-size: 13px; color: var(--green); border: 1px solid #BFAE89; border-radius: 8px; padding: 4px 10px; }
.inv.wait { color: var(--mute); }
.demo-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: calc(100% - 28px); margin: 0 14px 14px; padding: 9px; border-radius: 10px; border: 1.5px dashed #C5B38D; font-size: 13.5px; color: #6B5B3D; }
.demo-btn em { font-style: normal; font-size: 11px; background: var(--ink); color: var(--paper); border-radius: 4px; padding: 0 5px; }
.demo-btn:active { background: #F1E8D6; }
.kv { display: grid; gap: 6px; font-size: 14px; }
.kv .row { display: flex; justify-content: space-between; gap: 12px; }
.kv .row span:first-child { color: var(--mute); flex: none; }
.kv .row span:last-child { text-align: right; }
.kv .row.tot { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 15.5px; }
.kv .row.tot span:last-child { font: 700 22px var(--hand); color: var(--green); letter-spacing: -.07em; }
.kv .row.minus span:last-child { color: var(--tomato-d); }
.od-cx { margin-top: 18px; }
.od-cx .hint { text-align: center; margin-top: 8px; }

/* 마이 */
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; background: var(--tag); display: grid; place-items: center; font: 700 24px var(--hand); color: var(--green-d); flex: none; letter-spacing: -.07em; }
.profile b { font-size: 18px; display: block; }
.profile small { color: var(--mute); font-size: 13.5px; }
.cell .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--green); color: #F4EBD8; flex: none; }
.cell .ic svg { width: 18px; height: 18px; }
.cell .ic.red { background: var(--tomato); }
.cell .ic.kraft { background: var(--tag); color: var(--green-d); }
.biz { margin: 18px 4px 0; font-size: 12px; color: var(--soft); line-height: 1.6; }
.addr-item { align-items: flex-start; }
.addr-item .cell-t b { font-weight: 700; display: flex; gap: 6px; align-items: center; }
.addr-item .cell-t small { white-space: normal; }
.addr-item .sel { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; display: grid; place-items: center; }
.addr-item .sel.on { border-color: var(--green); background: var(--green); color: #fff; }
.addr-item .sel svg { width: 14px; height: 14px; }
.addr-item .edit { flex: none; font-size: 13px; color: var(--green); padding: 4px 8px; border-radius: 8px; border: 1px solid #C5B38D; }

/* 농가 화면 */
.farm-sw { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--green); color: #F4EBD8; margin-bottom: 14px; }
.farm-sw .stamp-rg { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--tag); color: var(--tag); display: grid; place-items: center; font: 700 16px var(--hand); transform: rotate(-6deg); letter-spacing: -.07em; }
.farm-sw .cell-t b { font-size: 17px; font-weight: 700; }
.farm-sw .cell-t small { color: #B9CBB5; }
.farm-sw .sw-t { flex: none; font-size: 12px; border: 1px solid #6F8E78; border-radius: 99px; padding: 2px 9px; color: #DCE7D3; }
.fgroup { margin-top: 18px; }
.fgroup-h { display: grid; gap: 1px; margin: 0 2px 8px; }
.fgroup-h b { font: 700 20px var(--hand); letter-spacing: -.07em; }
.fgroup-h b.late { color: var(--tomato-d); }
.fgroup-h small { font-size: 12.5px; color: var(--mute); }
.pack { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.pack span { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: #4B3F2B; }
.pack span b { font-weight: 700; color: var(--green); }
.fo { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 14px; position: relative; }
.fo + .fo::before { content: ''; position: absolute; top: 0; left: 14px; right: 0; border-top: 1px solid var(--line2); }
.fo:active { background: #F1E8D6; }
.fo .nm { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 15.5px; }
.fo .it { grid-column: 1; font-size: 14px; color: #3F3524; }
.fo .meta { grid-column: 1 / -1; font-size: 12px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo .r { grid-row: 1 / span 2; grid-column: 2; display: grid; justify-items: end; align-content: center; gap: 4px; }
.fo .r .chev { width: 16px; height: 16px; }
.ship-to .row { display: grid; grid-template-columns: 56px 1fr; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.ship-to .row + .row { border-top: 1px dashed var(--line); }
.ship-to .row > small { font-size: 13px; color: var(--mute); padding-top: 1px; }
.ship-to .who { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ship-to .who b { font-size: 17px; }
.ship-to .who a { color: var(--green); font-size: 14px; font-variant-numeric: tabular-nums; }
.pk { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.pk + .pk { border-top: 1px solid var(--line2); }
.pk .t { flex: 1; display: grid; line-height: 1.35; }
.pk .t small { font-size: 12.5px; color: var(--mute); }
.pk .q { font-size: 22px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.pk .q small { font: 13px var(--sans); color: var(--mute); margin-left: 1px; }
.card-h { font: 700 19px var(--hand); margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; letter-spacing: -.07em; }
.card-h small { font: 13px var(--sans); color: var(--mute); }
.inv-form .seg { margin-bottom: 10px; }
.inv-in { font-size: 20px !important; letter-spacing: .06em; font-variant-numeric: tabular-nums; height: 52px; }
.inv-now { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--green-t); color: var(--green-d); margin-bottom: 10px; }
.inv-now b { font-size: 17px; letter-spacing: .03em; font-weight: 400; font-variant-numeric: tabular-nums; display: block; }
.inv-now small { font-size: 12.5px; }
.next-cell { margin-top: 14px; }
.fi { padding: 14px; }
.fi-top { display: flex; align-items: center; gap: 12px; }
.fi-top .t { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.fi-top .t b { font-size: 16px; }
.fi-top .t small { font-size: 12.5px; color: var(--mute); }
.fi-opt { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 0 0; margin-top: 10px; border-top: 1px dashed var(--line); }
.fi-opt .o { display: grid; line-height: 1.3; }
.fi-opt .o small { font-size: 12px; color: var(--mute); }
.fi-opt .p { font-size: 14px; color: #4B3F2B; font-variant-numeric: tabular-nums; }
.fi-opt .stepper { background: var(--kraft); }
.fi-opt .stepper output.zero { color: var(--tomato-d); }
.fi-alert { margin-top: 10px; font-size: 13px; color: var(--tomato-d); background: var(--tomato-t); padding: 7px 10px; border-radius: 9px; }
.fi.off .fi-top .tile, .fi.off .fi-opt { opacity: .5; }
.settle-top { background: var(--green); color: #F4EBD8; border-radius: 18px; padding: 16px; }
.settle-top small { font-size: 12.5px; color: #B9CBB5; display: block; }
.settle-top b { display: block; font: 700 34px/1.15 var(--hand); color: #FFF7E6; margin: 2px 0 4px; letter-spacing: -.07em; }
.settle-top .sub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 13px; }
.settle-top .sub span { display: block; color: #B9CBB5; font-size: 12px; }
.st-row { padding: 12px 14px; display: grid; gap: 6px; }
.st-row + .st-row { border-top: 1px solid var(--line2); }
.st-row .h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.st-row .h b { font-size: 15px; }
.st-row .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 12.5px; color: var(--mute); }
.st-row .nums span b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 400; font-variant-numeric: tabular-nums; }
.st-row .pay { display: flex; justify-content: space-between; font-size: 14px; }
.st-row .pay b { font-variant-numeric: tabular-nums; }

/* 시트 */
.sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-bg { position: absolute; inset: 0; background: rgba(30, 26, 15, .45); animation: fade .2s ease-out; }
.sheet { position: relative; background: var(--paper); border-radius: 24px 24px 0 0; padding: 8px 18px 24px; max-height: 90%; overflow-y: auto; animation: up .3s cubic-bezier(.2, .85, .25, 1); box-shadow: 0 -10px 30px rgba(30, 26, 15, .15); }
.sheet-wrap.out .sheet-bg { animation: fade .18s reverse forwards; }
.sheet-wrap.out .sheet { animation: down .2s ease-in forwards; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
.grab { width: 38px; height: 5px; border-radius: 3px; background: #DCCFB4; margin: 0 auto 14px; }
.sheet h3 { font: 700 25px/1.25 var(--hand); letter-spacing: -.07em; }
.sheet .sub-t { color: var(--mute); font-size: 13.5px; margin-top: 2px; }
.sheet-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 18px; }
.sheet-btns.even { grid-template-columns: 1fr 1fr; }
.sheet .btn.block { margin-top: 18px; }
.sheet .cells { margin-top: 14px; }
.sheet label.f { display: grid; gap: 5px; margin-top: 12px; font-size: 13.5px; color: #4B3F2B; }
.sheet label.f .rg-t { font-size: 12.5px; color: var(--tomato-d); }
.sheet label.f .fe { margin-top: 0; }
.sheet label.f .rg-t.ok { color: var(--mute); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.refund { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--green-t); color: var(--green-d); display: grid; gap: 2px; }
.refund b { font-size: 16px; }
.refund small { font-size: 13px; opacity: .85; }

.toast { position: absolute; left: 50%; bottom: 92px; transform: translate(-50%, 12px); background: rgba(20, 55, 38, .95); color: #F4EBD8; font-size: 14px; padding: 10px 16px; border-radius: 12px; z-index: 40; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; width: max-content; max-width: calc(100% - 40px); text-align: center; line-height: 1.45; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
