/* 디자인 시스템: 뉴코리아CC 판매 관리. 한국 앱 UI 패턴(하단 탭, 한 화면 한 과업, 하단 시트, 목록형)을 기준으로 한다.
   글꼴 Pretendard(자체 제공). 색은 토큰으로만 쓰고, 밝은/어두운 모드를 지원한다. 색 대비는 tests/theme_contrast.mjs 가 검사한다. */
@import url("/fonts/pretendard/pretendard.css");

:root {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f8f9fb; --text: #191f28; --text-2: #3d4856; --muted: #5a6574; --line: #e5e8eb; --line-strong: #cfd5db;
  --primary: #00754a; --primary-strong: #005f3c; --primary-weak: #e6f4ee; --primary-text: #006241; --on-primary: #ffffff;
  --danger: #c4281f; --danger-weak: #fdecea; --danger-text: #a3211a; --warn-weak: #fff4d6; --warn-text: #7a4f00; --info-weak: #e8f1fe; --info-text: #1d4f9a;
  --header-bg: #1e3932; --header-text: #ffffff; --header-sub: #b9c9c1;
  --c1: #2a78d6; --c2: #eb6834; --c3: #b44b8f;  /* 고객·캐디·직원 구분 색. 직원(c3)은 기본 버튼 초록과 헷갈리지 않게 자주색(2026-10-07, 일반·적/녹/청색약 시뮬레이션에서 서로 ΔE 27 이상) */
  --warn-line: #e0a100; --live: #22c55e; --tip-bg: #1f2937; --st-warn: #b45309; --st-minor: #a16207;
  --ring: 0 0 0 3px rgba(0, 117, 74, .35); --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --radius: 14px; --radius-sm: 10px; --ease: cubic-bezier(.2, 0, 0, 1); --tap: 48px;
  --font: "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", "Malgun Gothic", sans-serif;
  color-scheme: only light;  /* 밝은 화면 전용(2026-10-09 사용자 결정): 휴대폰이 다크 모드여도 밝게 보인다 */
}
/* 어두운 색 세트는 지금 쓰지 않는다(나중에 설정으로 켤 때를 위해 남김: <html data-theme="dark">) */
@media all {
  :root[data-theme="dark"] {
    --bg: #0d1411; --surface: #16201b; --surface-2: #1b2722; --text: #f1f4f2; --text-2: #d3dcd7; --muted: #a2b0a9; --line: #26352e; --line-strong: #364840;
    --primary: #00754a; --primary-strong: #00633f; --primary-weak: #143a2b; --primary-text: #66d4a9; --on-primary: #ffffff;
    --danger: #d9443a; --danger-weak: #3b1f1d; --danger-text: #f3a8a3; --warn-weak: #3b3114; --warn-text: #f2d27a; --info-weak: #17283d; --info-text: #9cc4f5;
    --header-bg: #0a100d; --header-sub: #8fa39a; --c1: #3987e5; --c2: #d95926; --c3: #d0679f;
    --ring: 0 0 0 3px rgba(102, 212, 169, .45); --shadow: 0 1px 2px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--font); letter-spacing: 0; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; } h1, h2 { letter-spacing: -0.02em; } h1 { font-size: 26px; font-weight: 600; } h2 { font-size: 20px; font-weight: 600; } h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 8px; } a { color: var(--primary-text); text-underline-offset: 3px; } code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: .92em; }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.muted { color: var(--muted); } .small { font-size: 14px; } .tiny { font-size: 13px; } .right { text-align: right; } .center { text-align: center; } .bold { font-weight: 600; } .num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack-lg { display: flex; flex-direction: column; gap: 20px; } .inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .grow { flex: 1 1 0; min-width: 0; } .spacer { flex: 1; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 8px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; text-align: center; touch-action: manipulation; transition: transform .08s var(--ease), background-color .12s var(--ease), border-color .12s var(--ease); }
.btn:hover { background: var(--surface-2); } .btn:active:not(:disabled) { transform: scale(.97); } .btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); } .btn.primary:hover { background: var(--primary-strong); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; } .btn.ghost { background: transparent; border-color: transparent; color: var(--primary-text); } .btn.ghost:hover { background: var(--primary-weak); }
.btn.soft { background: var(--primary-weak); border-color: transparent; color: var(--primary-text); }
.btn.block { width: 100%; } .btn.lg { min-height: 56px; font-size: 17px; padding: 12px 24px; } .btn.sm { min-height: 44px; padding: 4px 16px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active:not(:disabled) { transform: none; } }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; } .iconbtn:hover { background: rgba(127, 127, 127, .14); } .iconbtn svg { width: 22px; height: 22px; }

/* 입력 */
.field { display: flex; flex-direction: column; gap: 6px; } .field label, .label { font-weight: 600; font-size: 14px; color: var(--text-2); }
.input, .select, .textarea { width: 100%; min-height: var(--tap); padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); } .input[aria-invalid="true"] { border-color: var(--danger); }
.hint { font-size: 13px; color: var(--muted); } .err { font-size: 13px; color: var(--danger-text); font-weight: 600; min-height: 1em; }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; } .check input { width: 20px; height: 20px; accent-color: var(--primary); }

/* 카드·목록 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; } .card.flat { box-shadow: none; }
.card > h3, .card-title { margin-bottom: 12px; }
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list > .li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 56px; } .list > .li:last-child { border-bottom: 0; }
button.li, a.li { width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; cursor: pointer; text-decoration: none; color: inherit; } button.li:hover, a.li:hover { background: var(--surface-2); }
.li .t { font-weight: 600; } .li .s { font-size: 13px; color: var(--muted); } .li svg.chev { width: 18px; height: 18px; color: var(--muted); margin-left: auto; flex: none; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--primary-weak); color: var(--primary-text); border-color: transparent; } .badge.warn { background: var(--warn-weak); color: var(--warn-text); border-color: transparent; } .badge.danger { background: var(--danger-weak); color: var(--danger-text); border-color: transparent; } .badge.info { background: var(--info-weak); color: var(--info-text); border-color: transparent; }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.notice.ok { background: var(--primary-weak); color: var(--primary-text); border-color: transparent; } .notice.warn { background: var(--warn-weak); color: var(--warn-text); border-color: transparent; } .notice.danger { background: var(--danger-weak); color: var(--danger-text); border-color: transparent; } .notice.info { background: var(--info-weak); color: var(--info-text); border-color: transparent; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: 8px 16px; min-height: 44px; border-radius: 999px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; } .seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.block { display: flex; } .seg.block button { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; } .chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.stat { display: flex; flex-direction: column; gap: 2px; } .stat .k { font-size: 13px; color: var(--muted); font-weight: 600; } .stat .v { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; } .stat .d { font-size: 13px; color: var(--muted); }
.grid { display: grid; gap: 12px; } .grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.auto { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); } .empty h3 { color: var(--text); margin-bottom: 4px; }
.skeleton { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--surface-2), var(--line), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; margin: 8px 0; } @keyframes sk { to { background-position: -200% 0; } }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; } .progress > span { display: block; height: 100%; background: var(--primary); transition: width .2s; }
details.def { font-size: 13px; color: var(--muted); margin-top: 10px; } details.def summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; } details.def dl { display: grid; grid-template-columns: 84px 1fr; gap: 4px 10px; margin: 6px 0 0; } details.def dt { font-weight: 600; color: var(--text-2); } details.def dd { margin: 0; }
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: 70vh; }
table { border-collapse: collapse; width: 100%; font-size: 14px; } th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; } td.wrap { white-space: normal; } th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; color: var(--text-2); z-index: 1; } tbody tr:last-child td { border-bottom: 0; } tr.group td { background: var(--surface-2); font-weight: 600; }

/* 앱 셸 */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 16px; background: var(--header-bg); color: var(--header-text); min-height: 56px; }
.appbar .brand { font-weight: 600; font-size: 17px; } .appbar .page-name { color: var(--header-sub); font-size: 14px; margin-left: 4px; }
.me { display: flex; align-items: center; gap: 8px; cursor: pointer; background: transparent; border: 0; color: inherit; padding: 4px 8px 4px 4px; border-radius: 999px; min-height: 44px; } .me:hover { background: rgba(255, 255, 255, .1); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex: none; }
.me .who { text-align: left; line-height: 1.2; } .me .who b { display: block; font-size: 14px; } .me .who span { font-size: 12px; color: var(--header-sub); }
.envbar { background: var(--danger); color: #fff; text-align: center; padding: 4px 12px; font-weight: 600; font-size: 14px; position: sticky; top: 0; z-index: 40; }
.body { flex: 1; display: flex; min-width: 0; }
.copyright { margin-top: 24px; padding-top: 12px; text-align: center; font-size: 12px; line-height: 1.6; color: var(--muted); } .copyright .tm { font-size: 11px; } .copyright.side { text-align: left; margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); } .copyright.side .ver { display: block; font-size: 11px; }
.sidebar { display: none; width: 248px; flex: none; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface); position: sticky; top: 56px; align-self: flex-start; height: calc(100vh - 56px); overflow-y: auto; }
.navgroup { margin-bottom: 16px; } .navgroup h4 { font-size: 12px; color: var(--muted); font-weight: 600; padding: 4px 12px; text-transform: none; }
.navitem { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm); border: 0; background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; text-align: left; } .navitem:hover { background: var(--surface-2); } .navitem.on { background: var(--primary-weak); color: var(--primary-text); } .navitem svg { width: 22px; height: 22px; flex: none; } .navitem .badge { margin-left: auto; }
main.page { flex: 1; min-width: 0; padding: 16px 16px 96px; max-width: 980px; margin: 0 auto; width: 100%; }
.page-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; flex-wrap: wrap; } .page-head h1 { flex: 1 1 auto; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; position: relative; } .tabbar button svg { width: 24px; height: 24px; } .tabbar button.on { color: var(--primary-text); }
.tabbar .dot { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 16px; height: 16px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
@media (min-width: 900px) { .sidebar { display: flex; flex-direction: column; } .tabbar { display: none; } main.page { padding-bottom: 40px; } }

/* 입력 화면 */
.sticky-foot { position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); z-index: 34; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(16, 24, 40, .08); padding: 8px 16px; }
.sticky-foot .in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; } .sticky-foot .grow { min-width: 0; } #en-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; } .btn.icon-only { width: 44px; min-width: 44px; padding: 0; justify-content: center; flex: none; } .sticky-foot .btn { flex: none; } @media (min-width: 900px) { .sticky-foot { left: 248px; bottom: 0; } }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-height: 72px; } .item:last-child { border-bottom: 0; } .item .meta { flex: 1; min-width: 0; } .item .name { font-weight: 600; font-size: 16px; } .item .opt { color: var(--text-2); font-weight: 500; } .item .sub { font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; } .stepper .b { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text); touch-action: manipulation; } .stepper .b svg { width: 22px; height: 22px; } .stepper .b.plus { background: var(--pc, var(--primary)); border-color: var(--pc, var(--primary)); color: #fff; } .stepper .b:active:not(:disabled) { transform: scale(.94); } .stepper .b:disabled { opacity: .35; }
.stepper .q { min-width: 52px; min-height: 48px; border: 0; background: transparent; font-weight: 600; font-size: 20px; text-align: center; cursor: pointer; border-radius: 10px; font-variant-numeric: tabular-nums; } .stepper .q:hover { background: var(--surface-2); }
.fav-btn { flex: none; width: 44px; height: 44px; margin-left: -10px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; } .fav-btn svg { width: 22px; height: 22px; } .fav-btn:hover { background: var(--surface-2); } .fav-btn.on { color: var(--primary); } .fav-btn.on svg { fill: currentColor; }
.tile .fav-btn { position: absolute; top: 2px; right: 2px; margin: 0; z-index: 1; } .tile .tile-main { padding-right: 44px; }
.chart-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-height: 24px; margin-bottom: 6px; font-size: 14px; font-variant-numeric: tabular-nums; } .daychart { touch-action: pan-y; cursor: pointer; } .daychart:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.dotc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.toast { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); bottom: auto; transform: translateX(-50%); z-index: 90; background: var(--tip-bg); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; max-width: 92vw; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); pointer-events: none; opacity: 0; transition: opacity .15s; } .toast.show { opacity: 1; }
@media (min-width: 900px) { .toast { top: 72px; } }

/* 시트(대화상자) */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 20, .55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); color: var(--text); width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 24px 20px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; box-shadow: 0 -8px 32px rgba(0, 0, 0, .25); }
.sheet h2 { margin-bottom: 6px; } .sheet .desc { color: var(--text-2); margin-bottom: 16px; } .sheet .actions { display: flex; gap: 8px; margin-top: 16px; } .sheet .actions .btn { flex: 1; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 20px; } }
.display { font-size: 36px; font-weight: 600; text-align: right; padding: 12px 16px; border-radius: 14px; background: var(--surface-2); margin: 10px 0 12px; min-height: 68px; font-variant-numeric: tabular-nums; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pad button { min-height: 60px; font-size: 24px; font-weight: 500; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text); } .pad button:active { background: var(--surface-2); } .pad .del { background: var(--surface-2); }

/* 인증 화면 */
.authwrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--bg); } .auth { width: 100%; max-width: 420px; } .auth .logo { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 20px; font-weight: 600; font-size: 20px; } .auth .logo .mark-img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); } .auth .logo .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.guide { line-height: 1.75; max-width: 760px; } .guide h1 { font-size: 22px; } .guide h2 { font-size: 18px; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); } .guide h3 { font-size: 16px; margin: 16px 0 4px; } .guide table { margin: 8px 0; } .guide pre { background: var(--surface-2); padding: 12px; border-radius: 10px; overflow-x: auto; } .guide li { margin: 3px 0; } .guide blockquote { margin: 10px 0; padding: 10px 14px; background: var(--warn-weak); color: var(--warn-text); border-radius: 10px; }

/* 차트 */
.chart { width: 100%; height: auto; display: block; } .chart .grid { stroke: var(--line); stroke-width: 1; } .chart .axis { stroke: var(--line-strong); stroke-width: 1; } .chart .tick { fill: var(--muted); font-size: 11px; }
.hbars { display: flex; flex-direction: column; gap: 10px; } .hrow { display: grid; grid-template-columns: minmax(80px, 150px) 1fr minmax(72px, auto); gap: 12px; align-items: center; } .hrow .hl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; } .hrow .ht { background: var(--surface-2); border-radius: 6px; height: 12px; overflow: hidden; } .hrow .hb { display: block; height: 100%; border-radius: 0 6px 6px 0; background: var(--c1); } .hrow .hv { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 600; }
.viz-tip { position: absolute; z-index: 50; display: none; background: var(--tip-bg); color: #fff; padding: 4px 8px; border-radius: 8px; font-size: 12px; pointer-events: none; max-width: 220px; }
@media (max-width: 640px) { h1 { font-size: 22px; } .grid.c2 { grid-template-columns: 1fr 1fr; } .hrow { grid-template-columns: 90px 1fr auto; } details.def dl { grid-template-columns: 1fr; } }

/* 막대·표 보조 */
.bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; } .bar > i { display: block; height: 100%; border-radius: 4px; }
.table th.r, .table td.r { text-align: right; }

/* 간편 모드: 상품 타일 */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 150px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } } @media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 90px; } } @media (min-width: 1300px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tiles .empty { grid-column: 1 / -1; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, background .15s; }
.tile.has { border-color: var(--pc); background: color-mix(in srgb, var(--pc) 8%, var(--surface)); }
.tile-main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 92px; padding: 12px 12px 4px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.tile-main:active:not(:disabled) { background: color-mix(in srgb, var(--pc) 16%, transparent); }
.tile-main:disabled { cursor: default; opacity: .6; }
.tile .tn { font-weight: 600; font-size: 16px; line-height: 1.25; } .tile .to { font-size: 13px; font-weight: 600; color: var(--muted); } .tile .tp { margin-top: auto; font-size: 13px; color: var(--muted); } .tile .tx { font-size: 12px; color: var(--muted); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; gap: 8px; }
.tile-minus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; } .tile-minus:disabled { opacity: .35; cursor: default; } .tile-minus svg { width: 20px; height: 20px; }
.tile-qty { min-width: 56px; height: 44px; padding: 0 12px; border-radius: 22px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 20px; cursor: pointer; font-variant-numeric: tabular-nums; }
.tile.has .tile-qty { background: color-mix(in srgb, var(--pc) 22%, var(--surface)); color: var(--text); box-shadow: inset 0 0 0 2px var(--pc); }
.tile.pop .tile-qty { animation: tilepop .18s var(--ease); } @keyframes tilepop { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .tile.pop .tile-qty { animation: none; } }
.tile-plus { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pc, var(--primary)); color: var(--on-primary); display: grid; place-items: center; cursor: pointer; } .tile-plus:disabled { opacity: .35; cursor: default; } .tile-plus svg { width: 22px; height: 22px; }
.tile-foot { gap: 6px; } .tile-qty { flex: 1; min-width: 0; padding: 0 6px; }
.tile-main { cursor: default; } .tile-main:active { background: transparent; }
.li > svg:not(.chev) { width: 22px; height: 22px; flex: none; color: var(--primary-text); }
.seg .pcount { margin-left: 6px; font-weight: 600; font-variant-numeric: tabular-nums; } .seg .pcount:empty { display: none; } .seg .pcount:not(:empty)::before { content: "· "; font-weight: 400; color: var(--muted); } .seg .pcount::after { content: "개"; font-weight: 600; } .seg .pcount:empty::after { content: none; }

/* AI 분석 채팅 */
.chat-log { display: flex; flex-direction: column; gap: 12px; }
.chips.wrap { flex-wrap: wrap; overflow: visible; } .chips.wrap .chip { white-space: normal; text-align: left; max-width: 100%; } .followups { display: flex; flex-direction: column; gap: 6px; }
/* 아래 입력창·하단 탭에 마지막 질문 버튼이 가리지 않게: 끝까지 내리면 버튼이 입력창 위로 올라오는 여백, 자동 스크롤 위치도 입력창·머리글을 피한다 */
.chat-page { padding-bottom: calc(220px + env(safe-area-inset-bottom)); } .chat-log > * { scroll-margin-top: 72px; scroll-margin-bottom: calc(160px + env(safe-area-inset-bottom)); } @media (min-width: 900px) { .chat-page { padding-bottom: 140px; } .chat-log > * { scroll-margin-bottom: 100px; } }
.msg { display: flex; flex-direction: column; gap: 6px; max-width: 100%; } .msg.user { align-items: flex-end; } .msg.bot { align-items: flex-start; }
.msg .bub { padding: 12px 14px; border-radius: 16px; max-width: min(100%, 720px); line-height: 1.55; overflow-wrap: anywhere; }
.msg.user .bub { background: var(--primary); color: var(--on-primary); border-bottom-right-radius: 4px; }
.msg.bot .bub { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; width: 100%; box-sizing: border-box; }
.msg .bub p { margin: 0 0 8px; } .msg .bub p:last-child, .msg .bub ul:last-child { margin-bottom: 0; } .msg .bub h4 { margin: 6px 0; }
.chat-ul { margin: 0 0 8px; padding-left: 20px; } .msg-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.evidence { width: 100%; font-size: 13px; color: var(--muted); } .evidence summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.evidence pre { max-height: 260px; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; }

/* UX 1차(2026-10-07): 비활성 +/− 는 색 없이 확실히 회색(마감된 날 '눌러도 되는 버튼'처럼 보이지 않게). 파일 끝에 두어 앞의 :disabled 규칙보다 우선 */
.stepper .b:disabled, .stepper .b.plus:disabled, .tile-plus:disabled, .tile-minus:disabled { background: var(--surface-2); border-color: var(--line); color: var(--muted); opacity: 1; cursor: not-allowed; } .guide-banner { align-items: center; } .guide-banner .btn { flex: none; } .guide-banner + .home-grid { margin-top: 16px; }
/* UX 3차: 휴대폰에서 분류 칩이 넘치면 오른쪽 끝을 흐리게(옆으로 밀 수 있다는 표시), PC 는 메뉴가 있으니 상단 화면 이름 숨김 */
@media (max-width: 899px) { .chips { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; } }
@media (min-width: 900px) { .appbar .page-name { display: none; } }
/* 안내서: 긴 단어·표·코드가 휴대폰 화면 밖으로 넘치지 않게 */
.guide { overflow-wrap: anywhere; min-width: 0; } .guide table, .guide pre { display: block; max-width: 100%; overflow-x: auto; } .guide code { word-break: break-all; }
.audit-changes { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; } .audit-changes b { font-weight: 600; }
/* AI 분석 답: 굵게·기울임 가독성 */
.msg.bot .bub b { font-weight: 600; color: var(--text); } .msg.bot .bub i { font-style: italic; color: var(--text-2); } .msg.bot .bub s { color: var(--muted); }
/* 접속 현황(우측 상단 아바타 겹침, 초록 점 = 접속 중) */
.presence { display: flex; align-items: center; background: transparent; border: 0; color: var(--header-text); cursor: pointer; min-height: 44px; padding: 4px 6px; border-radius: 999px; } .presence:hover { background: rgba(255, 255, 255, .08); }
.pav { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; border: 2px solid var(--header-bg); margin-left: -8px; flex: none; } .presence .pav:first-child { margin-left: 0; }
.presence .pav:not(.more)::after, .pav.st-online::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); border: 2px solid var(--header-bg); }
.pav.more { background: rgba(255, 255, 255, .2); } .pnum { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; font-size: 13px; font-weight: 600; } .pnum svg { width: 16px; height: 16px; }
.pav.lg { width: 36px; height: 36px; font-size: 14px; border-color: var(--surface); margin: 0; } .pav.lg.st-online::after { border-color: var(--surface); } .pav.lg.st-offline { opacity: .45; }
@media (max-width: 480px) { .appbar .page-name { display: none; } .presence .pav:nth-child(n+3):not(.more) { display: none; } }
/* 상품 상세 가격 표·필터 칩 숫자 */
.chip-n { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; text-align: center; } .chip-n.warn { background: var(--warn-weak); color: var(--warn-text); } .chip.on .chip-n { background: rgba(255, 255, 255, .25); color: inherit; }
.pgrid { table-layout: fixed; } .pgrid td, .pgrid th { padding: 6px 3px; vertical-align: middle; } .pgrid th:first-child, .pgrid td:first-child { width: 28%; padding-left: 8px; } .pgrid tr.off { opacity: .55; }
.pcell { width: 100%; min-height: 44px; min-width: 0; padding: 6px 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; cursor: pointer; } .pcell:hover:not(:disabled) { border-color: var(--primary); } .pcell.miss { color: var(--warn-text); background: var(--warn-weak); border-style: dashed; font-weight: 600; } .pcell:disabled { cursor: default; }
.optname { min-height: 44px; padding: 6px 2px; overflow-wrap: anywhere; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline dotted var(--line-strong); text-underline-offset: 4px; }
/* 접속이 안 될 때 상태 페이지(Claude 상태 페이지처럼 항목별 상태) */
.st-banner { border-radius: var(--radius); padding: 18px 18px; color: #fff; } .st-banner .st-title { font-size: 18px; font-weight: 600; } .st-banner .st-desc { margin-top: 6px; font-size: 14px; opacity: .95; line-height: 1.5; }
.st-banner.bad { background: var(--danger); } .st-banner.warn { background: var(--st-warn); } .st-banner.minor { background: var(--st-minor); } .st-banner.check { background: var(--text-2); }
.st-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; } .st-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; } .st-row:last-child { border-bottom: 0; }
.st-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; } .st-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: currentColor; }
.st-badge.ok { color: var(--primary-text); } .st-badge.bad { color: var(--danger-text); } .st-badge.check { color: var(--muted); }
.pin { min-height: 44px; padding: 6px 8px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; width: 100%; min-width: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }  /* 체크 상자도 앱 색으로 */
/* UX 4차: 숫자 타일 2열(휴대폰), 홈 PC 2단, 월 현황 달력 */
@media (max-width: 899px) { .grid.kpi2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; } .grid.kpi2 .stat .v { font-size: 19px; } }
.home-cols { display: grid; gap: 16px; } @media (min-width: 900px) { .home-cols { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } .home-cols .grid.kpi2 { grid-template-columns: 1fr; } }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 2px 0 4px; } .cal-head:first-child { color: var(--danger-text); }
.cal-cell { min-height: 54px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; padding: 6px 2px; font: inherit; color: var(--text); cursor: pointer; }
.cal-cell.blank { border: 0; background: transparent; cursor: default; } .cal-cell:disabled { cursor: default; opacity: .45; }
.cal-day { font-size: 14px; font-weight: 600; } .cal-amt { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.cal-cell.today { box-shadow: 0 0 0 2px var(--text) inset; }
.st-closed { background: var(--primary-weak); border-color: var(--primary); } .st-ok { background: color-mix(in srgb, var(--primary-weak) 45%, var(--surface)); } .st-review { background: var(--warn-weak); border-color: var(--warn-line); }
.st-not_entered { background: var(--surface-2); } .st-holiday { background: var(--info-weak); } .st-imported { background: var(--info-weak); border-style: dashed; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); } .cal-legend span { display: inline-flex; align-items: center; gap: 4px; } .cal-sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-strong); display: inline-block; }
/* UX 4차 2차: 입력 목록 옵션 줄, 그래프 축 글씨(HTML 12px) */
.item .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .item .sub .opt2 { color: var(--text); font-weight: 600; margin-right: 4px; } .item { min-height: 64px; padding-block: 12px; }
.chart-max { font-size: 12px; color: var(--muted); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.chart-x { display: grid; font-size: 12px; color: var(--muted); text-align: center; margin-top: 2px; font-variant-numeric: tabular-nums; } .chart-x.ends { display: flex; justify-content: space-between; }
/* UX 4차 3차: 상품 목록 표시 글자, 직원 접속 점, 휴대폰 상단 바, AI 안내 접기 */
.flag { font-weight: 600; } .flag.warn { color: var(--warn-text); } .flag.info { color: var(--info-text); }
.avatar.is-online { position: relative; } .avatar.is-online::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--live); border: 2px solid var(--surface); }
@media (max-width: 480px) { .me .who { display: none; } .me { padding-right: 4px; } }
.chat-note summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; list-style: none; min-height: 32px; } .chat-note summary::-webkit-details-marker { display: none; } .chat-note { display: block; }
.order-list { max-height: 55vh; overflow: auto; } .order-no { width: 24px; text-align: center; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; } .order-list .iconbtn { width: 44px; height: 44px; flex: none; }
/* UX 5차: 상품명 2줄까지, 달력 색 대비, 그래프 높이 상한, 위험 버튼, 시스템 기록 */
.item .name { white-space: normal; overflow: hidden; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.st-ok { background: color-mix(in srgb, var(--primary) 20%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 45%, var(--surface)); } .st-not_entered { background: var(--surface); border: 1px dashed var(--line-strong); } .cal-cell.st-future, .cal-cell:disabled { background: transparent; border-color: transparent; }
.cal-sw { width: 14px; height: 14px; }
.chart svg { max-height: 240px; } .chart { max-width: 100%; }
.btn.danger-outline { color: var(--danger-text); border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); } .btn.danger-outline:hover { background: var(--danger-weak); }
.li.sys .t, .li.sys .s { color: var(--muted); } .li.sys .t { font-size: 14px; font-weight: 600; }
.view { display: contents; }  /* 화면 칸(경쟁 상태 방지용 감싸개)은 배치에 영향 없음 */
/* 달력: 마감 완료가 가장 진하게, 입력 완료는 연하게(단계가 색 진하기로 보이게) */
.cal-cell.st-closed, .cal-sw.st-closed { background: color-mix(in srgb, var(--primary) 34%, var(--surface)); border-color: var(--primary); } .cal-cell.st-ok, .cal-sw.st-ok { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); border-color: color-mix(in srgb, var(--primary) 35%, var(--surface)); }
/* 재고·비품 */
.stock-row { gap: 8px; } .stock-main { border: 0; background: transparent; text-align: left; padding: 0; font: inherit; color: inherit; cursor: pointer; min-width: 0; min-height: 44px; }
.stock-qty { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; } .stock-qty b { font-size: 20px; font-weight: 600; }
.stock-row .iconbtn { margin-right: -8px; } .stock-row.is-low { background: color-mix(in srgb, var(--warn-weak) 60%, var(--surface)); }
.count-diff { min-width: 52px; text-align: right; font-weight: 600; } .count-diff.minus { color: var(--danger); } .count-diff.plus { color: var(--primary); }

.mv-plus { color: var(--primary); } .mv-minus { color: var(--danger); } .live-sum { margin: 0; font-weight: 600; color: var(--primary-text); min-height: 1.4em; }
.move-day { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.be-head { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; min-height: 44px; }
.be-head .t { font-size: 17px; font-weight: 600; } .be-head .s { font-size: 13px; color: var(--muted); margin-top: 2px; } .be-head svg.chev { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform .15s; } .be-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.bar-ends { display: flex; justify-content: space-between; margin-top: 4px; }
.list > .li.stock-head { display: none; }
@media (min-width: 700px) { .list > .li.stock-head { display: flex; min-height: 0; padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg); }
  .stock-qty { min-width: 96px; justify-content: flex-end; } .stock-headact { width: 112px; } }
/* QR 라벨: 화면은 미리 보기, 인쇄는 A4 3×7(63.5×38.1mm) 스티커 용지 기준 */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.label { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px dashed var(--line-strong); border-radius: 8px; background: #fff; color: #111; overflow: hidden; }
.label .qr { width: 84px; height: 84px; flex: none; margin: -4px; } .label .qr svg { width: 100%; height: 100%; display: block; }
.label-txt { min-width: 0; } .label-code { display: block; font-size: 16px; letter-spacing: .02em; } .label-name { font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .label-sub { font-size: 11px; color: #555; }
#print-root { display: none; }
@media print {
  @page { size: A4; margin: 15mm 7mm; }
  html, body { background: #fff !important; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block; }
  #print-root .labels { grid-template-columns: repeat(3, 63.5mm); gap: 0 2.5mm; }
  #print-root .label { height: 38.1mm; border: 0; border-radius: 0; padding: 2mm 3mm; break-inside: avoid; }
  #print-root .label .qr { width: 32mm; height: 32mm; margin: -2mm; }
}
/* 큰 글자(휴대폰 글자 크기 설정·카카오톡) 대응: 이름 칸이 5.5글자 폭보다 좁아지면 +/− 를 다음 줄 오른쪽으로 내린다. 숫자·금액은 중간에서 끊지 않는다. */
.item { flex-wrap: wrap; } .item .meta { flex: 1 1 5.5em; } .item .stepper { margin-left: auto; }
.num, .stat .v, .stepper .q, .badge, .chip { white-space: nowrap; }
.pav.more { width: auto; min-width: 28px; padding: 0 5px; line-height: 1; white-space: nowrap; }
#en-sum { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }  /* 큰 글자에서 금액이 잘리지 않게 두 줄 허용 */
/* ───────── 홈(2026-10 재디자인) ───────── */
.home-grid { display: grid; gap: 16px; grid-template-areas: "hero" "todo" "month"; } .home-grid > * { min-width: 0; }
.home-hero-wrap { grid-area: hero; } .home-todo { grid-area: todo; } .home-month-card { grid-area: month; }
@media (min-width: 900px) { .home-grid.has-todo { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); grid-template-areas: "hero todo" "month todo"; align-items: start; } }
.home-hero { gap: 12px; } .home-hero .k { font-size: 14px; font-weight: 600; color: var(--text-2); }
.home-hero .v { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
@media (min-width: 900px) { .home-hero .v { font-size: 48px; } }
.home-sub { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; align-items: baseline; }
.cmp { font-weight: 600; } .cmp.up { color: var(--primary-text); } .cmp.down { color: var(--danger-text); } .cmp .muted { font-weight: 400; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 72px; padding-bottom: 16px; position: relative; }
.mini-bars .mb { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; border: 0; background: none; padding: 0; cursor: default; }
.mini-bars button.mb { cursor: pointer; }
.mini-bars .mb i { display: block; width: 100%; max-width: 22px; border-radius: 4px 4px 2px 2px; background: color-mix(in srgb, var(--primary) 38%, transparent); }
.mini-bars .mb.on i { background: var(--primary); } .mini-bars .mb.zero i { background: var(--line); }
.mini-bars .mb span { position: absolute; bottom: -16px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.home-done { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--radius-sm); border: 0; background: var(--primary-weak); color: var(--primary-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.home-done svg { width: 20px; height: 20px; flex: none; } .home-done .chev { color: var(--primary-text); }
.linkbtn { border: 0; background: none; color: var(--primary-text); font: inherit; font-weight: 600; min-height: 40px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.home-month { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; } .home-month b { font-size: 26px; font-weight: 600; }
.todo-row { gap: 8px; } .todo-row .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--info-text); } .todo-row .dot.warn { background: var(--warn-line); } .todo-row .dot.danger { background: var(--danger); }
.home-acts { flex-wrap: wrap; }
/* 홈 막대: 누르거나 밀어서 선택(가로로 밀어도 화면이 움직이지 않게 세로 스크롤만 허용) */
.mini-bars.pickable { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mini-bars.pickable .mb { cursor: pointer; } .mini-bars .mb:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.mini-bars.pickable .mb i { background: color-mix(in srgb, var(--primary) 30%, transparent); } .mini-bars.pickable .mb.zero i { background: var(--line); }
.mini-bars .mb.sel i { background: var(--primary); } .mini-bars .mb.sel span { color: var(--text); font-weight: 600; } .mini-bars .mb.sel.zero i { height: 6% !important; background: var(--muted); box-shadow: none; } .mini-bars .mb.on span { font-weight: 600; }
.mb-info { min-height: 48px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.mb-info.compact { min-height: 0; padding: 0; background: none; font-size: 13px; }
.mb-info > .inline { width: 100%; } .mb-row .grow { min-width: 10em; } .mb-row .btn { flex: none; margin-left: auto; } .mb-row .btn svg { width: 16px; height: 16px; }
.today-btn { padding-inline: 14px; }
