/* 개인 회원 모바일 화면(/m.html) — 2026-10-02. 기존 styles.css 위에 얹는 얇은 층. */
:root { --m-fs: 17px; }
.m-body { font-size: var(--m-fs); margin: 0; padding-bottom: calc(68px + env(safe-area-inset-bottom));
  background: var(--bg, #f8fafc); color: var(--text, #0f172a); -webkit-text-size-adjust: 100%; }
.m-head { position: sticky; top: 0; z-index: 5; padding: 12px 16px 8px; background: var(--bg-card, #fff);
  border-bottom: 1px solid var(--border, #e2e8f0); }
.m-title { font-size: 1.25em; font-weight: 700; }
.m-sub { font-size: .8em; color: var(--text-muted, #64748b); margin-top: 2px; min-height: 1em; }
.m-main { padding: 10px 12px; max-width: 720px; margin: 0 auto; }
.m-card { background: var(--bg-card, #fff); border: 1px solid var(--border, #e2e8f0); border-radius: 14px;
  padding: 14px; margin-bottom: 12px; overflow-x: auto; }
.m-card h2, .m-card h3 { margin: 0 0 10px; font-size: 1.05em; }
details.m-card > summary { font-weight: 700; cursor: pointer; list-style: none; }
details.m-card > summary::after { content: " ▾"; color: var(--text-muted, #64748b); }
details[open].m-card > summary { margin-bottom: 10px; }
.m-load { color: var(--text-muted, #64748b); }
.m-err { color: #dc2626; margin-top: 8px; min-height: 1em; }
.m-note { font-size: .85em; color: var(--text-muted, #64748b); }
.m-btn { display: block; width: 100%; padding: 13px; border: 0; border-radius: 12px; background: #2563eb;
  color: #fff; font-size: 1em; font-weight: 700; margin-top: 8px; }
.m-btn-ghost { background: transparent; color: #2563eb; border: 1px solid #2563eb; }
#loginForm input:not([type=checkbox]) { display: block; width: 100%; box-sizing: border-box; padding: 12px;
  margin-bottom: 8px; font-size: 1em; border: 1px solid var(--border, #cbd5e1); border-radius: 10px; }
.m-check { display: flex; gap: 6px; align-items: center; font-size: .9em; }
.m-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--bg-card, #fff);
  border-top: 1px solid var(--border, #e2e8f0); padding-bottom: env(safe-area-inset-bottom); }
.m-nav button { flex: 1; border: 0; background: none; padding: 7px 0 8px; font-size: .72em; color: var(--text-muted, #64748b); }
.m-nav button span { display: block; font-size: 1.5em; line-height: 1.2; }
.m-nav button.on { color: #2563eb; font-weight: 700; }
.m-big { font-size: 1.7em; font-weight: 800; letter-spacing: -.02em; }
.m-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; }
.m-row + .m-row { border-top: 1px dashed var(--border, #e2e8f0); }
.m-k { color: var(--text-muted, #64748b); }
.m-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75em; font-weight: 700;
  background: #e2e8f0; color: #334155; }
.m-chip.ai { background: #dbeafe; color: #1d4ed8; } .m-chip.core { background: #dcfce7; color: #15803d; }
.m-chip.basket { background: #fef3c7; color: #92400e; } .m-chip.ok { background: #dcfce7; color: #15803d; }
.m-chip.bad { background: #fee2e2; color: #b91c1c; }
.m-stock { padding: 10px 0; border-top: 1px solid var(--border, #e2e8f0); }
.m-stock:first-of-type { border-top: 0; }
.m-stock .nm { font-weight: 700; } .m-stock .cd { color: var(--text-muted, #64748b); font-size: .8em; }
.m-stock .ln { display: flex; justify-content: space-between; font-size: .88em; margin-top: 3px; }
.up { color: #dc2626; } .down { color: #2563eb; } .flat { color: inherit; }
.m-seg { display: flex; gap: 6px; } .m-seg button { flex: 1; padding: 10px; border-radius: 10px;
  border: 1px solid var(--border, #cbd5e1); background: none; font-size: .95em; }
.m-seg button.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.m-alert { font-size: .85em; padding: 6px 0; border-top: 1px dashed var(--border, #e2e8f0); white-space: pre-wrap; word-break: break-all; }
@media (prefers-color-scheme: dark) {
  .m-chip { background: #334155; color: #e2e8f0; }
}
