/* 사장님 화면(web.md 2절, 시안 web/design/upload_mock.html v2). 테마는 휴대폰 설정을 따른다: 색은 아래 변수만 바꾼다 */
:root {
  --canvas: #f2f4f6; --card: #ffffff; --card2: #ffffff;
  --text: #191f28; --text2: #4e5968; --sub: #8b95a1; --faint: #b0b8c1; --line: #eef0f3;
  --blue: #3182f6; --blue-soft: #e8f3ff; --blue-ink: #1b64da;
  --amber: #ff9500; --amber-soft: #fff4e6; --amber-ink: #c76a00;
  --red: #f04452; --red-soft: #ffeef0;
  --green: #15c47e; --green-soft: #e6f9f1; --green-ink: #0a9c5f;
  --shadow: 0 1px 2px rgba(17,24,39,.04), 0 6px 20px rgba(17,24,39,.05);
  --dash: #d1d6db; --canvas0: rgba(242,244,246,0); --btn-glow: rgba(49,130,246,.28);
  --av-a: #fdecec; --av-a-ink: #d63c3c; --av-b: #e9eefe; --av-b-ink: #4a63d9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #101013; --card: #1d1d23; --card2: #26262d;
    --text: #f4f5f7; --text2: #c4c7cd; --sub: #8d9099; --faint: #55585f; --line: #2b2b33;
    --blue-soft: rgba(49,130,246,.16); --blue-ink: #6ba9ff;
    --amber: #ff9f1a; --amber-soft: rgba(255,159,26,.14); --amber-ink: #ffb84d;
    --red: #f45865; --red-soft: rgba(244,88,101,.16);
    --green: #22d38c; --green-soft: rgba(34,211,140,.14); --green-ink: #4fe0a6;
    --shadow: 0 0 0 0 transparent; --dash: #3a3a44; --canvas0: rgba(16,16,19,0); --btn-glow: rgba(0,0,0,0);
    --av-a: rgba(244,88,101,.16); --av-a-ink: #ff8a94; --av-b: rgba(110,140,255,.18); --av-b-ink: #9db0ff;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif; word-break: keep-all; overflow-wrap: break-word; background: var(--canvas);
       color: var(--text); -webkit-font-smoothing: antialiased; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.n { font-feature-settings: "tnum"; }
.page { max-width: 760px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; position: relative;
        padding: 12px 20px calc(170px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }

.nav { height: 52px; display: flex; align-items: center; margin: 0 -6px 8px; }
.nav svg { width: 30px; height: 30px; color: var(--text); }
.top { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 4px 22px; }
.top b { font-size: 22px; font-weight: 700; }

h1 { font-size: 30px; font-weight: 700; line-height: 1.38; letter-spacing: -0.035em; margin: 6px 4px 10px; }
.lead { font-size: 19px; color: var(--sub); line-height: 1.55; margin: 0 4px 28px; font-weight: 500; }

.card { background: var(--card); border-radius: 24px; padding: 24px; margin-bottom: 12px; box-shadow: var(--shadow); display: block; }
.card.tight { padding: 20px 24px; }
.cap { font-size: 16px; color: var(--sub); font-weight: 500; }
.hero { font-size: 42px; font-weight: 700; letter-spacing: -0.04em; margin-top: 6px; }
.hero small { font-size: 26px; font-weight: 600; margin-left: 2px; }
.item { display: flex; align-items: center; gap: 14px; }
.item + .item { margin-top: 20px; }
.grow { flex: 1; min-width: 0; }
.ttl { font-size: 19px; font-weight: 600; }
.sub { font-size: 16px; color: var(--sub); margin-top: 3px; font-weight: 500; }
.amt { font-size: 19px; font-weight: 600; text-align: right; white-space: nowrap; }
.av { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
      font-size: 17px; font-weight: 700; flex: none; }
.av.a { background: var(--av-a); color: var(--av-a-ink); } .av.b { background: var(--av-b); color: var(--av-b-ink); }
.chev { width: 22px; height: 22px; color: var(--faint); flex: none; }
.sect { font-size: 16px; font-weight: 600; color: var(--sub); margin: 22px 6px 10px; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; padding: 6px 11px; border-radius: 999px; white-space: nowrap; }
.chip svg { width: 15px; height: 15px; }
.chip.g { background: var(--green-soft); color: var(--green-ink); }
.chip.a { background: var(--amber-soft); color: var(--amber-ink); }
.chip.k { background: var(--card2); color: var(--text2); box-shadow: inset 0 0 0 1px var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 4px 24px; }
.dot { width: 10px; height: 10px; border-radius: 5px; background: var(--amber); flex: none; box-shadow: 0 0 0 5px var(--amber-soft); margin: 0 6px 0 4px; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 40px 20px calc(24px + env(safe-area-inset-bottom));
        background: linear-gradient(to bottom, var(--canvas0), var(--canvas) 34%); }
.dock > * { max-width: 720px; margin-left: auto; margin-right: auto; }   /* 폭 상한 480 → 760(2026-10-23 사용자 "가로 너비 꽉 차게", web.md 2절): 펼친 폴더블·가로 화면도 꽉 차게 */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 18px;
       font-family: inherit; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; height: 64px; cursor: pointer; }
.btn svg { width: 24px; height: 24px; }
.btn + .btn, .btn + form, form + .btn, form + form { margin-top: 10px; }
.p { background: var(--blue); color: #fff; box-shadow: 0 8px 20px var(--btn-glow); }
.p:active { background: var(--blue-ink); }
.p[disabled] { opacity: .45; box-shadow: none; }
.s { background: var(--blue-soft); color: var(--blue-ink); }
.x { background: transparent; color: var(--sub); font-weight: 500; height: 52px; }
.pair { display: flex; gap: 10px; } .pair > * { margin-top: 0 !important; }
.pair .s { flex: 0 0 38%; } .pair .x { height: 64px; flex: 1; }
form { display: block; }

.lines .item + .item { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line);
         margin-top: 20px; padding-top: 18px; font-size: 17px; color: var(--sub); font-weight: 500; }
.total b { color: var(--text); font-size: 21px; font-weight: 700; }
.cell { border-radius: 6px; }
.cell.warn { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; border: 2px dashed var(--amber);
             background: var(--amber-soft); color: var(--amber-ink); font-weight: 700; }
a.cell.warn::after { content: "›"; margin-left: 6px; font-weight: 700; }   /* 누르면 그 칸 고치기(web.md 31절) */
.why { font-size: 15px; color: var(--amber-ink); margin-top: 6px; font-weight: 500; }

.thumbs { display: flex; gap: 12px; margin: 0 0 22px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 112px; height: 150px; border-radius: 16px; background: var(--card2) center/cover no-repeat;
         box-shadow: var(--shadow); position: relative; overflow: hidden; }
.pill { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 30px; border-radius: 10px; display: flex; align-items: center;
        justify-content: center; gap: 4px; font-size: 13px; font-weight: 600; background: var(--card); color: var(--text2); }
.pill svg { width: 14px; height: 14px; }
.pill.read { background: var(--green-soft); color: var(--green-ink); backdrop-filter: blur(8px); }
.pill.reading, .pill.checking, .pill.queued, .pill.uploading { background: var(--blue-soft); color: var(--blue-ink); backdrop-filter: blur(8px); }
.pill.failed { background: var(--red-soft); color: var(--red); backdrop-filter: blur(8px); }
.pill .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.addtile { flex: none; width: 112px; height: 150px; border-radius: 16px; border: 2px dashed var(--dash); display: flex; flex-direction: column;
           align-items: center; justify-content: center; gap: 8px; color: var(--sub); font-size: 15px; font-weight: 600; background: none; font-family: inherit; }
.addtile svg { width: 30px; height: 30px; }
.bar { height: 8px; border-radius: 4px; background: var(--card2); overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--blue); transition: width .4s; }

.warncard { box-shadow: 0 0 0 2px var(--amber) inset, var(--shadow); }
.failcard { box-shadow: 0 0 0 2px var(--red) inset, var(--shadow); }
.link { color: var(--blue); font-size: 17px; font-weight: 600; display: flex; align-items: center; white-space: nowrap; }
.link svg { width: 18px; height: 18px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.banner { display: flex; gap: 12px; align-items: center; background: var(--blue-soft); color: var(--blue-ink); border-radius: 18px;
          padding: 16px 18px; margin: 0 0 16px; font-size: 17px; font-weight: 600; }
.banner svg { width: 22px; height: 22px; flex: none; }
.banner.err { background: var(--red-soft); color: var(--red); }

.badge { width: 96px; height: 96px; border-radius: 48px; display: flex; align-items: center; justify-content: center; margin: 46px 4px 28px; }
.badge svg { width: 46px; height: 46px; }
.badge.no { background: var(--red-soft); color: var(--red); }
.empty { text-align: center; color: var(--sub); font-size: 17px; padding: 8px 0; }
.badge.ok { background: var(--blue); color: #fff; box-shadow: 0 0 0 12px var(--blue-soft), 0 0 0 26px rgba(49,130,246,.08); }
.cell.fixed { display: inline-flex; align-items: center; height: 28px; padding: 0 8px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }

/* ⑥ 인식 실패 */
.shot { display: block; position: relative; height: 150px; border-radius: 20px; overflow: hidden; margin-bottom: 24px;
        background: var(--card2); box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot .chip { position: absolute; right: 12px; bottom: 12px; }
.tip { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; color: var(--text2); }
.tip + .tip { margin-top: 16px; }
.tip .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--canvas); display: flex; align-items: center; justify-content: center; flex: none; }
.tip svg { width: 22px; height: 22px; color: var(--text2); }

/* 직접 입력(web.md 16절) */
.shot.mini { height: 96px; margin-bottom: 18px; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.pick { border: 0; font-family: inherit; font-size: 17px; font-weight: 600; padding: 11px 16px; border-radius: 14px; cursor: pointer;
        background: var(--card); color: var(--text2); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); }
.pick.on { background: var(--blue-soft); color: var(--blue-ink); box-shadow: inset 0 0 0 2px var(--blue); }
.fld { display: block; background: var(--card); border-radius: 18px; padding: 12px 18px; box-shadow: var(--shadow); margin-bottom: 12px; }
.fld:focus-within { box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
.fld .cap { display: block; font-size: 14px; }
.fld input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-family: inherit;
             font-size: 22px; font-weight: 700; padding: 4px 0 0; letter-spacing: -0.02em; }
.row2 { display: flex; gap: 12px; } .row2 > * { flex: 1; min-width: 0; }
.addline { width: 100%; height: 60px; border-radius: 18px; border: 2px dashed var(--dash); background: none; color: var(--blue-ink); cursor: pointer;
           font-family: inherit; font-size: 18px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.addline svg { width: 22px; height: 22px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 760px; margin: 0 auto; max-height: 92vh; overflow-y: auto;
         background: var(--card); border-radius: 28px 28px 0 0; padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
         box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
.grab { width: 44px; height: 5px; border-radius: 3px; background: var(--faint); margin: 0 auto 18px; opacity: .6; }
.sheet h2 { font-size: 22px; font-weight: 700; margin: 0 4px 16px; letter-spacing: -0.03em; }
.sheet .fld { background: var(--canvas); box-shadow: none; }
.sheet .fld:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.calc { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--blue-soft); color: var(--blue-ink);
        border-radius: 16px; padding: 12px 18px; margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.calc input { width: 50%; text-align: right; border: 0; outline: 0; background: transparent; color: var(--blue-ink);
              font-family: inherit; font-size: 22px; font-weight: 700; }

/* ⑤ 칸 고치기 */
.photo { display: block; position: relative; border-radius: 20px; overflow: hidden; background: var(--card2); box-shadow: var(--shadow);
         margin-bottom: 24px; max-height: 260px; }
.photo img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; }
.photo .chip { position: absolute; right: 12px; bottom: 12px; }
.field { display: block; margin: 0 4px; }
.field .cap { display: block; margin-bottom: 4px; }
.input { display: flex; align-items: baseline; gap: 8px; padding: 6px 0 10px; border-bottom: 2px solid var(--blue); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: inherit;
               font-size: 40px; font-weight: 700; letter-spacing: -0.04em; padding: 0; }
.input input[type=date] { font-size: 28px; }
.input span { font-size: 24px; color: var(--sub); font-weight: 600; }
.hint { display: flex; gap: 12px; background: var(--blue-soft); border-radius: 18px; padding: 18px; margin-top: 18px; }
.hint svg { width: 24px; height: 24px; color: var(--blue); flex: none; margin-top: 1px; }
.hint .t1 { font-size: 17px; font-weight: 600; color: var(--blue-ink); }
.hint .t2 { font-size: 16px; color: var(--blue-ink); opacity: .85; margin-top: 4px; font-weight: 500; line-height: 1.45; }
.picks a, a.picks { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }

/* ⑦ 지난 매입과 비교(multiplier.md 11.4, 시안 web/design/early_compare_mock.html) */
.cmp { font-size: 19px; font-weight: 700; text-align: right; white-space: nowrap; }
.cmp.up { color: var(--red); } .cmp.down { color: var(--blue-ink); } .cmp.flat { color: var(--text2); }
.cmp small { display: block; font-size: 15px; font-weight: 500; color: var(--sub); margin-top: 3px; }
.fine { font-size: 14px; color: var(--sub); line-height: 1.5; font-weight: 500; margin-top: 6px; }

/* ① 홈 과거 명세서 안내(web.md 17절): 카드 모양 버튼 */
button.card.press { width: 100%; border: 0; text-align: left; font-family: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
.av.i { background: var(--blue-soft); color: var(--blue-ink); } .av.i svg { width: 22px; height: 22px; }

/* ⑧~⑩ 발주 초안 공유(orders.md 2절, 시안 web/design/order_mock.html) */
.qty { display: flex; align-items: center; gap: 4px; flex: none; }
.qty button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--canvas); color: var(--text2); cursor: pointer;
              display: flex; align-items: center; justify-content: center; }
.qty button svg { width: 20px; height: 20px; }
.qty .v { min-width: 74px; text-align: center; font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.qty .v small { font-size: 15px; font-weight: 600; color: var(--sub); margin-left: 1px; }
.qty.zero .v { color: var(--faint); }
.unit { font-size: 14px; font-weight: 600; color: var(--blue-ink); background: var(--blue-soft); border-radius: 8px; padding: 3px 8px;
        margin-left: 6px; border: 0; font-family: inherit; cursor: pointer; vertical-align: 2px; }
.order .item + .item { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.order .item.off .ttl { color: var(--faint); }
/* 걸림 없는 이력번호·도축일(QA 4회차 P1). tn- = 이력번호 줄 */
.tn-card { padding: 18px 22px; }
.tn-row { display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.tn-row + .tn-row { border-top: 1px solid var(--line); margin-top: 12px; }
.tn-no { font-size: 19px; font-weight: 700; letter-spacing: .5px; color: var(--text); }
.tn-fix { flex: none; font-size: 16px; font-weight: 700; color: var(--blue); text-decoration: none; padding: 8px 4px; }
/* 이력번호 [조회] 펼침(2026-10-11, 시안 web/design/trace_detail_mock.html, web.md 33절). td- = 조회 */
.td-box + .tn-row { border-top: 1px solid var(--line); margin-top: 12px; }
.td-btns { display: flex; gap: 2px; flex: none; }
.td-q { flex: none; font: inherit; font-size: 16px; font-weight: 700; color: var(--blue); background: none; border: 0; padding: 8px 6px; cursor: pointer; }
.td-q.on { color: var(--sub); }
.td-box { margin-top: 12px; padding: 16px 18px; border-radius: 14px; background: var(--card2); }
.td-big { font-size: 22px; font-weight: 800; color: var(--text); }
.td-big small { font-size: 16px; font-weight: 600; color: var(--sub); margin-left: 6px; }
.td-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; padding-top: 10px; }
.td-kv .k { color: var(--sub); flex: none; }
.td-kv .v { font-weight: 700; color: var(--text); text-align: right; }
.td-kv .v.hl { color: var(--blue); }
.td-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.td-foot .note { font-size: 14px; color: var(--sub); line-height: 1.4; }
.td-copy { flex: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--blue); background: var(--blue-soft); border: 0; border-radius: 10px; padding: 9px 12px; cursor: pointer; }
.td-warn { font-size: 16px; color: var(--amber-ink); font-weight: 700; }
.td-warn + p { font-size: 15px; color: var(--text2); margin: 6px 0 0; line-height: 1.5; }
/* 명세서 빼기·새 것으로 바꾸기(2026-10-09, 시안 web/design/void_mock.html). vd- = 빼기(다른 화면 이름과 겹치지 않게) */
.vd-card { padding: 20px 22px; box-shadow: inset 0 0 0 2px var(--amber-soft), var(--shadow); }
.vd-top { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.vd-top .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink);
              display: flex; align-items: center; justify-content: center; flex: none; }
.vd-top svg { width: 18px; height: 18px; }
.vd-old { display: block; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--canvas); color: inherit; text-decoration: none; }
.vd-old .t1 { font-size: 17px; font-weight: 700; } .vd-old .t2 { font-size: 15px; color: var(--sub); margin-top: 2px; }
.vd-body { font-size: 16px; color: var(--text2); margin: 12px 2px 0; line-height: 1.5; }
.vd-link { display: block; width: fit-content; margin: 22px auto 0; border: 0; background: none; font-family: inherit; font-size: 16px; font-weight: 600;
           color: var(--sub); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px; }
.vd-opt { display: flex; align-items: center; gap: 12px; width: 100%; font-size: 18px; font-weight: 600; color: var(--text); cursor: pointer;
          padding: 16px; margin-top: 10px; border-radius: 16px; background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--line); }
.vd-opt.on { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.vd-opt .vs { display: block; font-size: 14px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.vd-gone { opacity: .45; }
.pair .vd-half:first-child { flex: 0 0 38%; } .pair .vd-half:last-child { flex: 1; } .pair .vd-half .btn { height: 64px; }
/* ⑨ 수량 시트·품목 찾기(2026-10-08, 시안 web/design/order_edit_mock.html). oq- = 수량, of- = 찾기(다른 화면 이름과 겹치지 않게) */
.qty .oq-tap { border: 0; background: none; font-family: inherit; color: inherit; cursor: pointer; border-radius: 10px; padding: 6px 0;
               box-shadow: inset 0 -2px 0 var(--dash); }
.oq-big { display: flex; align-items: baseline; gap: 6px; background: var(--canvas); border-radius: 18px; padding: 14px 18px;
          box-shadow: inset 0 0 0 2px var(--blue); }
.oq-big input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 40px; font-weight: 700;
                letter-spacing: -0.03em; color: var(--text); }
.oq-u { font-size: 22px; font-weight: 600; color: var(--sub); }
.oq-note { font-size: 15px; color: var(--sub); margin: 10px 6px 14px; }
.oq-note.err { color: var(--red); font-weight: 600; }
/* 줄 왼쪽 ×(2026-10-08 사용자: 빼기는 목록에서). 보이는 원은 30px, 누르는 칸은 40px */
.order .item { align-items: center; }
.order .qty .v { min-width: 62px; }         /* × 자리만큼 품명 칸을 넓힌다(단위는 숫자 옆에만, 품명 옆 단위 칩은 뺐다) */
.oq-x { flex: none; width: 40px; height: 40px; margin: 0 2px 0 -10px; border: 0; background: none; cursor: pointer;
        display: flex; align-items: center; justify-content: center; color: var(--sub); }
.oq-x svg { width: 30px; height: 30px; padding: 7px; border-radius: 15px; background: var(--canvas); }
/* 폭 360(갤럭시 S 기본 폭)에서 품명 칸이 약 62px라 '한우앞다리 1++8'이 '한우앞/다리/1++8' 세 줄로 갈라졌다(QA 5회차) →
   좁은 화면은 카드 옆 여백·−/+ 폭을 줄여 품명 칸을 약 100px로 넓힌다(수량 숫자 칸은 그대로 둔다) */
@media (max-width: 380px) {
  .card.order { padding-left: 16px; padding-right: 16px; }
  .order .item { gap: 8px; }
  .order .qty button[data-step] { width: 36px; }
  .order .qty .v { min-width: 58px; }
}
.oq-toast { position: fixed; left: 16px; right: 16px; bottom: calc(110px + env(safe-area-inset-bottom)); z-index: 9; max-width: 728px; margin: 0 auto;
            display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: var(--text); color: var(--canvas);
            font-size: 16px; font-weight: 600; box-shadow: var(--shadow); }
.oq-toast[hidden] { display: none; }
.oq-toast span { flex: 1; min-width: 0; }
.oq-toast button { border: 0; background: none; color: var(--blue-soft); font-family: inherit; font-size: 16px; font-weight: 700; cursor: pointer; padding: 4px 2px; }
.of-find { display: flex; align-items: center; gap: 10px; background: var(--canvas); border-radius: 16px; padding: 12px 16px;
           box-shadow: inset 0 0 0 2px var(--blue); }
.of-find svg { width: 20px; height: 20px; color: var(--sub); flex: none; }
.of-find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 19px; color: var(--text); }
.of-hits { margin: 14px 0 6px; max-height: 46vh; overflow: auto; }
.of-cap { font-size: 13px; font-weight: 700; color: var(--sub); margin: 12px 6px 4px; }
.of-hit { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none;
          padding: 13px 6px; font-family: inherit; text-align: left; font-size: 18px; font-weight: 600; color: var(--text); cursor: pointer; }
.of-hit .nm { min-width: 0; }
.of-hit mark { background: none; color: var(--blue); }
.of-hit .hs { margin-left: auto; flex: none; font-size: 14px; font-weight: 500; color: var(--sub); }
.of-hit.raw { color: var(--blue-ink); border-bottom: 0; }
.of-hit.raw svg { width: 18px; height: 18px; flex: none; }
.from { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--sub); margin: 0 4px 14px; }
.from svg { width: 16px; height: 16px; flex: none; }
.bubble { background: var(--card); border-radius: 22px 22px 22px 6px; padding: 22px 22px 20px; box-shadow: var(--shadow);
          font-size: 18px; line-height: 1.6; font-weight: 500; color: var(--text); white-space: pre-line; margin-bottom: 14px; }
.to { display: flex; align-items: center; gap: 12px; margin: 0 4px 18px; }
.to .av { width: 36px; height: 36px; border-radius: 18px; font-size: 15px; }
.to .t { font-size: 17px; font-weight: 600; color: var(--text2); }
.btn.kt { background: var(--text); color: var(--canvas); }
.btn.kt:active { opacity: .85; }
.trio { display: flex; gap: 10px; margin-top: 10px; } .trio .btn { margin-top: 0 !important; flex: 1; height: 58px; font-size: 18px; }
.btn.ghost { background: var(--card); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); }
/* ⑦ 지난 매입과 비교: 부위를 누르면 계산 풀이(2026-10-07, 민원 대응) */
.why-calc > summary { list-style: none; cursor: pointer; }
.why-calc > summary::-webkit-details-marker { display: none; }
.why-calc .calc-link { color: var(--blue); font-weight: 600; }
.why-calc[open] .calc-link { color: var(--sub); }
.why-calc .when-open, .why-calc[open] .when-closed { display: none; }
.why-calc[open] .when-open { display: inline; }
.why-calc + .why-calc { margin-top: 20px; }
.calc-body { background: var(--canvas); border-radius: 16px; padding: 14px 16px; margin: 10px 0 12px; }
.calc-step + .calc-step { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-body .fine { margin-top: 12px; }
/* 계산 풀이 = 영수증형(2026-10-07 시안 C): 왼쪽 이름(회색), 오른쪽 값(진하게·붙여서) */
.rc-date { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.rc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; }
.rc-row .k { color: var(--sub); font-size: 15px; font-weight: 500; flex: none; }
.rc-row .v { color: var(--text); font-size: 15px; font-weight: 600; text-align: right; white-space: nowrap; }
.rc-row .v small { display: block; font-size: 13px; color: var(--sub); font-weight: 500; white-space: normal; }
.rc-sum { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.rc-sum .v { font-size: 17px; font-weight: 700; }
.rc-sum .v.down { color: var(--blue-ink); } .rc-sum .v.up { color: var(--red); }

/* ① 홈 첫 화면(2026-10-08 결정 1, web/design/home_first_mock.html): 처음 온 가게는 가치 카드, 그 뒤는 달 넘기기 */
.value { padding: 26px 24px 22px; }
.value h2 { font-size: 27px; line-height: 1.35; font-weight: 800; margin: 0 0 22px; letter-spacing: -.3px; }
.value h2 em { font-style: normal; color: var(--blue); }
.benefit { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.benefit .ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.benefit .ic svg { width: 22px; height: 22px; }
.benefit .t1 { font-size: 18px; font-weight: 700; color: var(--text); }
.benefit .t2 { font-size: 15px; color: var(--sub); margin-top: 2px; }
.ic.b { background: var(--blue-soft); color: var(--blue); } .ic.a { background: var(--amber-soft); color: var(--amber-ink); }
.ic.g { background: var(--green-soft); color: var(--green-ink); }
.trust { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--sub); margin: 18px 2px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.trust svg { width: 18px; height: 18px; flex: none; }
.month { display: flex; align-items: center; justify-content: space-between; }
.month .nav2 { display: flex; gap: 6px; }
.month .nav2 > * { width: 36px; height: 36px; border-radius: 12px; background: var(--card2); display: flex; align-items: center; justify-content: center; color: var(--text2); }
.month .nav2 .off { opacity: .35; }
.month .nav2 svg { width: 18px; height: 18px; }
.flip { transform: scaleX(-1); }

/* ③ 여러 쪽 명세서(2026-10-08 결정 3, web/design/pages_mock.html): 이 쪽 금액이 큰 숫자, 쪽마다 금액, 다 모이면 '딱 맞아요' */
.pages-sub { font-size: 15px; color: var(--sub); margin: -6px 4px 14px; }
.pages { padding: 18px 22px; }
.pages .row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.pages .pg { width: 44px; height: 30px; border-radius: 9px; background: var(--card2); color: var(--text2); font-weight: 700;
             font-size: 15px; display: flex; align-items: center; justify-content: center; flex: none; }
.pages .pg.me { background: var(--blue-soft); color: var(--blue-ink); }
.pages .pg.miss { background: var(--amber-soft); color: var(--amber-ink); }
.pages .grow { font-size: 16px; color: var(--text2); }
.pages .v { font-size: 17px; font-weight: 700; color: var(--text); }
.pages .sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pages .sum .k { font-size: 15px; color: var(--sub); }
.pages .ok { color: var(--green-ink); font-size: 15px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.pages .ok svg { width: 16px; height: 16px; }
.pages .warn { color: var(--amber-ink); font-size: 15px; font-weight: 700; white-space: nowrap; }

/* ③ 이력번호 카드(2026-10-08, web/design/trace_mock.html): 번호를 크게, 원인별 할 일 한 문장, [번호 고치기] */
.trace { padding: 22px 22px 20px; box-shadow: inset 0 0 0 2px var(--amber-soft), var(--shadow); }
.trace-top { display: flex; align-items: center; gap: 10px; }
.trace-ic { width: 30px; height: 30px; border-radius: 10px; background: var(--amber-soft); color: var(--amber-ink);
            display: flex; align-items: center; justify-content: center; flex: none; }
.trace-ic svg { width: 18px; height: 18px; }
.trace.error .trace-ic { background: var(--card2); color: var(--text2); }
.trace-no { font-size: 30px; font-weight: 700; letter-spacing: 1px; margin: 16px 0 4px; color: var(--text); }
.miss { color: var(--amber-ink); background: var(--amber-soft); border-radius: 6px; padding: 0 4px; }
.trace-meta { font-size: 15px; color: var(--sub); }
.trace-body { font-size: 17px; color: var(--text2); margin: 12px 0 0; line-height: 1.5; }
.trace-btn { display: inline-flex; align-items: center; gap: 2px; margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--blue); }
.trace-btn svg { width: 18px; height: 18px; }
/* 두 판독이 다른 번호(ocr-14, QA 3회차 결정 1, 시안 #t5·#t6): 누르는 칸 하나가 번호 하나, 다른 자리만 칠한다.
   이름은 .tpick — .pick은 받을 날·직접 입력 칩이 쓴다(2026-10-08 겹쳐서 그 칩들이 한 줄씩 꽉 찬 상자로 깨졌다) */
.trace form { margin: 0; }
.tpick { display: block; width: 100%; text-align: left; margin-top: 12px; padding: 14px 16px; border: 0; border-radius: 16px;
        background: var(--canvas); box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; color: inherit; cursor: pointer; }
.tpick:disabled { cursor: default; opacity: .6; }
.tpick.on { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue); }
.pick-no { display: block; font-size: 26px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.pick-no .diff { color: var(--amber-ink); background: var(--amber-soft); border-radius: 6px; padding: 0 4px; }
.tpick.on .pick-no .diff { color: var(--blue); background: transparent; padding: 0; }
.pick-meta { display: block; font-size: 15px; color: var(--sub); margin-top: 2px; }
.trace.picked { box-shadow: var(--shadow); }
.trace.picked .trace-ic { background: var(--blue-soft); color: var(--blue); }
.trace .trace-meta.below { margin-top: 12px; }
.trace-btn.as-btn { border: 0; background: none; padding: 0; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.lookup { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--card2); }
.lookup[hidden] { display: none; }
.lookup svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--text2); }
.lookup.ok { background: var(--green-soft); } .lookup.ok svg { color: var(--green-ink); }
.lookup.no { background: var(--amber-soft); } .lookup.no svg { color: var(--amber-ink); }
.lookup .t1 { font-size: 17px; font-weight: 700; color: var(--text); } .lookup .t2 { font-size: 15px; color: var(--text2); margin-top: 2px; }

/* 잘 찍는 법(web.md 22절, 시안 design/photo_guide_mock.html). 이름은 pg-로 다른 화면과 겹치지 않게 */
.pg-good { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; }
.pg-tip { background: var(--canvas); border-radius: 16px; padding: 12px 12px 14px; }
.pg-tip svg { display: block; width: 100%; height: 92px; }
.pg-tip .t { font-size: 16px; font-weight: 700; margin-top: 8px; line-height: 1.35; }
.pg-good.on-canvas .pg-tip { background: var(--card); box-shadow: var(--shadow); }   /* 시트 밖(화면 바탕 위)에서는 카드 색 */
.pg-cap { font-size: 14px; font-weight: 700; color: var(--sub); margin: 4px 4px 8px; }
.pg-bad { display: flex; gap: 8px; margin-bottom: 18px; }
.pg-bad > div { flex: 1; text-align: center; background: var(--canvas); border-radius: 14px; padding: 8px 6px 10px; }
.pg-bad svg { width: 100%; height: 56px; }
.pg-bad .t { font-size: 13px; font-weight: 600; color: var(--red); margin-top: 4px; }
.pg-link { display: block; width: fit-content; margin: 2px auto 0; border: 0; background: none; font-family: inherit; font-size: 16px; font-weight: 600;
           color: var(--sub); text-decoration: underline; text-underline-offset: 4px; padding: 8px; cursor: pointer; }
#guide .btn + .btn { margin-top: 0; }
/* 시트(670px)가 화면보다 길면(360×600, 카톡 인앱 막대를 뺀 높이) [찍으러 가기]·[닫기]가 접힌 아래에 숨었다(QA 5회차) →
   버튼을 시트 아래에 붙여 늘 보이게. 뒤로 지나가는 그림은 시트 색 테두리로 가린다 */
#guide > .btn { position: sticky; bottom: 0; z-index: 1; }
#guide > .btn.p { box-shadow: 0 0 0 10px var(--card), 0 30px 0 10px var(--card); }
#guide > .btn.s { box-shadow: 0 0 0 10px var(--card), 0 30px 0 10px var(--card); }
/* 부위별 주문 단위(orders.md 4.1절): '약 2판'은 지난번 kg 아랫줄에 따로, 강조 */
.oq-n { display: block; color: var(--blue-ink); font-weight: 600; }
.oq-more { border: 0; background: none; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: underline;
           text-underline-offset: 4px; padding: 8px 6px; cursor: pointer; }   /* 칩 3개 뒤 '다른 단위'(사장님마다 단위가 다르다) */

/* 종합 홈(web.md 23절, 시안 design/home_hub_mock.html). 이름은 hb- */
.hb-k { font-size: 15px; font-weight: 600; color: var(--sub); }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }   /* 길이가 들쭉날쭉한 이름이 든 한 줄(업체·공판장) — 2026-10-31 한 줄 규칙 */
.hb-big { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; line-height: 1.25; }
.hb-big small { font-size: 20px; font-weight: 700; }
.hb-big.sm { font-size: 24px; }
.hb-big.md { font-size: 22px; margin-top: 0; }   /* 목록 카드 제목(마트 행사): 아래 줄 16px과 단계를 맞춘다 */
.hb-sub { font-size: 16px; color: var(--sub); line-height: 1.5; }
.hb-sub b { color: var(--red); font-weight: 700; }
.hb-row { display: flex; align-items: center; gap: 12px; }
.hb-row .grow { flex: 1; min-width: 0; }
.hb-row svg.chev { width: 22px; height: 22px; color: var(--faint); flex: none; }
a.card.hb { display: block; color: inherit; text-decoration: none; }
.hb-bars { display: flex; align-items: flex-end; gap: 8px; height: 92px; margin-top: 14px; }
.hb-bars.tall { height: 190px; gap: 6px; }
.hb-bars > * { flex: 1; text-align: center; font-size: 12px; color: var(--sub); min-width: 0; white-space: nowrap; letter-spacing: -0.04em; }
a.hb-bar { text-decoration: none; }
.hb-bars i { display: block; border-radius: 6px 6px 3px 3px; background: var(--blue-soft); margin-bottom: 6px; min-height: 3px; }
.hb-bars .on i { background: var(--blue); }
.hb-bars .on { color: var(--text); font-weight: 700; }
.hb-bars em { display: block; font-style: normal; font-size: 11px; color: var(--sub); margin-bottom: 4px; white-space: nowrap; }
/* 주마다 매입(web.md 23절, 2026-10-10): 명세서가 없는 주는 0원 막대가 아니라 점선 빈칸, 명절 주 글 */
.hb-bars .none i { background: transparent; border: 1.5px dashed var(--sub); opacity: .55; height: 24px; }
.hb-tag { display: block; font-size: 11px; color: var(--amber-ink); font-weight: 700; margin-top: 2px; }
.hb-mnav { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 16px; }
.fl-chips .hb-mnav a { background: none; box-shadow: none; color: var(--sub); padding: 8px 12px; font-size: 18px; }
.hb-mnav i { display: inline-block; width: 38px; }
.hb-wait { display: flex; align-items: center; gap: 12px; color: var(--sub); font-size: 16px; line-height: 1.5; }
.hb-wait .ring { width: 40px; height: 40px; border-radius: 20px; border: 4px solid var(--canvas); border-top-color: var(--blue); flex: none; }
.hb-it { padding: 16px 0; border-top: 1px solid var(--line); }
.hb-it:first-child { border-top: 0; padding-top: 4px; }
.hb-it .nm { font-size: 18px; font-weight: 700; }
.hb-it .v { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 6px; font-size: 16px; color: var(--sub); }
.hb-it .v b { font-size: 20px; color: var(--text); }
.hb-gap { color: var(--red); font-weight: 700; }
.hb-say { background: var(--card); box-shadow: var(--shadow); border-radius: 16px; padding: 16px 18px; font-size: 17px; line-height: 1.6; }
.hb-fine { font-size: 14px; color: var(--sub); margin: 12px 4px 0; line-height: 1.5; }
.hb-it .hb-fine { margin: 6px 0 0; }
/* 주의·설명은 한 줄에 사실 하나(2026-10-12 사용자 "문장형은 시인성 있게", 시안 design/readability_mock.html) */
.rd-list { list-style: none; padding: 0; margin: 14px 4px 0; font-size: 14px; color: var(--sub); line-height: 1.55; }
.rd-list li { position: relative; padding-left: 12px; }
.rd-list li + li { margin-top: 3px; }
.rd-list li::before { content: ""; position: absolute; left: 1px; top: .68em; width: 4px; height: 4px; border-radius: 2px; background: var(--dash); }
.rd-list b { color: var(--text2); font-weight: 600; }
/* 문장 속 숫자 → 큰 숫자 줄·칸(같은 시안 #g·#c·#m) */
.rd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.rd-head b { font-size: 22px; font-weight: 800; }
.rd-tag { font-size: 14px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.rd-k { font-size: 14px; color: var(--sub); font-weight: 600; margin: 14px 0 2px; }
.rd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; font-size: 17px; }
.rd-row + .rd-row { border-top: 1px solid var(--line); }
.rd-row .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-row .v.b { color: var(--blue-ink); } .rd-row .v.r { color: var(--red); } .rd-row .v.g { color: var(--sub); font-weight: 600; }
.rd-foot { font-size: 14px; color: var(--sub); margin-top: 10px; }
.rd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 6px; margin-top: 14px; }
.rd-tiles div { background: var(--canvas); border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 12px; color: var(--sub); line-height: 1.35; }
.rd-tiles b { display: block; font-size: 20px; color: var(--text); }
.rd-tiles .on b { color: var(--blue-ink); }
.rd-note { display: flex; gap: 12px; align-items: center; background: var(--amber-soft); border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.rd-note .big { font-size: 20px; font-weight: 800; color: var(--amber-ink); white-space: nowrap; }
.rd-note .t { font-size: 14px; color: var(--text2); line-height: 1.45; } .rd-note .t b { color: var(--text); }
.rd-note.hp { flex-direction: column; align-items: flex-start; gap: 4px; } .rd-note.hp .t b { display: block; }   /* 갈비·등갈비 명절 안내: 큰 숫자 위, 줄마다 한 줄 */
.rd-row small { display: block; font-size: 13px; color: var(--sub); font-weight: 400; margin-top: 2px; }
/* 계산 단계(시안 #h): 번호 + 제목 한 줄 + 규칙 한 줄 + 실제 식 */
.rd-step { display: flex; gap: 12px; padding: 14px 0; }
.rd-step:first-child { padding-top: 2px; } .rd-step:last-child { padding-bottom: 2px; }
.rd-step + .rd-step { border-top: 1px solid var(--line); }
.rd-step > div:last-child { min-width: 0; flex: 1; }
.rd-step .no { flex: none; width: 26px; height: 26px; border-radius: 13px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rd-step .tt { font-size: 17px; font-weight: 700; }
.rd-step .ds { font-size: 14px; color: var(--sub); margin-top: 2px; line-height: 1.5; }
.rd-step .eq { margin-top: 8px; background: var(--canvas); border-radius: 10px; padding: 8px 10px; font-size: 14.5px; line-height: 1.5; }
.rd-step .eq b { font-weight: 800; }

/* 실마진(web.md 24절, 시안 design/margin_mock.html). 이름은 mg- */
.mg-it { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.mg-more > summary { list-style: none; cursor: pointer; text-align: center; font-size: 15px; font-weight: 600; color: var(--blue-ink); padding: 6px; margin: 4px 0 12px; }
.mg-more > summary::-webkit-details-marker { display: none; }
.mg-more[open] > summary { color: var(--sub); }
.mg-it:first-child { border-top: 0; padding-top: 4px; }
.mg-it .grow { flex: 1; min-width: 0; }
.mg-it .nm { font-size: 18px; font-weight: 700; }
.mg-it .sb { font-size: 14px; color: var(--sub); margin-top: 3px; }
.mg-it .v { font-size: 20px; font-weight: 800; text-align: right; white-space: nowrap; }
.mg-it .v.neg { color: var(--red); }
.mg-it .v small { display: block; font-size: 12px; font-weight: 600; color: var(--sub); }
.mg-it .put { font-size: 15px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); border-radius: 10px; padding: 8px 12px; white-space: nowrap; }
.mg-hero { text-align: center; padding: 6px 0 14px; }
.mg-hero .k { font-size: 16px; color: var(--sub); font-weight: 600; }
.mg-hero .big { font-size: 44px; font-weight: 800; letter-spacing: -0.035em; margin: 4px 0; min-height: 56px; }
.mg-hero .big small { font-size: 24px; }
.mg-hero .mg-ask { font-size: 28px; }
.mg-hero .eq { font-size: 15px; color: var(--sub); }
/* 판매가: 큰 숫자 + −100·+100(2026-10-09 슬라이더를 뺐다, 시안 design/margin_total_mock.html #d) */
.mg-pr { display: flex; align-items: center; gap: 10px; margin: 8px 0 6px; }
.mg-pr button { flex: none; width: 64px; height: 56px; border: 0; border-radius: 16px; background: var(--canvas); font: inherit; font-size: 17px; font-weight: 700; color: var(--text); cursor: pointer; }
.mg-pr button:active { background: var(--line); }
.mg-pr .val { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 2px; border-bottom: 2px solid var(--blue); padding-bottom: 4px; font-size: 20px; font-weight: 800; }
.mg-pr .val input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 34px; letter-spacing: -0.03em; text-align: right; padding: 0; }
.mg-pr .val input:focus { outline: none; }
.mg-pr .val input::placeholder { color: var(--faint); font-size: 24px; font-weight: 600; }
.mg-pr-sub { text-align: center; font-size: 14px; color: var(--sub); }
.mg-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mg-step { background: var(--canvas); border-radius: 14px; padding: 14px; }
.mg-step .t { font-size: 14px; color: var(--sub); font-weight: 600; }
.mg-step .m { font-size: 20px; font-weight: 800; margin: 4px 0 2px; }
.mg-step .q { font-size: 14px; line-height: 1.45; }
.mg-step .q b { color: var(--red); }
.mg-step .q b.ok { color: var(--green-ink); }
.mg-two { display: flex; gap: 10px; }
.mg-two > div { flex: 1; }
.mg-two .lab { font-size: 14px; color: var(--sub); }
.mg-two .num { font-size: 22px; font-weight: 800; margin-top: 2px; }
.mg-two .num.dim { color: var(--sub); text-decoration: line-through; text-decoration-thickness: 2px; }
.mg-yield { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mg-yield .lab { font-size: 16px; font-weight: 700; }
.mg-yield .lab small { display: block; font-size: 13px; color: var(--sub); font-weight: 500; margin-top: 2px; }
.mg-base { display: flex; justify-content: space-between; text-align: center; margin-top: 10px; }
.mg-base > div { flex: 1; }
.mg-base .l { font-size: 12px; color: var(--sub); line-height: 1.35; }
.mg-base .pv { font-size: 17px; font-weight: 700; margin-top: 4px; }
.mg-pct { display: flex; gap: 8px; flex-wrap: wrap; }
.mg-pct button { font: inherit; font-size: 17px; font-weight: 700; padding: 10px 14px; border-radius: 12px; border: 0; background: var(--canvas); color: var(--text); }
.mg-pct button.on { background: var(--blue); color: #fff; }
.mg-own { display: flex; justify-content: space-between; align-items: center; font-size: 16px; font-weight: 700; }
/* 발주 참고(web.md 25절, 시안 design/order_guide_mock.html). 이름은 og- */
.og-it { padding: 15px 0; border-top: 1px solid var(--line); display: flex; align-items: baseline; gap: 12px; }
.og-it:first-child { border-top: 0; padding-top: 2px; }
.og-it .nm { font-size: 18px; font-weight: 700; flex: 1; min-width: 0; }
.og-it .nm small { display: block; font-size: 14px; font-weight: 500; color: var(--sub); margin-top: 3px; }
.og-it .r { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; text-align: right; }
.og-it .r small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 3px; }
.og-it .r.up { color: var(--blue-ink); }
.og-pre { background: var(--blue-soft); border-radius: 16px; padding: 16px 18px; font-size: 16px; line-height: 1.6; color: var(--text); }
.og-pre b { color: var(--blue-ink); }
/* 시장 흐름(order_guide.md 4.1, 시안 design/order_national_mock.html v2) */
.mk-k { font-size: 15px; color: var(--sub); font-weight: 600; }
.mk-big { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 4px; }
.mk-big b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mk-big b.down { color: var(--blue-ink); }
.mk-big .tag { font-size: 15px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); border-radius: 8px; padding: 4px 9px; white-space: nowrap; }
.mk-sub { font-size: 14px; color: var(--sub); margin-top: 2px; }
.mk-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 18px 0 2px; }
.mk-bars > div { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.mk-bars .up, .mk-bars .dn { width: 100%; height: 36px; display: flex; justify-content: center; }
.mk-bars .up { align-items: flex-end; border-bottom: 1.5px solid var(--line); }
.mk-bars .dn { align-items: flex-start; margin-bottom: 6px; }
.mk-bars i { display: block; width: 60%; max-width: 30px; background: var(--dash); }
.mk-bars .up i { border-radius: 5px 5px 0 0; } .mk-bars .dn i { border-radius: 0 0 5px 5px; }
.mk-bars .pk i { background: var(--blue); }
.mk-bars .pk { color: var(--blue-ink); font-weight: 700; }
.mk-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin-top: 2px; }
.mk-sep { height: 1px; background: var(--line); margin: 18px 0; }
.mk-src { font-size: 12px; color: var(--sub); margin-top: 14px; }
/* 발주 참고 v2(2026-10-24 시안 design/order_guide_v2_mock.html, web.md 25절): 업체 한 번 주문 칸 · 이번 주 막대 · 주마다 막대 · 접는 칸 */
.og2-one { display: flex; gap: 8px; margin-top: 14px; }
.og2-one > div { flex: 1; min-width: 0; background: var(--canvas); border-radius: 14px; padding: 12px 4px 10px; text-align: center; }
.og2-one span { display: block; font-size: 14px; color: var(--sub); font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og2-one b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.og2-sep { height: 1px; background: var(--line); margin: 18px 0 14px; }
.og2-wkh { margin-bottom: 12px; }
.og2-wk { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.og2-wk + .og2-wk { margin-top: 10px; }
.og2-wk .nm { width: 56px; font-weight: 700; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og2-wk .bar { flex: 1; min-width: 40px; height: 12px; border-radius: 6px; background: var(--canvas); position: relative; overflow: hidden; }
.og2-wk .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 6px; }
.og2-wk .v { text-align: right; color: var(--sub); flex: none; white-space: nowrap; }
.og2-wk .v b { color: var(--text); font-weight: 700; }
.og2-sup + .og2-sup { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 18px; }
.og2-sup .hd, .og2-part .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.og2-sup .hd b, .og2-part .hd b { font-size: 18px; font-weight: 700; }
.og2-sup .hd span { font-size: 15px; color: var(--sub); font-weight: 600; text-align: right; }
.og2-part { padding: 16px 0; border-top: 1px solid var(--line); }
.og2-part:first-child { border-top: 0; padding-top: 2px; }
.og2-part .hd .r { font-size: 20px; font-weight: 800; white-space: nowrap; }
.og2-part .hd .r small { font-size: 14px; color: var(--sub); font-weight: 600; margin-right: 4px; }
.og2-mini { display: flex; align-items: flex-end; gap: 4px; height: 76px; margin-top: 12px; }
.og2-mini > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 11px; color: var(--sub); min-width: 0; white-space: nowrap; letter-spacing: -0.04em; }
.og2-mini i { display: block; width: 100%; border-radius: 5px 5px 2px 2px; background: var(--blue); opacity: .45; margin-bottom: 4px; }
.og2-mini .now { color: var(--text); font-weight: 700; }
.og2-mini .now i { opacity: 1; }
.og2-mini .now i.none { background: transparent; border: 1.5px dashed var(--sub); opacity: .6; height: 20px; }
.og2-mini .gap { flex: .3; }
.og2-mini em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--text2); margin-bottom: 2px; }
.og2-note { font-size: 14px; color: var(--sub); margin-top: 8px; }
details.og2-fold summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; cursor: pointer; }
details.og2-fold summary::-webkit-details-marker { display: none; }
details.og2-fold summary span { font-size: 15px; color: var(--sub); font-weight: 600; }
details.og2-fold summary span::after { content: "⌄"; margin-left: 6px; }
details.og2-fold[open] summary { margin-bottom: 14px; }
details.og2-fold[open] summary span::after { content: "⌃"; }
.og-pre .hd { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.og-hint { color: var(--blue-ink); font-weight: 600; }
/* 이번 주 지금까지(web.md 25절, 2026-10-10): 연한 칸 = 평소 한 주 범위, 진한 막대 = 넣은 명세서로 지금까지 */
.og-rng { font-size: 18px; color: var(--sub); font-weight: 600; }
.og-prog { position: relative; height: 14px; border-radius: 7px; background: var(--canvas); margin: 16px 0 6px; }
.og-prog .band { position: absolute; top: 0; bottom: 0; right: 0; background: var(--blue-soft); border-radius: 7px; }
.og-prog .fill { position: absolute; left: 0; top: 3px; bottom: 3px; background: var(--blue); border-radius: 5px; }
.og-scale { position: relative; height: 18px; font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.og-scale span { position: absolute; } .og-scale .mid { transform: translateX(-50%); }
/* 업체마다 주문 모양(order_guide.md 3.2, 2026-10-10) */
.og-sup { padding: 16px 0; border-top: 1px solid var(--line); }
.og-sup:first-child { border-top: 0; padding-top: 2px; }
.og-sup .nm { font-size: 18px; font-weight: 700; }
.og-sup .rh { font-size: 16px; color: var(--text2); margin-top: 4px; }
.og-sup .one { font-size: 15px; color: var(--sub); margin-top: 6px; line-height: 1.6; }
.og-usual { font-size: 14px; white-space: nowrap; }
/* 주문서 품목 이름(2026-10-31 한 줄): 좁은 폰에서 '한우앞다리 1+'가 두 줄 → 수량 버튼을 조금 줄이고, 그래도 긴 품명은 말줄임 */
.ttl > .nm { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 380px) { .qty { gap: 2px; } .qty button { width: 34px; } .qty .v { min-width: 56px; } }      /* 주문서 줄 '보통 한 번에 2판': 좁은 칸에서 꺾이지 않게 */
.og-list { font-size: 16px; color: var(--sub); line-height: 1.7; margin-top: 8px; }
.og-list b { color: var(--text); font-weight: 700; }
/* 홈 아래 버튼 한 줄(2026-10-09 시안 design/home_dock_mock.html 안 A): 앨범 | 잘 찍는 법 */
.dock.slim { padding-top: 28px; }
.dk-row { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 6px; }
.dk-row .x { width: auto; flex: none; padding: 0 14px; height: 48px; }
.dk-row .x.sm { font-size: 17px; }
.dk-row .bar { width: 1px; height: 16px; background: var(--line); }
/* 홈 찍기 버튼: 내리면 둥근 버튼으로 줄고 올리면 펼침(2026-10-11 시안 home_scroll_dock_mock.html 안 B, dock.js가 .mini를 붙인다).
   흐림 배경은 ::before로 옮겨 접힐 때 같이 사라지게 하고, 빈 자리는 아래 카드를 누를 수 있게 둔다 */
.dock.dk-auto { background: none; pointer-events: none; transition: padding .28s cubic-bezier(.2,.8,.2,1); }
.dock.dk-auto > * { pointer-events: auto; }
.dock.dk-auto::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, var(--canvas0), var(--canvas) 34%); transition: opacity .2s; }
.dock.dk-auto > .btn.p { margin-right: auto; overflow: hidden; white-space: nowrap; transition: width .3s cubic-bezier(.2,.8,.2,1), border-radius .3s, margin .3s, box-shadow .3s; }
.dock.dk-auto .lbl { transition: opacity .15s; }
.dock.dk-auto .dk-row { max-height: 60px; overflow: hidden; transition: opacity .18s, max-height .28s, margin .28s; }
.dock.dk-auto.mini { padding-top: 0; }
.dock.dk-auto.mini::before { opacity: 0; }
.dock.dk-auto.mini > .btn.p { width: 64px; border-radius: 32px; margin-right: 0; gap: 0; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.dock.dk-auto.mini .lbl { opacity: 0; width: 0; }
.dock.dk-auto.mini .dk-row { opacity: 0; max-height: 0; margin-top: 0; pointer-events: none; }
.dock.dk-auto.mini .dk-row .btn { visibility: hidden; }
@media (min-width: 481px) { .dock.dk-auto.mini > .btn.p { margin-right: calc(50% - 220px); } }
@media (prefers-reduced-motion: reduce) { .dock.dk-auto, .dock.dk-auto *, .dock.dk-auto::before { transition: none !important; } }
/* 실마진 그달 합계·영업이익(2026-10-09, 시안 design/margin_total_mock.html #l·#c). 이름은 mt-·ct- */
.mt-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); margin-top: 12px; }
.mt-bar i { background: var(--blue); } .mt-bar em { background: var(--blue-ink); opacity: .45; } .mt-bar u { background: var(--blue-soft); }
.mt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--sub); margin-top: 6px; }
.mt-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--blue); }
.mt-legend span.a::before { background: var(--blue-ink); opacity: .45; } .mt-legend span.u::before { background: var(--blue-soft); }
.mt-sum { font-size: 15px; color: var(--sub); line-height: 1.6; margin: 8px 0 0; }
.mt-sum b { color: var(--text); }
.mt-tag { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; margin-left: 6px; vertical-align: 2px; }
.mt-tag.avg { background: var(--canvas); color: var(--sub); } .mt-tag.own { background: var(--green-soft); color: var(--green-ink); }
.ct-eq { font-size: 16px; line-height: 1.9; }
.ct-eq div { display: flex; justify-content: space-between; }
.ct-eq .neg { color: var(--red); }
.ct-eq .tot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; font-weight: 800; }
.ct-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ct-row:first-child { border-top: 0; padding-top: 2px; }
.ct-row .nm { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; }
.ct-row .nm small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 2px; white-space: nowrap; }
.ct-row .in { display: flex; align-items: baseline; gap: 3px; width: 132px; background: var(--canvas); border-radius: 12px; padding: 10px 12px; font-size: 15px; color: var(--sub); }
.ct-row .in input { width: 100%; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 700; color: var(--text); text-align: right; padding: 0; }
.ct-row .in input:focus { outline: none; }
.ct-row .in input::placeholder { color: var(--faint); font-weight: 500; font-size: 15px; }
.ct-row .x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 15px; background: var(--canvas); display: inline-flex; align-items: center; justify-content: center; color: var(--sub); padding: 0; }
.ct-row .x svg { width: 14px; height: 14px; }
.ct-row .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 항목 이름은 사장님이 지어 길 수 있다(2026-10-31 한 줄) */
@media (max-width: 380px) { .ct-row .in { width: 116px; } }
.ct-add { display: flex; gap: 10px; margin-top: 12px; }
.ct-add input { flex: 1; min-width: 0; border: 0; border-radius: 14px; background: var(--card); padding: 0 14px; font: inherit; font-size: 17px; color: var(--text); box-shadow: var(--shadow); }
.ct-add .btn { width: auto; padding: 0 18px; height: 52px; }
.mg-clear { display: block; margin: 10px auto 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: underline; text-underline-offset: 4px; padding: 6px; cursor: pointer; }
.mt-empty { color: var(--faint); }
/* 시세 비교(web.md 23절 재설계, 시안 design/compare_mock.html, 2026-10-09). 이름은 cp- */
.cp-net { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 4px; line-height: 1.25; }
.cp-net .up { color: var(--red); } .cp-net .dn { color: var(--green-ink); }
.cp-two { display: flex; gap: 10px; margin-top: 12px; }
.cp-two > div { flex: 1; background: var(--canvas); border-radius: 14px; padding: 12px 14px; }
.cp-two .l { font-size: 13px; color: var(--sub); font-weight: 600; }
.cp-two .v { font-size: 20px; font-weight: 800; margin-top: 2px; }
.cp-two .v.up { color: var(--red); } .cp-two .v.dn { color: var(--green-ink); }
.cp-two .c { font-size: 13px; color: var(--sub); white-space: nowrap; }   /* '앞 주보다 1,000원↓'·날짜 목록: 짧은 값은 줄 안 바꿈(2026-10-31) */
.cp-cover { font-size: 14px; color: var(--sub); margin-top: 10px; line-height: 1.5; }
.cp-bars { display: flex; align-items: center; gap: 8px; height: 150px; margin: 6px 0 2px; }
.cp-bars > a, .cp-bars > div { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--sub); }
.cp-bars .top, .cp-bars .bot { flex: 1; width: 100%; display: flex; justify-content: center; }
.cp-bars .top { align-items: flex-end; border-bottom: 1px solid var(--line); } .cp-bars .bot { align-items: flex-start; }
.cp-bars i { width: 60%; background: var(--red); border-radius: 5px 5px 2px 2px; opacity: .85; }
.cp-bars u { width: 60%; background: var(--green); border-radius: 2px 2px 5px 5px; opacity: .85; }
.cp-bars .on { color: var(--text); font-weight: 700; }
.cp-bars em { font-style: normal; font-size: 11px; white-space: nowrap; letter-spacing: -0.03em; }
.cp-bars .cp-none .top { border-bottom-style: dashed; }      /* 주마다(2026-10-10): 판정 없는 주는 막대 없이 이유 글 */
.cp-it { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.cp-it:first-child { border-top: 0; padding-top: 2px; }
.cp-it .nm { font-size: 17px; font-weight: 700; } .cp-it .sb { font-size: 13px; color: var(--sub); margin-top: 2px; }
.cp-it .v { margin-left: auto; text-align: right; font-size: 18px; font-weight: 800; white-space: nowrap; }
.cp-it .v.up { color: var(--red); } .cp-it .v.dn { color: var(--green-ink); } .cp-it .v.mute { color: var(--sub); }
.cp-it .why { font-size: 13px; margin-top: 3px; font-weight: 600; color: var(--sub); }   /* 시세 · 단가 한 줄(2026-11-06) */
.cp-it .why b { font-weight: 700; } .cp-it .why .r { color: var(--red); } .cp-it .why .g { color: var(--green-ink); }
.cp-it .v small { display: block; font-size: 12px; color: var(--sub); font-weight: 600; }
.cp-alert { border-left: 4px solid var(--amber); }
.cp-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--red-soft); color: var(--red); margin-left: 6px; vertical-align: 2px; }
.cp-tag.base { background: var(--blue-soft); color: var(--blue-ink); margin-left: 0; }
.cp-tag.hol { background: var(--amber-soft); color: var(--amber-ink); }
.cp-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.cp-tbl th { text-align: right; color: var(--sub); font-weight: 600; font-size: 12px; padding: 0 0 6px; }
.cp-tbl th:first-child, .cp-tbl td:first-child { text-align: left; }
.cp-tbl td { text-align: right; padding: 9px 0; border-top: 1px solid var(--line); }
.cp-tbl td.above { color: var(--red); font-weight: 700; } .cp-tbl td.below { color: var(--green-ink); font-weight: 700; }
.cp-tbl td.mute { color: var(--sub); font-size: 13px; }
.cp-tbl tr.holiday td { color: var(--faint); }
.cp-note { background: var(--amber-soft); color: var(--amber-ink); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.55; margin-top: 12px; }
.cp-say { background: var(--canvas); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.6; margin-top: 8px; }
.cp-legend { display: flex; gap: 14px; font-size: 13px; color: var(--sub); margin-top: 6px; }
.cp-legend .a::before, .cp-legend .u::before { content: ""; display: inline-block; width: 14px; height: 0; margin-right: 6px; vertical-align: 3px; }
.cp-legend .a::before { border-top: 3px solid var(--red); } .cp-legend .u::before { border-top: 2px dashed var(--faint); }
.cp-how { font-size: 15px; line-height: 1.75; }
.cp-how b { font-weight: 800; }
.cp-how .eq { background: var(--canvas); border-radius: 12px; padding: 12px 14px; margin: 8px 0 14px; font-size: 15px; }
.cp-link { display: block; text-align: center; font-size: 15px; font-weight: 600; color: var(--blue-ink); margin-top: 14px; padding: 6px; }
/* 시세 비교 부위 화면 날짜별 계산(web.md 23절, 2026-10-11). 이름은 cx- */
.cx-hint { font-size: 14px; color: var(--sub); margin: 16px 0 10px; }
.cx-head, .cx-row > summary { display: grid; grid-template-columns: 46px 1fr 1fr 1.15fr 18px; align-items: center; gap: 4px; }
.cx-head { font-size: 12px; font-weight: 600; color: var(--sub); padding: 0 0 6px; }
.cx-head span, .cx-row > summary span { text-align: right; }
.cx-head span:first-child, .cx-row > summary span:first-child { text-align: left; }
.cx-row { border-top: 1px solid var(--line); }
.cx-row > summary { list-style: none; cursor: pointer; padding: 11px 0; font-size: 15px; }
.cx-row > summary::-webkit-details-marker { display: none; }
.cx-row > summary svg { width: 16px; height: 16px; color: var(--faint); transition: transform .15s; justify-self: end; }
.cx-row[open] > summary svg { transform: rotate(90deg); }
.cx-row[open] > summary { font-weight: 700; }
.cx-row .above { color: var(--red); font-weight: 700; } .cx-row .below { color: var(--green-ink); font-weight: 700; }
.cx-row .mute { color: var(--sub); font-size: 13px; }
.cx-row.holiday > summary { color: var(--faint); }
.cx-calc { background: var(--canvas); border-radius: 14px; padding: 14px 14px 12px; margin: 0 0 12px; }
.cx-st { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin-bottom: 12px; }
.cx-st .no { width: 22px; height: 22px; border-radius: 11px; background: var(--card); color: var(--sub); font-size: 13px; font-weight: 700;
             display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.cx-st .k { font-size: 14px; color: var(--sub); }
.cx-st .eq { font-size: 17px; margin-top: 2px; }
.cx-st .eq b { font-weight: 800; }
.cx-st .src { font-size: 13px; color: var(--faint); margin-top: 2px; }
.cx-st .two { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 16px; margin-top: 2px; }   /* 평소 → 이날(2026-11-06) */
.cx-st .two b { font-weight: 800; white-space: nowrap; } .cx-st .two .r { color: var(--red); } .cx-st .two .g { color: var(--green-ink); }
.cx-res { border-top: 1px solid var(--line); padding-top: 11px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.cx-res.only { border-top: 0; padding-top: 0; }
.cx-res.above { color: var(--red); } .cx-res.below { color: var(--green-ink); }
.cx-res small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); }
/* 받은 고기: 번호 넣기·사진(web.md 26절). 이름은 ar- */
.ar-fix { margin-top: 12px; }
.ar-row { display: flex; gap: 8px; }
.ar-row input { flex: 1; min-width: 0; border: 0; border-radius: 12px; background: var(--canvas); padding: 0 14px; height: 48px; font: inherit; font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.ar-row .btn { width: auto; height: 48px; padding: 0 16px; font-size: 16px; }
.ar-res { margin: 8px 2px; }
.ar-fix .btn.p { margin-top: 6px; height: 52px; font-size: 17px; }
.ar-photos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin: 2px 0 6px; }
.ar-photos .btn { width: auto; height: 44px; padding: 0 14px; font-size: 16px; color: var(--blue-ink); }
/* 마트 정육 행사(web.md 27절, 시안 design/home_flyer_mock.html). 이름은 fl- (.p는 기본 버튼이라 쓰지 않는다 → .fv) */
.fl-list { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.fl-it { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.fl-it:first-child { border-top: 0; padding-top: 2px; }
.fl-it .nm { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; }
.fl-it .nm small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.fl-it .fv { text-align: right; font-size: 18px; font-weight: 800; white-space: nowrap; }
.fl-off { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 13px; font-weight: 800;
  background: var(--red-soft); color: var(--red); vertical-align: 1px; }
.fl-mart { color: var(--text2); font-weight: 700; }
.fl-it .fv small { display: block; font-size: 12px; font-weight: 600; color: var(--sub); }
.fl-chips { display: flex; gap: 8px; margin: 4px 0 14px; }
.fl-chips a { font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.fl-chips a.on { background: var(--text); color: var(--card); }
/* 홈 재배치(2026-10-10): 다음 주문 카드의 주문서 줄(매입 카드 안 작은 막대는 2026-11-13 뺌) */
.hb-row2 { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 16px; font-weight: 700; color: var(--blue-ink); text-decoration: none; }
.hb-row2 svg { width: 20px; height: 20px; }
/* 부위별 매입(web.md 23절 '부위별', 시안 design/part_flow_mock.html). 이름은 pf- */
.pf-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; color: var(--sub); padding: 2px 0 6px; }
.pf-it { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.card > .pf-it:first-child, .pf-h + .pf-it { border-top: 0; }
.pf-it .nm { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-it .nm small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 3px; white-space: nowrap; }   /* 짧은 값(무게·단가)은 줄 안 바꿈(2026-10-31) */
.pf-it .v { font-size: 17px; font-weight: 800; white-space: nowrap; }
.pf-it .chev { width: 18px; height: 18px; }
.pf-gap { height: 18px; }
.pf-more > summary { list-style: none; cursor: pointer; }
.pf-more > summary::-webkit-details-marker { display: none; }
.pf-more[open] > summary { display: none; }
.cp-two .c b.up { color: var(--red); } .cp-two .c b.dn { color: var(--green-ink); }
.hb-bars .skip i { background: var(--line); height: 3px; }
.hb-bars .skip em { color: var(--sub); }
/* 홈 매입 카드 전체 누르기(2026-10-10): 카드를 덮는 링크 위로 ‹ ›만 올린다 */
.hb-tapcard { position: relative; }
.hb-tap { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.hb-tapcard .month .nav2 { position: relative; z-index: 2; }
.hb-tapcard a.gp-go { position: relative; z-index: 2; color: inherit; text-decoration: none; }   /* 공판장 카드 줄마다 그 등급으로(QA 9회차) */
/* 명세서 모음(web.md 29절, 시안 design/invoices_mock.html). 이름은 iv- */
.iv-wk { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; color: var(--sub); margin: 22px 6px 10px; }
.iv-wk em { font-style: normal; color: var(--amber-ink); }
.iv-it { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.card > .iv-it:first-child { border-top: 0; padding-top: 0; }
.card > .iv-it:last-child { padding-bottom: 0; }
.iv-th { display: block; width: 42px; height: 56px; border-radius: 8px; flex: none; object-fit: cover; object-position: top; background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
/* 한 줄(2026-10-31): 360px에서 이름 칸이 57px라 '10월 16일 · 4줄'이 접혔다 → 사진·간격·금액을 줄이고, 업체 이름·날짜 줄은 넘치면 말줄임 */
.iv-it .nm { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-it .nm small { display: block; font-size: 13px; font-weight: 500; color: var(--sub); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
.iv-it .v { font-size: 15px; font-weight: 800; white-space: nowrap; letter-spacing: -0.02em; }
.iv-it .chev { width: 18px; height: 18px; }
/* 고칠 것(web.md 32절, 시안 design/fix_filter_mock.html). 이름은 fx- */
.fx-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
           font-size: 16px; font-weight: 700; color: var(--amber-ink); }
.fx-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--amber); flex: none; }
.fx-chip { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px;
           background: var(--amber-soft); color: var(--amber-ink); font-size: 17px; font-weight: 700; text-decoration: none; }
.fx-chip .grow { flex: 1; min-width: 0; }
.fx-chip small { display: block; font-size: 14px; font-weight: 500; margin-top: 2px; opacity: .85; }
.fx-chip svg { width: 20px; height: 20px; flex: none; }
.iv-it .why { margin-top: 4px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.rd-list.fx-why { font-size: 16px; color: var(--text2); margin: -8px 4px 20px; }   /* ⑤ 고칠 이유: 문장마다 한 줄 */
.fx-done { text-align: center; padding: 40px 10px 10px; }
.fx-done .badge { margin: 0 auto 20px; background: var(--green-soft); color: var(--green-ink); }
.fx-done h1, .fx-done .lead { text-align: center; }
.iv-strip { display: flex; gap: 6px; margin-top: 14px; }
.iv-strip .iv-th { width: 44px; height: 58px; }
.iv-photo { margin: 0 0 14px; }
.iv-void > summary { list-style: none; cursor: pointer; margin: 14px 6px; }
.iv-void > summary::-webkit-details-marker { display: none; }
/* 시세 비교 업체별 합계(2026-10-10): 업체 머리 오른쪽 합계 */
.cp-gt { font-size: 16px; font-weight: 800; } .cp-gt.up { color: var(--red); } .cp-gt.dn { color: var(--green-ink); }
.card > .pf-h + .cp-it { border-top: 0; padding-top: 6px; }
/* 기간 바(web.md 30절, 시안 design/period_row_mock.html — [달 | 주]와 바 한 줄, 요약은 아래 줄). 이름은 pn- */
.pn { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.pn:has(+ .pn-sub) { margin-bottom: 6px; }
.pn-seg { display: flex; flex: none; background: var(--card2); border-radius: 14px; padding: 4px; height: 48px; box-sizing: border-box; }
.pn-seg a { display: flex; align-items: center; padding: 0 16px; border-radius: 10px; font-size: 16px; font-weight: 700; color: var(--sub); text-decoration: none; }
.pn-seg a.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.pn-bar { flex: 1; min-width: 0; display: flex; align-items: center; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); height: 48px; }
.pn-bar > a, .pn-bar > span.off { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.pn-bar > span.off { color: var(--line); }
.pn-bar svg { width: 22px; height: 22px; }
.pn-bar b { flex: 1; min-width: 0; text-align: center; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-sub { font-size: 14px; font-weight: 600; color: var(--sub); margin: 0 0 14px 4px; }


/* 카카오 로그인·초대(web.md 35절). 카카오 버튼은 카카오 색 그대로(밝게·어둡게 같다) */
.btn.kakao { background: #FEE500; color: #191919; }
.btn.kakao:active { opacity: .85; }
.login-note { font-size: 15px; color: var(--sub); text-align: center; margin: 16px 4px 0; line-height: 1.5; font-weight: 500; }
.login-note.warn { color: var(--red); background: var(--red-soft); padding: 12px 14px; border-radius: 14px; margin: 0 0 16px; text-align: left; }
/* 이용약관·개인정보처리방침(web.md 36절): 긴 글이라 본문 글씨는 조금 작게, 줄 간격 넉넉히 */
.legal { padding: 24px 4px 48px; font-size: 16px; line-height: 1.65; color: var(--text); }
.legal h1 { margin: 8px 0 18px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { margin: 6px 0; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal-draft { display: inline-block; font-size: 14px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 4px 10px; border-radius: 8px; }
.legal-t { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-t th, .legal-t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-links { text-align: center; font-size: 14px; margin-top: 28px; }
.legal-links a { color: var(--sub); text-decoration: none; margin: 0 6px; }
/* QR 스스로 가입(web.md 37절): 가게 이름 한 번 묻기(홈 맨 위) · QR 시작 화면 */
.nm-ask .nm-name { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 18px; }
.nm-fix { margin-top: 14px; text-align: center; }
.nm-fix summary { list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--sub); padding: 6px; }
.nm-fix summary::-webkit-details-marker { display: none; }
.nm-form { display: flex; gap: 8px; margin-top: 10px; }
.nm-form input { flex: 1; min-width: 0; height: 56px; border: 0; border-radius: 16px; padding: 0 16px; font: inherit; font-size: 19px;
                 background: var(--card2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nm-form .btn { width: auto; padding: 0 18px; height: 56px; font-size: 17px; }
/* 알림 받을 번호(web.md 38절): 이름 묻기 카드와 같은 모양, 번호 칸은 크게 */
.ph-ask .ph-t { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.ph-form { margin-top: 16px; }
.ph-form input { width: 100%; box-sizing: border-box; height: 60px; border: 0; border-radius: 16px; padding: 0 16px; margin-bottom: 10px;
                 font: inherit; font-size: 24px; font-weight: 600; letter-spacing: 0.02em; background: var(--card2); color: var(--text);
                 box-shadow: inset 0 0 0 1px var(--line); }
.ph-form input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.ph-err { color: var(--red); font-size: 15px; font-weight: 600; margin: -2px 2px 10px; }
.ph-skip { text-align: center; margin-top: 10px; }
.ph-skip button { border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--sub); padding: 6px 12px; cursor: pointer; }
/* 초대·로그인 버튼은 맨 아래 고정(2026-10-22): 카카오 동의 화면의 [동의하고 계속하기]와 같은 자리. 약관 알림은 버튼 위 작게 */
.login-dock { padding-top: 28px; }
.login-note.agree { margin: 0 4px 12px; font-size: 14px; }
.login-note a { color: var(--sub); }
/* 결제 등록·결과(web.md 40절, 시안 pay_mock.html 2026-10-23) */
.pay-agree { font-size: 14px; color: var(--sub); text-align: center; margin: 0 4px 12px; line-height: 1.5; }
.pay-note { font-size: 15px; color: var(--sub); text-align: center; margin: 12px 4px 0; }
.dock-pad { height: 110px; }   /* 버튼 둘 + 안내 줄인 아래 고정 칸(.page 아래 여백 170px로 모자람)이 마지막 줄을 가리지 않게 */
.btn.kpay { background: #FEE500; color: #191919; }
.btn.kpay:active { opacity: .85; }
.done-ic { width: 96px; height: 96px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center;
           justify-content: center; margin: 56px 0 24px 4px; box-shadow: 0 0 0 14px var(--blue-soft); }
.done-ic svg { width: 46px; height: 46px; }
.done-ic.fail-ic { background: var(--red); box-shadow: 0 0 0 14px var(--red-soft); }
/* 내 구독·해지·결제 내역(web.md 41절, 시안 design/account_mock.html 2026-10-23 승인) */
.ac-state { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: 600; padding: 12px 14px;
            border-radius: 14px; margin: 0 0 12px; line-height: 1.45; }
.ac-state svg { width: 18px; height: 18px; flex: none; }
.ac-state.ok { color: var(--green-ink); background: var(--green-soft); }
.ac-state.bad { color: var(--red); background: var(--red-soft); align-items: flex-start; }
.ac-state.bad svg { margin-top: 2px; }
.ac-state.wait { color: var(--sub); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ac-pay { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.pr-h + .ac-pay { border-top: 0; padding-top: 0; } .ac-pay:last-child { padding-bottom: 0; }
.ac-pay .d { font-size: 17px; font-weight: 600; }
.ac-pay .t { font-size: 14px; color: var(--sub); margin-top: 3px; }
.ac-pay .r { text-align: right; flex: none; }
.ac-pay .amt { font-size: 17px; font-weight: 700; }
.ac-pay a { font-size: 14px; font-weight: 600; color: var(--sub); text-decoration: none; }
.ac-pay .fail { font-size: 14px; color: var(--red); font-weight: 600; }
.ac-pay .wait { font-size: 14px; color: var(--sub); font-weight: 600; }
.pay-sub { display: block; text-align: center; margin: 6px 0 0; font-size: 14px; color: var(--faint); }
/* 사진만 확대(zoom.js, 2026-10-23): 칸 높이 고정, 처음엔 사진 전체가 보이게. 사진 위에서는 세로 스크롤만 브라우저에(두 손가락은 여기서),
   확대된 뒤에는 끌기도 여기서(페이지가 같이 움직이지 않게) */
.zbox { position: relative; height: min(46vh, 440px); border-radius: 20px; overflow: hidden; background: var(--card2);
        box-shadow: var(--shadow); margin-bottom: 18px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.zbox.zoomed { touch-action: none; }
.zbox img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; -webkit-user-drag: none; }
.zbox .zhint { position: absolute; right: 12px; bottom: 12px; pointer-events: none; transition: opacity .2s; }
.zbox.zoomed .zhint { opacity: 0; }
/* 시작 화면: 카카오 버튼을 카카오 로그인 화면의 [카카오톡으로 로그인]과 같은 높이(위 약 184px)에(web.md 37절, 2026-10-23) */
.st-h { margin-top: 35px; }   /* 버튼 가운데가 카카오 버튼 가운데(위 209px)와 같게: 우리 177~241 / 카카오 184~234 */
.st-lead { margin-bottom: 20px; }
.st-agree { margin: 12px 4px 28px; }
/* 요금 안내·하단 사업자 정보(web.md 39절, 시안 pricing_mock.html 2026-10-23) */
.pr-top { font-size: 17px; font-weight: 600; color: var(--sub); margin: 28px 4px 6px; }
.pr-big { font-size: 46px; font-weight: 800; letter-spacing: -0.045em; margin: 0 4px; }
.pr-big small { font-size: 26px; font-weight: 700; margin-left: 2px; }
.pr-sub { font-size: 16px; color: var(--sub); margin: 6px 4px 22px; font-weight: 500; }
.pr-free { display: flex; gap: 8px; align-items: center; font-size: 16px; font-weight: 600; color: var(--green-ink);
           background: var(--green-soft); padding: 12px 14px; border-radius: 14px; margin: 0 0 12px; }
.pr-free svg { width: 18px; height: 18px; flex: none; }
.pr-row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); font-size: 17px; }
.pr-row:first-child { border-top: 0; padding-top: 0; } .pr-row:last-child { padding-bottom: 0; }
.pr-row .k { color: var(--sub); flex: none; } .pr-row .v { font-weight: 600; text-align: right; }
.pr-h { font-size: 15px; font-weight: 600; color: var(--sub); margin: 0 0 14px; }
.pr-link { display: block; text-align: center; margin: 14px 0 0; font-size: 15px; font-weight: 600; color: var(--sub); }
/* 홈 맨 아래 한 줄(2026-11-02): 양 끝 글 링크, 누르는 높이 48px(글은 작아도 손가락은 크다). 카드와 겨루지 않게 회색 글씨만 */
.ft-row { display: flex; justify-content: space-between; align-items: center; margin: 10px -4px 0; }
.ft-row a { display: inline-flex; align-items: center; gap: 5px; min-height: 48px; padding: 0 8px; font-size: 15px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.ft-row a:only-child { margin: 0 auto; }
.ft-row .ar { font-size: 17px; line-height: 1; margin-left: 1px; }
.ft-row svg { width: 18px; height: 18px; }
/* 내 계정(web.md 48절): 줄 목록 — 왼쪽 이름, 오른쪽 지금 값(회색), 끝에 › . 버튼 줄(로그아웃)도 같은 모양 */
.me-shop { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; margin: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-list { padding-top: 6px; padding-bottom: 6px; }
.me-list form { margin: 0; }
.me-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 17px 0; border: 0; border-top: 1px solid var(--line);
          background: none; font: inherit; font-size: 18px; color: var(--text); text-decoration: none; text-align: left; cursor: pointer; }
.me-list > :first-child.me-row, .me-list > form:first-child .me-row { border-top: 0; }
.me-row .k { font-weight: 600; flex: none; }
.me-row .v { flex: 1; text-align: right; color: var(--sub); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-row .v.bad { color: var(--red); font-weight: 600; }
.me-row .v.ask { color: var(--blue); font-weight: 600; }   /* 알림 번호가 없을 때(web.md 38절 [추가: 2026-11-21]) */
.me-row .chev { width: 18px; height: 18px; }
.me-form { margin-top: 8px; }
.me-person { cursor: default; }
.me-person .grow { flex: 1; min-width: 0; }
.me-sub { font-size: 15px; color: var(--sub); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-tag { font-size: 13px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); padding: 2px 7px; border-radius: 8px; margin-left: 4px; }
.me-act { flex: none; font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: none; padding: 8px 12px; border-radius: 10px; background: var(--canvas); }
.me-link { font-size: 15px; color: var(--text2); word-break: break-all; }
.lv-list { margin-top: 22px; }
.lv-row { font-size: 17px; font-weight: 600; padding: 13px 0; border-top: 1px solid var(--line); }
.lv-row:first-child { border-top: 0; }
.lv-fine { margin: 12px 6px 0; }
.me-staff { text-align: center; font-size: 15px; font-weight: 600; color: var(--sub); margin: 0 0 12px; }
.biz { margin: 34px 6px 40px; font-size: 13px; line-height: 1.7; color: var(--faint); }
.biz b { color: var(--sub); font-weight: 600; }
.biz a { color: var(--sub); }
.biz .links { margin-top: 10px; font-size: 14px; }
.biz .links a { margin-right: 14px; font-weight: 600; text-decoration: none; }
/* 받은 고기 홈 카드(web.md 42절, 2026-10-25 시안 design/market_trace_mock.html #h): 큰 줄 '한우 1+ · 암소 27개월' + 칸 셋 */
.ar2-big { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; line-height: 1.25; }
.ar2-big .sx { color: var(--blue-ink); }
.ar2-big .warn { color: var(--amber-ink); }
.ar2-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ar2-tiles div { background: var(--canvas); border-radius: 14px; padding: 11px 6px 10px; text-align: center; min-width: 0; }
.ar2-tiles span { display: block; font-size: 13px; color: var(--sub); font-weight: 600; }
.ar2-tiles b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; white-space: nowrap; }
.ar2-tiles small { display: block; font-size: 12px; color: var(--sub); font-weight: 600; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar2-tiles .up b, .ar2-tiles .up small { color: var(--red); }
@media (max-width: 380px) { .ar2-tiles b { font-size: 17px; letter-spacing: -0.04em; } .ar2-tiles div { padding-left: 3px; padding-right: 3px; } }   /* 칸 셋 '10월 30일'이 360px에서 넘쳤다(2026-11-08 시안) */
/* 이력번호 조회(web.md 42절, 시안 #t): 번호 칸 + [조회], 결과는 rd-row */
.tq-in { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.tq-in input { flex: 1; min-width: 0; height: 56px; border-radius: 16px; border: 0; outline: 0; background: var(--canvas); padding: 0 16px; font-family: inherit;
               font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--text); font-variant-numeric: tabular-nums; }
.tq-in input::placeholder { color: var(--faint); font-weight: 600; letter-spacing: 0; font-size: 18px; }
.tq-in input:focus { box-shadow: inset 0 0 0 2px var(--blue); }
.tq-in button { flex: none; height: 56px; padding: 0 20px; border-radius: 16px; border: 0; background: var(--blue); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.tq-res .rd-row .k { color: var(--sub); }
.tq-res .rd-row .v { font-weight: 700; text-align: right; }
.tq-res .rd-row .v small, .tq-res .rd-row .k small { font-weight: 500; }
/* 공판장 시세(web.md 42절, 시안 design/market_trace_mock.html #h·#m·#n). 이름 gp- (.mt-는 다른 화면이 쓴다) */
.gp-what { margin-top: 10px; color: var(--text2); }
.gp-hero { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.gp-hero b { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; }
.gp-hero small { font-size: 18px; font-weight: 700; color: var(--text2); }
.gp-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }   /* 홈 블록 칩과 같게 반씩(2026-11-08) */
.gp-cmp span { font-size: 17px; font-weight: 800; color: var(--text2); background: var(--canvas); border-radius: 12px; padding: 8px 4px 9px; white-space: nowrap;
               text-align: center; min-width: 0; }
.gp-cmp span.dn { color: var(--blue-ink); background: var(--blue-soft); }
.gp-cmp span.up { color: var(--red); background: var(--red-soft); }
.gp-trend { margin-top: 14px; }
.gp-tk { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--sub); font-weight: 600; }
.gp-tk b { font-size: 14px; } .gp-tk b.dn { color: var(--blue-ink); } .gp-tk b.up { color: var(--red); }
.gp-spark { width: 100%; height: 76px; display: block; margin-top: 6px; }
.gp-chart { width: 100%; height: 150px; display: block; margin-top: 8px; }
.gp-mini { width: 44px; height: 22px; flex: none; }
.gp-hol { fill: var(--amber-soft); }
.gp-l1, .gp-l2 { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gp-l1 { stroke: var(--blue); stroke-width: 3; }
.gp-l2 { stroke: var(--faint); stroke-width: 2.5; stroke-dasharray: 4 4; }
.gp-mini .gp-l1 { stroke-width: 2; }
.gp-dot { fill: var(--blue); }
.gp-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub); margin-top: 2px; font-variant-numeric: tabular-nums; }
.gp-axis .hol { color: var(--amber-ink); font-weight: 700; }
.gp-sep { height: 1px; background: var(--line); margin: 16px 0 6px; }
.gp-hd, .gp-row { display: grid; grid-template-columns: 1fr 92px 82px; align-items: baseline; gap: 6px; }
.gp-row.one, .gp-hd.one { grid-template-columns: 1fr 110px; }
.gp-hd { font-size: 13px; color: var(--sub); font-weight: 600; padding: 6px 0 2px; }
.gp-hd span, .gp-row .v { text-align: right; }
.gp-hd span:first-child { text-align: left; }
.gp-row { padding: 9px 0; font-size: 17px; color: inherit; text-decoration: none; }
.gp-row + .gp-row { border-top: 1px solid var(--line); }
.gp-row .nm { font-weight: 700; min-width: 0; }
.gp-row .nm small, .gp-row .v small { display: block; font-size: 12px; color: var(--sub); font-weight: 500; margin-top: 1px; }
.gp-row .v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-row .v.nat { font-weight: 600; color: var(--text2); }
.gp-row .v.thin { color: var(--faint); }
.gp-row .v.sp { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.gp-row .v.sp em { font-style: normal; font-size: 13px; font-weight: 700; min-width: 34px; text-align: right; color: var(--text2); }
.gp-row .v.sp em.dn { color: var(--blue-ink); } .gp-row .v.sp em.up { color: var(--red); }
.gp-row.mine .nm::after { content: "자주 사심"; font-size: 12px; font-weight: 700; color: var(--blue-ink); background: var(--blue-soft); border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: 2px; }
.gp-pick.on { background: var(--blue-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 10px; }
.gp-foot { font-size: 14px; color: var(--sub); margin: 12px 0 0; line-height: 1.5; }
.gp-foot b { color: var(--text2); }
.gp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--sub); margin-top: 8px; }
.gp-legend b { color: var(--text2); } .gp-legend b.b { color: var(--blue-ink); } .gp-legend b.a { color: var(--amber-ink); }
.gp-more summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 700; cursor: pointer; }
.gp-more summary::-webkit-details-marker { display: none; }
.gp-more summary span { font-size: 15px; color: var(--sub); font-weight: 600; }
.gp-more .gp-row:first-of-type { margin-top: 10px; }
.seg a.pick { display: inline-block; text-decoration: none; }
/* 새 가게 홈(web.md 42절 C3, 시안 #n): 찍기 한 줄 + '명세서를 넣으면 더 보여 드려요' */
.nw-cta h2 { margin-bottom: 16px; }
.nw-cta-sub { text-align: center; font-size: 14px; color: var(--sub); margin: 10px 0 0; font-weight: 600; }   /* 첫 장·두 장째 약속(web.md 43절) */
.nw-soon { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.nw-soon + .nw-soon { border-top: 1px solid var(--line); }
.nw-soon .t1 { font-size: 17px; font-weight: 700; }
.nw-soon .t2 { font-size: 14px; color: var(--sub); margin-top: 1px; }
.nw-soon .when { margin-left: auto; flex: none; font-size: 13px; font-weight: 700; color: var(--sub); background: var(--canvas); border-radius: 8px; padding: 4px 8px; }
.hb-sub b.nw-b { color: var(--text); }
/* 시세 비교 홈 카드(web.md 42절 C4, 시안 #c): 품목 하나 — 산 값 vs 시세대로면 막대 둘, kg당 차이, 이유 한 줄 */
.cp2-bars { margin-top: 12px; }
.cp2-bar { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; font-size: 15px; }
.cp2-bar + .cp2-bar { margin-top: 8px; }
.cp2-bar .k { color: var(--sub); font-weight: 600; }
.cp2-bar .t { position: relative; height: 36px; border-radius: 10px; background: var(--canvas); overflow: hidden; }
.cp2-bar .t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px;
                font-style: normal; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp2-bar .t i.paid { background: var(--red-soft); color: var(--red); }
.cp2-bar .t i.mkt { background: var(--blue-soft); color: var(--blue-ink); }
.cp2-fact { background: var(--amber-soft); color: var(--text2); border-radius: 14px; padding: 11px 13px; margin-top: 12px; font-size: 15px; line-height: 1.5; }
.cp2-fact b { color: var(--text); }
/* 시세 비교 홈 카드 v3(2026-10-25, 시안 design/compare_card_v3_mock.html): 큰 숫자 하나 = 그달 합쳐서, 대표 품목 한 덩어리, 그 밖에 */
.cp4-big span { white-space: nowrap; }   /* 좁은 폰에서 '약 1만8천원 / 더 냈어요'로 끊는다('냈어요'만 내려가지 않게) */
.cp4-big .up { color: var(--red); } .cp4-big .dn { color: var(--blue-ink); }
.cp4-sub b.r { color: var(--red); } .cp4-sub b.b { color: var(--blue-ink); }
.cp4-hero { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cp4-k { font-size: 14px; color: var(--sub); font-weight: 600; }
.cp4-name { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 700; margin-top: 4px; }
.cp4-name span { min-width: 0; }
.cp4-name small { color: var(--sub); font-weight: 600; font-size: 14px; margin-left: 6px; white-space: nowrap; }
.cp4-name b { color: var(--red); white-space: nowrap; font-size: 16px; }
.cp4-diff { font-size: 15px; color: var(--sub); font-weight: 600; margin-top: 8px; }
.cp4-diff b { color: var(--red); font-size: 17px; font-weight: 800; }
/* 그 밖에 시세보다 위(QA 9회차 v2부터) */
.cp3-others { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cp3-ok { font-size: 14px; color: var(--sub); font-weight: 600; margin-bottom: 4px; }
.cp3-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 16px; font-weight: 600; }
.cp3-row span { min-width: 0; }
.cp3-row small { color: var(--sub); font-weight: 600; font-size: 13px; margin-left: 4px; }
.cp3-row b { color: var(--red); white-space: nowrap; }
.cp3-row.dim span { color: var(--sub); }
/* 품목 날짜별: 온 달 머리·다른 달 접기·그 날 명세서(QA 9회차) */
.cx-month { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.cx-other { margin-top: 6px; border-top: 1px solid var(--line); }
.cx-other > summary { list-style: none; cursor: pointer; padding: 12px 0 6px; font-size: 15px; font-weight: 600; color: var(--sub); text-align: center; }
.cx-other > summary::-webkit-details-marker { display: none; }
.cx-src { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--blue-ink); text-decoration: none; }
/* 홈 확인 안 한 명세서 여러 장(QA 9회차 ②): 장마다 한 줄 */
.wt-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.wt-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 17px; font-weight: 700; }
.wt-row span { flex: 1; min-width: 0; } .wt-row small { display: block; font-size: 14px; font-weight: 500; color: var(--sub); margin-top: 2px; }
.wt-row .chev { width: 18px; height: 18px; color: var(--faint); flex: none; }
.wt-more { font-size: 14px; color: var(--sub); padding-top: 10px; border-top: 1px solid var(--line); }
/* 명세서 모음 카드 '고칠 것 N장' 줄만 따로 눌림(QA 9회차 ③): 덮는 링크 위로 */
.hb-tapcard a.fx-go { position: relative; z-index: 2; text-decoration: none; color: inherit; display: flex; align-items: center; }
.fx-go b { margin-left: auto; font-size: 14px; color: var(--amber-ink); }
/* 발주 참고 '한 주에' 막대 틈의 이유(QA 9회차 ④): 추석 앞뒤 / 명세서 없음 */
.og2-mini .gapx { flex: .9; justify-content: flex-end; }
.og2-mini .gapx span { font-size: 10px; line-height: 1.2; color: var(--sub); text-align: center; white-space: normal; border-top: 1px dashed var(--line); padding-top: 4px; width: 100%; }
/* 공판장 시세 v2(web.md 45절, 시안 design/market_v2_mock.html): 홈 블록(한돈·한우) · 자세히 [한돈 | 한우] 탭 */
.gp2-blk { display: block; position: relative; z-index: 2; color: inherit; text-decoration: none; padding: 14px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.gp2-blk + .gp2-blk { margin-top: 0; } .gp2-blk:last-child { padding-bottom: 2px; }   /* 그래프를 뺀 뒤(2026-11-13) 블록은 칩에서 끝난다 */
.gp2-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.gp2-nm { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.gp2-sub { font-size: 13px; color: var(--sub); font-weight: 600; margin-top: 2px; }
.gp2-v { white-space: nowrap; } .gp2-v b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.gp2-v small { font-size: 16px; font-weight: 700; color: var(--text2); margin-left: 2px; }
/* 칩 두 개(지난주보다 · 8주 전보다)는 딱 반씩(2026-11-08 사용자 '크기도 통일, 딱 절반씩') — 한 개만 있어도 반 폭 */
.gp2-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0 0; }
/* 두 줄: 작은 '지난주보다' / 굵은 '60원 ↓' — 한 줄 '10/12주보다 1,234원 ↑'은 360px 반 폭에 안 들어갔다 */
.gp2-chips span { font-size: 16px; font-weight: 800; color: var(--text2); background: var(--canvas); border-radius: 12px; padding: 7px 4px 8px; white-space: nowrap;
                  text-align: center; min-width: 0; }
/* 값 = '1,296원(19%) ↓'(2026-11-08 원(%) 한 줄) — 360px 반 폭에서 가장 긴 '1,234원(12%) ↑'이 넘쳐 좁은 폭만 한 단계 작게 */
@media (max-width: 380px) { .gp2-chips span, .gp-cmp span { font-size: 15px; letter-spacing: -0.04em; } }
.gp2-chips small, .gp-cmp small { display: block; font-size: 12px; font-weight: 600; opacity: .8; margin-bottom: 1px; }
.gp2-chips span.dn { color: var(--blue-ink); background: var(--blue-soft); } .gp2-chips span.up { color: var(--red); background: var(--red-soft); }
/* 자세히 '최근 8주' 표(2026-11-13): 두 줄 4칸, 칸 = 주 이름 + 주 평균 + 앞 주보다(같은 공판장). 명절 주는 칸 색, 마지막 주는 파랑 */
.gp-w8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; }
.gp-w8 div { background: var(--canvas); border-radius: 10px; text-align: center; white-space: nowrap; padding: 8px 0 9px; min-width: 0; }
.gp-w8 small { display: block; font-size: 11px; font-weight: 600; color: var(--sub); letter-spacing: -0.03em; }
.gp-w8 b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.03em; }
.gp-w8 em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--sub); }
.gp-w8 em.up { color: var(--red); } .gp-w8 em.dn { color: var(--blue-ink); }
.gp-w8 .hol { background: var(--amber-soft); } .gp-w8 .hol small { color: var(--amber-ink); }
.gp-w8 .now { background: var(--blue-soft); } .gp-w8 .now b, .gp-w8 .now small { color: var(--blue-ink); }
.gp2-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 14px; padding: 4px; margin: 0 0 12px; }
.gp2-tabs a { text-align: center; padding: 11px 0; border-radius: 11px; font-size: 17px; font-weight: 700; color: var(--sub); text-decoration: none; }
.gp2-tabs a.on { background: var(--canvas); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
/* 공판장 날마다 값(web.md 45.1절): 요약 큰 숫자·줄 → 날마다. 시세 비교 품목 화면과 같은 위계 */
.gp2-hero { display: block; color: inherit; text-decoration: none; }
a.gp2-go { color: inherit; text-decoration: none; display: grid; grid-template-columns: 1fr auto 16px; align-items: center; gap: 6px; }
a.gp2-go .chev { width: 16px; height: 16px; color: var(--faint); }
.gp2-wk { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 0 10px; }
.gp2-wk b { font-size: 16px; font-weight: 800; white-space: nowrap; } .gp2-wk span { font-size: 15px; font-weight: 700; color: var(--text2); white-space: nowrap; }
.gp2-dh, .gp2-dr { display: grid; grid-template-columns: 64px 1fr 1fr; align-items: center; gap: 6px; }
.gp2-dh.two, .gp2-dr.two { grid-template-columns: 64px 1fr 72px 1fr; }
.gp2-dh { font-size: 12px; font-weight: 600; color: var(--sub); padding: 0 0 6px; }
.gp2-dh span, .gp2-dr span { text-align: right; } .gp2-dh span:first-child, .gp2-dr span:first-child { text-align: left; }
.gp2-dr { border-top: 1px solid var(--line); padding: 10px 0; font-size: 15px; }
.gp2-dr .v { font-weight: 700; } .gp2-dr .v small { display: block; font-size: 11px; font-weight: 500; color: var(--sub); }
.gp2-dr .nat { color: var(--sub); } .gp2-dr .up { color: var(--red); } .gp2-dr .dn { color: var(--blue-ink); }
.gp2-dr.low { opacity: .55; }
.gp2-wkgap { height: 14px; }

/* 외상 잔액 대조(web.md 49절, 시안 design/credit_mock.html, 2026-11-03): 명세서 한 장 외상 카드·매입처 외상·홈 할 일 */
.cr-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 17px; padding-top: 12px; }
.cr-kv .k { color: var(--sub); font-weight: 500; flex: none; }
.cr-kv .v { font-weight: 700; text-align: right; }
.cr-kv.end { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.cr-kv.end .k { color: var(--text); font-weight: 700; }
.cr-kv.end .v { font-size: 21px; }
.cr-go { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px;
         font-size: 16px; font-weight: 700; color: var(--blue-ink); }
.cr-go svg { width: 20px; height: 20px; }
.cr-it { display: block; position: relative; padding: 14px 28px 14px 0; border-top: 1px solid var(--line); }
.card > .cr-it:first-child { border-top: 0; padding-top: 2px; }
.cr-it.after { border-top: 0; padding-top: 4px; }
.cr-it .r1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 700; }
.cr-it .r1 .v { font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.cr-it .r2 { font-size: 14px; font-weight: 500; color: var(--sub); margin-top: 3px; white-space: nowrap; }
.cr-it .chev { position: absolute; right: 0; top: 50%; margin-top: -9px; width: 18px; height: 18px; }
.cr-sup { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.cr-sup .nm { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-sup .nm small { display: block; font-size: 14px; font-weight: 500; color: var(--sub); margin-top: 3px; }
.cr-sup .v { font-size: 17px; font-weight: 800; white-space: nowrap; letter-spacing: -0.02em; }
.cr-sup .chev { width: 18px; height: 18px; }
.cr-paid { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--green-ink); padding: 2px 0 12px 2px; }
.cr-paid::before { content: ""; width: 2px; height: 16px; background: var(--green); border-radius: 1px; margin: 0 6px 0 4px; }
.cr-paid span { margin-left: auto; font-weight: 800; }
.cr-grew { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--amber-ink); padding: 2px 0 12px 2px; }
.cr-grew::before { content: ""; width: 2px; height: 16px; background: var(--amber); border-radius: 1px; margin: 0 6px 0 4px; }
.cr-grew span { margin-left: auto; font-weight: 800; }
.cr-alert { background: var(--amber-soft); }
.cr-alert .hb-k { color: var(--amber-ink); }
.cr-say { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--card); font-size: 16px; font-weight: 600; line-height: 1.5; }
.cr-say small { display: block; font-size: 13px; font-weight: 600; color: var(--sub); margin-bottom: 4px; }/* 유료 잠금(web.md 50절, 시안 design/paywall_mock.html 2026-11-04): 홈 맨 위 체험 한 줄 · 잠긴 카드 자물쇠 · 잠긴 화면 */
.tr-line { display: flex; align-items: center; gap: 10px; background: var(--blue-soft); color: var(--blue-ink);
           border-radius: 16px; padding: 13px 16px; margin: 0 0 12px; font-size: 16px; font-weight: 600; text-decoration: none; }
.tr-line svg { width: 20px; height: 20px; flex: none; } .tr-line .grow { flex: 1; min-width: 0; } .tr-line .chev { color: var(--blue-ink); opacity: .6; }
.tr-line.end { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.tr-line.end .chev { color: var(--faint); opacity: 1; } .tr-line.end .lk { color: var(--sub); }
.chev.lock { width: 20px; height: 20px; }
.pw-what { font-size: 17px; font-weight: 600; color: var(--sub); margin: 34px 4px 6px; }
.pw-big { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.3; margin: 0 4px 20px; }
@media (max-width: 380px) { .pw-big { font-size: 26px; } }   /* QA 10회차: 폭 360에서 둘째 줄 넷이 꺾였다('부위마다 남는 돈을 보여 드려요' 30px = 344px > 칸 312px) */
.pw-peek { display: flex; align-items: center; gap: 12px; }
.pw-peek .ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex: none; }
.pw-peek .ic svg { width: 22px; height: 22px; }
.pw-peek .t1 { font-size: 18px; font-weight: 700; } .pw-peek .t2 { font-size: 15px; color: var(--sub); margin-top: 2px; }
.pw-price { display: flex; justify-content: space-between; align-items: baseline; }
.pw-price .k { font-size: 17px; color: var(--sub); } .pw-price .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.pw-price .v small { font-size: 17px; font-weight: 700; }
.pw-rows { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pw-rows div { display: flex; gap: 8px; align-items: center; font-size: 16px; color: var(--text2); padding: 4px 0; }
.pw-rows svg { width: 18px; height: 18px; color: var(--green-ink); flex: none; }
.pw-keep { display: flex; gap: 8px; align-items: center; font-size: 15px; color: var(--sub); margin: 4px 6px 0; }
.pw-keep svg { width: 18px; height: 18px; flex: none; }
.eq { display: flex; gap: 10px; } .eq > .btn { flex: 1; margin-top: 0 !important; }
