/* 판매 고객 화면 스킨 — layouts/customer*.php · auth*.php · 관리자 k2.
   색 뜻: 먹(--primary)=주 버튼·선택, 노랑(--accent)=홈·강조 CTA, 초록=완료, 주황=대기, 빨강=위험(DESIGN.md) */

@font-face {
  font-family: 'SUIT';
  src: url('/assets/fonts/suit/SUIT-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root { --font-sans: 'Pretendard Variable', Pretendard, -apple-system, 'Malgun Gothic', sans-serif; }

/* ── 라이트 토큰 ── */
:root[data-theme="light"] {
  /* 값의 원본은 php/sales/DESIGN.md — 바꿀 때는 그 문서와 함께 바꾼다 */
  --kx-blue: #18181B; --kx-cyan: #09090B; --kx-navy: #18181B;
  --kx-grad: #18181B;
  --kx-rail: linear-gradient(180deg, #3F3F46, #18181B);
  --brand: #18181B; --primary: #18181B; --primary-strong: #09090B;
  --primary-bg: #F4F4F5; --primary-line: #E4E4E7; --primary-ink: #27272A;
  --accent: #FFE342; --accent-strong: #F5D90A; --accent-ink: #18181B;
  --on-primary: #fff; --track: #E4E4E7;
  --pc-page: #FFFFFF; --page: #FFFFFF; --soft: #F4F4F5; --logo-ink: #18181B;
  --hero-from: #FAFAFA; --hero-to: #F4F4F5; --hero-ink: #18181B; --hero-band: #F4F4F5;
  --hero-sub: #52525B; --hero-dot: rgba(0, 0, 0, .06); --hero-track: rgba(0, 0, 0, .10);
  --surface: #fff; --card: #fff; --card-line: #E4E4E7;
  --line: #E4E4E7; --line-soft: #F1F1F3; --field: #C9CDD4;
  --ink: #27272A; --ink-strong: #18181B; --ink2: #52525B; --ink3: #71717A;
  --hover: #F7F8FA; --gray-bg: #F4F5F7;
  --green: #0B7C57; --green-ink: #0B7C57; --green-bg: #E7F8F1; --green-line: #C3EEDD;
  --red: #D92D20; --red-ink: #B42318; --red-bg: #FEF1F1; --red-line: #FBD5D5;
  --amber: #B45309; --amber-bg: #FFF4E5; --amber-line: #FAD8A6;
  --shadow-panel: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-pop: 0 12px 30px rgba(16, 24, 40, .14);
}
/* ── 다크 토큰 ── */
:root[data-theme="dark"] {
  --kx-blue: #FAFAFA; --kx-cyan: #E4E4E7; --kx-navy: #18181B;
  --kx-grad: #FAFAFA;
  --kx-rail: linear-gradient(180deg, #3F3F46, #18181B);
  --brand: #F4F4F5; --primary: #F4F4F5; --primary-strong: #FAFAFA; --ink-strong: #FAFAFA;
  --primary-bg: rgba(255, 255, 255, .08); --primary-line: rgba(255, 255, 255, .14); --primary-ink: #E4E4E7;
  --accent: #FFE342; --accent-strong: #F5D90A; --accent-ink: #18181B;
  --on-primary: #18181B; --track: #3F3F46;
  --pc-page: #09090B; --page: #09090B; --soft: #18181B; --logo-ink: #FAFAFA;
  --hero-from: #18181B; --hero-to: #09090B; --hero-ink: #FAFAFA; --hero-band: #09090B;
  --hero-sub: rgba(228, 228, 231, .72); --hero-dot: rgba(255, 255, 255, .08); --hero-track: rgba(255, 255, 255, .12);
  --surface: #18181B; --card: #18181B; --card-line: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .11); --line-soft: rgba(255, 255, 255, .06); --field: #3F3F46;
  --ink: #FAFAFA; --ink2: #A1A1AA; --ink3: #71717A;
  --hover: #27272A; --gray-bg: #27272A;
  --green: #34D399; --green-ink: #5EEAD4; --green-bg: rgba(52, 211, 153, .14); --green-line: rgba(52, 211, 153, .3);
  --red: #F87171; --red-ink: #FCA5A5; --red-bg: rgba(248, 113, 113, .14); --red-line: rgba(248, 113, 113, .3);
  --amber: #FBBF24; --amber-bg: rgba(251, 191, 36, .14); --amber-line: rgba(251, 191, 36, .3);
  --shadow-panel: 0 12px 36px -12px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .04);
  --shadow-card: 0 6px 24px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .035);
}

/* 글꼴: Pretendard(DESIGN.md). 숫자는 tabular-nums — 고정폭 글꼴은 쓰지 않는다 */
.k2-crumb b, .k2-logo .wordmark, .k2-content h1, .k2-content .head h1, .k2-content h2.cardtitle, .k2-content h3 {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}
.k2-wallet strong, .stat strong, .k2-pill, .svc-card-price strong {
  font-variant-numeric: tabular-nums;
}
body { background: var(--page); color: var(--ink); font-family: var(--font-sans); font-size: 14px; letter-spacing: -0.02em; font-feature-settings: 'tnum' 1; }
html { background: var(--page); }
.wordmark em { color: var(--primary); }

/* ── KRDS 접근성 기반: 건너뛰기 링크 · 숨긴 콘텐츠 · 명확한 키보드 초점(WCAG 2.1 AA / KWCAG 2.2) ── */
.skip-link {
  position: fixed; left: 12px; top: -64px; z-index: 200;
  padding: 10px 18px; border-radius: 8px; background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700;
  transition: top .12s ease;
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
.ox-opt:has(input:focus-visible) {
  outline: 2.5px solid var(--primary);
  outline-offset: 2px;
}
/* KRDS 화면(글자) 크기 조정 — 크게 보기 모드 */
html[data-scale="lg"] { font-size: 112%; }
html[data-scale="lg"] body { font-size: 16px; line-height: 1.68; }
.scale-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 10px; border: 0; border-radius: 8px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink2); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.scale-btn.on { background: var(--primary-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary-line); }
.order-help { margin-top: 8px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.order-help summary { padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--primary-ink); cursor: pointer; }
.order-help ol { margin: 0; padding: 0 14px 12px 28px; font-size: 12px; line-height: 1.65; color: var(--ink2); }

/* ── 이루마케팅 고객 통합 가로형 GNB 틀(layouts/customer.php — 셀프마케팅 결의 깔끔한 상단 헤더) ── */
body.iru { min-height: 100vh; display: flex; flex-direction: column; }
body.iru.is-home-body { background: var(--surface); }
/* 맨 위 띠: 다른 화면에서 충전 대기로 돌아오는 안내. 먹색(프로모와 같은 결) */
.iru-strip {
  display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap;
  min-height: 40px; padding: 0 16px; background: var(--primary); color: #fff;
  font-family: var(--font-sans); font-size: 14px; font-weight: 400; line-height: 1.5; letter-spacing: -0.56px; text-align: center;
}
.iru-strip:hover { background: var(--primary-strong); }
.iru-strip strong { font-weight: 700; color: var(--accent); }

.iru-hdr {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 60%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.iru-hdr-in {
  max-width: min(var(--iru-shell-max, 1248px), calc(100vw - 48px)); margin: 0 auto; padding: 0 24px; height: 84px;
  display: flex; align-items: center; gap: 36px;
}
.iru-logo { display: inline-flex; align-items: center; flex: none; }
.iru-logo img { display: block; height: clamp(36px, 4vw, 52px); width: auto; }
.iru-logo--sm img { height: 30px; }
.iru-logo .logo-dark { display: none; }
:root[data-theme="dark"] .iru-logo .logo-light { display: none; }
:root[data-theme="dark"] .iru-logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .iru-logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .iru-logo .logo-dark { display: block; }
}

.iru-nav { display: flex; align-items: center; gap: 4px; transform: translateY(3px); overflow-x: auto; scrollbar-width: none; }
.iru-nav::-webkit-scrollbar { display: none; }
.iru-nav a {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 24px;
  color: var(--ink); font-family: var(--font-sans); font-size: 20px; font-weight: 700; line-height: 1.5; letter-spacing: -0.8px; white-space: nowrap;
  transition: color .2s;
}
:root[data-theme="dark"] .iru-nav a { color: var(--ink); }
.iru-nav a:hover, .iru-nav a.on { color: var(--ink); }
.iru-nav a b {
  min-width: 19px; height: 19px; line-height: 19px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; text-align: center;
}
.iru-nav a b.warn { background: var(--red); color: #fff; }

.iru-hdr-r { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.iru-cmd-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px;
  border: 0; border-radius: 8px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink3); font: inherit; cursor: pointer; transition: all .15s;
}
.iru-cmd-btn:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--primary-line); color: var(--ink); }
.iru-cmd-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.iru-bal {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 8px;
  background: var(--primary-bg); box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-ink); white-space: nowrap; transition: transform .15s, background .15s;
}
.iru-bal:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.iru-bal:hover small { color: rgba(255, 255, 255, .85); }
.iru-bal small { font-size: 12px; font-weight: 700; color: var(--primary-ink); opacity: .82; }
.iru-bal strong { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.iru-hdr-r .theme-switch { border-radius: 999px; padding: 3px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.iru-hdr-r .theme-switch button { border-radius: 999px; height: 26px; padding: 0 10px; font-size: 12px; color: var(--ink3); }
.iru-hdr-r .theme-switch button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.iru-auth { display: flex; align-items: center; gap: 6px; flex: none; }
.iru-auth a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none;
  box-sizing: border-box; height: 44px; padding: 0 16px; border-radius: 8px;
  color: var(--ink); font-family: var(--font-sans); font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: -0.3px; white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.iru-auth a:hover { background: var(--soft); }
.iru-auth a.iru-auth-join { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.iru-auth a.iru-auth-join:hover { box-shadow: inset 0 0 0 1px var(--ink3); }
.iru-auth a.iru-auth-start { background: var(--surface); padding: 0 14px 0 16px; box-shadow: inset 0 0 0 1px var(--ink-strong); }
.iru-auth a.iru-auth-start:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.iru-auth a.iru-auth-start svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.iru-main { flex: 1; padding: 26px 0 56px; }
.iru-main:has(> .iru-container.is-home) { padding: 0; }
.iru-container { max-width: min(var(--iru-shell-max, 1248px), calc(100vw - 48px)); margin: 0 auto; padding: 0 24px; }
.iru-container.is-home { max-width: none; padding: 0; }
.iru-container > .head:first-child h1, .iru-container > h1:first-child { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }

.iru-foot { margin-top: auto; border-top: 1px solid #E5E7EB; background: #F9FAFB; padding: 24px 0 20px; font-family: var(--font-sans); }
:root[data-theme="dark"] .iru-foot { background: var(--soft); border-top-color: var(--line); }
.iru-foot-in { position: relative; max-width: min(var(--iru-shell-max, 1248px), calc(100vw - 48px)); margin: 0 auto; padding: 0 24px; }
.iru-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.iru-foot-top .iru-logo img { height: 32px; }
.iru-foot-nav { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: -0.48px; color: var(--ink); }
:root[data-theme="dark"] .iru-foot-nav { color: var(--ink); }
.iru-foot-nav a:hover { text-decoration: underline; }
.iru-foot-tools { display: flex; align-items: center; gap: 8px; }
.iru-foot .biz-info { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.iru-foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; font-size: 12px; line-height: 1.5; color: var(--ink3); }
.iru-foot-privacy { font-weight: 700; color: var(--ink); }
/* 사업자 정보(pages/customer/partials/biz-info.php) — 고객 꼬리말·로그인 틀·모바일 더보기 */
.biz-info { display: grid; gap: 4px; font-size: 12px; line-height: 1.7; color: var(--ink3); word-break: keep-all; }
.biz-info p { display: flex; flex-wrap: wrap; align-items: center; margin: 0; }
.biz-info span { display: inline-flex; align-items: center; }
.biz-info span + span::before { content: ''; width: 1px; height: 10px; margin: 0 10px; background: var(--line); }
.biz-info b { margin-right: 4px; font-weight: 700; color: var(--ink2); }
.biz-check { display: inline-flex; align-items: center; height: 22px; margin-left: 10px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink2); font-size: 12px; text-decoration: none; }
.biz-check:hover { border-color: var(--ink3); color: var(--ink); }
.site-footer .biz-info p, .m-auth .biz-info p { justify-content: center; }

.iru-fab {
  position: fixed; right: 20px; bottom: 28px; z-index: 45;
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0;
  border-radius: 50%; background: #FEE500; color: #191600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .28), 0 4px 10px 2px rgba(0, 0, 0, .14); transition: transform .15s;
}
.iru-fab:hover { transform: scale(1.06); }
.iru-fab svg { width: 28px; height: 28px; fill: currentColor; }
.iru-fab span { display: none; }

@media (max-width: 1080px) {
  .iru-hdr-in { padding: 0 16px; gap: 12px; }
  .iru-cmd-btn, .iru-bal small { display: none; }
}
@media (max-width: 820px) {
  .iru-hdr-in { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .iru-nav { order: 3; flex-basis: 100%; margin: 6px 0 0; padding-top: 8px; border-top: 1px solid var(--line-soft); }
  .iru-container { padding: 0 16px; }
}


/* ── PC 골격: 떠 있는 사이드바 + 얇은 글래스 도구 줄 + 본문(layouts/customer.php) ── */
.k2-app { display: flex; gap: 0; min-height: 100vh; }
.k2-side {
  position: sticky; top: 16px; flex: none; display: flex; flex-direction: column;
  width: 244px; height: calc(100vh - 32px); margin: 16px 0 16px 16px; padding: 20px 14px 14px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--card-line);
  box-shadow: var(--shadow-panel); overflow-y: auto;
}
.k2-logo { display: block; padding: 2px 8px 20px; }
.k2-logo img { display: block; width: 174px; height: auto; }
.k2-logo .k2-logo-light, .k2-logo .k2-logo-mark { display: none; }
:root[data-theme="light"] .k2-logo .k2-logo-dark { display: none; }
:root[data-theme="light"] .k2-logo .k2-logo-light { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .k2-logo .k2-logo-dark { display: none; }
  :root:not([data-theme]) .k2-logo .k2-logo-light { display: block; }
}
@media (max-width: 1000px) {
  .k2-logo img { width: 38px; margin: 0 auto; }
  .k2-logo .k2-logo-dark, .k2-logo .k2-logo-light { display: none; }
  .k2-logo .k2-logo-mark { display: block; }
}
.k2-logo i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--kx-grad); color: #fff; }
.k2-logo i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.k2-logo .wordmark { font-size: 18px; color: var(--ink); }

.k2-group { margin: 18px 12px 6px; color: var(--ink3); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.k2-nav a {
  display: flex; align-items: center; gap: 11px; height: 42px; margin: 2px 0; padding: 0 12px;
  border-radius: 12px; color: var(--ink2); font-size: 14px; font-weight: 700;
  transition: background .15s ease, color .15s ease;
}
.k2-nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: .82; }
.k2-nav a span { flex: 1; }
.k2-nav a b {
  align-self: center; min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 12px; line-height: 20px; text-align: center; font-weight: 700;
}
.k2-nav a:hover { background: var(--soft); color: var(--ink); }
.k2-nav a.on {
  background: var(--primary-bg); color: var(--primary-ink); font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--primary-line);
}
.k2-nav a.on svg { opacity: 1; color: var(--primary-ink); }
.k2-nav a.on b { background: var(--primary); color: #fff; }

.k2-wallet {
  position: relative; display: block; margin-top: auto; padding: 16px; border-radius: 16px;
  background: var(--soft); border: 1px solid var(--line); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.k2-wallet:hover { border-color: var(--primary-line); transform: translateY(-1px); }
.k2-wallet::after {
  content: ''; position: absolute; right: -28px; top: -28px; width: 92px; height: 92px;
  border-radius: 50%; background: var(--kx-grad); opacity: .14; pointer-events: none;
}
.k2-wallet small { display: block; color: var(--ink3); font-size: 12px; font-weight: 700; }
.k2-wallet strong { display: block; margin: 4px 0 10px; font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.k2-wallet strong em { margin-left: 2px; font-size: 12px; font-style: normal; font-weight: 700; color: var(--ink2); }
.k2-wallet span {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 8px;
  background: var(--primary-bg); color: var(--primary-ink); font-size: 12px; font-weight: 700;
}

.k2-main { flex: 1; min-width: 0; padding: 16px 26px 0; max-width: min(var(--iru-shell-max, 1360px), calc(100vw - 280px)); }
.k2-top {
  position: sticky; top: 16px; z-index: 10; display: flex; align-items: center; gap: 12px;
  height: 64px; margin: 0 0 22px; padding: 0 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--card-line);
  box-shadow: var(--shadow-panel), 0 -16px 0 var(--page);
}
.k2-crumb { display: flex; align-items: center; gap: 12px; flex: none; min-width: 0; }
.k2-crumb > i {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary-bg); color: var(--primary-ink);
}
.k2-crumb > i svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.k2-crumb > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.k2-crumb a { color: var(--ink3); font-size: 12px; font-weight: 700; }
.k2-crumb a:hover { color: var(--primary-ink); }
.k2-crumb b { color: var(--ink); font-size: 16px; font-weight: 700; white-space: nowrap; }

.k2-search {
  display: flex; align-items: center; gap: 8px; flex: 0 1 280px; min-width: 140px; height: 38px;
  margin-left: auto; padding: 0 8px 0 12px; border: 0; border-radius: 8px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink3); font: inherit; font-size: 14px; cursor: pointer;
  transition: box-shadow .15s ease, background .15s ease;
}
.k2-search svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.k2-search span { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k2-search:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--primary-line); color: var(--ink2); }
kbd { flex: none; padding: 2px 6px; border-radius: 8px; background: var(--card); color: var(--ink3); font: 700 12px/1.5 inherit; box-shadow: inset 0 0 0 1px var(--line); }

.k2-top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.k2-new {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 15px 0 12px;
  border-radius: 8px; background: var(--kx-grad); color: #fff; font-size: 14px; font-weight: 700;
  white-space: nowrap; box-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.k2-new svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.k2-new:hover { transform: translateY(-1px); box-shadow: none; }

.k2-me {
  display: flex; align-items: center; gap: 2px; height: 36px; padding: 0 3px 0 11px;
  border-radius: 8px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
}
.k2-me a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 700; white-space: nowrap; }
.k2-me a:first-child { max-width: 150px; padding-right: 6px; }
.k2-me a:first-child span { overflow: hidden; text-overflow: ellipsis; }
.k2-me a:first-child:hover { color: var(--primary-ink); }
.k2-me a:last-child { justify-content: center; width: 30px; height: 30px; border-radius: 999px; color: var(--ink3); transition: background .15s, color .15s; }
.k2-me a:last-child:hover { background: var(--red-bg); color: var(--red); }
.k2-me svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.k2-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border-radius: 8px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.k2-pill:hover { background: var(--primary-bg); box-shadow: inset 0 0 0 1px var(--primary-line); }
.k2-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.k2-pill.warn { background: var(--amber-bg); box-shadow: inset 0 0 0 1px var(--amber-line); color: var(--amber); }
.k2-pill.warn i { background: var(--amber); }

.k2-top-r .theme-switch { border-radius: 999px; padding: 3px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.k2-top-r .theme-switch button { border-radius: 999px; height: 26px; padding: 0 10px; font-size: 12px; color: var(--ink3); }
.k2-top-r .theme-switch button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.k2-content { padding-bottom: 36px; }
.k2-content > .site-footer { margin-top: 32px; color: var(--ink3); }
.k2-content > .head:first-child h1, .k2-content > h1:first-child { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }

/* ⌘K 찾기 */
dialog.k2-cmd {
  width: 560px; max-width: 92vw; margin: 12vh auto auto; padding: 0;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink);
  box-shadow: 0 32px 80px -16px rgba(10, 12, 30, .45);
}
dialog.k2-cmd::backdrop { background: rgba(10, 12, 24, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.k2-cmd-in { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.k2-cmd-in svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink3); stroke-width: 2; stroke-linecap: round; }
.k2-cmd-in input { flex: 1; height: 32px; padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 16px; }
.k2-cmd-in input:focus { box-shadow: none; }
.k2-cmd ul { max-height: 360px; margin: 0; padding: 8px; list-style: none; overflow-y: auto; }
.k2-cmd li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.k2-cmd li small { color: var(--ink3); font-size: 12px; font-weight: 700; }
.k2-cmd li.on { background: var(--primary-bg); color: var(--primary-ink); }
.k2-cmd li.on small { color: var(--primary-ink); }
.k2-cmd li.none { justify-content: center; color: var(--ink3); cursor: default; }

/* ── 대시보드 묶음 배치(pages/customer/index.pc.php) ── */
.b-row { display: grid; gap: 18px; margin-bottom: 18px; }
.b-hero-row { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); }
.b-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.b-span2 { grid-column: span 2; }
.b-card {
  display: flex; flex-direction: column; min-width: 0; padding: 22px 24px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--card-line);
  box-shadow: var(--shadow-card);
}
.b-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.b-h h2, .b-h h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.025em; }
.b-h h2 small, .b-h h3 small { margin-left: 6px; color: var(--ink3); font-size: 12px; font-weight: 700; }
.b-h a, .b-sub { color: var(--ink3); font-size: 12px; font-weight: 700; }
.b-h a:hover { color: var(--primary-ink); }

.b-hero {
  position: relative; overflow: hidden; display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px;
  padding: 28px 30px; border-radius: 16px; background: var(--card); color: var(--ink);
  border: 1px solid var(--card-line); box-shadow: var(--shadow-card);
}
.b-hero::before { content: none; }
.b-hero > * { position: relative; z-index: 1; }
.b-hero.is-low { border-color: var(--primary-line); }
.b-hero.no-chart { grid-template-columns: 1fr; }
.b-hello { margin: 0 0 14px; font-size: 14px; color: var(--ink2); font-weight: 700; }
.b-hello b { color: var(--ink); font-weight: 700; }
.b-hero small { font-size: 12px; font-weight: 700; color: var(--ink3); }
.b-bal {
  margin: 4px 0 14px; font-size: 44px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink); font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
}
.b-bal em { margin-left: 4px; font-size: 18px; font-style: normal; font-weight: 700; color: var(--ink2); }
.b-nudge {
  margin: 0 0 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--primary-bg); border: 1px solid var(--primary-line);
  color: var(--primary-ink); font-size: 14px; font-weight: 700;
}
.b-charge-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.b-charge-quick a {
  height: 34px; line-height: 32px; padding: 0 13px; border-radius: 8px;
  background: var(--soft); border: 1px solid var(--line);
  color: var(--ink); font-size: 14px; font-weight: 700; transition: all .15s ease;
}
.b-charge-quick a:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.b-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.b-pills a {
  display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--soft); border: 1px solid var(--line); color: var(--ink2); font-size: 12px; font-weight: 700;
}
.b-pills a:hover { border-color: var(--primary-line); color: var(--ink); }
.b-pills b { margin-left: 4px; color: var(--ink); font-weight: 700; }
.b-pills i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--primary); }
.b-pills i.o { background: var(--amber); }
.b-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.b-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--field); transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.b-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b-btn.primary { background: var(--kx-grad); color: #fff; box-shadow: none; }
.b-btn.ghost { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.b-btn.ghost:hover { background: var(--primary-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary-line); }
.b-btn:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.b-btn.primary:hover { background: var(--primary-strong); }

.b-hero-r {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line);
}
.b-hero-r svg { width: 100%; height: 112px; margin-top: 8px; overflow: visible; }
.b-hero-r .ln { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.b-hero-r .fill { fill: var(--primary-bg); stroke: none; }
.b-hero-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink3); font-weight: 700; }

.b-quick ul { margin: 0; padding: 0; list-style: none; }
.b-quick li a {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; margin: 2px -10px; border-radius: 12px;
  transition: background .15s ease;
}
.b-quick li a:hover { background: var(--soft); }
.b-quick li span { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.b-quick li em {
  padding: 3px 9px; border-radius: 8px; background: var(--soft);
  color: var(--ink2); font-size: 12px; font-style: normal; font-weight: 700; white-space: nowrap;
}
.b-quick li a:hover em { background: var(--primary-bg); color: var(--primary-ink); }
.b-quick li > a > svg:last-child { width: 16px; height: 16px; fill: none; stroke: var(--ink3); stroke-width: 2; display: none; }

.b-orders { margin: 0; padding: 0; list-style: none; }
.b-orders li a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line-soft); border-radius: 8px; transition: background .15s; }
.b-orders li a:hover { background: var(--hover); }
.b-orders li:last-child a { border-bottom: 0; }
.b-ring {
  --p: 0; position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 50%; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--track) 0);
}
.b-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--card); }
.b-ring b { position: relative; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.b-o-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.b-o-t b { overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.b-o-t small { color: var(--ink3); font-size: 12px; }
.b-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30px 12px 14px; color: var(--ink3); text-align: center; }
.b-empty svg { width: 34px; height: 34px; fill: none; stroke: var(--ink3); stroke-width: 1.6; opacity: .5; }
.b-empty p { margin: 0; font-size: 14px; color: var(--ink2); font-weight: 700; }

.b-legend { display: flex; gap: 12px; color: var(--ink2); font-size: 12px; font-weight: 700; }
.b-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 4px; background: var(--kx-grad); vertical-align: -1px; }
.b-legend i.p { background: var(--track); }

.b-time { margin: 0; padding: 0; list-style: none; }
.b-time li { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 0 9px 22px; }
.b-time li::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: var(--line-soft); }
.b-time li:first-child::before { top: 50%; } .b-time li:last-child::before { bottom: 50%; }
.b-time li > i { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 3px solid var(--card); border-radius: 50%; background: var(--ink3); box-shadow: 0 0 0 1px var(--line); }
.b-time li.c-blue > i { background: var(--primary); } .b-time li.c-green > i { background: var(--green); } .b-time li.c-orange > i { background: var(--amber); }
.b-time li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.b-time b { overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.b-time small { color: var(--ink3); font-size: 12px; }
.b-time em { font-size: 14px; font-style: normal; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-time em.plus { color: var(--green); }
.b-none { padding: 28px 0 !important; color: var(--ink3); justify-content: center; font-size: 14px; }
.b-none::before { display: none; }

.kd-cal-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; color: var(--ink3); font-size: 12px; }
.kd-cal-note i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.b-m-big { padding: 16px 18px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.b-m-big small, .b-m-grid small { display: block; color: var(--ink3); font-size: 12px; font-weight: 700; }
.b-m-big > b { display: block; margin: 4px 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.b-m-big em, .b-m-grid em { margin-left: 2px; font-size: 14px; font-style: normal; font-weight: 700; color: var(--ink2); }
.b-m-big span { color: var(--ink2); font-size: 12px; }
.b-m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.b-m-grid > div { padding: 12px 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line-soft); }
.b-m-grid b { display: block; margin-top: 4px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 1280px) { .b-hero-row { grid-template-columns: 1fr; } .b-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) {
  .k2-side { width: 76px; padding: 14px 8px; }
  .k2-side .wordmark, .k2-nav a span, .k2-group, .k2-wallet { display: none; }
  .k2-nav a { justify-content: center; }
  .b-hero { grid-template-columns: 1fr; }
  .b-g3 { grid-template-columns: 1fr; }
  .b-span2 { grid-column: auto; }
}

/* ── 카드 ── */
.card, .stat, .oc-card, .form-wrap {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--shadow-card);
}
.card { padding: 22px 24px; }
.card > .cardtitle:first-child, .card > .cardhead:first-child, .card > .head.sm:first-child {
  margin: 0 0 14px; padding: 0; background: transparent; border: 0; border-radius: 0;
}
.card > .cardhead:first-child .cardtitle, .card > .cardtitle:first-child, .cardtitle { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.cardtitle em { font-style: normal; color: var(--primary-ink); }
.card-foot { margin: 20px -24px -22px; padding: 16px 24px; background: var(--soft); border-top: 1px solid var(--line-soft); border-radius: 0 0 16px 16px; }
.cardhead a { color: var(--ink3); font-size: 12px; font-weight: 700; }
.cardhead a:hover { color: var(--primary-ink); }
.gap { margin-bottom: 18px; }
.stat { padding: 20px 22px; }
.stat small { color: var(--ink3); font-size: 14px; font-weight: 700; }
.stat strong { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }

/* ── 버튼 ── */
.btn {
  height: 44px; line-height: 44px; padding: 0 20px; border-radius: 8px;
  background: var(--primary); color: #fff; font-weight: 700; box-shadow: none;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.btn:hover:not(:disabled) { background: var(--primary-strong); }
.btn.line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); }
.btn.line:hover:not(:disabled) { color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-bg); }
.btn.sm { height: 36px; line-height: 36px; padding: 0 14px; border-radius: 8px; font-size: 14px; }
.btn.danger { background: var(--red); }
.btn.line.danger { background: var(--surface); color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.btn.navy { background: var(--kx-navy); }
.link { color: var(--primary-ink); }
.more { color: var(--ink3); font-weight: 700; text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--ink); }
table.t .btn:not(.line) { background: var(--primary-bg); color: var(--primary-ink); }
table.t .btn:not(.line):hover { background: var(--primary); color: #fff; }

/* ── 입력 ── */
input, select, textarea {
  height: 42px; border-radius: 8px; background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--line); padding: 0 13px; font-size: 14px;
  transition: background .15s ease, box-shadow .15s ease;
}
textarea { padding: 10px 13px; }
input:focus, select:focus, textarea:focus {
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--primary), 0 0 0 3px var(--primary-bg);
}
input[readonly] { background: var(--soft); color: var(--ink2); }
label.check input { box-shadow: none; background: none; width: 16px; height: 16px; accent-color: var(--primary); }
label { color: var(--ink2); font-weight: 700; font-size: 14px; }
.hint { color: var(--ink3); font-size: 12px; }

/* ── 꼬리표·알림 (퍼플 시스템으로 통일) ── */
.tag { height: auto; line-height: 1.5; padding: 3px 8px; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; }
.tag-info { background: var(--gray-bg); color: var(--ink2); }
.tag-primary { background: var(--primary-bg); color: var(--primary-ink); }
.tag-success { background: var(--green-bg); color: var(--green-ink); }
.tag-warning { background: var(--amber-bg); color: var(--amber); }
.tag-danger { background: var(--red-bg); color: var(--red-ink); }
.err, .ok, .warn, .info, .msg.err, .msg.ok, .msg.warn { border-radius: 12px; padding: 12px 15px; font-weight: 700; font-size: 14px; }

/* ── 표 ── */
table.t th { padding: 11px 14px; background: var(--soft); color: var(--ink2); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); }
table.t th:first-child { border-radius: 8px 0 0 0; } table.t th:last-child { border-radius: 0 8px 0 0; }
table.t td { padding: 14px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
table.t tbody tr:hover td { background: var(--hover); }
.pager span.cur { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 8px; }
.pager a { border-radius: 8px; }
.tabs a { height: 34px; line-height: 34px; padding: 0 14px; border: 0; box-shadow: none; border-radius: 8px; background: var(--soft); color: var(--ink2); font-size: 14px; font-weight: 700; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--primary); color: #fff; }
.filter { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.filter input, .filter select { height: 36px; background: var(--surface); }

/* ── 확인창 ── */
dialog.box { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: 0 24px 60px rgba(10, 12, 30, .35); }
dialog.box::backdrop { background: rgba(10, 12, 24, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* ── 상품 아이콘(logic/products.php svc_icon) ── */
.svc-icon { flex: none; width: 36px; height: 36px; }
.svc-icon.sm { width: 30px; height: 30px; }
.svc-icon.m { width: 42px; height: 42px; }
.svc-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.stat-pic { position: absolute; right: 18px; top: 18px; }

/* ── 네이버 채널 표지(logic/products.php naver_tag) — N 아이콘 + '네이버 플레이스/지도'. 네이버 초록은 이 표지에만 쓴다(초록 = 성공 상태와 섞지 않게 버튼·상태엔 안 씀) ── */
:root { --naver: #03C75A; --naver-ink: #00863D; --naver-soft: rgba(3, 199, 90, .09); }
.nv-tag {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: middle;
  height: 24px; padding: 0 9px 0 4px; border-radius: 999px;
  background: var(--naver-soft); color: var(--naver-ink); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.nv-tag-ico { width: 18px; height: 18px; flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) { --naver-ink: #4BE08F; --naver-soft: rgba(3, 199, 90, .16); } }
:root[data-theme=dark] { --naver-ink: #4BE08F; --naver-soft: rgba(3, 199, 90, .16); }

/* ── 서비스(미션 목록) 카드 쇼케이스(pages/customer/services.pc.php · .m.php) ── */
.svc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.svc-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-chips a {
  height: 36px; line-height: 36px; padding: 0 15px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink2); font-size: 14px; font-weight: 700;
  transition: all .15s ease;
}
.svc-chips a:hover { border-color: var(--primary-line); color: var(--ink); }
.svc-chips a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-search { display: flex; gap: 8px; align-items: center; }
.svc-search input { width: 230px; height: 38px; background: var(--card); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.svc-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px 24px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--card-line);
  box-shadow: var(--shadow-card); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.svc-card:hover { transform: translateY(-2px); border-color: var(--primary-line); box-shadow: var(--shadow-panel); }
.svc-card-head { display: flex; align-items: center; gap: 13px; }
.svc-card-title { flex: 1; min-width: 0; }
.svc-card-title h3, .svc-card-title h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.svc-card-meta { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.svc-card-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.svc-card-foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.svc-card-price small { display: block; font-size: 12px; color: var(--ink3); font-weight: 700; }
.svc-card-price strong { display: block; font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.svc-card-go {
  display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 20px; border-radius: 8px;
  background: var(--primary-bg); color: var(--primary-ink); font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: background .15s, color .15s;
}
.svc-card:hover .svc-card-go { background: var(--primary); color: #fff; }
.svc-m-cards { display: flex; flex-direction: column; gap: 12px; }
.svc-m-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow-card);
}
.svc-m-card:active { transform: scale(.99); }
.svc-m-top { display: flex; align-items: center; gap: 12px; }
.svc-m-top h3, .svc-m-top h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.svc-m-top p { margin: 3px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.45; }
.svc-m-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.svc-m-foot strong { font-size: 16px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.svc-m-foot span { padding: 5px 12px; border-radius: 8px; background: var(--primary-bg); color: var(--primary-ink); font-size: 12px; font-weight: 700; }

.charge-deposit { border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.quick .btn, .quick .btn:not(.line) { background: var(--soft); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.quick .btn:hover { background: var(--primary-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary-line); }

/* ── 포인트 잔액 카드(PC) ── */
.points-hero {
  position: relative; overflow: hidden; padding: 24px 26px; border-radius: 16px;
  background: var(--kx-grad); color: #fff; border: 0; box-shadow: none;
}
.points-hero::after {
  content: ''; position: absolute; right: -40px; top: -50px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255, 255, 255, .14); pointer-events: none;
}
.points-hero small { display: block; font-size: 14px; color: rgba(255, 255, 255, .86); font-weight: 700; }
.points-hero strong { display: block; margin-top: 6px; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.bank-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 16px; padding: 12px 14px; border-radius: 12px;
  background: var(--primary-bg); border: 1px solid var(--primary-line);
  color: var(--primary-ink); font-size: 14px; font-weight: 700;
}

/* ── 주문 상세 그림·안내 ── */
.oc-path, .oc-dot { stroke: var(--primary); }
.oc-prog, .m-prog { background: var(--track); }
.oc-prog i, .m-prog i { background: var(--kx-grad); }
.oc-bar i { background: var(--track); border: 0; }
.oc-bar:last-child i { background: var(--kx-grad); }
.pay-guide-card, .dash-pending { background: var(--primary-bg); border: 1px solid var(--primary-line); border-radius: 16px; }
.pos, .up { color: var(--red); font-weight: 700; }
.neg, .down { color: var(--primary-ink); font-weight: 700; }
.oc-chip.up { background: var(--red-bg); color: var(--red-ink); }

/* ── 대시보드 차트·달력·KPI ── */
.kd-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.kd-g4 { grid-template-columns: repeat(4, 1fr); } .kd-g3 { grid-template-columns: repeat(3, 1fr); }
.kd-span2 { grid-column: span 2; }
.kd-card { display: flex; flex-direction: column; padding: 20px 22px; border: 1px solid var(--card-line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); min-width: 0; }
.kd-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.kd-h h3 { margin: 0; font-size: 16px; font-weight: 700; }
.kd-h h3 em { font-style: normal; color: var(--primary-ink); }
.kd-h .upd { color: var(--ink3); font-size: 12px; }
.kd-kpi { position: relative; overflow: hidden; }
.kd-kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--ink2); font-size: 14px; font-weight: 700; }
.kd-kpi .lbl i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; font-style: normal; }
.kd-kpi .lbl i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kd-kpi .c-blue { background: var(--primary-bg); color: var(--primary-ink); }
.kd-kpi .c-green { background: var(--green-bg); color: var(--green-ink); }
.kd-kpi .c-orange { background: var(--amber-bg); color: var(--amber); }
.kd-kpi .c-red { background: var(--red-bg); color: var(--red-ink); }
.kd-kpi .val { margin: 12px 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kd-kpi .val small { margin-left: 2px; font-size: 14px; font-weight: 700; }
.kd-kpi .cmp { color: var(--ink2); font-size: 12px; }
.kd-spark { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.kd-spark span { width: 6px; min-height: 3px; border-radius: 4px; background: var(--primary-line); }
.kd-spark span:last-child { background: var(--primary); }
.kd-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.kd-tabs a { padding: 5px 12px; border-radius: 8px; background: var(--soft); color: var(--ink2); font-size: 12px; font-weight: 700; }
.kd-tabs a.on { background: var(--primary); color: #fff; }
.kd-list { margin: 0; padding: 0; list-style: none; }
.kd-list li { display: flex; align-items: center; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.kd-list li:last-child { border-bottom: 0; }
.kd-list .t { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.kd-list .t small { margin-left: 6px; color: var(--ink3); font-size: 12px; }
.kd-list .d { color: var(--ink3); font-size: 12px; white-space: nowrap; }
.kd-list .v { font-weight: 700; white-space: nowrap; }
.kd-list a.t:hover { color: var(--primary-ink); }
.kd-list .empty { justify-content: center; padding: 24px 0; color: var(--ink3); border: 0; }
.kd-more { margin-top: auto; padding-top: 12px; }
.kd-more a { display: block; padding: 9px; border-radius: 12px; background: var(--soft); color: var(--ink2); font-size: 12px; font-weight: 700; text-align: center; }
.kd-more a:hover { color: var(--primary-ink); background: var(--primary-bg); }
.kd-prog { height: 6px; margin-top: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.kd-prog i { display: block; height: 100%; border-radius: 999px; background: var(--kx-grad); }
.kd-cal-h { display: flex; align-items: center; justify-content: center; margin-bottom: 6px; padding: 7px 10px; border-radius: 8px; background: var(--soft); font-size: 14px; font-weight: 700; }
.kd-cal { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; text-align: center; font-size: 12px; }
.kd-cal .w { padding: 6px 0; color: var(--ink3); font-size: 12px; font-weight: 700; }
.kd-cal .w:first-child { color: var(--red); } .kd-cal .w:nth-child(7) { color: var(--primary-ink); }
.kd-cal .d { position: relative; width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; line-height: 30px; font-weight: 700; }
.kd-cal .d.o { color: var(--ink3); opacity: .35; } .kd-cal .d.sun { color: var(--red); } .kd-cal .d.sat { color: var(--primary-ink); }
.kd-cal .d.today { background: var(--kx-grad); color: #fff; font-weight: 700; }
.kd-cal .d.ev::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--primary); }
.kd-cal .d.today.ev::after { background: #fff; }
.kd-chart { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 190px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.kd-chart .b { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; min-width: 0; }
.kd-chart .b span { flex: 1; max-width: 22px; min-height: 3px; border-radius: 8px 8px 0 0; background: var(--kx-grad); }
.kd-chart .b span.prev { background: var(--track); }
.kd-chart .b:hover .tip { display: block; }
.kd-chart .tip { display: none; position: absolute; top: -6px; left: 50%; z-index: 3; padding: 4px 8px; border-radius: 8px; background: #18181B; color: #fff; font-size: 12px; font-style: normal; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.kd-xl { display: flex; gap: 6px; padding: 6px 4px 0; }
.kd-xl span { flex: 1; min-width: 0; color: var(--ink3); font-size: 12px; text-align: center; white-space: nowrap; }
.kd-legend { display: flex; gap: 12px; color: var(--ink2); font-size: 12px; }
.kd-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 4px; vertical-align: -1px; }
.kd-rank { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 8px; background: var(--soft); color: var(--ink2); font-size: 12px; font-weight: 700; flex: none; }
.kd-list li:nth-child(-n+3) .kd-rank { background: var(--primary); color: #fff; }
@media (max-width: 1280px) { .kd-g4 { grid-template-columns: repeat(2, 1fr); } .kd-g3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .kd-g4, .kd-g3 { grid-template-columns: 1fr; } .kd-span2 { grid-column: auto; } }

/* ── 로그인·가입 PC (스플릿 브랜드 쇼케이스 + 깔끔한 폼 카드) ── */
.auth { background: var(--page); }
.auth::before, .auth::after { display: none; }
.auth-split-shell {
  display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; width: 100%;
}
.auth-brand-pane {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 48px; color: #fff;
  background: #18181B;
}
.auth-brand-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-brand-logo img { display: block; height: 34px; width: auto; }
.auth-brand-back {
  display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 700; transition: background .15s;
}
.auth-brand-back:hover { background: rgba(255, 255, 255, .18); }
.auth-brand-mid { margin: auto 0; padding: 36px 0; max-width: 440px; }
.auth-brand-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px; font-weight: 700; color: #FFE342; margin-bottom: 18px;
}
.auth-brand-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.auth-brand-mid h1 {
  margin: 0 0 14px; font-size: 32px; font-weight: 700;
  line-height: 1.24; letter-spacing: -0.035em; color: #fff;
}
.auth-brand-mid p { margin: 0 0 28px; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .76); }
.auth-brand-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-brand-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .9); }
.auth-brand-list li i {
  flex: none; width: 26px; height: 26px; border-radius: 8px; margin-top: 1px;
  display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #FFE342; font-style: normal; font-weight: 700; font-size: 12px;
}
.auth-brand-list li small { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .64); font-weight: 500; }
.auth-brand-foot { font-size: 12px; color: rgba(255, 255, 255, .52); }

.auth-form-pane {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--page); padding: 24px 32px;
}
.auth-form-top { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.auth-form-top .auth-mini-logo { display: none; margin-right: auto; }
.auth-form-top .auth-mini-logo img { height: 28px; width: auto; display: block; }
.auth-form-top .theme-switch { border-radius: 999px; padding: 3px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.auth-form-top .theme-switch button { border-radius: 999px; height: 26px; padding: 0 10px; font-size: 12px; }
.auth-form-top .theme-switch button.on { background: var(--primary); color: #fff; box-shadow: none; }

.auth-col { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.auth-box { width: 100%; max-width: 480px; margin: auto; padding: 28px 0 20px; }
.auth-logo-img { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-logo-img img { height: 34px; width: auto; }
.auth-logo-img .logo-dark, .auth-mini-logo .logo-dark, .m-auth-logo .logo-dark, .m-bar-logo .logo-dark { display: none; }
:root[data-theme="dark"] .auth-logo-img .logo-light,
:root[data-theme="dark"] .auth-mini-logo .logo-light,
:root[data-theme="dark"] .m-auth-logo .logo-light,
:root[data-theme="dark"] .m-bar-logo .logo-light { display: none; }
:root[data-theme="dark"] .auth-logo-img .logo-dark,
:root[data-theme="dark"] .auth-mini-logo .logo-dark,
:root[data-theme="dark"] .m-auth-logo .logo-dark,
:root[data-theme="dark"] .m-bar-logo .logo-dark { display: block; }

.form-wrap {
  border: 1px solid var(--card-line); border-radius: 16px; padding: 38px 36px 34px;
  box-shadow: var(--shadow-panel); max-width: 440px;
}
.form-wrap.wide { max-width: 480px; }
.form-wrap .title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; text-align: left; }
.form-wrap .subtitle { margin: 6px 0 0; text-align: left; font-size: 14px; color: var(--ink2); }
.form-wrap > form { margin-top: 24px; }
.form-wrap input:not([type=checkbox]):not([type=file]) {
  height: 48px; border-radius: 12px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px;
}
.form-wrap input:not([type=checkbox]):not([type=file]):focus {
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--primary), 0 0 0 3px var(--primary-bg);
}
.form-wrap .btn.full, .reg-foot .btn:not(.line), .reg-ox .btn:not(.line) {
  border-radius: 8px; background: var(--primary);
  box-shadow: none;
}
.form-wrap .btn.full { height: 52px; font-size: 16px; font-weight: 700; }
.form-wrap .btn.full:hover, .reg-foot .btn:not(.line):hover, .reg-ox .btn:not(.line):hover { background: var(--primary-strong); }
.theme-corner .theme-switch { background: var(--card); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); }
.theme-corner .theme-switch button { color: var(--ink2); border-radius: 999px; height: 26px; font-size: 12px; }
.theme-corner .theme-switch button.on { background: var(--primary); color: #fff; box-shadow: none; }

@media (max-width: 960px) {
  .auth-split-shell { grid-template-columns: 1fr; }
  .auth-brand-pane { display: none; }
  .auth-form-pane { padding: 18px 20px; }
  .auth-form-top .auth-mini-logo { display: block; }
}

/* ── 모바일 공통 ── */
body.m { --page: var(--pc-page); }
html:has(body.m) { background: var(--pc-page); }
body.m .m-bar {
  background: color-mix(in srgb, var(--page) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); color: var(--ink);
}
body.m .m-bar h1, body.m .m-bar h1.m-wordmark, body.m .m-bar .wordmark { color: var(--ink); }
body.m .m-bar .wordmark em { color: var(--primary); opacity: 1; }
body.m .m-bar .m-back svg { stroke: var(--ink); }
.m-bar-logo, .m-auth-logo { display: inline-flex; align-items: center; flex: 1; min-width: 0; }
.m-bar-logo img, .m-auth-logo img { display: block; height: 34px; width: auto; }
body.m .m-bar .theme-switch { background: var(--card); border-radius: 999px; padding: 2px; box-shadow: inset 0 0 0 1px var(--line); }
body.m .m-bar .theme-switch button { color: var(--ink3); border-radius: 999px; height: 24px; padding: 0 9px; font-size: 12px; }
body.m .m-bar .theme-switch button.on { background: var(--primary); color: #fff; box-shadow: none; }
body.m .m-bar .m-bal {
  background: var(--primary-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary-line); font-size: 12px; gap: 4px; padding: 0 12px;
  height: 32px; border-radius: 8px; font-variant-numeric: tabular-nums;
}
body.m .m-bar .m-bal-lbl { font-size: 12px; font-weight: 700; opacity: .9; font-family: var(--font-sans); }

.m-card, .m-list { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; box-shadow: var(--shadow-card); }
.m-hero, .dash-bal { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.m-btn:not(.line):not(.danger) { background: var(--primary); box-shadow: none; border-radius: 8px; }
.m-btn.line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--field); border-radius: 8px; }
.m-actions a i, .m-actions a i.i3d { width: auto; height: auto; background: transparent; box-shadow: none; }
.m-ico3d { width: auto; height: auto; background: transparent; }

/* 모바일 하단 떠 있는 탭 */
body.m .m-tabs {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr;
  left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 64px; padding: 6px; border: 1px solid var(--card-line); border-radius: 16px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px -12px rgba(20, 12, 60, .28);
}
body.m .m-tabs::before {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(82px + env(safe-area-inset-bottom)); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--page) 30%);
}
body.m .m-tabs a { border-radius: 16px; transition: background .15s, color .15s; }
body.m .m-tabs a.on { background: none; color: var(--ink); font-weight: 700; }
body.m .m-page { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* 모바일 대시보드 히어로 */
body.m .b-card { margin-bottom: 14px; padding: 18px; border-radius: 16px; }
/* 휴대폰 대시보드 첫 카드: PC 와 같은 흰 카드(파랑은 버튼·숫자에만 — DESIGN.md '파랑 하나 규칙') */
body.m .m-b-hero {
  display: block; margin-bottom: 14px; padding: 20px; border-radius: 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
body.m .m-b-hero::before { display: none; }
body.m .m-b-hero .b-hello { margin-bottom: 4px; color: var(--ink2); }
body.m .m-b-hero .b-hello b { color: var(--ink); }
body.m .m-b-hero .b-bal { font-size: 32px; margin: 2px 0 12px; color: var(--ink); }
body.m .m-b-hero .b-bal em { color: var(--ink2); }
body.m .m-b-hero .b-pills { margin: 0 0 10px; }
body.m .m-b-spark { display: block; width: 100%; height: 54px; margin: 4px 0 14px; }
body.m .m-b-spark .ln { fill: none; stroke: var(--primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
body.m .m-b-spark .fill { fill: var(--primary-bg); }
body.m .m-b-hero .b-acts { margin-top: 14px; }
body.m .m-b-hero .b-btn { flex: 1; justify-content: center; height: 52px; border-radius: 8px; font-size: 16px; }
body.m .m-chips a.on { background: var(--kx-grad); color: #fff; }
body.m .points-bal {
  position: relative; overflow: hidden; border: 0; border-radius: 16px;
  background: var(--kx-grad); color: #fff; box-shadow: none;
}
body.m .points-bal small { color: rgba(255, 255, 255, .86); }
body.m .points-bal strong { color: #fff; font-variant-numeric: tabular-nums; }
body.m .points-bal::after { content: ''; position: absolute; right: -40px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
body.m .m-auth-bar { background: color-mix(in srgb, var(--page) 90%, transparent); border-bottom: 1px solid var(--line); }
body.m .m-auth-acts { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
body.m .m-auth-link { padding: 6px 8px; font-size: 14px; font-weight: 700; color: var(--ink2); white-space: nowrap; }
body.m .m-auth-join { background: var(--primary) !important; color: #fff !important; box-shadow: none !important; padding: 6px 12px !important; }
body.m .m-foot {
  margin: 32px -16px calc(-100px - env(safe-area-inset-bottom)); padding: 22px 16px calc(128px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--soft); color: var(--ink3);
}
body.m .m-foot-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 12px; font-size: 12px; font-weight: 700; color: var(--ink2); }
body.m .m-foot .biz-info { margin: 4px 0 12px; }
body.m .m-foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink3); }
.iru-fab.m-fab { width: 48px; height: 48px; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 35; }
.iru-fab.m-fab svg { width: 24px; height: 24px; }

/* 계좌 복사 + 입금 확인 시간 안내 */
.bank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bank-copy {
  flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--primary-line);
  color: var(--primary-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.bank-copy.ok { background: var(--green-bg); color: var(--green-ink); box-shadow: inset 0 0 0 1px var(--green-line); }
.bank-eta { margin: 8px 0 14px; font-size: 12px; line-height: 1.55; color: var(--ink2); }


/* ── 관리자 틀(layouts/admin.php) — k2 골격 유지 ── */
.k2-role { margin-left: auto; padding: 2px 8px; border-radius: 8px; background: var(--soft); color: var(--ink2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.k2-nav a b.warn { background: var(--amber); }
.k2-todo ul { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; }
.k2-todo li a { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink2); font-size: 12px; font-weight: 700; }
.k2-todo li a:hover { color: var(--primary-ink); }
.k2-todo li b { color: var(--amber); }
.k2-todo:not(.has) strong { color: var(--ink3); }
.k2-todo:not(.has) span { color: var(--green); }
.k2-admin .k2-logo .wordmark { font-size: 16px; }
.a-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.a-kpis .kd-kpi { justify-content: space-between; padding: 18px 20px; color: var(--ink); }
.a-kpis .kd-kpi:hover { box-shadow: 0 0 0 1px var(--primary), var(--shadow-card); }
.a-kpis .kd-kpi .val { margin: 14px 0 0; }
.a-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.b-h h2 em, .b-h h3 em { margin-left: 4px; font-style: normal; color: var(--ink3); }
.b-h h2 em.todo, .b-h h3 em.todo { color: var(--amber); }
@media (max-width: 1280px) { .a-g2 { grid-template-columns: 1fr; } }
.k2 .kv { border: 1px solid var(--card-line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow-card); }
.k2 .kv > * { padding: 13px 18px; border-bottom-color: var(--line-soft); }
.k2 .kv > dt { background: var(--soft); }
.k2-title { display: flex; align-items: center; min-height: 44px; margin-bottom: 18px; }
.k2-title h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.k2-title + .head.tools { margin-top: -62px; margin-left: auto; width: max-content; max-width: 70%; }

/* PC 머리 회원 메뉴(layouts/customer.php .iru-me) — 이름을 누르면 내 정보·비밀번호·API·로그아웃 */
.iru-me { position: relative; }
.iru-me summary { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; }
.iru-me summary::-webkit-details-marker { display: none; }
.iru-me summary:hover, .iru-me[open] summary { background: var(--soft); }
.iru-me summary span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.iru-me svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.iru-me-caret { color: var(--ink3); transition: transform .15s; }
.iru-me[open] .iru-me-caret { transform: rotate(180deg); }
.iru-me-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 12px 30px rgba(16, 24, 40, .14); }
.iru-me-menu a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.iru-me-menu a:hover { background: var(--soft); }
.iru-me-menu a.danger { margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; color: var(--red); }

/* ── 공용 CSS(php/lib/public: base·ui·m·auth-box — 팜·공급도 씀)에서 새어 들어오는 기준 밖 값 덮어쓰기 ──
   기준은 php/sales/DESIGN.md: 글자 12·14·16·18·20·22·26·32·44·60, 굵기 400·500·700, 모서리 4·8·12·16·24·40.
   확인: 화면을 띄워 계산된 값으로 잰다(scripts/sales-design.py 는 판매 CSS 원본만 본다). */
.m-tabs a { font-size: 12px; font-weight: 500; }
.m-sec h2 { font-size: 18px; }
.m-title, .form-wrap .title, body.m dialog.box h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
body.m dialog.box h2 { font-size: 20px; }
.m-btn.sm, .m-fold > summary, .m-empty, .form-wrap .subtitle, body.m dialog.box p { font-size: 14px; }
.m-btn.sm, .m-quick button, body.m .pager a, body.m .pager span.cur, body.m .err, body.m .ok, body.m .warn, body.m .info, body.m .msg, .form-wrap .msg { border-radius: 8px; }
.m-field input:not([type=checkbox]):not([type=radio]), .m-field select, .m-field textarea { border-radius: 8px; }
.m-chips a { border-radius: 8px; }
.m-hero strong, .oc-big strong, .pay-guide-amt strong, .receipt h2, .receipt dl > div.total dd, .ask-rows > div.total dd, .m-bar h1.m-wordmark { font-weight: 700; }
.m-hero strong { font-size: 32px; }
.m-bar h1.m-wordmark { font-size: 20px; }
.m-actions a, .m-s, .m-note, .m-field .m-hint, .auth-field-hint, .auth-field-inline, .form-wrap .hint, .auth-footer-muted, .oc-sub, .oc-note, .oc-empty, .pay-guide-amt small, .dash-pending-go { font-size: 14px; }
.tag, .oc-chip { font-size: 12px; }
.oc-head h2 { font-size: 16px; }
.oc-bar span { font-size: 12px; }
.theme-switch { border-radius: 8px; }
.theme-switch button { border-radius: 4px; font-size: 12px; }
.tag, .oc-chip { border-radius: 4px; }
.m-t, .m-kv dd, .receipt dd, .ask-rows dd, .pay-guide-rows dd, .m-sec a, .m-field > label:not(.m-check), .auth-footer a, .auth-footer button, .m-link, .form-wrap .btn.full { font-weight: 700; }
.m-chips a, .m-fold > summary, .tabs a, .tabs a.on, body.m .pager span.cur { font-weight: 700; }
pre.code, pre.m-code, .m-code { font-size: 12px; border-radius: 8px; }
body.m h2.title { font-size: 26px; }

/* ── 로그인·가입(PC): 고객 화면 틀 안 가운데 카드(layouts/auth.php) ── */
/* 연한 파랑 판(랜딩 첫 화면과 같은 hero 색) 위에 떠 있는 흰 카드 하나 */
.auth-page { max-width: 1200px; margin: 32px auto 80px; padding: 64px 24px 72px; border-radius: 40px; background: linear-gradient(180deg, var(--hero-from), var(--hero-to)); }
.auth-page--center {
  margin-top: auto; margin-bottom: auto; min-height: min(720px, calc(100vh - 200px));
  display: flex; align-items: center; justify-content: center;
  padding-top: 32px; padding-bottom: 48px; border-radius: 0; background: transparent;
}
.auth-page--center .auth-box {
  border: 0; box-shadow: none; background: transparent; padding: 0 8px 8px;
}
:root[data-theme="dark"] .auth-page--center .auth-box { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-page--center .auth-box { box-shadow: none; } }
.auth-page .auth-box { width: 100%; max-width: 480px; margin: 0 auto; padding: 40px 40px 32px; border: 1px solid var(--card-line); border-radius: 24px; background: var(--surface); box-shadow: 0 12px 30px rgba(20, 33, 64, .10); }
.auth-page.wide .auth-box { max-width: 640px; }
.auth-page .auth-mark { display: block; width: 48px; height: 48px; margin: 0 auto 16px; }
.auth-page .form-wrap { width: 100%; max-width: none; }
.auth-page .form-wrap .title, .auth-page .form-wrap .subtitle { text-align: center; }
.auth-page .form-wrap .subtitle { text-wrap: balance; word-break: keep-all; }
.auth-page .auth-footer { gap: 0; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.auth-page--center .auth-footer { border-top: 0; padding-top: 0; }
.auth-page .auth-footer a { padding: 4px 12px; }
.auth-page .auth-footer a + a::before { content: ''; display: inline-block; width: 1px; height: 12px; margin: 0 12px 0 -12px; background: var(--line); vertical-align: middle; }
:root[data-theme="dark"] .auth-page .auth-box { box-shadow: 0 12px 30px rgba(0, 0, 0, .40); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-page .auth-box { box-shadow: 0 12px 30px rgba(0, 0, 0, .40); } }
@media (max-width: 720px) { .auth-page { padding: 40px 16px 48px; border-radius: 24px; } .auth-page .auth-box { padding: 32px 24px 24px; } }
.auth-page .form-wrap { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.m-foot-tools { display: flex; }

/* 대시보드: 충전 대기 줄(index.pc.php .b-wait) — 대기는 회색 */
.b-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--ink); font-size: 14px; }
.b-wait b { font-size: 16px; }
.b-wait span:last-child { color: var(--ink2); }
.tag-warning { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
/* 빈 목록: 무엇이 보일지 + 다음 동작(DESIGN.md 빈 화면) */
.empty .empty-t, .m-empty .empty-t { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.empty .empty-s, .m-empty .empty-s { margin: 0 0 16px; font-size: 14px; color: var(--ink2); }
td.empty { padding: 40px 16px !important; text-align: center; }
.quick.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 카드 안 묶음은 선 없이 바탕색으로(카드 안 카드 금지 — DESIGN.md Cards) */
.order-help, .charge-deposit, .card .filter, form.inline.filter { border: 0 !important; }
.ox-pay .ox-warn { border: 0; }
.card p.pre { max-width: 72ch; }
/* 보유 포인트 카드: 파랑 면 대신 흰 카드 + 파랑 숫자(핵심 숫자 하나만 파랑) */
.points-hero, body.m .points-bal { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: none !important; }
.points-hero::after, body.m .points-bal::after { display: none !important; }
.points-hero small, body.m .points-bal small { color: var(--ink2) !important; }
.points-hero strong, body.m .points-bal strong { color: var(--primary-ink) !important; }
/* 충전 대기 카드: 흰 카드 + 보통 선. 주황은 쓰지 않는다(대기는 회색) */
.pay-guide-card, .dash-pending { background: var(--surface); border-color: var(--line); }
.pay-guide-amt strong { color: var(--ink); }
body.iru .charge-st.warning, body.m .charge-st.warning { color: var(--ink2); }
.empty .btn, .m-empty .m-btn { background: var(--primary) !important; color: #fff !important; }
.tag-warning, .charge-st.warning { color: var(--amber); }

/* 히어로 배너(pages/customer/partials/page-banner.php) — 메인·주문하기·단가표 공용. 장들은 한 칸에 겹쳐 놓아 높이는 가장 긴 장을 따른다(넘겨도 높이가 안 튄다). */
.pg-hero-box { margin: 0 0 24px; }
.pg-hero { position: relative; display: grid; min-height: clamp(260px, 33vw, 400px); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: linear-gradient(90deg, #f6f2fc, #ebe3f8); }   /* 메인 넘김 배너와 같은 연보라(그림 배경색) */
:root[data-theme="dark"] .pg-hero { background: linear-gradient(#18181B, #09090B); }
.pg-hero-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px clamp(28px, 8vw, 112px) 56px; opacity: 1; transition: opacity .4s ease; }
.pg-hero-slide[hidden] { display: flex; visibility: hidden; opacity: 0; }
.pg-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.4vw, 20px); min-width: 0; }
.pg-hero-copy h2 { margin: 0; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; word-break: keep-all; text-wrap: balance; color: var(--ink-strong); }
.pg-hero-copy p { margin: 0; font-size: clamp(16px, 1.55vw, 22px); line-height: 1.5; letter-spacing: -0.02em; word-break: keep-all; text-wrap: balance; color: var(--ink2); }
.pg-hero-box.has-tabs .pg-hero-slide { padding-bottom: 40px; }
.pg-hero-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pg-hero-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border: 0; border-radius: 8px; background: var(--primary); color: #fff; font: inherit; font-size: 16px; font-weight: 700; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s; }
.pg-hero-btn:hover { background: var(--primary-strong); }
.pg-hero-btn.line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pg-hero-btn.line:hover { background: var(--surface); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary); }
.pg-hero-art { flex: none; width: clamp(140px, 21vw, 300px); height: clamp(140px, 21vw, 300px); object-fit: contain; }
.pg-hero-nav { position: absolute; z-index: 1; right: 24px; bottom: 16px; display: flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); }
.pg-hero-nav button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.pg-hero-nav button:hover { background: var(--soft); color: var(--ink); }
.pg-hero-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pg-hero-count { min-width: 36px; text-align: center; font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.pg-hero-count b { color: var(--ink); font-weight: 700; }
/* 메인: 판 아래 장 제목 탭 */
.pg-hero-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pg-hero-tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--soft); color: var(--ink2); font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.pg-hero-tabs button:hover { color: var(--ink); }
.pg-hero-tabs button[aria-selected="true"] { background: var(--primary-bg); color: var(--primary-ink); box-shadow: inset 0 0 0 1px var(--primary-line); }
/* 주문하기: 메인 넘김 배너와 같은 높이·글자(크기 토큰 --hero-*, 이 파일 끝). 폭은 감싸는 .hero-wide 가 메인 배너 폭으로 넓힌다 */
.pg-hero-box.is-main .pg-hero { min-height: var(--hero-min-h); border-radius: 24px; }
.pg-hero-box.is-main .pg-hero-slide { position: relative; padding: var(--hero-pad-y) var(--hero-pad-x); }
.pg-hero-box.is-main .pg-hero-copy { position: relative; z-index: 1; gap: var(--hero-copy-gap); max-width: 38em; }
.pg-hero-box.is-main .pg-hero-copy :is(h1, h2) { margin: 0; font-size: var(--hero-title); line-height: 1.25; font-weight: 700; color: var(--ink-strong); word-break: keep-all; text-wrap: balance; }
.pg-hero-kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--hero-kicker, 14px); font-weight: 700; color: var(--ink2); }
.pg-hero-kicker .svc-icon, .pg-hero-kicker .ch-tag-ico { width: 24px; height: 24px; }
.pg-hero-kicker .ch-tag { display: inline-flex; align-items: center; gap: 8px; }
.pg-hero-box.is-main .pg-hero-copy p { font-size: var(--hero-body); line-height: 1.55; }
.pg-hero-box.is-main .pg-hero-nav { bottom: 16px; right: 24px; }
.pg-hero-box.is-main .pg-hero-slide:has(.pg-hero-bg)::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(243, 238, 251, .96) 0%, rgba(243, 238, 251, .72) 48%, rgba(243, 238, 251, 0) 78%); }   /* 메인 넘김 배너(home2.css catalog-hero--studio::after)와 같은 왼쪽 덮개 */
.pg-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; pointer-events: none; }   /* 넓은 그림 배경(메인 넘김 배너와 같은 짜임) */
@media (max-width: 720px) {   /* 휴대폰: 본문 폭 그대로, 그림은 오른쪽 60%, 글자는 왼쪽(겹치지 않게) */
  .pg-hero-box.is-main .pg-hero { min-height: 0; }
  .pg-hero-box.is-main .pg-hero-slide { min-height: 220px; padding: 28px 20px; }
  .pg-hero-box.is-main .pg-hero-copy { max-width: 56%; }
  .pg-hero-box.is-main .pg-hero-slide:has(.pg-hero-bg)::after { content: none; }
  .pg-hero-box.is-main .pg-hero-copy :is(h1, h2) { font-size: 22px; }
  .pg-hero-box.is-main .pg-hero-copy p { font-size: 16px; }
  .pg-hero-box.is-main .pg-hero-bg { left: auto; width: 62%; object-position: 84% center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }   /* 그림 왼쪽 끝을 바탕에 녹인다 */
}
@media (prefers-reduced-motion: reduce) { .pg-hero-slide { transition: none; } }
@media (max-width: 720px) {
  .pg-hero-box { margin: 0 0 12px; }
  .pg-hero { min-height: 0; border-radius: 24px; }
  .pg-hero-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .pg-hero-tabs::-webkit-scrollbar { display: none; }
  .pg-hero-slide { flex-direction: column; justify-content: center; gap: 12px; padding: 32px 20px 60px; text-align: center; }
  .pg-hero-box.has-tabs .pg-hero-slide { padding-bottom: 32px; }
  .pg-hero-copy { align-items: center; gap: 8px; }
  .pg-hero-copy h2 { font-size: 22px; line-height: 1.3; }
  .pg-hero-copy p { font-size: 16px; }
  .pg-hero-btns { justify-content: center; margin-top: 8px; }
  .pg-hero-art { order: -1; width: 120px; height: 120px; margin: 0; }
  .pg-hero-nav { right: 50%; transform: translateX(50%); }
}

/* (2026-11-23) '모서리 전부 직각' 규칙을 뺐다 — 참고 사이트 두 곳(셀프마케팅·아우라비즈)처럼 둥근 모서리로 통일한다(DESIGN.md Shape).
   되돌리려면: body :where(*, *::before, *::after) { border-radius: 0 !important; } */
:root:not(.sales-customer):not(.ka-root) body :where(*, *::before, *::after) { border-radius: 0 !important; }   /* 직각 강제 — 관리자 새 틀(.ka-root, 사용자 관리자 템플릿)은 둥근 모서리라 뺀다 */

/* 판매 고객 화면 공통. 보라(바이올릿)는 '누르는 것·고른 것'에만 — 주 버튼·선택 탭/칩·초점 테두리·로고(DESIGN.md '보라 쓰는 곳').
   바탕·카드·선·글자 회색·배너 바탕·장식 그림은 순수 회색 — 보랏빛 회색을 쓰면 버튼이 안 튄다. */
:root.sales-customer {
  --campaign-search: #f1f1f3; --campaign-map: #ececef; --campaign-youtube: #f3f2f2; --campaign-ink: #18181b;
  --brand: #774abf; --primary: #774abf; --primary-strong: #643da4; --primary-ink: #523286;   /* 11/27 캐릭터 보라(263°·채도 48%) — DESIGN.md '홈 디자인 시스템' P500·P600·P700 */
  --primary-bg: #f3effb; --primary-line: #e1d6f5;
  --on-primary: #fff; --accent: var(--primary); --accent-strong: var(--primary-strong); --accent-ink: var(--on-primary);
  --ink: #26262b; --ink-strong: #18181b; --ink2: #5b5b64; --ink3: #6c6c75;
  --page: #f9f9fa; --pc-page: var(--page); --surface: #fff; --card: var(--surface);
  --soft: #f4f4f5; --hover: var(--soft); --gray-bg: var(--soft);
  --line: #e4e4e7; --line-soft: #efeff1; --card-line: var(--line); --field: #c9c9cf;
  --primary-grad: var(--primary);   /* 주 버튼·고른 것의 바탕 — 단색 보라(11/27). 예전 그라데이션 #6a3fd0→#9440c4 는 채도 60%·자주 쪽이라 파스텔 캐릭터(263°·채도 50%) 옆에서 튀었다. 흰 글자 대비 8.6:1 */
  --kx-grad: var(--primary-grad); --kx-blue: var(--primary); --kx-cyan: var(--primary-strong);
  --hero-from: #f7f7f8; --hero-to: #ececef; --hero-band: var(--soft); --hero-ink: var(--ink-strong); --hero-sub: var(--ink2);
}
:root.sales-customer[data-theme="dark"] {
  --campaign-search: #26262b; --campaign-map: #232327; --campaign-youtube: #282828; --campaign-ink: #f4f4f5;
  --brand: #cab6ed; --primary: #7956ac; --primary-strong: #694599; --primary-ink: #dfccff;
  --primary-grad: var(--primary);
  --primary-bg: #30253e; --primary-line: #615073;
  --ink: #f2f2f3; --ink-strong: #fafafa; --ink2: #c8c8cd; --ink3: #a9a9b0;
  --page: #141416; --surface: #1d1d20; --soft: #26262a; --line: #3a3a40; --line-soft: #2d2d32; --field: #5c5c63;
  --hero-from: #26262a; --hero-to: #1d1d20;
}
body.home-page .m-auth-link, body.home-page .m-auth-join { min-height: 44px; display: inline-flex; align-items: center; }
body.home-page .m-tabs { background: var(--surface); }
body.home-page .m-tabs a { color: var(--ink2); }
body.home-page .m-tabs a.on { color: var(--ink); }
body.home-page .m-bar { background: var(--surface); }

body.home-page .pg-hero-btn:not(.line) { color: var(--accent-ink); }
body.home-page .m-bar-logo img { height: 38px; }
body.home-page .m-auth-join { color: var(--accent-ink) !important; }

/* 긴 소개 화면의 구역 이동 */
.section-nav { position: sticky; top: var(--section-nav-top, 72px); z-index: 20; display: flex; align-items: center; justify-content: center; gap: 28px; background: var(--surface); border-bottom: 1px solid var(--line); }
.section-nav a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 4px; color: var(--ink2); font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.section-nav a[aria-current] { color: var(--primary-ink); font-weight: 700; border-bottom-color: var(--primary); }
@media (max-width: 760px) {
  .section-nav { gap: 16px; padding-inline: 12px; }
  .section-nav a { min-height: 48px; font-size: 12px; }
}

/* 휴대폰 아래 탭: 고른 칸은 진한 글자만. 보라 배경·보라 글자는 넣지 않는다. */
body.m .m-tabs { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 8px 24px -8px rgba(20, 12, 60, .18); }
body.m .m-tabs a { font-weight: 400; color: var(--ink3); background: none !important; }
body.m .m-tabs a.on { color: var(--ink); font-weight: 700; background: none !important; }
body.m .m-bar .m-auth-join { height: 34px; padding: 0 14px; font-size: 14px; font-weight: 500; border-radius: 8px !important; }

/* ── 2026-11-23 다듬기: 머리줄은 불투명 흰 바탕(사진 위를 지날 때 번져 보이던 것), 높이·버튼 통일 ── */
:root.sales-customer .iru-hdr { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line-soft); }

/* ── 2026-11-23 둥근 모서리 기준(고객 사이트 전체). 값이 없는 곳에만 깔린다(:where = 우선순위 0) ── */
:where(:root.sales-customer) :where(button, .btn, input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) { border-radius: 8px; }
/* 머리줄 크기는 어느 화면에서나 같게(홈만 72·로고 44, 다른 화면 84·로고 가변이던 것) */
@media (min-width: 1081px) {
  :root.sales-customer .iru-hdr-in { height: 72px; }
  :root.sales-customer .iru-hdr .iru-logo img { height: 40px; }
  :root.sales-customer .iru-hdr .iru-nav a { font-size: 16px; }
}
/* 서비스 목록·상세(services.css · service-detail.css 에는 모서리 값이 없었다) */
.marketing-card { border-radius: 16px; overflow: hidden; }
.service-comparison { border-radius: 12px; overflow: hidden; }
.catalog-categories a, .service-quote-warning, .quote-share button { border-radius: 8px; }
.catalog header h1 { font-size: clamp(26px, 3vw, 40px); }
.service-detail { border-radius: 16px; }
.service-example, .service-detail .lh-buybox, .lh-start-help, .image-viewer { border-radius: 16px; }
.service-example img { border-radius: 12px; }
.landing-page .lh-continue, .landing-page .lh-button { border-radius: 8px; }

/* ── 2026-11-23 그림: 전체 서비스 맨 위 띠(우리 밤 골목 사진 + 흰 글자), 주문 화면 안내 배너의 목업 그림 ──
   홈 넘김 배너(.catalog-hero-host)도 같은 .catalog-hero 마크업·치수를 쓴다. */
.catalog-hero-host { position: relative; min-height: 240px; }
:is(.catalog, .catalog-hero-host) :is(header, a).catalog-hero { position: relative; display: flex; align-items: center; min-height: 240px; margin-bottom: 0; padding: 0 56px; border-radius: 24px; overflow: hidden; background: #120511; color: #fff; text-decoration: none; }
.catalog > :is(header, a).catalog-hero { margin-bottom: 20px; }
.catalog-hero-host > a.catalog-hero { position: absolute; inset: 0; margin-bottom: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.catalog-hero-host > a.catalog-hero.on { opacity: 1; visibility: visible; }
.catalog-hero picture { position: absolute; inset: 0; }
.catalog-hero picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.catalog-hero > div { position: relative; z-index: 1; }
:is(.catalog, .catalog-hero-host) .catalog-hero h1 { margin: 0; color: #fff; font-size: 32px; }
:is(.catalog, .catalog-hero-host) .catalog-hero > div > p { margin: 10px 0 0; color: rgba(255, 255, 255, .86); font-size: 18px; }
.catalog-hero .catalog-hero-kicker { margin: 0 0 8px; }
.catalog-hero .catalog-hero-kicker:only-child { margin: 0; }
.catalog-mobile.catalog-hero-host { padding-block: 0; min-height: 190px; }
:is(.catalog-mobile, .catalog-hero-host.catalog-mobile) :is(header, a).catalog-hero { min-height: 190px; margin: 0 0 12px; padding: 0 22px; align-items: flex-start; padding-top: 26px; border-radius: 16px; }
.catalog.catalog-mobile > :is(header, a).catalog-hero { margin-bottom: 12px; }
.catalog-mobile :is(header, a).catalog-hero::after,
.catalog-hero-host.catalog-mobile > a.catalog-hero:not(.catalog-hero--studio)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 5, 17, .88) 0%, rgba(18, 5, 17, .55) 45%, rgba(18, 5, 17, 0) 75%); }
.catalog-mobile :is(header, a).catalog-hero h1,
.catalog-hero-host.catalog-mobile .catalog-hero h1 { font-size: 26px; }
.catalog-mobile :is(header, a).catalog-hero > div > p,
.catalog-hero-host.catalog-mobile .catalog-hero > div > p { font-size: 14px; }

/* ── 휴대폰 히어로 줄이기(11/23): 주문 화면 안내 배너 그림 160 → 96, 전체 서비스 띠 190 → 140, 서비스 상세 그림 160 → 110 ── */
@media (max-width: 860px) {
  .pg-hero-art { width: 96px; height: 96px; align-self: center; }
  .pg-hero-copy h2 { font-size: 26px; }
  .pg-hero-copy p { font-size: 14px; }
  .pg-hero-slide { padding-top: 20px; padding-bottom: 52px; gap: 8px; }
  .catalog-mobile :is(header, a).catalog-hero,
  .catalog-hero-host.catalog-mobile > a.catalog-hero { min-height: 140px; padding-top: 22px; }
  .catalog-hero-host.catalog-mobile { min-height: 140px; }
  .catalog-mobile :is(header, a).catalog-hero h1,
  .catalog-hero-host.catalog-mobile .catalog-hero h1 { font-size: 22px; }
}

/* ── 휴대폰 히어로 한 번 더 줄임(사용자 "더 줄여라", 11/23) ──
   서비스 상세: 그림을 빼고 글자·버튼만(363 → 약 210). 주문 안내 배너: 글자 왼쪽·그림 오른쪽 한 줄 배치(320 → 약 190). 전체 서비스 띠 140 → 116. */
@media (max-width: 760px) {

  .pg-hero { border-radius: 16px; }
  .pg-hero-slide { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px; text-align: left; }
  .pg-hero-box.has-tabs .pg-hero-slide { padding-bottom: 20px; }
  .pg-hero-copy { align-items: flex-start; gap: 6px; }
  .pg-hero-copy h2 { font-size: 22px; }
  .pg-hero-copy p { font-size: 14px; }
  .pg-hero-btns { justify-content: flex-start; margin-top: 6px; }
  .pg-hero-btn { height: 36px; padding: 0 16px; font-size: 14px; }
  .pg-hero-art { order: 0; width: 76px; height: 76px; align-self: flex-start; }
  .pg-hero-nav { right: 14px; bottom: 14px; transform: none; height: 28px; }
  .pg-hero-nav button { width: 24px; height: 24px; }

  .catalog-mobile :is(header, a).catalog-hero,
  .catalog-hero-host.catalog-mobile > a.catalog-hero { min-height: 116px; padding-top: 18px; }
  .catalog-hero-host.catalog-mobile { min-height: 116px; }
}
/* 안내 배너: 숨긴 장도 자리를 차지해야 넘길 때 높이가 안 흔들린다(base.css 의 [hidden]{display:none!important} 가 1097줄 규칙을 덮고 있었음) */
.pg-hero-slide[hidden] { display: flex !important; }
@media (max-width: 760px) {
}

/* ── 휴대폰 줄이기(DESIGN.md '휴대폰 화면', 11/23): 로그인·가입 제목 26 → 20, 입력 칸 48 → 44, 주 버튼 52 → 48 ── */
@media (max-width: 860px) {
  body.m .m-title, body.m .form-wrap .title, body.m dialog.box h2 { font-size: 20px; }
  body.m .m-auth .m-title { margin: 8px 0 12px; }
  body.m .m-auth input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { height: 44px; }
  body.m .m-auth button[type="submit"] { height: 48px; min-height: 48px; }
}

/* ── 고객 PC QHD·4K: 머리·본문·꼬리·단일 catalog-hero(/services 등). 홈 캐러셀(.h2m)은 home2.css
   브레이크포인트·에셋: php/sales/WIDE-SCREEN-AUDIT.md ── */
body.sales-customer:not(.m) {
  --iru-shell-max: 1248px;
  --iru-content-max: 1200px;
  --iru-detail-max: 1120px;
  --catalog-hero-min-h: 240px;
  --catalog-hero-pad-y: 36px;
  --catalog-hero-pad-x: 56px;
  --catalog-hero-title: 32px;
  --catalog-hero-body: 18px;
}
body.sales-customer:not(.m) .catalog > header.catalog-hero {
  min-height: var(--catalog-hero-min-h);
  height: auto;
  padding: var(--catalog-hero-pad-y) var(--catalog-hero-pad-x);
  align-items: center;
}
body.sales-customer:not(.m) .catalog > header.catalog-hero h1 { font-size: var(--catalog-hero-title); }
body.sales-customer:not(.m) .catalog > header.catalog-hero > div > p { font-size: var(--catalog-hero-body); margin-top: 10px; }
body.sales-customer:not(.m) .catalog > header.catalog-hero picture img { object-fit: cover; object-position: center center; }
@media (min-width: 1280px) {
  body.sales-customer:not(.m) {
    --iru-shell-max: 1320px; --iru-content-max: 1280px; --iru-detail-max: 1180px;
    --catalog-hero-min-h: 300px; --catalog-hero-pad-y: 44px; --catalog-hero-pad-x: 64px;
    --catalog-hero-title: 36px;
  }
}
@media (min-width: 1440px) {
  body.sales-customer:not(.m) {
    --iru-shell-max: 1400px; --iru-content-max: 1360px; --iru-detail-max: 1240px;
    --catalog-hero-min-h: 320px; --catalog-hero-pad-y: 48px;
    --catalog-hero-title: 38px; --catalog-hero-body: 19px;
  }
}
@media (min-width: 1920px) {
  body.sales-customer:not(.m) {
    --iru-shell-max: 1520px; --iru-content-max: 1440px; --iru-detail-max: 1320px;
    --catalog-hero-min-h: 360px; --catalog-hero-pad-y: 52px; --catalog-hero-pad-x: 72px;
    --catalog-hero-title: 40px; --catalog-hero-body: 20px;
  }
  body.sales-customer:not(.m) .iru-container > .head:first-child h1,
  body.sales-customer:not(.m) .iru-container > h1:first-child { font-size: 28px; }
}
@media (min-width: 2560px) {
  body.sales-customer:not(.m) {
    --iru-shell-max: 2200px; --iru-content-max: 1680px; --iru-detail-max: 1480px;
    --catalog-hero-min-h: 400px; --catalog-hero-pad-y: 56px; --catalog-hero-pad-x: 80px;
    --catalog-hero-title: 44px; --catalog-hero-body: 21px;
  }
  body.sales-customer:not(.m) .iru-container > .head:first-child h1,
  body.sales-customer:not(.m) .iru-container > h1:first-child { font-size: 30px; }
}
@media (min-width: 3840px) {
  body.sales-customer:not(.m) {
    --iru-shell-max: 2400px; --iru-content-max: 1920px; --iru-detail-max: 1600px;
    --catalog-hero-min-h: 420px; --catalog-hero-pad-y: 64px; --catalog-hero-pad-x: 96px;
    --catalog-hero-title: 48px; --catalog-hero-body: 22px;
  }
  body.sales-customer:not(.m) .iru-container > .head:first-child h1,
  body.sales-customer:not(.m) .iru-container > h1:first-child { font-size: 32px; }
}
body.sales-customer:not(.m) .auth-page { max-width: min(var(--iru-shell-max, 1200px), calc(100vw - 48px)); }

/* 관리자 다크 모드: 주 버튼 바탕(--primary)이 밝은 회색인데 글자도 흰색이라 안 보이던 것(사이트 설정 '배너 저장' 등) — 글자를 어둡게 */
:root[data-theme="dark"]:not(.sales-customer) .btn:not(.line):not(.danger):not(.navy) { color: #18181B; }

/* 알약 탭 — 회사·종류 고르기(서비스 목록 종류 탭·주문하기 회사 탭). 링크(a)나 버튼(button) 둘 다. 고른 탭은 주 색 */
.pill-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.pill-tabs > a, .pill-tabs > button {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink2); font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.pill-tabs > .is-on { border-color: var(--primary); background: var(--primary); color: #fff; font-weight: 700; }
.pill-tabs > :focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* 본문을 메인 넘김 배너 폭으로 넓힌다(주문하기 화면 전체 — 배너·폼·요약이 메인 배너와 같은 폭). 본문 틀보다 넓어 좌우 음수 여백으로 가운데 맞춤 */
@media (min-width: 721px) { .hero-wide { margin-left: calc((100% - var(--hero-box) + 48px) / 2); margin-right: calc((100% - var(--hero-box) + 48px) / 2); } }
/* 큰 배너 크기 — 메인 넘김 배너(home2.css)와 주문하기 배너(.pg-hero-box.is-main) 공용. 화면을 오가도 같은 크기·위치.
   --hero-box = 배너 바깥 상자 폭(좌우 24px 여백 포함). 표는 WIDE-SCREEN-AUDIT.md */
:root { --hero-box: min(1200px, calc(100vw - 48px)); --hero-min-h: 240px; --hero-pad-y: 36px; --hero-pad-x: 56px; --hero-copy-gap: 10px; --hero-kicker: 14px; --hero-title: 32px; --hero-body: 18px; --hero-btn-fs: 14px; --hero-btn-pad-x: 18px; --hero-btn-min-h: 40px; }
@media (min-width: 1280px) { :root { --hero-box: min(1280px, calc(100vw - 48px)); --hero-min-h: 300px; --hero-pad-y: 44px; --hero-pad-x: 64px; --hero-copy-gap: 12px; --hero-kicker: 15px; --hero-title: 36px; --hero-body: 18px; --hero-btn-fs: 15px; --hero-btn-pad-x: 20px; --hero-btn-min-h: 44px; } }
@media (min-width: 1440px) { :root { --hero-box: min(1440px, calc(100vw - 80px)); --hero-min-h: 340px; --hero-pad-y: 48px; --hero-title: 38px; --hero-body: 19px; } }
@media (min-width: 1920px) { :root { --hero-box: min(1600px, calc(100vw - 120px)); --hero-min-h: 400px; --hero-pad-y: 56px; --hero-pad-x: 72px; --hero-copy-gap: 14px; --hero-kicker: 16px; --hero-title: 44px; --hero-body: 20px; --hero-btn-fs: 16px; --hero-btn-pad-x: 24px; --hero-btn-min-h: 48px; } }
@media (min-width: 2560px) { :root { --hero-box: min(1840px, calc(100vw - 160px)); --hero-min-h: 440px; --hero-pad-y: 64px; --hero-pad-x: 88px; --hero-copy-gap: 16px; --hero-kicker: 17px; --hero-title: 52px; --hero-body: 22px; --hero-btn-fs: 17px; --hero-btn-min-h: 52px; } }
@media (min-width: 3840px) { :root { --hero-box: min(2100px, calc(100vw - 200px)); --hero-min-h: 480px; --hero-pad-y: 72px; --hero-pad-x: 96px; --hero-copy-gap: 18px; --hero-kicker: 18px; --hero-title: 56px; --hero-body: 22px; --hero-btn-fs: 18px; --hero-btn-pad-x: 28px; } }

/* 주문 화면 말풍선 안내(public/assets/tour.js) — 지금 칸은 연한 보라 테두리, 말풍선은 주 색(보라) 판에 흰 글자 */
.tour-focus { align-self: start; position: relative; z-index: 31; outline: 2px solid rgba(89, 54, 153, .45); outline-offset: 4px; border-radius: 8px; box-shadow: 0 0 0 8px rgba(89, 54, 153, .06); transition: outline-color .2s, box-shadow .2s; }   /* 지금 칸 — 얇고 연한 보라(넓은 칸에서도 답답하지 않게) */
.tour-tip { --tour-bg: var(--primary); position: absolute; z-index: 1000; width: min(320px, calc(100vw - 24px)); padding: 16px 18px 14px; border-radius: 16px; background: var(--tour-bg); color: #fff; box-shadow: 0 16px 40px rgba(89, 54, 153, .35); }
.tour-tip::before { content: ''; position: absolute; left: calc(var(--arrow-x, 24px) - 8px); width: 16px; height: 16px; background: var(--tour-bg); transform: rotate(45deg); border-radius: 4px; }
.tour-tip[data-side="below"]::before { top: -6px; }
.tour-tip[data-side="above"]::before { bottom: -6px; }
.tour-tip[data-side="inside"]::before { display: none; }   /* 화면보다 긴 칸 — 칸 위에 떠 있어 화살표가 가리킬 곳이 없다 */
.tour-count { margin: 0 0 4px; color: rgba(255, 255, 255, .75); font-size: 12px; font-weight: 700; }
.tour-title { display: block; font-size: 16px; font-weight: 700; }
.tour-body { margin: 6px 0 12px; color: rgba(255, 255, 255, .92); font-size: 14px; line-height: 1.55; word-break: keep-all; }
.tour-help { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; margin: 0 0 12px; border: 0; border-radius: 8px; background: #fff; color: var(--primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tour-help:hover { background: #f3eefb; }
.tour-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-skip { padding: 6px 0; border: 0; background: none; color: rgba(255, 255, 255, .8); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tour-nav { display: flex; gap: 6px; }
.tour-prev { height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 8px; background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tour-prev:hover { background: rgba(255, 255, 255, .12); }
.tour-next { height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: #fff; color: var(--primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 판매 고객 화면: 주 버튼·고른 탭·진행 막대의 바탕(--primary-grad — 이름만 남고 지금은 단색 보라). 마우스를 올리면 살짝 밝게.
   단색 규칙은 각 화면 CSS 에 그대로 있고 여기서 바탕만 덮는다 — 관리자 화면(:root.sales-customer 아님)은 그대로 단색 */
:root.sales-customer :is(
  .pg-hero-btn:not(.line), .iru-strip,
  .ox-cta, .ox-btn, .ox-seg > .on,
  .ap-btn--primary, .m-btn:not(.line):not(.danger), .m-auth-join,
  .landing-page .lh-continue, .landing-page .lh-button, .gd-btn--primary, .campaign-cta, .dg-btn,
  .pill-tabs > .is-on, .tabs a.on, .svc-chips a.on, .kd-tabs a.on, .pager span.cur,
  .reg-track .reg-seg.on, .tutorial-index .is-done b,   /* .pay-steps li.now 은 뺐다 — 연보라 바탕 + 진보라 글자(app-shell)인데 보라를 깔면 글자가 안 보였다 */
  .dash-check-bar i, .ap-camp-bar i, .oc-prog i, .m-prog i, .dg-prog i, .bar i,
  .tour-tip, .tour-tip::before
) { background: var(--primary-grad) !important; border-color: transparent; }
:root.sales-customer :is(.pg-hero-btn:not(.line), .ox-cta, .ox-btn, .ap-btn--primary, .m-btn:not(.line):not(.danger),
  .landing-page .lh-continue, .landing-page .lh-button, .gd-btn--primary, .campaign-cta, .dg-btn):hover { filter: brightness(1.08); }

/* ══ 11/27 보라는 '누르는 것·고른 것'에만 — 포인트·금액·남은 횟수 같은 숫자와 단순 표시 글자는 먹색(DESIGN.md '보라 쓰는 곳') ══ */
/* 머리 포인트 칸(공개 화면) · 윗줄 이름 옆 포인트 · 왼쪽 메뉴 포인트: 회색 칸 + 먹색 숫자 */
.iru-bal { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-strong); }
.iru-bal small { color: var(--ink3); opacity: 1; }
.iru-bal:hover { background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink3); color: var(--ink-strong); transform: none; }
.iru-bal:hover small { color: var(--ink3); }
.ap-user-badge { background: var(--soft); color: var(--ink-strong); }
.ap-side-user-bal { color: var(--ink-strong); }
/* 금액·단가·잔액 */
.points-hero strong, body.m .points-bal strong { color: var(--ink-strong) !important; }
:is(.ap-tile, .oxa .ap-tile) em { color: var(--ink-strong); }
.ox-total strong { color: var(--ink-strong); }
:root.sales-customer dialog .ask-rows > div.total dd { color: var(--ink-strong); }
/* 남은 횟수·개수 */
.rk-add-count b, .ks-left b, .aif-left b { color: var(--ink-strong); }
/* 표시용 꼬리표·강조(누르는 것이 아님) */
.dash-check-badge { background: var(--soft); color: var(--ink2); }
.ap-ticker b { color: var(--ink-strong); }
.cardtitle em { color: inherit; }
.sh-kicker { color: var(--ink3); }
.b-nudge, .bank-box { background: var(--soft); border-color: var(--line); color: var(--ink); }

/* 관리자 휴대폰 틀은 admin-k.css(사용자 관리자 템플릿)로 옮겼다 */
