/* 모바일 현장 화면(#/m, 09-27) — .mobile-shell 안에서만. PC 규격(입력 26·본문 13)은 건드리지 않는다.
   현장 예외(DESIGN 기록): 본문·입력 16 · 보조 14 · 주 버튼 48~52 · 터치 44 이상 · 1열 · 좌우 16 · 카드 간격 12 */
body.mobile-mode #app.shell { display: block; }
body.mobile-mode .side, body.mobile-mode .main > .top { display: none; }
body.mobile-mode .main { height: auto; min-height: 100vh; min-height: 100dvh; }
body.mobile-mode .main > .content { padding: 0; max-width: none; }
body.mobile-mode { background: var(--bg, #f4f6fa); }
body.mobile-mode:has(.mobile-shell.dark) { background: #111418; }

.mobile-shell { --m-nav-h: 72px; --m-bar-h: 72px; --m-safe: env(safe-area-inset-bottom, 0px);
  font-size: 16px; line-height: 1.45; color: var(--ink, #18202e); min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
.mobile-shell * { box-sizing: border-box; }
.mobile-shell [hidden] { display: none !important; }
.mobile-shell .m-i { display: inline-flex; flex: none; }
.mobile-shell .m-i svg { display: block; }
.mobile-shell .m-sp { flex: 1 1 auto; }

.mobile-shell .m-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 0 4px 0 16px; padding-top: env(safe-area-inset-top);
  background: #fff; color: var(--ink, #18202e); border-bottom: 1px solid var(--line, #e5e9f0); min-height: 56px; }
.mobile-shell .m-logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.mobile-shell .m-title { margin: 0; font-size: 18px; font-weight: 700; }
.mobile-shell .m-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -10px; padding-right: 10px; font-size: 17px; font-weight: 700; color: var(--ink, #18202e); text-decoration: none; }
.mobile-shell .m-more { position: relative; flex: none; }
.mobile-shell button.m-icon { min-width: 44px; width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink-2, #3c4757); }
.mobile-shell .m-menu { position: absolute; right: 0; top: 46px; z-index: 30; min-width: 210px; display: flex; flex-direction: column; padding: 6px; background: #fff;
  border: 1px solid var(--line, #e5e9f0); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.mobile-shell .m-menu-who { padding: 8px 12px 10px; font-size: 14px; color: var(--muted, #6a7488); border-bottom: 1px solid var(--line, #e5e9f0); margin-bottom: 4px; }
.mobile-shell .m-menu a { min-height: 48px; display: flex; align-items: center; padding: 0 12px; border-radius: 8px; font-weight: 700; color: var(--ink, #18202e); text-decoration: none; }
.mobile-shell .m-offline { background: var(--warn-bg, #fdf2da); color: var(--warn-ink, #8a5a00); font-size: 14px; font-weight: 700; padding: 8px 16px; }

.mobile-shell .m-body { flex: 1 1 auto; padding: 12px 16px; padding-bottom: calc(var(--m-nav-h) + 16px + var(--m-safe)); display: flex; flex-direction: column; gap: 12px; }
.mobile-shell.has-bar .m-body { padding-bottom: calc(var(--m-nav-h) + var(--m-bar-h) + 16px + var(--m-safe)); }
.mobile-shell.no-nav .m-body { padding-bottom: calc(16px + var(--m-safe)); }
.mobile-shell.no-nav.has-bar .m-body { padding-bottom: calc(var(--m-bar-h) + 16px + var(--m-safe)); }
.mobile-shell .m-stack { display: flex; flex-direction: column; gap: 12px; }

.mobile-shell .m-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; background: #fff;
  border-top: 1px solid var(--line, #e5e9f0); height: calc(var(--m-nav-h) + var(--m-safe)); padding-bottom: var(--m-safe); }
.mobile-shell .m-nav a { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--muted, #6a7488); text-decoration: none; }
.mobile-shell .m-nav a.on { color: var(--brand, #2b6de5); }
.mobile-shell .m-nav a.m-nav-scan { color: var(--ink-2, #3c4757); justify-content: flex-end; padding-bottom: 6px; }
.mobile-shell .m-nav a.m-nav-scan.on { color: var(--brand, #2b6de5); }
.mobile-shell .m-fab { width: 52px; height: 52px; margin-top: -18px; border-radius: 50%; background: var(--brand, #2b6de5); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 8px rgba(43,109,229,.35); }
.mobile-shell .m-nav .m-i { position: relative; }
.mobile-shell .m-nav .m-cnt { position: absolute; top: -6px; left: 16px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger, #dc3b30); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.mobile-shell .m-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--m-nav-h) + var(--m-safe)); z-index: 19; display: flex; gap: 8px; padding: 10px 16px; background: #fff;
  border-top: 1px solid var(--line, #e5e9f0); }
.mobile-shell.no-nav .m-bar { bottom: 0; padding-bottom: calc(10px + var(--m-safe)); }
.mobile-shell .m-bar > * { flex: 1 1 0; min-height: 52px; }

.mobile-shell .m-card { background: #fff; border: 1px solid var(--line, #e5e9f0); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.mobile-shell .m-card h2 { margin: 0; font-size: 20px; }
.mobile-shell .m-card h3 { margin: 0; font-size: 17px; }
.mobile-shell .m-sub { font-size: 14px; color: var(--muted, #6a7488); }
.mobile-shell .m-sub.ink { color: var(--ink-2, #3c4757); }
.mobile-shell .m-foot { text-align: center; padding: 0 8px; }
.mobile-shell .m-wrap { overflow-wrap: anywhere; word-break: keep-all; }
.mobile-shell .m-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mobile-shell .m-kv { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 6px 10px; font-size: 15px; margin: 0; }
.mobile-shell .m-kv dt { color: var(--muted, #6a7488); }
.mobile-shell .m-kv dd { margin: 0; overflow-wrap: anywhere; }

.mobile-shell button, .mobile-shell .m-btn { font: inherit; font-size: 16px; min-height: 48px; min-width: 44px; border-radius: 12px; border: 1px solid var(--line-2, #d2d8e3);
  background: #fff; color: var(--ink, #18202e); padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mobile-shell .m-btn.primary, .mobile-shell button.primary { background: var(--brand, #2b6de5); border-color: var(--brand, #2b6de5); color: #fff; font-size: 17px; }
.mobile-shell .m-btn.danger, .mobile-shell button.danger { border-color: var(--danger, #dc3b30); color: var(--danger, #dc3b30); }
.mobile-shell .m-btn.block, .mobile-shell button.block { width: 100%; }
.mobile-shell button:disabled { opacity: .5; }
.mobile-shell input, .mobile-shell select, .mobile-shell textarea { font: inherit; font-size: 16px; min-height: 48px; width: 100%; border: 1px solid var(--line-2, #d2d8e3); border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--ink, #18202e); }
.mobile-shell input[type=checkbox] { width: 24px; min-height: 24px; height: 24px; flex: none; padding: 0; }
.mobile-shell textarea { min-height: 88px; }
.mobile-shell label.m-lbl { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--ink-2, #3c4757); font-weight: 700; }

.mobile-shell .m-state { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; flex: none; }
.mobile-shell .m-state.ok { background: var(--ok-bg, #e4f6ec); color: var(--ok-ink, #137a45); }
.mobile-shell .m-state.warn { background: var(--warn-bg, #fdf2da); color: var(--warn-ink, #8a5a00); }
.mobile-shell .m-state.neg { background: var(--danger-bg, #fdecea); color: var(--danger-ink, #b2271e); }
.mobile-shell .m-state.gray { background: var(--gray-bg, #eef1f5); color: var(--ink-2, #3c4757); }
.mobile-shell .m-banner { border-radius: 12px; padding: 12px 14px; font-size: 15px; font-weight: 700; }
.mobile-shell .m-banner.lookup { background: var(--gray-bg, #eef1f5); color: var(--ink, #18202e); }
.mobile-shell .m-banner.err { background: var(--danger-bg, #fdecea); color: var(--danger-ink, #b2271e); }
.mobile-shell .m-banner.warn { background: var(--warn-bg, #fdf2da); color: var(--warn-ink, #8a5a00); }
.mobile-shell .m-banner.okay { background: var(--ok-bg, #e4f6ec); color: var(--ok-ink, #137a45); }

.mobile-shell .m-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: var(--gray-bg, #eef1f5); border-radius: 12px; padding: 4px; }
.mobile-shell .m-tabs a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 15px; font-weight: 700; color: var(--ink-2, #3c4757); text-decoration: none; white-space: nowrap; }
.mobile-shell .m-tabs a.on { background: #fff; color: var(--brand, #2b6de5); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.mobile-shell .m-pend { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 14px; border-radius: 12px; background: var(--warn-bg, #fdf2da); color: var(--warn-ink, #8a5a00); text-decoration: none; }
.mobile-shell .m-pend-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mobile-shell .m-pend-t b { font-size: 16px; }
.mobile-shell .m-pend-t span { font-size: 13px; font-weight: 500; }
.mobile-shell .m-pend-go { flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2, #d2d8e3); color: var(--ink, #18202e); font-size: 15px; font-weight: 700; }

.mobile-shell .m-sec { padding: 4px 0; gap: 0; }
.mobile-shell .m-card h3.m-sec-h { display: flex; align-items: center; gap: 6px; padding: 10px 16px 6px; font-size: 17px; }
.mobile-shell .m-h-sub { font-size: 14px; font-weight: 500; color: var(--muted, #6a7488); }
.mobile-shell .m-pad { padding: 0 16px 10px; }
.mobile-shell .m-n.ok { color: var(--ok-ink, #137a45); }
.mobile-shell .m-n.warn { color: var(--warn-ink, #8a5a00); }
.mobile-shell .m-n.neg { color: var(--danger-ink, #b2271e); }
.mobile-shell .m-n.gray { color: var(--muted, #6a7488); }
.mobile-shell .m-sec-warn { background: var(--warn-bg, #fdf2da); border-color: transparent; }
.mobile-shell .m-sec-warn h3.m-sec-h { color: var(--warn-ink, #8a5a00); }
.mobile-shell .m-sec-warn .m-list > * { border-top-color: rgba(138,90,0,.15); }

.mobile-shell .m-list { display: flex; flex-direction: column; }
.mobile-shell .m-list > * { padding: 12px 0; border-top: 1px solid var(--line, #e5e9f0); min-height: 44px; }
.mobile-shell .m-list > *:first-child { border-top: 0; }
.mobile-shell .m-sec .m-list > * { padding-left: 16px; padding-right: 12px; }
.mobile-shell .m-sec h3.m-sec-h + .m-list > *:first-child { border-top: 1px solid var(--line, #e5e9f0); }
.mobile-shell .m-row.m-2 { flex-wrap: nowrap; }
.mobile-shell .m-row.m-2 > * { flex: 1 1 0; min-width: 0; }
.mobile-shell .m-list > .m-act-row { border-top: 0; padding-top: 0; }
.mobile-shell .m-list > .m-act { border-top: 0; padding-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.mobile-shell .m-list > .m-act[hidden] { display: none; }
.mobile-shell .m-list > .m-line { display: flex; align-items: center; gap: 10px; padding-top: 8px; padding-bottom: 8px; min-height: 64px; }
.mobile-shell .m-line-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; min-height: 44px; justify-content: center; }
.mobile-shell .m-line-t { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 700; }
.mobile-shell .m-line-p { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-shell .m-line .m-state { min-height: 26px; padding: 0 8px; font-size: 13px; }
.mobile-shell .m-line-s { font-size: 14px; color: var(--ink-2, #3c4757); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-shell .m-fault { font-weight: 700; color: var(--danger-ink, #b2271e); }
.mobile-shell .m-cam-btn { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  background: #fff; border: 1px solid var(--line-2, #d2d8e3); color: var(--brand, #2b6de5); }
.mobile-shell .m-chev { flex: none; color: var(--dim, #8f99a8); }

.mobile-shell .m-hero { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--brand, #2b6de5); color: #fff; }
.mobile-shell .m-hero-h { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.mobile-shell .m-hero-n { display: flex; gap: 24px; }
.mobile-shell .m-hero-n div { display: flex; flex-direction: column; }
.mobile-shell .m-hero-n b { font-size: 26px; font-weight: 900; line-height: 1.15; }
.mobile-shell .m-hero-n span { font-size: 13px; font-weight: 500; color: #dbe6fd; }
.mobile-shell .m-hero-go { min-height: 60px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; background: #fff; color: var(--brand, #2b6de5);
  font-size: 19px; font-weight: 700; text-decoration: none; }
.mobile-shell .m-hero-alt { min-height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.mobile-shell .m-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 16px 10px; }
.mobile-shell .m-kpi { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; background: var(--bg, #f4f6fa); }
.mobile-shell .m-kpi .l, .mobile-shell .m-kpi .s { font-size: 13px; color: var(--muted, #6a7488); }
.mobile-shell .m-kpi .s { font-size: 12px; }
.mobile-shell .m-kpi b { font-size: 20px; line-height: 1.3; }
.mobile-shell .m-kpi b.neg { color: var(--danger-ink, #b2271e); }

.mobile-shell .m-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; }
.mobile-shell .m-steps li { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--dim, #8f99a8); }
.mobile-shell .m-steps li::before { content: ''; height: 6px; border-radius: 3px; background: var(--line, #e5e9f0); }
.mobile-shell .m-steps li.done { color: var(--ok-ink, #137a45); }
.mobile-shell .m-steps li.done::before { background: var(--ok, #1a9d5a); }
.mobile-shell .m-steps li.cur { color: var(--brand, #2b6de5); font-weight: 700; }
.mobile-shell .m-steps li.cur::before { background: var(--brand, #2b6de5); }
.mobile-shell .m-steps li.stop { color: var(--danger-ink, #b2271e); font-weight: 700; }
.mobile-shell .m-steps li.stop::before { background: var(--danger, #dc3b30); }
.mobile-shell .m-next { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--brand-bg, #eaf1fd); font-size: 14px; }
.mobile-shell .m-next b { color: var(--brand, #2b6de5); flex: none; }

.mobile-shell .m-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mobile-shell .m-thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--gray-bg, #eef1f5); aspect-ratio: 1; }
.mobile-shell .m-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-shell .m-thumb .tag { position: absolute; left: 4px; top: 4px; font-size: 12px; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.mobile-shell .m-thumb button { position: absolute; right: 2px; top: 2px; min-height: 44px; min-width: 44px; padding: 0; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; border: 0; font-size: 18px; }
.mobile-shell .m-thumb .m-annot { left: 4px; bottom: 4px; top: auto; right: auto; min-height: 36px; min-width: 52px; padding: 0 8px; border-radius: 8px; background: rgba(0,0,0,.6); font-size: 14px; font-weight: 700; }
.mobile-shell button.m-tile-add { aspect-ratio: 1; min-height: 0; padding: 0; flex-direction: column; gap: 4px; border: 1.5px dashed var(--brand, #2b6de5); border-radius: 10px;
  background: var(--brand-bg, #eaf1fd); color: var(--brand, #2b6de5); font-size: 14px; }
.mobile-shell button.m-tile-add.alt { border-color: var(--line-2, #d2d8e3); background: #fff; color: var(--ink-2, #3c4757); }
.mobile-shell .m-target { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line, #e5e9f0); }
.mobile-shell .m-target b { font-size: 16px; min-width: 0; }
.mobile-shell .m-lbl-h { font-size: 15px; font-weight: 700; color: var(--ink-2, #3c4757); }
.mobile-shell .m-choice-wrap { display: flex; flex-direction: column; gap: 8px; }
.mobile-shell .m-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-shell button.m-choice { min-height: 48px; padding: 0 8px; gap: 6px; font-size: 16px; }
.mobile-shell button.m-choice.on { background: var(--gray-bg, #eef1f5); border: 2px solid var(--ink-2, #3c4757); }
.mobile-shell button.m-choice.on.neg { background: var(--danger-bg, #fdecea); border-color: var(--danger, #dc3b30); color: var(--danger-ink, #b2271e); }
.mobile-shell .m-choice-sep { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted, #6a7488); padding-top: 4px; }
.mobile-shell .m-choice-sep::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--line-2, #d2d8e3); }

.mobile-shell .m-cam { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 56dvh; background: #000; border-radius: 16px; overflow: hidden; }
.mobile-shell .m-cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.mobile-shell .m-cam .aim { position: absolute; left: 50%; top: 44%; width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 3px solid rgba(255,255,255,.9); border-radius: 18px; pointer-events: none; }
.mobile-shell .m-cam.off .aim { border-style: dashed; border-color: rgba(255,255,255,.35); }
.mobile-shell .m-cam-chips { position: absolute; left: 0; right: 0; top: 12px; display: flex; justify-content: center; gap: 6px; }
.mobile-shell .m-cam-chips > span { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 8px; background: rgba(31,39,51,.85); color: #fff; font-size: 14px; font-weight: 700; }
.mobile-shell .m-cam-over { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; text-align: center; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.mobile-shell .m-cam-t { font-size: 17px; font-weight: 700; }
.mobile-shell .m-cam-g { font-size: 14px; color: #c9d0da; margin-top: 2px; }
.mobile-shell .m-toggle { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line, #e5e9f0); font-size: 15px; font-weight: 700; }
.mobile-shell .m-scan-alt { flex-wrap: nowrap; }
.mobile-shell .m-scan-alt > button { flex: 1 1 0; font-size: 15px; padding: 0 10px; }
.mobile-shell .m-manual { flex-wrap: nowrap; }
.mobile-shell .m-manual input { flex: 1 1 auto; min-width: 0; }
.mobile-shell .m-manual button { flex: none; }
.mobile-shell .m-done { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: var(--ok-bg, #e4f6ec); color: var(--ok-ink, #137a45); min-height: 56px; }
.mobile-shell .m-done b { flex: 1 1 auto; min-width: 0; font-size: 16px; }
.mobile-shell button.m-undo { flex: none; min-height: 44px; padding: 0 14px; font-size: 15px; font-variant-numeric: tabular-nums; }

.mobile-shell.dark { background: #111418; }
.mobile-shell.dark .m-top { background: #111418; color: #fff; border-bottom-color: #111418; }
.mobile-shell.dark .m-title { color: #fff; }
.mobile-shell.dark button.m-icon { color: #fff; }
.mobile-shell.dark .m-body > .m-tabs { background: #2a2f36; }
.mobile-shell.dark .m-body > .m-tabs a { color: #c9d0da; }
.mobile-shell.dark .m-body > .m-tabs a.on { background: var(--brand, #2b6de5); color: #fff; box-shadow: none; }
.mobile-shell.dark .m-toggle { background: #1f2733; border-color: #1f2733; color: #fff; }
.mobile-shell.dark .m-scan-alt > button, .mobile-shell.dark button.m-scan-card { background: #2a2f36; border-color: #3a414b; color: #fff; }
.mobile-shell.dark .m-body > .m-stack > .m-sub { color: #c9d0da; }

.mobile-shell .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.m-annot-full { position: fixed; inset: 0; z-index: 2000; background: #111; display: flex; flex-direction: column; color: #fff; font-size: 16px; }
.m-annot-full button { font: inherit; font-weight: 700; min-height: 48px; min-width: 48px; border-radius: 10px; border: 1px solid #555; background: #2a2a2a; color: #fff; padding: 0 12px; }
.m-annot-full button.primary { background: var(--brand, #2b6de5); border-color: var(--brand, #2b6de5); }
.m-annot-full button:disabled { opacity: .4; }
.m-an-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); }
.m-an-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 4px; }
.m-an-stage canvas { max-width: 100%; max-height: 100%; touch-action: none; display: block; }
.m-an-tools { display: flex; gap: 6px; padding: 6px 12px; justify-content: space-between; }
.m-an-tools:last-child { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.m-annot-full .m-an-tool { flex: 1 1 0; padding: 0 4px; font-size: 15px; }
.m-annot-full .m-an-tool.on { background: #fff; color: #111; }
.m-annot-full .m-an-color { flex: none; width: 48px; border: 3px solid #555; border-radius: 999px; padding: 0; }
.m-annot-full .m-an-color.on { border-color: var(--brand, #2b6de5); box-shadow: 0 0 0 2px #fff; }

/* PC — 폰으로 보기 제안 띠(작은 터치 화면에서만) · 이어찍기 QR 창 */
.m-suggest { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300; display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: var(--brand, #2b6de5); color: #fff; font-size: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.m-suggest a, .m-suggest button { min-height: 44px; padding: 8px 12px; border-radius: 8px; border: 0; font: inherit; font-weight: 700; }
.m-suggest a { background: #fff; color: var(--brand, #2b6de5); text-decoration: none; display: inline-flex; align-items: center; }
.m-suggest button { background: transparent; color: #fff; margin-left: auto; }
.phone-qr { display: flex; gap: 16px; align-items: center; }
.phone-qr svg { width: 180px; height: 180px; flex: none; }

.mobile-shell .m-sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(15,20,30,.45); display: flex; align-items: flex-end; justify-content: center; }
.mobile-shell .m-sheet { width: 100%; max-width: 560px; max-height: 85vh; overflow: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px calc(16px + var(--m-safe)); display: flex; flex-direction: column; gap: 12px; }
.mobile-shell .m-sheet h3 { margin: 0; font-size: 19px; }
.mobile-shell .m-ask { font-size: 15px; font-weight: 700; color: var(--ink-2, #3c4757); }
.mobile-shell button.primary.m-danger-solid { background: var(--danger, #dc3b30); border-color: var(--danger, #dc3b30); }
.mobile-shell .m-note { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: var(--bg, #f4f6fa); }
.mobile-shell .m-tabs.m-tabs5 a { font-size: 14px; padding: 0 2px; }
.mobile-shell .m-tcnt { margin-left: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger, #dc3b30); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.mobile-shell .m-seg { display: flex; gap: 6px; }
.mobile-shell .m-seg a { flex: 1 1 0; min-height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2, #d2d8e3); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2, #3c4757); text-decoration: none; }
.mobile-shell .m-seg a.on { border-color: var(--brand, #2b6de5); color: var(--brand, #2b6de5); background: #eef4fe; }
.mobile-shell .m-big { min-height: 64px; font-size: 18px; }
.mobile-shell .m-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mobile-shell .m-pcell { min-height: 68px; padding: 4px 2px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; }
.mobile-shell .m-pcell b { font-size: 15px; }
.mobile-shell .m-pcell span, .mobile-shell .m-pcell small { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-shell .m-pcell span { font-size: 12px; font-weight: 700; }
.mobile-shell .m-pcell small { font-size: 11px; opacity: .85; }
.mobile-shell .m-pcell.ok { background: var(--ok-bg, #e4f6ec); color: var(--ok-ink, #137a45); }
.mobile-shell .m-pcell.warn { background: var(--warn-bg, #fdf2da); color: var(--warn-ink, #8a5a00); }
.mobile-shell .m-pcell.neg { background: var(--danger-bg, #fdecea); color: var(--danger-ink, #b2271e); }
.mobile-shell .m-pcell.gray { background: var(--gray-bg, #eef1f5); color: var(--muted, #6a7488); }
.mobile-shell .m-mini { min-height: 32px; min-width: 32px; padding: 0 8px; font-size: 18px; }
.mobile-shell .m-grp summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line, #e5e9f0); font-size: 15px; cursor: pointer; list-style: none; }
.mobile-shell .m-grp summary::-webkit-details-marker { display: none; }
.mobile-shell .m-porow { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px; gap: 6px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line, #e5e9f0); font-size: 14px; }
.mobile-shell .m-porow.head { padding-top: 6px; padding-bottom: 6px; font-size: 12px; font-weight: 700; color: var(--muted, #6a7488); }
.mobile-shell .m-porow.head span:not(:first-child) { text-align: right; }
.mobile-shell .m-po-n { display: flex; flex-direction: column; min-width: 0; }
.mobile-shell .m-po-n b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-shell .m-po-n small { color: var(--muted, #6a7488); }
.mobile-shell .m-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mobile-shell .m-num.neg { color: var(--danger-ink, #b2271e); font-weight: 700; }
.mobile-shell .m-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mobile-shell .m-chart svg { display: block; width: 100%; height: auto; }
.mobile-shell .m-chart .lim { stroke: var(--danger, #dc3b30); stroke-width: 1; stroke-dasharray: 4 3; }
.mobile-shell .m-chart .lbl { font-size: 9px; fill: var(--muted, #6a7488); }
.mobile-shell .m-chart .rng { stroke: var(--ink-2, #3c4757); stroke-width: 2; }
.mobile-shell .m-chart .rng.ng { stroke: var(--danger, #dc3b30); }
.mobile-shell .m-chart .pt { fill: var(--brand, #2b6de5); }
.mobile-shell .m-chart .pt.ng { fill: var(--danger, #dc3b30); }
.mobile-shell .m-chart .pt.cur { stroke: #fff; stroke-width: 2; }
.mobile-shell .m-line-s.m-wrap2 { white-space: normal; }
