@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");
:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e4e7eb;
  --text: #1f2933;
  --muted: #7b8794;
  --primary: #2f6fed;
  --primary-d: #1d54c4;
  --danger: #d64545;
  --ok: #2f9e44;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary); text-decoration: none; }

/* nav */
header#nav {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header#nav .brand { font-weight: 700; font-size: 16px; color: var(--text); margin-right: 8px; display: flex; align-items: center; }
/* 투명 배경 로고(logo-mark.png) 사용 — 별도 블렌드 불필요 */
.brand-logo { height: 30px; display: block; border-radius: 7px; }
.auth-logo { height: 80px; width: auto; display: block; margin: 0 auto 18px; border-radius: 18px; }
header#nav a { color: var(--muted); padding: 6px 4px; }
header#nav a.active { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--primary); }
header#nav a.right { margin-left: auto; }
/* 부가 메뉴(자료실/사용설명서)는 옅게 — 핵심 업무 메뉴와 위계 구분. */
header#nav a.sub { opacity: .6; font-size: .95em; }

main { max-width: 1040px; margin: 26px auto; padding: 0 24px; }
h1 { font-size: 25px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 18px; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.2px; margin: 0 0 12px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
/* 대시보드 KPI 카드는 한 줄에 2개 고정 */
#cards { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card .label { color: var(--muted); font-size: 13px; }
.card .value { font-size: 27px; font-weight: 800; letter-spacing: -.5px; margin-top: 6px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; }

/* table */
table { width: 100%; border-collapse: collapse; background: var(--card); }
.panel table { background: transparent; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tbody tr:hover { background: #fafbfc; }

/* 엑셀형 격자 — 앱 데이터 화면(.panel 내부 표) 공통.
   세로·가로 격자선 + 회색 고정 헤더 + 줄무늬 + 조밀한 행. */
.panel table { border: 1px solid var(--line); }
.panel th, .panel td { padding: 8px 12px; border: 1px solid var(--line); }
.panel thead th {
  position: sticky; top: 56px;           /* 상단 nav(56px) 아래에 헤더 고정 */
  background: #eef2f7; color: #46505e;
  font-weight: 700; font-size: 13px; z-index: 1;
}
.panel tbody tr:nth-child(even) { background: #fafbfc; }  /* 줄무늬 */
.panel tbody tr:hover { background: #eef4ff; }
.empty { color: var(--muted); padding: 24px; text-align: center; }

/* badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; background: #eef2f7; color: #51606e; }

/* forms */
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 5px; }
label.field span em { font-style: normal; color: #aab2bf; font-weight: 400; }
label.field .hint, .hint { display: block; margin-top: 5px; font-size: 12.5px; color: #8a93a0; line-height: 1.5; }
input, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; background: #fff;
}
input:focus, select:focus { outline: none; border-color: var(--primary); }
/* 체크박스/라디오는 width:100%(텍스트 입력용)에서 제외 — 원래 크기 유지 */
input[type="checkbox"], input[type="radio"] { width: auto; padding: 0; }
button {
  background: var(--primary); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
button:hover { background: var(--primary-d); }
button.secondary { background: #eef2f7; color: var(--text); }
button.secondary:hover { background: #e2e8f0; }
button.danger { background: var(--danger); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spacer { flex: 1; }

/* auth page */
.auth-wrap { max-width: 380px; margin: 8vh auto; }
.auth-wrap .panel { padding: 26px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { flex: 1; background: #eef2f7; color: var(--muted); }
.tabs button.active { background: var(--primary); color: #fff; }
.muted { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.mt { margin-top: 14px; }

/* sales bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars .bar { flex: 1; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.bars .bar:hover { opacity: 1; }
.bars-x { display: flex; gap: 6px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; color: var(--muted); font-size: 10px; }

/* ── 랜딩(서비스 소개) ───────────────────────────────────────── */
html { scroll-behavior: smooth; }
.lp { color: var(--text); }

/* 히어로 진입(로드 시 스태거 등장) */
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .logo, .hero h1, .hero .sub, .hero .cta { opacity: 0; animation: heroIn .7s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .logo { animation-delay: .05s; }
.hero h1 { animation-delay: .18s; }
.hero .sub { animation-delay: .32s; }
.hero .cta { animation-delay: .46s; }

/* 카드 호버 리프트 */
.feat, .price, .card, .gcard { transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover, .price:hover, .gcard:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(20,40,80,.12); }
.price.hot:hover { transform: translateY(-7px); }
.lp-btn { transition: transform .15s ease, background .15s ease; }
.lp-btn:hover { transform: translateY(-2px); }

/* 섹션 헤딩 강조 바 */
.section h2, .cta-band h2 { position: relative; }
.section h2::after { content: ""; display: block; width: 44px; height: 3px; background: var(--primary); border-radius: 2px; margin: 12px auto 0; }
.lp-nav {
  display: flex; align-items: center; gap: 16px; padding: 14px 28px;
  position: sticky; top: 0; background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); z-index: 20;
}
.lp-nav .brand-logo { height: 32px; }
.lp-nav .spacer { flex: 1; }
.lp-nav a { color: var(--muted); }
.lp-btn {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 11px 20px; border-radius: 8px; font-weight: 600;
}
.lp-btn:hover { background: var(--primary-d); color: #fff; }
.lp-btn.ghost { background: #eef2f7; color: var(--text); }
.lp-nav .menu { display: flex; gap: 22px; }
.lp-nav .menu a { color: var(--text); font-weight: 500; }
.lp-nav .menu a:hover { color: var(--primary); }
@media (max-width: 820px) { .lp-nav .menu { display: none; } }

/* 통계 밴드 */
.stats { background: #1d3354; }
.stats .inner { max-width: 1040px; margin: 0 auto; padding: 40px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; text-align: center; }
.stats .inner > div { padding: 0 8px; }
.stats .n { font-size: 42px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.stats .n small { font-size: 18px; font-weight: 700; margin-left: 2px; color: #9db2ff; }
.stats .l { color: #fff; font-size: 15.5px; margin-top: 8px; font-weight: 700; }
.stats .d { color: #aebbd4; font-size: 12.5px; margin-top: 7px; line-height: 1.5; word-break: keep-all; }
@media (max-width: 720px) { .stats .inner > div { padding-bottom: 8px; } }

/* FAQ */
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
.faq-item h4 { margin: 0 0 6px; font-size: 15px; word-break: keep-all; }
.faq-item p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; word-break: keep-all; }

/* 회사정보 푸터 */
.foot { border-top: 1px solid var(--line); background: #f8f9fb; }
.foot .inner { max-width: 1040px; margin: 0 auto; padding: 30px 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .col h5 { margin: 0 0 8px; font-size: 13px; color: var(--text); }
.foot .col p, .foot .col a { margin: 2px 0; font-size: 12px; color: var(--muted); display: block; }
.foot .copy { text-align: center; color: var(--muted); font-size: 12px; padding: 14px; border-top: 1px solid var(--line); }

.hero {
  text-align: center; padding: 44px 24px 40px;
  background: linear-gradient(180deg, #f3f6fc 0%, #f5f6f8 100%);
}
.hero img.logo { width: 380px; max-width: 84%; margin: 0 auto 4px; }
.hero h1 { font-size: 34px; line-height: 1.22; margin: 8px 0 10px; letter-spacing: -.5px; word-break: keep-all; }
.hero p.sub { font-size: 16px; color: #51606e; max-width: 600px; margin: 0 auto 22px; word-break: keep-all; line-height: 1.6; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { max-width: 1040px; margin: 0 auto; padding: 48px 24px; }
.section h2 { font-size: 24px; text-align: center; margin: 0 0 10px; letter-spacing: -.3px; }
.section .lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 30px; }
.section.alt { background: #fff; max-width: none; }
.section.alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }

.steps { display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.step .no {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 2px 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.feat .ic { font-size: 22px; }
.feat h3 { margin: 8px 0 6px; font-size: 16px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; text-align: center; }
.price.hot { border-color: var(--primary); box-shadow: 0 6px 24px rgba(47,111,237,.12); }
.price h3 { margin: 0 0 6px; font-size: 18px; }
.price .amt { font-size: 30px; font-weight: 800; margin: 8px 0; }
.price .amt small { font-size: 14px; font-weight: 500; color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 14px 0 0; color: #51606e; font-size: 14px; }
.price li { padding: 5px 0; border-top: 1px solid var(--line); }

/* 스크롤 등장 모션(JS 있을 때만 숨김 → no-JS 안전) */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #28c840; margin-right: 6px; vertical-align: middle; animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(40,200,64,.5); }
  70% { box-shadow: 0 0 0 8px rgba(40,200,64,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,200,64,0); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-window { animation: none !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
}

/* 제품 미리보기(목업) */
.mock { max-width: 920px; margin: 0 auto; }
.mock-window { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 16px 48px rgba(20,40,80,.14); animation: floaty 5s ease-in-out infinite; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .url { margin-left: 12px; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 3px 12px; }
.mock-body { padding: 22px; background: var(--bg); }
.mock-head { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.mock-body .cards { margin-bottom: 16px; }
.mock-body .card .value { font-size: 22px; }

.cta-band { background: #1d3354; color: #fff; text-align: center; padding: 56px 24px; }
.cta-band h2 { color: #fff; font-size: 26px; margin: 0 0 18px; }
.lp-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px; border-top: 1px solid var(--line); }

/* 랜딩 반응형(모바일) */
@media (max-width: 640px) {
  .hero { padding: 32px 18px 30px; }
  .hero img.logo { width: 320px; max-width: 88%; }
  .hero h1 { font-size: 25px; }
  .hero p.sub { font-size: 15px; }
  .section { padding: 38px 18px; }
  .section h2 { font-size: 21px; }
  .cta-band { padding: 40px 18px; }
  .cta-band h2 { font-size: 21px; }
  .lp-nav { padding: 10px 16px; gap: 12px; }
  .lp-nav a:not(.lp-btn) { display: none; }  /* 모바일에선 핵심 CTA만 */
}

/* 자료실 — 거래처 전달용 카드(이미지 저장 대상) */
.gwrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px; align-items: start; }
.gcard {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 28px; box-shadow: 0 6px 20px rgba(20,40,80,.06);
}
.gcard .gc-head { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #1d3354; padding-bottom: 12px; margin-bottom: 16px; }
.gcard .gc-head img { height: 24px; border-radius: 5px; }
.gcard .gc-head h3 { margin: 0; font-size: 18px; color: #1d3354; }
.gcard ol { margin: 0; padding-left: 4px; list-style: none; counter-reset: g; }
.gcard ol li { counter-increment: g; position: relative; padding: 8px 0 8px 38px; font-size: 15px; line-height: 1.5; border-bottom: 1px dashed var(--line); word-break: keep-all; }
.gcard ol li:last-child { border-bottom: none; }
.gcard ol li::before {
  content: counter(g); position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px; border-radius: 50%; background: #2f6fed; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.gcard .gc-foot { margin-top: 16px; text-align: right; color: var(--muted); font-size: 12px; }
.gcard .gc-tip { background: #f3f6fc; border-radius: 8px; padding: 10px 12px; font-size: 13px; color: #51606e; margin-top: 14px; }

/* toast */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1f2933; color: #fff; padding: 10px 18px; border-radius: 8px;
  opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: 90%;
}
#toast.show { opacity: 1; }
#toast.err { background: var(--danger); }

/* 사용설명서(manual) */
.man-head { margin-bottom: 20px; }
.man-head h1 { margin-bottom: 6px; }
.man-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.man-toc { position: sticky; top: 84px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; }
.man-toc-title { font-size: 12px; font-weight: 700; color: var(--muted); padding: 2px 8px 8px; letter-spacing: .02em; }
.man-toc a { display: block; padding: 7px 10px; border-radius: 7px; color: #51606e; font-size: 13.5px; line-height: 1.4; text-decoration: none; }
.man-toc a:hover { background: #f3f6fc; }
.man-toc a.active { background: #eef3fe; color: var(--primary-d); font-weight: 700; }
.man-body { min-width: 0; }
.man-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; scroll-margin-top: 80px; }
.man-badge { display: inline-block; background: #1d3354; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.man-sec h2 { margin: 12px 0 8px; font-size: 20px; }
.man-sec > p { color: #51606e; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.man-steps { margin: 14px 0 0; padding-left: 4px; list-style: none; counter-reset: m; }
.man-steps li { counter-increment: m; position: relative; padding: 10px 0 10px 40px; font-size: 15px; line-height: 1.6; border-bottom: 1px dashed var(--line); word-break: keep-all; }
.man-steps li:last-child { border-bottom: none; }
.man-steps li::before {
  content: counter(m); position: absolute; left: 0; top: 9px;
  width: 26px; height: 26px; border-radius: 50%; background: #eef3fe; color: var(--primary-d);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.man-tip { background: #f3f6fc; border-radius: 8px; padding: 11px 14px; font-size: 13.5px; color: #51606e; margin-top: 14px; line-height: 1.55; word-break: keep-all; }
.man-tip a { color: var(--primary-d); font-weight: 600; }
.man-table { margin-top: 14px; overflow-x: auto; }
.man-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.man-table th, .man-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.man-table thead th { background: #f7f9fc; color: #51606e; font-size: 13px; }
/* 대시보드 사용설명서 배너 */
.banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, #eef3fe 0%, #f7faff 100%);
  border: 1px solid #d7e3fb; border-radius: 12px; padding: 14px 16px; margin-bottom: 18px;
}
.banner-ic { font-size: 26px; line-height: 1; }
.banner-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.banner-tx b { font-size: 15px; color: #1d3354; }
.banner-tx span { font-size: 13px; color: #51606e; }
.banner-btn {
  margin-left: auto; white-space: nowrap; background: var(--primary); color: #fff;
  padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none;
}
.banner-btn:hover { background: var(--primary-d); }
.banner-x { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 0 2px; }
.banner-x:hover { color: var(--text); }
@media (max-width: 640px) {
  .banner { flex-wrap: wrap; }
  .banner-btn { margin-left: 0; }
}

/* 실시간 주문 */
.live-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
#quick-po { background: #3b3ff0; }
#quick-po:hover { background: #2f33d6; }

/* 발주 선택 툴바 */
.po-select { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 12px; margin: 4px 0 10px; }
.po-select .pa { display: flex; align-items: flex-start; gap: 7px; font-size: 14px; font-weight: 600; color: #2b3553; cursor: pointer; text-align: left; }
.po-select .pa input { margin-top: 2px; flex: none; }
.po-select .pa .pa-txt { display: block; line-height: 1.35; }   /* 텍스트만 줄바꿈(체크박스 옆) */
.po-select .pa .kp { white-space: nowrap; }                      /* 각 구절 통째로(최대 2줄) */
.po-select #pick-count { font-size: 13px; white-space: nowrap; margin-left: auto; align-self: flex-start; }
.po-select .po-hint { flex-basis: 100%; margin-top: 2px; }
.po-pick { flex: none; width: 18px; height: 18px; cursor: pointer; }

/* 거래처별 선택 칩 */
.po-vendors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.po-vendors .vg-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.po-vendors .vg-chip { background: #fff; border: 1px solid var(--line); color: #44505f; border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.po-vendors .vg-chip b { color: #3b3ff0; }
.po-vendors .vg-chip:hover { border-color: #c2c7ff; }
.po-vendors .vg-chip.on { background: #3b3ff0; border-color: #3b3ff0; color: #fff; }
.po-vendors .vg-chip.on b { color: #fff; }
.po-vendors .vg-part { opacity: .8; font-weight: 500; }

/* KPI 한 줄 스트립 */
.live-kpi { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 8px 0 14px; }
.live-kpi .k { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.live-kpi .k .l { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.live-kpi .k .v { font-size: 21px; font-weight: 800; margin-top: 3px; letter-spacing: -.5px; }
.live-kpi .k.hl { border-color: #c2c7ff; background: #f7f8ff; }
.live-kpi .k.hl .v { color: #3b3ff0; }
@media (max-width: 860px) { .live-kpi { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px) { .live-kpi { grid-template-columns: repeat(2, 1fr); } }
.live-top .spacer { flex: 1; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; background: #fdecec; color: #d64545; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.live-badge .live-dot { background: #d64545; animation: pulse 1.4s infinite; }
.live-auto { font-size: 13px; color: #51606e; display: inline-flex; align-items: center; gap: 6px; }
.live-top button { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.live-top button:hover { background: var(--primary-d); }
.live-top button:disabled { opacity: .6; cursor: default; }
/* 자동 새로고침 토글 버튼(켜짐=초록, 꺼짐=회색 아웃라인) — 한 줄 유지 */
.live-top .toggle-btn { background: #fff; color: #51606e; border: 1px solid var(--line); white-space: nowrap; }
.live-top .toggle-btn:hover { background: #f3f5f8; }
.live-top .toggle-btn.on { background: #e6f7ed; color: #1a8245; border-color: #b6e6c8; }
.live-top .toggle-btn.on:hover { background: #d8f1e2; }

/* 라이브 표: 상품 수량(×N)·NEW 배지 */
.fi-qty { font-size: 13px; color: #51606e; }
.fi-new { background: #3b3ff0; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.badge.s-pay { background: #e7f0ff; color: #2f6fed; }
.badge.s-prep { background: #fff3e0; color: #c77700; }
.badge.s-done { background: #e6f5ea; color: #2f9e44; }
.badge.s-cancel { background: #fdecec; color: #d64545; }
@keyframes flashIn { 0% { background: #eef0ff; box-shadow: 0 0 0 2px #c2c7ff inset; } 100% { background: #fff; box-shadow: none; } }

/* 라이브 주문 표(엑셀형) — feed-item 카드 → 표 전환 */
body[data-page="live"] #feed { overflow-x: auto; }
body[data-page="live"] #feed table { min-width: 960px; }
/* 가로 스크롤 컨테이너 안에서는 sticky 헤더가 어긋나므로 고정 해제 */
body[data-page="live"] #feed thead th { position: static; }
/* 한글 단어가 음절 단위로 끊기지 않도록(가나패션 → 가나패 션 방지) */
body[data-page="live"] #feed th, body[data-page="live"] #feed td { word-break: keep-all; }
body[data-page="live"] #feed .badge { white-space: nowrap; }
.panel td.c-pick, .panel th.c-pick { width: 34px; text-align: center; }
.panel td.c-amt, .panel th.c-amt { text-align: right; white-space: nowrap; font-weight: 700; }
.panel td.c-time { color: var(--muted); white-space: nowrap; }
.c-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.panel tbody tr.row-picked { background: #eef0ff; }
.panel tbody tr.row-new { animation: flashIn 2.2s ease-out; }
@media (prefers-reduced-motion: reduce) { .panel tbody tr.row-new { animation: none; } }
.stage-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.stage-tag.s0 { background: #eef2f7; color: #51606e; }
.stage-tag.s1 { background: #e7f0ff; color: #2f6fed; }
.stage-tag.s2 { background: #eef0ff; color: #3b3ff0; }
.stage-tag.s3 { background: #e3f4f4; color: #0d9488; }
.stage-tag.s4 { background: #e6f5ea; color: #2f9e44; }

/* 상품·거래처 목록 표(엑셀형) — 카드 → 표 전환 */
body[data-page="products"] #rows, body[data-page="vendors"] #rows { display: block; overflow-x: auto; padding: 14px 18px; }
body[data-page="products"] #rows table { min-width: 720px; }
body[data-page="vendors"] #rows table { min-width: 900px; }
/* 가로 스크롤 컨테이너에서는 sticky 헤더가 어긋나므로 고정 해제 */
body[data-page="products"] #rows thead th, body[data-page="vendors"] #rows thead th { position: static; }
body[data-page="products"] #rows th, body[data-page="products"] #rows td,
body[data-page="vendors"] #rows th, body[data-page="vendors"] #rows td { word-break: keep-all; }
.panel td.c-act, .panel th.c-act { white-space: nowrap; text-align: center; }
.panel td.vc-kws .kw { display: inline-block; margin: 1px 0; }
/* 표 셀 안 거래처 드롭다운은 셀 폭에 맞춤 */
body[data-page="products"] #rows td select { margin: 0; }

/* 모달(거래처 수정 등) */
.modal { position: fixed; inset: 0; background: rgba(17,22,58,.45); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 460px; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.modal-box h3 { font-size: 18px; }

/* 거래처별 운영 요일 미니 토글 */
.vdays { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vday { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: #aab2bf; font-size: 11px; font-weight: 700; cursor: pointer; padding: 0; }
.vday.on { background: #3b3ff0; border-color: #3b3ff0; color: #fff; }
.vdays.inh .vday.on { background: #e6e8ff; border-color: #d3d6ff; color: #6b73d8; }
.vinh { font-size: 11px; color: #8a93a0; margin-left: 4px; }
.vreset { margin-left: 6px; font-size: 11px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: #51606e; cursor: pointer; }
.vreset:hover { border-color: #c2c7ff; color: #3b3ff0; }

/* 배송 운영 요일 토글 */
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.days .day { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: #8a93a0; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .15s; }
.days .day:hover { border-color: #c2c7ff; }
.days .day.on { background: #3b3ff0; border-color: #3b3ff0; color: #fff; }

/* 발주 — 1단계 안내/요약 */
.po-summary { background: #f3f6fc; border-radius: 10px; padding: 12px 16px; font-size: 14.5px; color: #2b3553; }
.po-field-label { font-size: 13px; font-weight: 700; color: #2b3553; margin-bottom: 8px; }
#create.big, .big { font-size: 15px; padding: 12px 22px; }

/* 발주 발송 방식 토글(카드형) */
.send-mode { display: flex; gap: 12px; flex-wrap: wrap; }
.send-mode .sm-btn { flex: 1; min-width: 220px; text-align: left; background: #fff; border: 1.5px solid var(--line); color: #2b3553; border-radius: 12px; padding: 14px 16px; font-size: 15px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.send-mode .sm-btn small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.send-mode .sm-btn:hover { border-color: #c2c7ff; }
.send-mode .sm-btn.on { background: #eef0ff; border-color: #3b3ff0; color: #3b3ff0; }
.send-mode .sm-btn.on small { color: #5b6fd6; }
.resend { white-space: nowrap; }

/* 더 보기 */
.live-more { text-align: center; margin: 16px 0 4px; }
.live-more button { background: #fff; border: 1px solid var(--line); color: #51606e; border-radius: 999px; padding: 10px 22px; font-size: 14px; font-weight: 600; cursor: pointer; }
.live-more button:hover { border-color: #c2c7ff; color: #3b3ff0; }

/* 필터 탭 */
.live-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.live-filter .lf { background: #fff; border: 1px solid var(--line); color: #51606e; border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 600; cursor: pointer; }
.live-filter .lf:hover { border-color: #c2c7ff; }
.live-filter .lf.on { background: #3b3ff0; border-color: #3b3ff0; color: #fff; }

.card.n-new .value { color: #3b3ff0; }

/* AI 에이전트 패널(대시보드) */
.ai-panel { border: 1px solid #d7dcff; background: linear-gradient(180deg, #f7f8ff 0%, #ffffff 60%); }
.ai-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.ai-ava { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg,#3b3ff0,#6a3df0); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.ai-id { display: flex; flex-direction: column; }
.ai-id b { font-size: 16px; color: #11163a; }
.ai-sub { font-size: 12px; color: #8a93a0; }
.ai-brief { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: #2b3553; white-space: pre-line; word-break: keep-all; }
.ai-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.ai-act { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; transition: transform .15s, box-shadow .2s, border-color .2s; word-break: keep-all; }
.ai-act:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,63,240,.12); border-color: #c2c7ff; }
.ai-act.urgent { border-color: #ffd2d2; background: #fff7f7; }
.ai-act-l { font-weight: 700; font-size: 13.5px; color: #11163a; line-height: 1.35; }
.ai-act-h { font-size: 11.5px; color: #7b8794; line-height: 1.45; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-chip { background: #eef0ff; color: #3b3ff0; border: none; border-radius: 999px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s; }
.ai-chip:hover { background: #e0e3ff; }
.ai-log { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 12px; }
.ai-log:empty { display: none; }
.ai-msg { padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; max-width: 88%; word-break: keep-all; }
.ai-me { align-self: flex-end; background: #3b3ff0; color: #fff; border-bottom-right-radius: 3px; }
.ai-bot { align-self: flex-start; background: #f1f3f9; color: #2b3553; border-bottom-left-radius: 3px; white-space: normal; }
.ai-form { display: flex; gap: 8px; }
.ai-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.ai-form input:focus { outline: none; border-color: #3b3ff0; }
.ai-form button { background: #3b3ff0; color: #fff; border: none; border-radius: 10px; padding: 0 20px; font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.ai-form button:hover { background: #2f33d6; }
.ai-form button:disabled { opacity: .55; cursor: default; }

.man-shot { margin: 16px 0 0; }
.man-shot img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(29,51,84,.08); }
.man-shot figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center; }
.man-faq { margin-top: 8px; }
.man-q { font-weight: 700; margin: 16px 0 4px; font-size: 15px; }
.man-a { color: #51606e; font-size: 14.5px; line-height: 1.6; margin: 0; word-break: keep-all; }
@media (max-width: 760px) {
  .man-layout { grid-template-columns: 1fr; }
  .man-toc { position: static; }
}

/* ════════ 랜딩 리디자인 (사방넷 레퍼런스 스타일) ════════ */
:root { --ink: #11163a; --indigo: #3b3ff0; --indigo-soft: #eef0ff; }

/* 상단 네비(투명→스크롤시 흰배경) */
.lpn {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: 14px 32px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.lpn .brand-logo { height: 30px; display: block; }
.lpn .menu { display: flex; gap: 26px; margin-left: 10px; }
.lpn .menu a { color: #3a4452; font-weight: 600; font-size: 15px; }
.lpn .menu a:hover { color: var(--indigo); }
.lpn .sp { flex: 1; }
.lpn .login { color: #51606e; font-weight: 600; font-size: 15px; }
.lpn .start {
  background: var(--indigo); color: #fff; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; transition: transform .15s, box-shadow .2s;
}
.lpn .start:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,63,240,.3); }
@media (max-width: 860px) { .lpn .menu { display: none; } }

/* 공통 배지/헤딩 */
.pill {
  display: inline-block; background: var(--indigo-soft); color: var(--indigo);
  font-weight: 800; font-size: 13px; padding: 7px 16px; border-radius: 999px; letter-spacing: -.2px;
}
.lp-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.lp-head .pill { margin-bottom: 18px; }
.lp-head h2 { font-size: 32px; line-height: 1.32; font-weight: 800; letter-spacing: -.8px; margin: 0 0 16px; color: var(--ink); word-break: keep-all; }
.lp-head h2 .thin { font-weight: 500; color: #2b3553; }
.lp-head p { color: #6b7684; font-size: 16.5px; line-height: 1.7; margin: 0; word-break: keep-all; }
.lp-sec { max-width: 1120px; margin: 0 auto; padding: 84px 24px; }
.lp-sec.alt { max-width: none; background: #f6f7fb; }
.lp-sec.alt > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

/* 히어로(다크 그라데이션) */
.hero2 { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0f1238 0%, #1d2080 52%, #3a2f9e 100%); }
.hero2::before, .hero2::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero2::before { width: 460px; height: 460px; background: #4f5bff; top: -120px; right: -80px; }
.hero2::after { width: 380px; height: 380px; background: #6a3df0; bottom: -140px; left: -60px; }
.hero2 .inner { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 82px 24px 92px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: center; }
.hero2 .pill { background: rgba(255,255,255,.14); color: #e3e6ff; backdrop-filter: blur(4px); }
.hero2 h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: -1.2px; margin: 18px 0 18px; word-break: keep-all; }
.hero2 h1 .ac { color: #9db2ff; }
.hero2 .sub { font-size: 17px; line-height: 1.75; color: #c3c9ec; margin: 0 0 30px; word-break: keep-all; max-width: 520px; }
.hero2 .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero2 .b1 { background: #fff; color: #1a1f6b; font-weight: 800; padding: 14px 26px; border-radius: 999px; transition: transform .15s, box-shadow .2s; }
.hero2 .b1:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.hero2 .b2 { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; padding: 14px 24px; border-radius: 999px; border: 1px solid rgba(255,255,255,.4); }
.hero2 .b2:hover { background: rgba(255,255,255,.2); }
.hero2 .note { margin: 18px 0 0; font-size: 13px; color: #aab2dc; }
/* 히어로 우측 실제화면 프레임 */
.hero2 .shot { position: relative; z-index: 1; }
.hero-win { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: floaty 6s ease-in-out infinite; }
.hero-win .bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #eef2f7; }
.hero-win .bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-win .bar .u { margin-left: 10px; font-size: 11px; color: #7b8794; background: #fff; border: 1px solid #e4e7eb; border-radius: 6px; padding: 3px 12px; }
.hero-win img { width: 100%; display: block; }
@media (max-width: 860px) {
  .hero2 .inner { grid-template-columns: 1fr; gap: 34px; padding: 56px 20px 64px; text-align: center; }
  .hero2 .sub { margin-left: auto; margin-right: auto; }
  .hero2 .cta { justify-content: center; }
  .hero2 h1 { font-size: 32px; }
}

/* 프로세스 플로우(화살표 연결 카드) — 한 줄 */
.flow { display: flex; flex-wrap: nowrap; justify-content: center; align-items: stretch; gap: 6px; }
.fcard { flex: 1 1 0; min-width: 0; max-width: 210px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 14px; text-align: center;
  transition: transform .2s, box-shadow .2s; }
.fcard:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(20,40,80,.12); }
.fcard .fi { width: 52px; height: 52px; margin: 0 auto 13px; border-radius: 14px; background: var(--indigo-soft);
  display: flex; align-items: center; justify-content: center; font-size: 25px; }
.fcard h3 { margin: 0 0 7px; font-size: 15.5px; color: var(--ink); word-break: keep-all; }
.fcard p { margin: 0; font-size: 12.5px; color: #7b8794; line-height: 1.5; word-break: keep-all; }
.flow .arr { display: flex; align-items: center; color: #c3ccdb; font-size: 20px; font-weight: 700; flex: none; }
@media (max-width: 980px) {
  .flow { flex-wrap: wrap; gap: 10px; }
  .fcard { flex: 1 1 200px; max-width: none; }
  .flow .arr { display: none; }
}

/* 실제화면 갤러리 */
.shot-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 980px; margin: 28px auto 0; }
.gshot { margin: 0; }
.gshot img { width: 100%; display: block; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(20,40,80,.10); }
.gshot figcaption { margin-top: 11px; text-align: center; font-size: 13.5px; color: #51606e; font-weight: 600; word-break: keep-all; }
@media (max-width: 760px) { .shot-gallery { grid-template-columns: 1fr; } }

/* 연동 채널/택배사 월 */
.conn { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.conn-l h2 { font-size: 30px; font-weight: 800; letter-spacing: -.8px; line-height: 1.35; margin: 16px 0 14px; color: var(--ink); word-break: keep-all; }
.conn-l h2 .thin { font-weight: 500; color: #2b3553; }
.conn-l p { color: #6b7684; font-size: 16px; line-height: 1.7; margin: 0 0 24px; word-break: keep-all; }
.conn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.conn-grid .cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 10px;
  text-align: center; font-weight: 700; font-size: 14px; color: #44505f; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.conn-grid .cell .ci { font-size: 22px; }
@media (max-width: 860px) { .conn { grid-template-columns: 1fr; gap: 30px; } }

/* 실제 화면 프레임(섹션용) */
.shot-frame { max-width: 980px; margin: 0 auto; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 28px 70px rgba(20,40,80,.18); background: #fff; }
.shot-frame .bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #eef2f7; border-bottom: 1px solid var(--line); }
.shot-frame .bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.shot-frame .bar .u { margin-left: 12px; font-size: 12px; color: #7b8794; background: #fff; border: 1px solid #e4e7eb; border-radius: 6px; padding: 3px 14px; }
.shot-frame img { width: 100%; display: block; }

/* 기능 카드 그리드(리디자인) */
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 18px; }
.fbox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .2s, box-shadow .2s; }
.fbox:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(20,40,80,.12); }
.fbox .fi { width: 50px; height: 50px; border-radius: 13px; background: var(--indigo-soft); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; }
.fbox h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.fbox p { margin: 0; color: #6b7684; font-size: 14.5px; line-height: 1.6; word-break: keep-all; }

/* 요금제(리디자인) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; position: relative; transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(20,40,80,.12); }
.pcard.hot { border: 2px solid var(--indigo); box-shadow: 0 16px 44px rgba(59,63,240,.16); }
.pcard .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--indigo); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 14px; border-radius: 999px; }
.pcard h3 { margin: 0 0 4px; font-size: 19px; color: var(--ink); }
.pcard .amt { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -1px; margin: 8px 0 0; }
.pcard .amt small { font-size: 15px; font-weight: 500; color: #7b8794; }
.pcard ul { list-style: none; padding: 0; margin: 18px 0 0; }
.pcard li { padding: 9px 0 9px 26px; position: relative; font-size: 14.5px; color: #44505f; border-top: 1px solid var(--line); }
.pcard li::before { content: "✓"; position: absolute; left: 2px; color: var(--indigo); font-weight: 800; }

/* CTA 밴드(리디자인) */
.ctab { position: relative; overflow: hidden; text-align: center; color: #fff; padding: 80px 24px;
  background: linear-gradient(135deg, #0f1238 0%, #2a2d8c 60%, #3a2f9e 100%); }
.ctab h2 { font-size: 32px; font-weight: 800; letter-spacing: -.8px; margin: 0 0 12px; color: #fff; word-break: keep-all; }
.ctab p { color: #c3c9ec; font-size: 16px; margin: 0 0 26px; }
.ctab .b1 { background: #fff; color: #1a1f6b; font-weight: 800; padding: 15px 34px; border-radius: 999px; display: inline-block; transition: transform .15s, box-shadow .2s; }
.ctab .b1:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.35); }

@media (max-width: 640px) {
  .lp-sec { padding: 56px 18px; }
  .lp-head h2, .conn-l h2, .ctab h2 { font-size: 24px; }
  .hero2 h1 { font-size: 27px; }
}

/* ── 본사 AI 심사 에이전트팀 ──────────────────────────────── */
.ai-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.agent { display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: #fff; border: 1px solid #e3e7f3; border-radius: 12px; }
.agent-ic { font-size: 22px; }
.agent b { display: block; font-size: 13.5px; color: #11163a; }
.agent-role { display: block; font-size: 11.5px; color: #8a93a0; line-height: 1.4; }
.ai-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 10px; border-top: 1px solid #e8ebf5; }
.switch { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); cursor: pointer; }
.switch.num { gap: 8px; }
.switch input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--primary); }
.vbadge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.vbadge.v-ok { background: #e6f7ed; color: #1a8245; }
.vbadge.v-bad { background: #fde8e8; color: #c0392b; }
.vbadge.v-warn { background: #fff4e0; color: #b9770e; }
button.link, .link { background: none; border: none; color: var(--primary); font-size: 12px; cursor: pointer; padding: 0 2px; text-decoration: underline; }
.kw { display: inline-block; padding: 1px 8px; margin: 1px 0; background: #eef2ff; color: #3730a3; border-radius: 999px; font-size: 11.5px; }

/* 거래처 표 키워드 셀(칩 묶음) */
.vc-kws { display: flex; flex-wrap: wrap; gap: 4px; }

/* 대시보드 KPI 요약 표(가로형 — 지표=헤더 행, 값=데이터 행) */
.kpi-table th { text-align: center; }
.kpi-table td { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: -.5px; padding: 14px 12px; color: var(--text); }

/* 대시보드 14일 매출 표 — 합계 행 강조 */
.sales-table tfoot td { font-weight: 800; background: #f7f9fc; }

/* ── 판매 채널 연동 목록 ──────────────────────────────────── */
.ch-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ch-item { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; }
.ch-item { word-break: keep-all; }
.ch-item .ch-ic { font-size: 18px; }
.ch-logo { width: 22px; height: 22px; border-radius: 6px; display: block; }
.conn-grid .cell .ci-logo { width: 34px; height: 34px; border-radius: 9px; display: block; margin: 0 auto 2px; }
.ch-badge { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: #eef1f4; color: #7b8794; font-weight: 700; }
.ch-badge.on { background: #e6f7ed; color: #1a8245; }
.ch-badge.wait { background: #fff4e0; color: #b9770e; }

/* 시작하기(온보딩 4단계) */
.start-panel { border: 1px solid #cfe0ff; background: linear-gradient(180deg,#f6f9ff,#fff); }
.start-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.start-head b { font-size: 16px; }
.start-desc { margin: 4px 0 12px; font-size: 13px; }
.start-steps { display: grid; gap: 8px; }
.start-step { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: inherit; word-break: keep-all; }
.start-step:hover { border-color: #9db8ff; }
.start-step.done { background: #f4fbf6; border-color: #cdeed8; }
.start-step .st-ok { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #1a8245; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.start-step .st-no { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #eef1f4; color: #7b8794; font-size: 12px; font-weight: 800; flex: none; }
.start-step .st-label { flex: 1; font-weight: 700; font-size: 14px; }
.start-step.done .st-label { color: #6b7680; font-weight: 600; }
.start-step .st-go { color: var(--brand,#2a56d6); font-weight: 800; font-size: 13px; white-space: nowrap; }

/* KPI 카드(대시보드) */
.kpi-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.kpi-cards .kpi { border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; background: #fff; }
.kpi-cards .kpi .k-label { font-size: 12px; color: #7b8794; font-weight: 700; word-break: keep-all; }
.kpi-cards .kpi .k-val { font-size: 20px; font-weight: 800; margin-top: 3px; white-space: nowrap; }

/* 매출 막대(스파크) */
.sales-bars { display: grid; gap: 5px; }
.sb-row { display: grid; grid-template-columns: 74px 1fr 92px; align-items: center; gap: 8px; font-size: 12px; }
.sb-row .sb-date { color: #7b8794; white-space: nowrap; }
.sb-track { background: #eef1f4; border-radius: 6px; height: 14px; overflow: hidden; }
.sb-fill { height: 100%; background: linear-gradient(90deg,#2a56d6,#5b8def); border-radius: 6px; min-width: 2px; }
.sb-row .sb-amt { text-align: right; white-space: nowrap; font-weight: 700; }

/* ON/OFF 스위치(동그라미 슬라이드) — 모든 켜기/끄기 설정 공용 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cbd3db; border-radius: 999px; transition: .2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: #35c759; }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid #2a56d6; outline-offset: 2px; }

/* 스위치를 라벨과 한 줄로(설정 행) */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; word-break: keep-all; }
.switch-row .sw-text b { font-weight: 700; font-size: 14px; }
.switch-row .sw-text .hint { display: block; margin-top: 2px; }

/* 채널 목록 단일 열 + 스위치 우측 정렬 */
.ch-list.ch-list-1 { grid-template-columns: 1fr; }
.ch-item .ch-item-l { display: flex; align-items: center; gap: 8px; flex: 1; }
.ch-list-1 .ch-item { justify-content: space-between; }

/* 발주서 미리보기(셀러가 보는 양식) */
.po-doc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.po-msg { border: 1px solid #e6ebf1; background: #fafbfc; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.po-msg-label { font-size: 12px; font-weight: 800; color: #7b8794; margin-bottom: 6px; }
.po-msg-text { margin: 0; white-space: pre-wrap; word-break: keep-all; font: inherit; font-size: 13px; line-height: 1.55; color: #33404d; }
.po-doc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.po-doc-table th, .po-doc-table td { border-bottom: 1px solid #eef1f4; padding: 8px 6px; text-align: left; vertical-align: top; }
.po-doc-table th { color: #7b8794; font-size: 12px; }
.po-doc-table .c-amt { text-align: right; white-space: nowrap; }

/* 날짜 칩(발주 쉬는 특정일) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 10px; background: #eef2f7; border-radius: 999px; font-size: 12px; font-weight: 700; color: #45505c; white-space: nowrap; }
.chip button { border: none; background: #d7dee6; color: #55606b; width: 17px; height: 17px; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 12px; padding: 0; min-height: 0; }
.chip button:hover { background: #c2ccd6; }

/* 체크박스 필드(공휴일 제외 등) */
.check-field { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; cursor: pointer; }
.check-field input[type="checkbox"] { width: 18px; height: 18px; flex: none; accent-color: var(--brand,#142c4b); }
.check-field > span { font-weight: 700; font-size: 14px; }
.check-field .hint { flex-basis: 100%; margin-left: 26px; }

/* 주문 수집 방식 토글(버튼 한 줄) */
.ch-toggle { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-toggle-btn { word-break: keep-all; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #55606b; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s; }
.ch-toggle-btn:hover { border-color: #b9c2cc; }
.ch-toggle-btn.on { background: var(--brand, #142c4b); border-color: var(--brand, #142c4b); color: #fff; }
.ch-toggle-btn .ch-dot { color: #35d07f; font-size: 9px; vertical-align: middle; }

/* 연동 안내 박스 */
.info-box { border: 1px solid #d7dcff; background: #f7f8ff; border-radius: 12px; padding: 14px 16px; }
.info-box b { color: #11163a; }
.info-box ol { margin: 8px 0 12px; padding-left: 20px; }
.info-box ol li { font-size: 13.5px; color: #44505f; line-height: 1.7; }
summary.ds { cursor: pointer; font-weight: 600; color: var(--text); padding: 6px 0; }

/* ── 약관/개인정보 법적 페이지 ────────────────────────────── */
.legal { max-width: 820px; margin: 32px auto 64px; padding: 0 22px; line-height: 1.75; color: #2b3340; }
.legal h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.legal .legal-meta { color: var(--muted); font-size: 13px; margin: 0 0 28px; }
.legal h2 { font-size: 17px; font-weight: 700; margin: 28px 0 8px; color: #11163a; }
.legal p { margin: 8px 0; font-size: 14.5px; word-break: keep-all; }
.legal ul { margin: 8px 0; padding-left: 20px; }
.legal li { font-size: 14.5px; margin: 5px 0; word-break: keep-all; }
.legal .legal-back { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ── 파트너 준비 점검 현황 ────────────────────────────────── */
.partner-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 6px; }
.pcard2 { border: 1px solid #e3e7f3; border-radius: 12px; padding: 14px; background: #fff; }
.pc-top { display: flex; align-items: center; gap: 8px; }
.pc-top b { font-size: 15px; color: #11163a; }
.pc-score { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.pc-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.pchk { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; }
.pchk.ok { background: #e6f7ed; color: #1a8245; }
.pchk.no { background: #fde8e8; color: #c0392b; }
.pc-how { font-size: 12px; line-height: 1.5; margin-bottom: 10px; }
.pc-status { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.pc-status select { width: auto; padding: 6px 10px; }

/* ── 발주 자동발송 현황판 ─────────────────────────────────── */
.auto-banner { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin: -4px 0 18px;
  background: linear-gradient(180deg,#f7f8ff 0%,#fff 100%); border: 1px solid #d7dcff; border-radius: 14px; }
.auto-banner .ab-ic { font-size: 22px; }
.auto-banner b { display: block; font-size: 14.5px; color: #11163a; }
.auto-banner .muted { font-size: 12.5px; }
.upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.up-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: #fff; }
.up-card.warn { border-color: #f3c98b; background: #fffaf0; }
.up-main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.up-main b { font-size: 15px; color: #11163a; }
.up-cnt { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.up-when { margin-top: 6px; font-size: 13px; color: var(--text); }
.up-act { margin-top: 10px; display: flex; gap: 14px; }
.done-summary { padding: 16px 20px; font-size: 16px; font-weight: 700; cursor: pointer; }
.done-summary::marker { color: var(--muted); }
.po-hint { display: block; width: 100%; margin-top: 6px; font-size: 12px; }

/* ── 랜딩: Before/After ───────────────────────────────────── */
.ba { display: flex; align-items: stretch; justify-content: center; gap: 18px; max-width: 920px; margin: 0 auto; flex-wrap: wrap; }
.ba-col { flex: 1; min-width: 280px; border-radius: 16px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.ba-col.before { background: #fbfcfd; }
.ba-col.after { border-color: #c9d8ff; background: linear-gradient(180deg,#f5f8ff 0%,#fff 70%); box-shadow: 0 14px 40px rgba(47,111,237,.10); }
.ba-tag { display: inline-block; font-weight: 800; font-size: 13px; padding: 5px 13px; border-radius: 999px; margin-bottom: 14px; }
.ba-col.before .ba-tag { background: #eef1f4; color: #7b8794; }
.ba-col.after .ba-tag { background: var(--primary); color: #fff; }
.ba-col ul { list-style: none; margin: 0; padding: 0; }
.ba-col li { position: relative; padding: 9px 0 9px 26px; font-size: 14.5px; border-bottom: 1px dashed var(--line); color: var(--text); }
.ba-col li:last-child { border-bottom: 0; }
.ba-col.before li { color: #8a93a0; }
.ba-col.before li::before { content: "✕"; position: absolute; left: 2px; color: #c0392b; font-weight: 700; }
.ba-col.after li::before { content: "✓"; position: absolute; left: 2px; color: #1a8245; font-weight: 800; }
.ba-arrow { display: flex; align-items: center; font-size: 30px; color: var(--primary); }

/* ── 랜딩: 고객 후기 ──────────────────────────────────────── */
.tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 1040px; margin: 0 auto; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.t-stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
.tcard blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text); flex: 1; word-break: keep-all; }
.tcard figcaption { display: flex; align-items: center; gap: 11px; border-top: 1px solid var(--line); padding-top: 13px; }
.t-ava { width: 40px; height: 40px; border-radius: 50%; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tcard figcaption b { display: block; font-size: 13.5px; color: #11163a; }
.tcard figcaption span { font-size: 12px; color: var(--muted); }
@media (max-width: 720px) {
  .ba { flex-direction: column; }
  .ba-arrow { transform: rotate(90deg); justify-content: center; }
}

/* ── 랜딩 비주얼 폴리시(sellerbox 톤: 밝고 통일감) ─────────── */
/* 다크 섹션(히어로·통계·CTA)을 한 그라데이션 가족으로 통일 */
.stats { background: linear-gradient(135deg, #0f1238 0%, #1d2080 55%, #3a2f9e 100%); }
.stats .n { background: linear-gradient(90deg, #ffffff, #b9c4ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats .n small { -webkit-text-fill-color: #9db2ff; }

/* 섹션 제목 강조 언더라인(브랜드 그라데이션) */
.lp-head h2 { position: relative; padding-bottom: 20px; }
.lp-head h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 48px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--indigo), #6a3df0); }

/* 아이콘 타일 — 그라데이션 + 부드러운 그림자 */
.fbox .fi, .fcard .fi { background: linear-gradient(135deg, #eef0ff, #e0e6ff);
  box-shadow: 0 6px 16px rgba(59, 63, 240, .12); }

/* 카드 테두리 옅게(에어리한 느낌) */
.fbox, .pcard, .tcard, .conn-grid .cell, .ba-col, .up-card { border-color: #eceef5; }

/* 1차 CTA 버튼 — 블루 그라데이션 */
.lpn .start, .conn-l .start { background: linear-gradient(135deg, var(--indigo), #5a4bff); border: none; }

/* 배지 살짝 입체 */
.pill { box-shadow: 0 2px 8px rgba(59, 63, 240, .08); }

/* 인기 요금제 카드 — 살짝 띄워 강조 */
.pcard.hot { transform: translateY(-6px); }
.pcard.hot:hover { transform: translateY(-10px); }

/* ══ 핸드폰 최적화(셀러 앱 화면) ══════════════════════════════
   셀러는 대부분 폰으로 운영 — 표는 가로 스크롤, 네비는 스와이프,
   입력창은 16px(iOS 확대 방지), 버튼은 44px 터치 타깃. */
@media (max-width: 640px) {
  /* iOS 포커스 확대 방지 + 터치 타깃 */
  input, select, textarea { font-size: 16px; }
  button { min-height: 44px; }

  /* 본문 여백·타이포 */
  main { margin: 14px auto; padding: 0 13px; }
  h1 { font-size: 21px; margin-bottom: 13px; }
  h2 { font-size: 16px; }
  .panel { padding: 15px 14px; border-radius: 12px; }

  /* 네비게이션 — 가로 스와이프(모든 메뉴 유지), 브랜드는 좌측 고정 */
  header#nav { gap: 2px; padding: 0 10px; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  header#nav::-webkit-scrollbar { display: none; }
  header#nav .brand { position: sticky; left: 0; background: var(--card);
    margin: 0 4px 0 0; padding-right: 6px; z-index: 2; }
  header#nav a { flex: 0 0 auto; white-space: nowrap; padding: 6px 9px; font-size: 14px; }
  header#nav a.right { margin-left: 6px; }       /* auto 대신 끝에 위치(스크롤로 접근) */
  .brand-logo { height: 26px; }

  /* 표 — 패널 안에서 가로 스크롤, 컬럼 눌림 방지 */
  .panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main table { min-width: 540px; }

  /* 카드 그리드 한 줄 2개 */
  .cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 13px 14px; }
  .card .value { font-size: 22px; }

  /* 대시보드 KPI 카드 2열 + 시작하기/막대는 표 스크롤 대상에서 제외 */
  .kpi-cards { grid-template-columns: repeat(2, 1fr); }
  .kpi-cards .kpi .k-val { font-size: 18px; }
  .sb-row { grid-template-columns: 60px 1fr 78px; }
  .start-step { padding: 12px; }

  /* 액션 버튼 줄 간격 */
  .row { gap: 8px; }

  /* 발주 현황판·후기·Before/After 카드 한 줄 1개 */
  .upcoming, .tgrid { grid-template-columns: 1fr; }

  /* 토스트 폭 맞춤 */
  #toast { left: 12px; right: 12px; bottom: 12px; transform: none; max-width: none; text-align: center; }
}
