:root {
  --brand: #D82D28;
  --brand-dark: #B4231F;
  --ink: #2C2C2C;
  --ink-logo: #111111;
  --line: #111111;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --muted: #6b7c90;
  --border: #e5eaf0;
}
* { box-sizing: border-box; }
html, body, select, input, textarea, button { margin: 0; font: 12px 'Nanum Gothic', NanumGothic, 'Malgun Gothic', 'dotum', sans-serif; color: #666; }
html, body { padding: 0; background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
#wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.b2b-main { flex: 1; width: min(1200px, 100%); margin: 0 auto; padding: 20px 16px 48px; }
.b2b-header { background: #fff; border-bottom: 1px solid #eee; }
.b2b-header__mobilebar { display: none; background: var(--brand); color: #fff; align-items: center; justify-content: space-between; padding: 8px 12px; }
.b2b-header__mlogo { display: flex; align-items: center; gap: 8px; color: #fff; }
.b2b-header__mlogo img { height: 28px; }
.b2b-header__toggle { background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.logo_zone { width: min(1200px, 100%); margin: 0 auto; position: relative; height: 115px; padding: 0 16px; display: flex; align-items: flex-start; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 0; }
.logo img { display: block; margin-top: 42px; height: 28px; width: auto; max-width: 160px; }
.b2b-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 11px; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 4px; }
.logo .b2b-badge { margin-top: 42px; }
.pc-auth-float { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 12px; flex-shrink: 0; padding-top: 42px; }
.pc-auth-float a { border: 1px solid var(--line); padding: 0 14px; height: 38px; line-height: 38px; border-radius: 12px; font-weight: 700; font-size: 13px; box-sizing: border-box; }
.pc-auth-float a.mypage_btn { background: var(--brand); color: #fff; border-color: var(--brand); }
.pc-auth-float .who { color: var(--muted); margin-right: 6px; }
.b2b-nav { width: min(1200px, 100%); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid #f0f0f0; }
.b2b-nav a { padding: 0 18px; height: 42px; line-height: 42px; font-size: 13px; font-weight: 700; color: #333; border-bottom: 3px solid transparent; }
.b2b-nav a.is-on, .b2b-nav a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 8px 0 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 16px; color: #333; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 12px; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
  height: 36px; border: 1px solid #d8e0ea; border-radius: 8px; padding: 0 10px; font-size: 12px;
}
.form-row textarea { height: 90px; padding: 10px 12px; }
.hint { font-size: 12px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.gray { background: #f5f5f5; color: #333; border-color: #ddd; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { border-bottom: 1px solid #eef2f6; padding: 10px 8px; text-align: left; white-space: nowrap; }
table.data th { background: #f8fafc; font-size: 12px; }
table.data td.wrap { white-space: normal; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; background: #f3f4f6; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filters label { font-size: 12px; font-weight: 700; display: flex; flex-direction: column; gap: 4px; }
.filters input, .filters select { height: 38px; border: 1px solid #d8e0ea; border-radius: 8px; padding: 0 10px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.stat .lbl { font-size: 12px; color: var(--muted); }
.stat .val { font-size: 20px; font-weight: 800; color: var(--brand); margin-top: 4px; }
.upload-dropzone { border: 2px dashed #d0d7e2; border-radius: 12px; padding: 18px; text-align: center; background: #fafbfc; }
.upload-dropzone.is-dragover { border-color: var(--brand); background: #fff5f5; }
.upload-dropzone__title { margin: 0 0 6px; font-weight: 800; }
.upload-dropzone__hint { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.img-preview { max-width: 160px; max-height: 160px; margin: 8px auto; display: block; border-radius: 8px; }
.mobile-capture { display: none; gap: 8px; justify-content: center; margin-top: 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shop-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.shop-card img { width: 100%; height: 180px; object-fit: cover; background: #f3f4f6; }
.shop-card .body { padding: 12px; }
.shop-card .wh { font-size: 11px; color: var(--muted); }
.shop-card .name { font-weight: 800; margin: 4px 0; font-size: 12px; }
.shop-card .price { color: var(--brand); font-weight: 800; font-size: 14px; }
.auth-box { max-width: 420px; margin: 24px auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px; width: 100%; }
.auth-box h1 { margin: 0 0 6px; font-size: 16px; }
.hero h1 { font-size: 16px; }
.b2b-footer { background: #111; color: #ddd; padding: 28px 16px; font-size: 12px; line-height: 1.7; }
.b2b-footer ul { width: min(1200px, 100%); margin: 0 auto; padding: 0; list-style: none; }
.b2b-footer li:first-child { color: #fff; font-weight: 800; margin-bottom: 8px; }
.hero { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.hero h1 { margin: 0 0 8px; }
.hero .b2b-badge { vertical-align: middle; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.detail-box { display: none; margin-top: 10px; background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.detail-box.is-open { display: block; }
.track-log { font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
html.is-modal-open, html.is-modal-open body { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 900px) {
  .b2b-header__mobilebar { display: flex; }
  .logo_zone { min-height: auto; padding: 8px 12px; }
  .logo, .pc-auth-float { display: none; }
  .b2b-nav { display: none; flex-direction: column; background: #fff; }
  .b2b-nav.is-open { display: flex; }
  .form-grid, .stat-grid, .shop-grid { grid-template-columns: 1fr 1fr; }
  .upload-dropzone { display: none; }
  .mobile-capture { display: flex; }
  .shop-card img { height: 140px; }
}
@media (max-width: 640px) {
  .form-grid, .stat-grid, .shop-grid { grid-template-columns: 1fr; }
}
