/* 럽맘 디자인 시스템 토큰 — luvmom-rn `.claude/skills/luvmom-design-system/tokens.css`,
   `docs/design/LUVMOM_DESIGN_GUIDE.md` 값 그대로예요. 새 색·새 글씨 크기를 만들지 않아요. */
:root {
  color-scheme: light;
  --lm-primary: #FF7497;
  --lm-primary-strong: #FA5C84;
  --lm-primary-heavy: #ED4A73;
  --lm-primary-bg: #FEF0F3;
  --lm-primary-line: #F3E6EA;
  --lm-positive: #94C069;   --lm-positive-bg: #E7F6EC;
  --lm-cautionary: #FF9232; --lm-cautionary-bg: #FFF6E3;
  --lm-orange: #D9741C;
  --lm-negative: #FE2A60;   --lm-negative-bg: #FEF7F8;
  --lm-label-strong: #000000;
  --lm-label: #353030;
  --lm-label-neutral: #555555;
  --lm-label-assistive: #7D7D7D;
  --lm-label-disable: #BBBBBB;
  --lm-surface: #FFFFFF;
  --lm-bg-alt: #FBF8F9;
  --lm-box-disable: #F0F0F0;
  --lm-chip-off: #F3F3F5;
  --lm-line: #EEEEEE;
  --lm-line-card: #ECEEF0;
  --lm-radius-btn: 8px;
  --lm-radius-tag: 4px;
  --lm-radius-card: 10px;
  --lm-radius-panel: 16px;
  --lm-radius-pill: 30px;
  --lm-font: 'Pretendard JP','Pretendard Variable','Pretendard',-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--lm-bg-alt); color: var(--lm-label-neutral); font-family: var(--lm-font); font-size: 15px; line-height: 1.467; letter-spacing: 0.010em; -webkit-font-smoothing: antialiased; word-break: keep-all; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lm-label); outline-offset: 2px; }

/* 데모 서버에서만 화면 맨 위에 붙는 안내 줄 */
.demobar { background: var(--lm-cautionary-bg); color: var(--lm-orange); font-size: 13px; font-weight: 500; line-height: 1.385; text-align: center; padding: 8px 16px; }
body.is-app .demobar { max-width: 420px; margin: 0 auto; }

/* ---- 글씨 (DS 타입 스케일) ---- */
.t-title3 { font-size: 24px; line-height: 1.334; letter-spacing: -0.023em; font-weight: 700; color: var(--lm-label); text-wrap: balance; }
.t-heading2 { font-size: 20px; line-height: 26px; letter-spacing: -0.012em; font-weight: 600; color: var(--lm-label); }
.t-headline1 { font-size: 18px; line-height: 1.445; font-weight: 600; color: var(--lm-label); }
.t-card { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--lm-label); }
.t-list { font-size: 15px; font-weight: 600; color: var(--lm-label); }
.meta { font-size: 13px; line-height: 1.385; letter-spacing: 0.019em; color: var(--lm-label-assistive); }
.num { font-weight: 700; color: var(--lm-label); font-variant-numeric: tabular-nums; }
.err { font-size: 13px; color: var(--lm-negative); }

/* ---- 버튼: 핑크는 화면의 주요 행동 하나, 초록은 기록하는 행동 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: var(--lm-radius-btn);
  border: 1px solid var(--lm-line-card); background: var(--lm-surface); color: var(--lm-label); font-size: 15px; font-weight: 600; text-decoration: none; }
.btn.pri { background: var(--lm-primary); border-color: var(--lm-primary); color: #fff; }
.btn.pri:hover { background: var(--lm-primary-strong); border-color: var(--lm-primary-strong); }
.btn.pri:active { background: var(--lm-primary-heavy); border-color: var(--lm-primary-heavy); }
.btn.rec { background: var(--lm-positive); border-color: var(--lm-positive); color: #fff; }
.btn.gray { background: var(--lm-chip-off); border-color: var(--lm-chip-off); color: var(--lm-label-neutral); }
.btn.sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { background: var(--lm-box-disable); border-color: var(--lm-box-disable); color: var(--lm-label-disable); cursor: default; }
.link { background: none; border: 0; padding: 12px 0; min-height: 44px; font-size: 13px; color: var(--lm-label-assistive); text-decoration: underline; }

/* ---- 입력 ---- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--lm-label-assistive); }
.field input, .field select, .field textarea, .inp {
  width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--lm-line-card); border-radius: var(--lm-radius-btn);
  background: var(--lm-surface); color: var(--lm-label); font-size: 15px; }
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { outline: none; border-color: var(--lm-label); }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--lm-label); min-height: 44px; padding: 10px 0; }
.chk input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--lm-primary); }

/* ---- 태그·칩: 새로=검정, 주의=주황, 완료=초록 바탕, 나머지=회색 ---- */
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; line-height: 1.334; letter-spacing: 0.025em; padding: 3px 6px; border-radius: var(--lm-radius-tag);
  background: var(--lm-chip-off); color: var(--lm-label-neutral); white-space: nowrap; }
.tag.new { background: var(--lm-label); color: #fff; }
.tag.warn { background: var(--lm-cautionary-bg); color: var(--lm-orange); }
.tag.ok { background: var(--lm-positive-bg); color: var(--lm-label); }
.tag.sample { background: var(--lm-box-disable); color: var(--lm-label-assistive); }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--lm-radius-pill); border: 0; background: var(--lm-chip-off); color: var(--lm-label-neutral); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chip.on { background: var(--lm-primary); color: #fff; font-weight: 600; }

/* ---- 카드·목록 ---- */
.card { background: var(--lm-surface); border: 1px solid var(--lm-line-card); border-radius: var(--lm-radius-card); padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--lm-label-assistive); font-size: 13px; padding-top: 1px; }
.kv dd { color: var(--lm-label); overflow-wrap: anywhere; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.empty { font-size: 14px; color: var(--lm-label-assistive); padding: 20px 0; text-align: center; }
.band { height: 8px; background: var(--lm-bg-alt); }

/* ---- 화면 틀: 고객 앱은 폰 폭, 운영 화면은 넓게 ---- */
.app { max-width: 420px; min-height: 100vh; margin: 0 auto; background: var(--lm-surface); display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 20px; }
.brand { font-size: 18px; font-weight: 700; color: var(--lm-label); letter-spacing: -0.01em; }
.sec { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.desk { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }
.deskbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 900px) { .cols { grid-template-columns: 360px minmax(0, 1fr); } }

/* ---- 고객 앱: 설치형 앱처럼 위 막대·아래 탭이 고정돼요 ---- */
body.is-app { background: var(--lm-surface); overscroll-behavior-y: none; -webkit-tap-highlight-color: transparent; }
body.is-app button, body.is-app a { -webkit-user-select: none; user-select: none; touch-action: manipulation; }
body.is-app .app { min-height: 100dvh; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
body.is-app .app.bare { padding-bottom: env(safe-area-inset-bottom, 0px); }
body.is-app .topbar { position: sticky; top: 0; z-index: 5; background: var(--lm-surface); padding-top: env(safe-area-inset-top, 0px); height: calc(52px + env(safe-area-inset-top, 0px)); }
.wordmark { height: 30px; width: auto; display: block; }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 6; width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--lm-surface); border-top: 1px solid var(--lm-line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar button { height: 60px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 500; color: var(--lm-label-assistive); position: relative; }
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button[aria-current="page"] { color: var(--lm-primary); font-weight: 600; }
.tabbar .dot { position: absolute; top: 10px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--lm-primary); }
.hero { position: relative; overflow: hidden; background: var(--lm-primary-bg); border: 1px solid var(--lm-primary-line); border-radius: var(--lm-radius-panel); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.hero .coin { position: absolute; right: 6px; top: 4px; width: 84px; height: auto; pointer-events: none; }
.hero .t-heading2 { padding-right: 72px; }
.wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: var(--lm-surface); border: 0; border-radius: var(--lm-radius-card); padding: 12px 14px; text-align: left; color: var(--lm-label); }
.wallet .num { font-size: 20px; display: block; }
.pinkline { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--lm-bg-alt); border-radius: var(--lm-radius-card); padding: 12px 14px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 20; max-width: 340px; background: var(--lm-label); color: #fff; font-size: 14px; font-weight: 500; padding: 12px 18px; border-radius: var(--lm-radius-pill); text-align: center; animation: rise .2s ease-out; }
.sheet { position: fixed; inset: 0; z-index: 30; background: var(--lm-surface); display: flex; flex-direction: column; max-width: 420px; margin: 0 auto; padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px)); gap: 14px; animation: rise .2s ease-out; }
.sheet .adimg { flex: 1; min-height: 0; border-radius: var(--lm-radius-panel); background: var(--lm-primary-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; }
.sheet .adimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sheet { animation-name: fadein; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
/* 광고: 화면 가운데 뜨는 창. 뒤 화면은 어둡게 덮어요 */
.admodal { position: fixed; inset: 0; z-index: 30; background: rgba(53, 48, 48, .6); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadein .2s ease-out; }
.adbox { width: 100%; max-width: 340px; background: var(--lm-surface); border-radius: var(--lm-radius-panel); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.adbox .adimg { display: block; aspect-ratio: 1 / 1; border-radius: var(--lm-radius-card); background: var(--lm-primary-bg); overflow: hidden; }
.adbox .adimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .toast, .sheet, .admodal { animation: none; } }
.btn.kakao { background: #FEE500; border-color: #FEE500; color: #191919; } /* 카카오·네이버가 정한 로그인 버튼 색 */
.btn.naver { background: #03C75A; border-color: #03C75A; color: #fff; }
.signlogo { width: 200px; max-width: 70%; height: auto; align-self: center; margin: 28px 0 8px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 96px; padding: 12px 14px; text-align: left;
  background: var(--lm-chip-off); border: 1.5px solid var(--lm-chip-off); border-radius: var(--lm-radius-card); font-size: 15px; font-weight: 600; color: var(--lm-label); }
.tile small { font-size: 13px; font-weight: 400; color: var(--lm-label-assistive); }
.tile.wide { grid-column: 1 / -1; min-height: 48px; flex-direction: row; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--lm-label-neutral); }
.tile.wide svg { width: 20px; height: 20px; }
.tile svg { width: 28px; height: 28px; fill: none; stroke: var(--lm-label-neutral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile[aria-pressed="true"] { background: var(--lm-primary-bg); border-color: var(--lm-primary); color: var(--lm-label); font-weight: 600; }
.tile[aria-pressed="true"] svg { stroke: var(--lm-primary); }
.tile[disabled] { opacity: .5; cursor: default; }
.bigwrap { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 14px 0 4px; text-align: center; }
.big { width: 176px; height: 176px; border-radius: 50%; border: 0; background: var(--lm-primary); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.024em; font-weight: 700; box-shadow: 0 0 0 10px var(--lm-primary-bg); transition: transform .12s; }
.big small { font-size: 13px; font-weight: 500; letter-spacing: 0.019em; max-width: 136px; }
.big:active { transform: scale(.97); background: var(--lm-primary-heavy); }
.big[disabled] { background: var(--lm-box-disable); color: var(--lm-label-assistive); box-shadow: 0 0 0 10px var(--lm-bg-alt); cursor: default; }
@media (prefers-reduced-motion: reduce) { .big { transition: none; } }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.step { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--lm-label-disable); text-align: center; }
.step i { display: block; height: 4px; border-radius: 4px; background: var(--lm-box-disable); }
.step.on { color: var(--lm-label); font-weight: 600; }
.step.on i { background: var(--lm-label); }

.panel { background: var(--lm-primary-bg); border: 1px solid var(--lm-primary-line); border-radius: var(--lm-radius-panel); padding: 20px; }
.callbar { border-radius: var(--lm-radius-card); padding: 12px 14px; background: var(--lm-chip-off); display: flex; flex-direction: column; gap: 2px; }
.bar { height: 8px; border-radius: 20px; background: var(--lm-box-disable); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--lm-label); transition: width .25s linear; }
.qr { width: 200px; height: 200px; align-self: center; border: 1px solid var(--lm-line-card); border-radius: var(--lm-radius-card); padding: 8px; background: #fff; }
.code { font-size: 22px; letter-spacing: 0.04em; user-select: all; -webkit-user-select: all; }
.listrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--lm-line); font-size: 15px; color: var(--lm-label); }
.listrow:first-child { border-top: 0; }

/* ---- 콜센터·업체 ---- */
.lead { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 12px; min-height: 60px;
  background: var(--lm-surface); border: 1px solid var(--lm-line-card); border-radius: var(--lm-radius-btn); color: var(--lm-label); }
.lead[aria-pressed="true"] { border-color: var(--lm-primary); background: var(--lm-primary-bg); }
.lead .n { display: block; font-size: 15px; font-weight: 600; }
.lead .m { display: block; font-size: 13px; color: var(--lm-label-assistive); }
.item { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--lm-line-card); border-radius: var(--lm-radius-btn); padding: 0 12px; min-height: 52px; }
.item .chk { padding: 0; min-height: 0; align-items: center; }
.item select { min-height: 40px; padding: 0 8px; border: 1px solid var(--lm-line-card); border-radius: 6px; background: #fff; color: var(--lm-label); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hr { height: 1px; background: var(--lm-line); border: 0; margin: 4px 0; }
