:root {
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #111827;
  --sub: #6b7280;
  --line: #e5e7eb;
  --blue: #2563eb;
  --purple: #6d28d9;
  --purple-bg: #f5f3ff;
  --green: #059669;
  --green-bg: #ecfdf5;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --red: #dc2626;
  --red-bg: #fef2f2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 14px;
  word-break: keep-all;
}

.wrap {
  max-width: 460px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.topbar h1 {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.zero-api-badge {
  font-size: 11px;
  font-weight: 800;
  background: var(--purple-bg);
  color: var(--purple);
  padding: 4px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.card {
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

.field {
  margin-bottom: 14px;
}

.mb-0 {
  margin-bottom: 0;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.label-row label {
  margin-bottom: 0;
}

.scan-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.scan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  color: #fff;
  padding: 10px 6px;
  border-radius: 11px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.25;
}

.scan-btn strong {
  font-size: 13.5px;
  font-weight: 800;
}

.scan-btn small {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.88;
}

.scan-btn.nike-scan {
  background: #111827;
}

.scan-btn.adidas-scan {
  background: #1d4ed8;
}

.scan-btn.unified-scan {
  width: 100%;
  background: #111827;
  padding: 13px 10px;
  margin-bottom: 10px;
}

.scan-btn.unified-scan strong {
  font-size: 15px;
}

.scan-btn.unified-scan small {
  font-size: 11px;
}

.scanner-box {
  position: relative;
  width: 100%;
  height: 210px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.scanner-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan-target-frame {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22%;
  bottom: 26%;
  border: 2px solid #22c55e;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.scan-toast {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
}

.close-scan-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.scan-notice {
  margin-top: 8px;
  padding: 8px 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #065f46;
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
}

.lookup-btn {
  border: none;
  background: var(--purple);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.clear-btn {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 13px 12px;
  font-size: 18px;
  font-weight: 800;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  text-transform: uppercase;
}

input:focus {
  outline: none;
  border-color: var(--blue);
}

.discount-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}

.d-btn {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  padding: 9px 4px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.d-btn.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* 크림 & 포이즌 공통 카드 스타일 */
.kream-card {
  border: 1.5px solid #cbd5e1;
  border-top: 3.5px solid #111827;
}

.kream-card .poizon-loading {
  color: #111827;
}

.poizon-card {
  border: 1.5px solid #ddd6fe;
  border-top: 3.5px solid var(--purple);
}

.poizon-loading {
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--purple);
  padding: 12px 0;
  line-height: 1.45;
}

.pz-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pz-thumb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.pz-prod-meta {
  min-width: 0;
  flex: 1;
}

.kr-tag,
.pz-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}

.kr-tag {
  color: #111827;
}

.pz-tag {
  color: var(--purple);
}

.pz-prod-meta strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
}

.kr-meta-sub {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sub);
  margin-top: 2px;
}

.hist-mini-btn {
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 800;
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.kr-refresh-btn {
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 800;
  color: #111827;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.pz-refresh-btn {
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 800;
  color: #5b21b6;
  background: #ede9fe;
  border: 1px solid #c4b5fd;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.card-cut-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 11px;
  margin-bottom: 8px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
}

.card-cut-bar.kream-cut {
  background: #f8fafc;
  border-color: #94a3b8;
  border-left: 4px solid #111827;
}

.card-cut-bar.poizon-cut {
  background: #f5f3ff;
  border-color: #c4b5fd;
  border-left: 4px solid var(--purple);
}

.card-cut-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-cut-badge {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.poizon-cut .card-cut-badge {
  color: #5b21b6;
}

.card-cut-left small {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sub);
}

.card-cut-left small b {
  color: #111827;
  font-weight: 800;
}

.card-cut-price {
  font-size: 23px;
  font-weight: 900;
  color: #059669;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.poizon-cut .card-cut-price {
  color: var(--purple);
}

.pz-verdict {
  padding: 11px 12px;
  border-radius: 11px;
  background: #f8fafc;
  text-align: center;
  margin-bottom: 10px;
}

.pz-verdict strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.pz-verdict span {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  opacity: 0.88;
}

.pz-verdict.buy {
  background: var(--green-bg);
  color: var(--green);
}

.pz-verdict.hold {
  background: var(--amber-bg);
  color: var(--amber);
}

.pz-verdict.pass {
  background: var(--red-bg);
  color: var(--red);
}

.pz-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12.5px;
}

.pz-table th:nth-child(1),
.pz-table td:nth-child(1) {
  width: 24%;
}

.pz-table th:nth-child(2),
.pz-table td:nth-child(2) {
  width: 31%;
}

.pz-table th:nth-child(3),
.pz-table td:nth-child(3) {
  width: 26%;
}

.pz-table th:nth-child(4),
.pz-table td:nth-child(4) {
  width: 19%;
}

.pz-table th,
.pz-table td {
  padding: 7px 2px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  vertical-align: middle;
}

.pz-table th {
  background: #f8fafc;
  font-size: 11px;
  color: var(--sub);
  white-space: nowrap;
}

.pz-table tr.hot-row {
  background: #f0fdf4;
}

.pz-table tr.outlier-row {
  opacity: 0.55;
}

.pz-table td:first-child strong {
  display: block;
}

.sz-sales {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #374151;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 99px;
  margin-top: 2px;
  white-space: nowrap;
}

.sz-sales.hot-sales {
  color: #b91c1c;
  background: #fee2e2;
  font-weight: 800;
}

.sz-sales.pz-hot-sales {
  color: #5b21b6;
  background: #ede9fe;
  font-weight: 800;
}

.sz-sales.pz-mid-sales {
  color: #4c1d95;
  background: #f5f3ff;
}

.sz-sales.zero-sales {
  color: #9ca3af;
  background: transparent;
  font-weight: 600;
  padding: 0;
}

.price-main-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

.sub-price-line {
  display: block;
  font-size: 10px;
  color: var(--sub);
  margin-top: 2px;
  line-height: 1.25;
  white-space: normal;
  word-break: keep-all;
}

.margin-col {
  text-align: center;
}

.margin-won {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.35px;
  line-height: 1.2;
  white-space: nowrap;
}

.margin-pct {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 1px;
  white-space: nowrap;
}

.verdict-col {
  font-size: 11.5px;
  letter-spacing: -0.3px;
}

.verdict-col > strong {
  display: block;
  white-space: nowrap;
}

@media (max-width: 420px) {
  body {
    padding: 10px;
  }
  .kream-card,
  .poizon-card {
    padding: 14px 10px;
  }
}

.delta-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 4.5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.delta-badge.up {
  background: #fef2f2;
  color: #dc2626;
}

.delta-badge.down {
  background: #eff6ff;
  color: #2563eb;
}

.delta-badge.same {
  background: #f3f4f6;
  color: #6b7280;
}

.delta-badge.new {
  background: #ecfdf5;
  color: #059669;
}

/* 최근 30일 시세변동 히스토리 패널 */
.history-card {
  border: 1.5px solid #bfdbfe;
  border-top: 3.5px solid var(--blue);
}

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.history-head strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
}

.history-sub {
  display: block;
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
}

.close-hist-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.hist-block {
  margin-top: 10px;
}

.hist-block:first-child {
  margin-top: 0;
}

.hist-block-title {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hist-empty {
  padding: 12px 10px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 12px;
  color: var(--sub);
  text-align: center;
}

/* 구매가격 & 1차 크림/네이버 판독 영역 */
.buy-cost-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  padding: 13px 14px;
  border-radius: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.buy-cost-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.buy-cost-label span {
  font-size: 15px;
  font-weight: 800;
  color: #1e3a8a;
}

.discount-badge {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  background: #1d4ed8;
  color: #fff;
  padding: 2px 7px;
  border-radius: 99px;
}

.buy-cost-bar strong {
  font-size: 24px;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -0.3px;
}

.target-box {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.target-headline {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #374151;
  margin-bottom: 10px;
}

.target-headline strong {
  color: var(--green);
  font-weight: 800;
}

/* 레거시 캐시 HTML 호환 방어 스타일 */
.target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.t-col {
  background: #f8fafc;
  border: 1.5px solid #dbe2ea;
  border-radius: 13px;
  padding: 11px 10px;
}

.t-hero-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  margin-bottom: 7px;
}

.t-hero-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #047857;
}

.t-hero-price {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: #059669;
}

.t-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 2px;
}

/* 3채널(크림·포이즌·네이버) +2만 순익 컷 대형 카드 */
.target-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.t-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #dbe2ea;
  border-radius: 13px;
  padding: 11px 12px;
}

.t-row-card.kream-col {
  border-left: 5px solid #111827;
}

.t-row-card.poizon-col {
  border-left: 5px solid var(--purple);
  background: #fcfbff;
  border-color: #ddd6fe;
  border-left-color: var(--purple);
}

.t-row-card.store-col {
  border-left: 5px solid #03c75a;
  background: #f7fef9;
  border-color: #bbf7d0;
  border-left-color: #03c75a;
}

.t-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.t-title {
  display: block;
  font-size: 14.5px;
  font-weight: 900;
  color: #111827;
  white-space: nowrap;
}

.t-even {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.t-even b {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
}

.t-sub {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--sub);
}

.t-cut-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  border-radius: 11px;
  padding: 11px 14px;
  text-align: center;
  min-width: 132px;
}

.t-cut-box.poizon-cut-box {
  background: var(--purple);
}

.t-cut-box.store-cut-box {
  background: #047857;
}

.t-cut-price {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  white-space: nowrap;
}

@media (min-width: 400px) {
  .t-cut-price {
    font-size: 26px;
  }
}

.jump-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.jump-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  padding: 11px 4px;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  line-height: 1.25;
}

.jump-btn strong {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

@media (min-width: 400px) {
  .jump-btn strong {
    font-size: 13.5px;
  }
}

.jump-btn small {
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.9;
  white-space: nowrap;
}

.jump-btn.kream {
  background: #111827;
}

.jump-btn.poizon {
  background: var(--purple);
}

.jump-btn.naver {
  background: #03c75a;
}

.pos {
  color: var(--green);
  font-weight: 800;
}

.neg {
  color: var(--red);
  font-weight: 700;
}

.muted {
  color: var(--sub);
  font-weight: 600;
}

.hidden {
  display: none !important;
}


/* ------------------------------------------------------------------ 이용 고지 */
.legal-footer {
  margin: 18px 4px 28px;
  padding: 14px 12px;
  border-top: 1px solid var(--line);
  color: var(--sub);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
}
.legal-footer p { margin: 0 0 8px; word-break: keep-all; }
.legal-footer strong { color: #374151; font-weight: 700; }
.legal-footer small { display: block; margin-top: 6px; color: #9ca3af; }
.legal-link-btn {
  border: none;
  background: none;
  color: var(--blue);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.legal-modal.hidden { display: none; }
.legal-sheet {
  width: 100%;
  max-width: 520px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}
.legal-sheet h2 { margin: 0 0 12px; font-size: 18px; }
.legal-sheet ol { margin: 0; padding-left: 18px; color: #374151; font-size: 13px; line-height: 1.65; }
.legal-sheet li { margin-bottom: 9px; word-break: keep-all; }
.legal-agree-btn {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}


/* ------------------------------------------------------------------ 할인 직접 입력 & 사업자 기준 표기 */
.discount-row {
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
}
.custom-disc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.custom-disc-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  background: #f9fafb;
}
.custom-disc-row input:focus {
  outline: none;
  border-color: #111827;
  background: #fff;
}
.target-basis {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--sub);
  word-break: keep-all;
}
.target-basis b { color: #111827; }


/* ------------------------------------------------------------------ 사업자 회원 & 본인 계정 연동 모달 */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.member-top-btn {
  border: 1.5px solid #111827;
  background: #fff;
  color: #111827;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.member-top-btn.logged-in {
  background: #111827;
  color: #fff;
}
.member-sheet {
  max-height: 90vh;
}
.member-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.member-sheet-head h2 {
  margin: 0;
  font-size: 17px;
}
.member-lead {
  margin: 0 0 12px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.55;
  word-break: keep-all;
}
.auth-tab-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.auth-tab {
  padding: 9px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.auth-tab.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}
.member-form label,
.fee-grid label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin: 8px 0 4px;
}
.member-form input,
.member-box input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  background: #f9fafb;
  margin-bottom: 6px;
}
.biz-verify-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.biz-verify-row input {
  flex: 1;
  margin-bottom: 0;
}
.sm-btn {
  padding: 9px 12px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
  white-space: nowrap;
}
.xs-btn {
  padding: 5px 9px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
}
.full-btn {
  width: 100%;
  margin-top: 6px;
}
.member-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  min-height: 16px;
}
.member-hint.ok { color: var(--green); font-weight: 700; }
.member-hint.err { color: var(--red); font-weight: 700; }
.member-msg {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
}
.member-msg.ok { background: var(--green-bg); color: var(--green); }
.member-msg.err { background: var(--red-bg); color: var(--red); }
.member-profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #f3f4f6;
  border-radius: 12px;
  margin-bottom: 10px;
}
.member-sub {
  display: block;
  font-size: 11.5px;
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 6px;
}
.member-box {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.member-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13.5px;
}
.cred-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}
.cred-badge.on { background: var(--green-bg); color: var(--green); }
.cred-badge.off { background: #f3f4f6; color: #6b7280; }
.member-btn-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.link-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--purple-bg);
  color: var(--purple);
  font-size: 13px;
}
.manual-token-details {
  margin-top: 8px;
  font-size: 12px;
  color: #4b5563;
}
.manual-token-details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 6px;
}
.fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.member-danger-zone {
  text-align: center;
  margin-top: 8px;
}
.danger-txt {
  color: var(--red) !important;
}


/* ------------------------------------------------------------------ 카메라 접사 가이드 & 줌/조명 컨트롤 */
.scanner-box {
  height: 276px;
}
.scan-target-frame {
  left: 4%;
  right: 4%;
  top: 13%;
  bottom: 16%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.scan-frame-guide {
  margin-top: -20px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.92);
  color: #052e16;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.scan-ctrl-left {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.scan-ctrl-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
}
.scan-ctrl-btn.active {
  background: #22c55e;
  color: #052e16;
  border-color: #22c55e;
}


/* ------------------------------------------------------------------ 1클릭 품번 복사 버튼 & 최근 검색어 칩 바 */
.code-input-wrap {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
}
.code-input-wrap input[type="text"] {
  padding-right: 38px;
}
.copy-sku-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 13.5px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.copy-sku-btn:active {
  transform: translateY(-50%) scale(0.94);
}
.copy-sku-btn.copied {
  background: var(--green-bg);
  color: var(--green);
  border-color: #a7f3d0;
  font-weight: 900;
}

.recent-sku-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1px;
}
.recent-sku-bar::-webkit-scrollbar {
  display: none;
}
.recent-sku-bar.hidden {
  display: none;
}
.recent-label {
  font-size: 11px;
  font-weight: 800;
  color: #9ca3af;
  flex-shrink: 0;
  margin-right: 1px;
}
.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px 8px 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #1f2937;
  flex-shrink: 0;
  cursor: pointer;
}
.recent-chip:active {
  background: #e5e7eb;
}
.recent-chip-del {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0 1px;
  cursor: pointer;
}
.recent-chip-del:hover {
  color: var(--red);
}
.recent-clear-all {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  flex-shrink: 0;
  padding: 2px 4px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ 발송비 설정 & 회전율·구형시세 경고 (v4) */
.ship-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.ship-cost-lbl {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  white-space: nowrap;
}
.ship-btn-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 1;
}
.ship-btn {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.ship-btn.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}
.stale-age-warn {
  display: inline-block;
  color: #b91c1c !important;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
}
.pz-table tr.fast-turn-row {
  background: #eff6ff;
}
.verdict-sub-tag {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #6b7280;
  margin-top: 1px;
}
.verdict-sub-tag.warn {
  color: #b45309;
}
.verdict-sub-tag.fast {
  color: #1d4ed8;
}

/* ------------------------------------------------------------------ 품번 불일치 경고 & 음영지역 재시도 버튼 (v7) */
.sku-mismatch-card {
  background: #fffbeb;
  border: 1.5px solid #f59e0b;
  padding: 12px 14px;
}
.sku-mismatch-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
}
.sku-mismatch-desc {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #78350f;
  line-height: 1.4;
}
.sku-mismatch-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.sku-mm-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 0;
}
.sku-mm-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 6px;
  background: #f9fafb;
  flex-shrink: 0;
}
.sku-mm-meta {
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
}
.sku-mm-meta strong {
  display: block;
  font-size: 11.5px;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sku-mm-meta span {
  display: block;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.net-retry-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.net-retry-btn {
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
}
.sku-mismatch-card.unverified {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.sku-mismatch-card.unverified .sku-mismatch-title {
  color: #334155;
}
.sku-mismatch-card.unverified .sku-mismatch-desc {
  color: #475569;
}
/* ------------------------------------------------------------------ 사이즈별 최적 판매처 한눈에 요약 카드 (v9) */
.best-ch-card {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1.5px solid #111827;
  padding: 12px 14px;
}
.best-ch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.best-ch-head strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
}
.best-ch-head small {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}
.best-ch-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.best-ch-row {
  display: grid;
  grid-template-columns: 62px auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  font-size: 12.5px;
}
.best-ch-row.target-hit {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.best-ch-sz {
  font-weight: 800;
  color: #111827;
}
.ch-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.ch-pill.kr {
  background: #111827;
  color: #ffffff;
}
.ch-pill.pz {
  background: #ede9fe;
  color: #5b21b6;
}
.best-ch-right {
  text-align: right;
  min-width: 0;
}
.best-ch-right strong {
  font-size: 13px;
  font-weight: 800;
  color: #059669;
}
.best-ch-right small {
  display: block;
  font-size: 10.5px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.best-ch-empty {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  padding: 4px 2px;
}

.sale-age-fresh {
  color: #374151;
  font-weight: 600;
}
.sale-age-muted {
  color: #9ca3af;
  font-weight: 500;
}
.sale-age-stale {
  color: #d97706;
  font-weight: 700;
}

.pz-sz-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
  text-align: center;
}
.kr-mm-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  border-radius: 5px;
  padding: 1px 5px;
  line-height: 1.3;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sound-preview-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  padding: 5px 8px;
  border-radius: 99px;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.sound-preview-btn:active {
  transform: scale(0.95);
}
.sound-toggle-btn {
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 99px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.sound-toggle-btn.on {
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.22);
}

.must-buy-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 9999;
  width: min(92vw, 420px);
  background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
  color: #ffffff;
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 11px 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32), 0 0 18px rgba(251, 191, 36, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}
.must-buy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.must-buy-toast.jackpot {
  border-color: #fde047;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38), 0 0 24px rgba(250, 204, 21, 0.55);
}
.must-buy-toast-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.must-buy-toast-body {
  min-width: 0;
  flex: 1;
}
.must-buy-toast-body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #fde047;
  letter-spacing: -0.2px;
}
.must-buy-toast-body span {
  display: block;
  font-size: 12px;
  color: #f3f4f6;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ 포이즌 7일 세션 상태 버튼 & 갱신 모달 */
.pz-top-session-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 99px;
  cursor: pointer;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.pz-top-session-btn.expired,
.pz-sess-card-btn.expired {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fca5a5;
  animation: pzSessPulse 1.8s ease-in-out infinite;
}
@keyframes pzSessPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.25); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}
.pz-sess-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pz-sess-modal {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}
.pz-sess-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pz-sess-modal-head strong {
  font-size: 15px;
}
.pz-sess-status-box {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #f3f4f6;
  color: #374151;
}
.pz-sess-status-box.warn {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.pz-sess-status-box.ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.pz-sess-steps {
  margin: 0 0 12px 18px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #374151;
}
.pz-sess-steps a {
  color: var(--purple);
  font-weight: 700;
}
.pz-copy-cmd-btn {
  display: inline-block;
  margin-top: 3px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 6px;
  border: 1px solid #ddd6fe;
  background: #f5f3ff;
  color: #5b21b6;
  cursor: pointer;
}
.pz-sess-pass-row {
  margin-bottom: 10px;
}
.pz-sess-pass-row label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pz-sess-pass-row input,
.pz-sess-modal textarea {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-family: inherit;
}
.pz-sess-modal textarea {
  margin-bottom: 12px;
  resize: vertical;
}
.pz-sess-save-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  background: var(--purple);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}


/* ---------------- Kmong Commercial SaaS License & Bridge UI ---------------- */
.saas-top-lic-btn {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.saas-top-lic-btn.online {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #065f46;
}
.saas-top-lic-btn.offline {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}
.saas-lic-modal {
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
}
.saas-terms-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 12px;
}
.saas-chk-all {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}
.saas-chk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.saas-chk-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #374151;
  cursor: pointer;
}
.saas-chk-item input {
  margin-top: 3px;
  flex-shrink: 0;
}
.saas-status-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 12px;
  margin-bottom: 12px;
}
.saas-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 7px;
}
.saas-stat-lbl {
  color: #64748b;
  font-weight: 600;
}
.saas-days-ok {
  color: #059669;
  font-weight: 800;
}
.saas-bridge-pill {
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
}
.saas-bridge-pill.on {
  background: #d1fae5;
  color: #065f46;
}
.saas-bridge-pill.off {
  background: #fef3c7;
  color: #92400e;
}
.saas-bridge-detail {
  white-space: pre-line;
  line-height: 1.5;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
  margin-top: 4px;
}
.saas-fee-box {
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
}
.saas-sec-title {
  display: block;
  font-size: 13px;
  margin-bottom: 9px;
  color: #111827;
}
.saas-fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.saas-fee-grid label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 3px;
}
.saas-fee-grid input {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 13px;
}
.saas-btn-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.saas-logout-btn {
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #475569;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.saas-msg {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 9px;
}
.saas-msg.ok {
  background: #ecfdf5;
  color: #065f46;
}
.saas-msg.err {
  background: #fef2f2;
  color: #b91c1c;
}
.saas-legal-footer {
  margin-top: 18px;
  padding: 12px 10px 24px;
  text-align: center;
  font-size: 11px;
  line-height: 1.55;
  color: #64748b;
}
.saas-footer-link {
  background: none;
  border: none;
  padding: 0;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}


/* Senior-friendly high-visibility overrides for SaaS License Modal */
.saas-top-lic-btn {
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 8px 13px !important;
  border-width: 2px !important;
}
.saas-lic-modal .pz-sess-modal-head strong {
  font-size: 18px !important;
}
.saas-lic-modal .pz-sess-desc {
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #111827 !important;
}
#saasLicenseKeyInput {
  height: 50px !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  border: 2px solid #6b7280 !important;
}
.saas-chk-all {
  font-size: 16px !important;
  padding-bottom: 10px !important;
}
.saas-chk-all input,
.saas-chk-item input {
  width: 22px !important;
  height: 22px !important;
}
.saas-chk-item {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #1f2937 !important;
}
#saasActivateBtn, #saasSaveSettingsBtn {
  height: 52px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}


/* ============================================================================
   40~60대 사업자 맞춤형 고시인성(High-Visibility) 스캐너 본 화면 개편 테마
   ============================================================================ */
body {
  background: #eef2f6 !important;
  color: #111111 !important;
  padding: 12px 10px 36px !important;
}

.wrap {
  max-width: 530px !important;
}

/* 오너 전용 불필요 아이콘(세션만료·음표·히스토리) 원천 숨김 */
body.saas-mode #topPzSessionBtn,
body.saas-mode #pzSessionRenewBtn,
body.saas-mode #soundPreviewBtn,
body.saas-mode #krHistoryBtn,
body.saas-mode #pzHistoryBtn,
#soundPreviewBtn {
  display: none !important;
}

/* 상단 바 */
.topbar {
  padding: 6px 2px 14px !important;
}
.topbar h1 {
  font-size: 21px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  color: #111111 !important;
}
.sound-toggle-btn {
  height: 38px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}
.saas-top-lic-btn {
  height: 38px !important;
  padding: 0 13px !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  border-radius: 8px !important;
  border: 2px solid #1652f0 !important;
  background: #1652f0 !important;
  color: #ffffff !important;
}
.saas-top-lic-btn.online {
  border-color: #099268 !important;
  background: #099268 !important;
  color: #ffffff !important;
}
.saas-top-lic-btn.offline {
  border-color: #d97706 !important;
  background: #d97706 !important;
  color: #ffffff !important;
}

/* 메인 카드 */
.card {
  border: 2px solid #cbd5e1 !important;
  border-radius: 16px !important;
  padding: 18px 15px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

/* 단계별 번호 제목 */
.step-sec-label {
  display: block !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #111827 !important;
  margin-bottom: 10px !important;
  letter-spacing: -0.02em !important;
}

/* ① 왕카메라 스캔 버튼 */
.scan-btn.unified-scan {
  background: #1652f0 !important;
  border: 2px solid #0f3ec2 !important;
  border-radius: 13px !important;
  padding: 16px 12px !important;
  margin-bottom: 12px !important;
  box-shadow: 0 4px 12px rgba(22, 82, 240, 0.22) !important;
}
.scan-btn.unified-scan strong {
  font-size: 20px !important;
  font-weight: 900 !important;
  display: block !important;
  margin-bottom: 4px !important;
}
.scan-btn.unified-scan small {
  font-size: 14px !important;
  font-weight: 600 !important;
  opacity: 0.96 !important;
}

/* 품번 입력줄 & 조회·지우기 버튼 */
.code-row {
  gap: 7px !important;
}
#modelInput {
  height: 54px !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  border: 2px solid #64748b !important;
  border-radius: 11px !important;
  color: #111111 !important;
  padding-left: 13px !important;
}
#modelInput::placeholder,
#priceInput::placeholder {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
}
.lookup-btn {
  height: 54px !important;
  padding: 0 18px !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  background: #111827 !important;
  border-radius: 11px !important;
}
.clear-btn {
  height: 54px !important;
  padding: 0 13px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  border: 2px solid #cbd5e1 !important;
  color: #1f2937 !important;
  border-radius: 11px !important;
}
.recent-sku-chip {
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 6px 11px !important;
}

/* ② 구매 가격 & 할인율 버튼 */
#priceInput {
  height: 56px !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  border: 2px solid #64748b !important;
  border-radius: 11px !important;
  color: #111111 !important;
}
.discount-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  margin-top: 10px !important;
}
.d-btn {
  height: 48px !important;
  font-size: 15.5px !important;
  font-weight: 800 !important;
  border: 2px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  border-radius: 10px !important;
  padding: 0 2px !important;
}
.d-btn.active {
  background: #1652f0 !important;
  border-color: #1652f0 !important;
  color: #ffffff !important;
}

.custom-disc-row {
  margin-top: 8px !important;
}
#customDiscInput {
  height: 46px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  border: 2px solid #cbd5e1 !important;
}
.custom-disc-row span {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
}

/* 발송·택배비 줄 */
.ship-cost-row {
  margin-top: 10px !important;
  padding: 8px 0 2px !important;
}
.ship-cost-lbl {
  font-size: 14.5px !important;
  font-weight: 800 !important;
  color: #1f2937 !important;
}
.ship-btn {
  height: 40px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  padding: 0 10px !important;
  border-width: 1.5px !important;
}
.ship-btn.active {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #ffffff !important;
}

/* 실구매가 하이라이트 바 */
.buy-cost-bar {
  background: #eef4ff !important;
  border: 2px solid #93c5fd !important;
  padding: 15px 16px !important;
  border-radius: 12px !important;
  margin: 14px 0 !important;
}
.buy-cost-label span {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #1e3a8a !important;
}
.discount-badge {
  font-size: 13px !important;
  padding: 3px 9px !important;
}
.buy-cost-bar strong {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: #1652f0 !important;
}

/* +2만 순익 매수 컷 카드 */
.target-headline {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin-bottom: 12px !important;
}
.t-row-card {
  padding: 13px 14px !important;
  border-width: 2px !important;
  border-left-width: 6px !important;
}
.t-title {
  font-size: 17px !important;
  font-weight: 900 !important;
}
.t-even {
  font-size: 14px !important;
  color: #1f2937 !important;
  margin-top: 2px !important;
}
.t-even b {
  font-size: 15px !important;
}
.t-sub {
  font-size: 12.5px !important;
  color: #4b5563 !important;
}
.t-cut-box {
  min-width: 142px !important;
  padding: 12px 14px !important;
}
.t-cut-price {
  font-size: 22px !important;
  font-weight: 900 !important;
}

/* 바로가기 3버튼 */
.jump-btn {
  padding: 12px 6px !important;
  border-radius: 11px !important;
}
.jump-btn strong {
  font-size: 15px !important;
  font-weight: 900 !important;
}
.jump-btn small {
  font-size: 12px !important;
}

/* ③ 사이즈별 시세 & 순익 결과 카드·테이블 대폭 확대 */
.poizon-loading {
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 18px 8px !important;
  color: #111827 !important;
}
.pz-thumb {
  width: 64px !important;
  height: 64px !important;
}
.kr-tag, .pz-tag {
  font-size: 13.5px !important;
  margin-bottom: 4px !important;
}
.kr-refresh-btn, .pz-refresh-btn {
  font-size: 13px !important;
  padding: 4px 10px !important;
}
.pz-prod-meta strong {
  font-size: 16px !important;
  line-height: 1.35 !important;
}
.kr-meta-sub {
  font-size: 13px !important;
  color: #374151 !important;
  font-weight: 700 !important;
}

/* 판정 배너 */
.pz-verdict {
  padding: 14px 12px !important;
  border-radius: 12px !important;
}
.pz-verdict strong {
  font-size: 17px !important;
  font-weight: 900 !important;
}
.pz-verdict span {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin-top: 4px !important;
}

/* 사이즈별 표 — 어르신들도 돋보기 없이 바로 읽히는 큰 숫자! */
.pz-table {
  font-size: 15px !important;
  border-top: 2px solid #1e293b !important;
}
.pz-table th {
  background: #1e293b !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  padding: 10px 4px !important;
}
.pz-table td {
  padding: 11px 3px !important;
  border-bottom: 1.5px solid #e2e8f0 !important;
}
.pz-table tr.hot-row {
  background: #dcfce7 !important;
}
.pz-table td:first-child strong {
  font-size: 17.5px !important;
  font-weight: 900 !important;
  color: #111111 !important;
}
.sz-sales {
  font-size: 12px !important;
  padding: 2px 6px !important;
  margin-top: 3px !important;
}
.price-main-line strong,
.pz-table td:nth-child(2) strong {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #111111 !important;
}
.sub-price-line {
  font-size: 11.5px !important;
  color: #4b5563 !important;
  font-weight: 600 !important;
}
.margin-won {
  font-size: 16.5px !important;
  font-weight: 900 !important;
}
.margin-pct {
  font-size: 12px !important;
  font-weight: 700 !important;
}
.verdict-col {
  font-size: 14px !important;
  font-weight: 900 !important;
}
.verdict-col > strong {
  display: inline-block !important;
  padding: 5px 7px !important;
  border-radius: 7px !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
}

/* 최적 판매처 요약 카드(#bestChannelCard) 글씨 확대 */
.best-ch-card strong {
  font-size: 16.5px !important;
}
.best-ch-card table {
  font-size: 15px !important;
}
.best-ch-card th {
  font-size: 13.5px !important;
  padding: 9px 4px !important;
}
.best-ch-card td {
  font-size: 15.5px !important;
  font-weight: 800 !important;
  padding: 10px 4px !important;
}


/* ==========================================================================
   SaaS 상단 이용권 상태 버튼 & 4060 시인성 보강 (v5)
   ========================================================================== */
.saas-top-lic-btn {
  height: 40px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  cursor: pointer;
  border: 2px solid transparent !important;
  white-space: nowrap;
}
.saas-top-lic-btn.guest {
  background: #1652f0 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(22, 82, 240, 0.25);
}
.saas-top-lic-btn.online {
  background: #ecfdf5 !important;
  border-color: #16a34a !important;
  color: #14532d !important;
}
.saas-top-lic-btn.standby {
  background: #fffbeb !important;
  border-color: #d97706 !important;
  color: #78350f !important;
}

.d-btn {
  height: 50px !important;
  font-size: 16.5px !important;
}

.ship-cost-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
.ship-btn-group {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
  width: 100% !important;
}
.ship-btn {
  height: 44px !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  text-align: center !important;
  justify-content: center !important;
}

.step-3-label {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}
.target-headline {
  font-size: 15px !important;
  color: #374151 !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}
.target-headline strong {
  color: #15803d !important;
  font-size: 16.5px !important;
  font-weight: 900 !important;
}

.target-empty-guide {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  font-size: 15.5px;
  line-height: 1.55;
  color: #334155;
  font-weight: 700;
  margin-bottom: 12px;
}
.target-empty-guide b {
  color: #1652f0;
  font-weight: 900;
}
.target-stack.is-empty-price {
  display: none !important;
}

.t-cut-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 138px !important;
  padding: 10px 12px !important;
  border-radius: 11px !important;
}
.t-cut-mini-lbl {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  letter-spacing: -0.02em;
}
.t-cut-price {
  font-size: 21px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
}

.saas-footer-bar {
  text-align: center;
  padding: 16px 10px 28px;
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
}
.saas-footer-bar p {
  margin: 0 0 8px;
}
.saas-footer-link {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  cursor: pointer;
}


/* ==========================================================================
   사용자별 수수료·목표순익 개인화 UI (4060 고시인성 · 택배비 제외)
   ========================================================================== */
.saas-top-rule-btn {
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  border: 2px solid #94a3b8 !important;
  color: #111827 !important;
  font-size: 14.5px !important;
  font-weight: 900 !important;
  cursor: pointer;
  white-space: nowrap;
}
.saas-top-rule-btn:hover {
  border-color: #1652f0 !important;
  color: #1652f0 !important;
}

.step-3-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.step-3-head-row .step-3-label {
  margin: 0 !important;
}
.inline-rule-edit-btn {
  background: #eef4ff;
  border: 1.5px solid #93c5fd;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.ship-sep-note {
  font-size: 13.5px;
  color: #64748b;
  font-weight: 700;
}

.personal-rule-chip {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.personal-rule-chip:hover {
  border-color: #1652f0;
  background: #f0f7ff;
}

.personal-rule-modal {
  max-width: 470px !important;
}
.prule-section {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.prule-sec-title {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
}
.prule-preset-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.prule-chip-btn {
  height: 44px;
  border-radius: 9px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  font-size: 14.5px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 2px;
}
.prule-chip-btn.active {
  background: #15803d;
  border-color: #15803d;
  color: #ffffff;
}
.prule-inline-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.prule-inline-input input {
  width: 140px;
  height: 48px;
  border: 2px solid #64748b;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  background: #ffffff;
}
.prule-inline-input span {
  font-size: 15px;
  font-weight: 800;
  color: #1f2937;
}

.prule-tax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.prule-tax-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px;
  border-radius: 10px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  text-align: left;
}
.prule-tax-btn strong {
  font-size: 15.5px;
  font-weight: 900;
}
.prule-tax-btn small {
  font-size: 12.5px;
  color: #475569;
  font-weight: 700;
  line-height: 1.35;
}
.prule-tax-btn.active {
  background: #eef4ff;
  border-color: #1652f0;
  color: #1e3a8a;
}
.prule-tax-btn.active small {
  color: #1d4ed8;
}

.prule-basis-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.prule-basis-row label {
  font-size: 13.5px;
  font-weight: 800;
  color: #334155;
}
.prule-basis-row select {
  height: 44px;
  border: 1.5px solid #94a3b8;
  border-radius: 9px;
  padding: 0 10px;
  font-size: 14.5px;
  font-weight: 800;
  color: #111827;
  background: #ffffff;
}

.prule-fee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.prule-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 5px;
}
.prule-field input {
  width: 100%;
  height: 46px;
  border: 1.5px solid #94a3b8;
  border-radius: 9px;
  padding: 0 11px;
  font-size: 17px;
  font-weight: 900;
  color: #111827;
  background: #ffffff;
}
.prule-field-wide {
  grid-column: 1 / -1;
}
.prule-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 8px;
  margin-top: 12px;
}


/* ==========================================================================
   v8: KREAM·POIZON 2채널 전용 바로가기 & 초간단 자동수수료 안내 박스
   ========================================================================== */
.jump-btns.jump-btns-two {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.jump-btns.jump-btns-two .jump-btn {
  padding: 13px 10px !important;
}
.jump-btns.jump-btns-two .jump-btn strong {
  font-size: 16px !important;
}

.prule-auto-fee-box {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 13px 14px;
}
.prule-auto-head {
  font-size: 14px;
  font-weight: 900;
  color: #1e293b;
  margin-bottom: 8px;
}
.prule-auto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  font-size: 13.5px;
  color: #334155;
  font-weight: 700;
  flex-wrap: wrap;
}
.prule-auto-row strong {
  font-size: 14px;
  font-weight: 900;
  color: #0f172a;
}
.prule-auto-note {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
  font-size: 12.5px;
  color: #475569;
  font-weight: 700;
}


/* ==========================================================================
   v9: 고인식률 스캐너 하단 정밀촬영 셔터 & 초접사 버튼
   ========================================================================== */
.scanner-box {
  min-height: 310px !important;
}
.scan-bottom-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 6;
}
.scan-bottom-bar .scan-toast {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  text-align: center;
  padding: 6px 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.scan-shutter-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 6px;
}
.scan-shutter-btn,
.scan-native-photo-btn {
  height: 44px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.scan-shutter-btn {
  background: #facc15;
  color: #111827;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.scan-native-photo-btn {
  background: rgba(17, 24, 39, 0.9);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}


/* ==========================================================================
   v11: 아이폰(375~390px) 가로 잘림 완벽 수정 & 네모칸 없는 전체화면 스캐너
   ========================================================================== */
html, body {
  max-width: 100%;
  overflow-x: hidden !important;
}
.wrap {
  width: 100% !important;
  max-width: 520px !important;
  overflow-x: hidden !important;
}

/* 상단바: 아이폰 세로폭(375px)에서 오른쪽 소리 버튼이 절대 잘리지 않도록 정렬 */
.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  padding: 6px 0 12px !important;
}
.topbar h1 {
  font-size: 18.5px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
}
.topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}
.saas-top-rule-btn {
  height: 36px !important;
  padding: 0 10px !important;
  font-size: 13.5px !important;
  border-radius: 9px !important;
}
.saas-top-lic-btn {
  height: 36px !important;
  padding: 0 10px !important;
  font-size: 13.5px !important;
  border-radius: 9px !important;
}
.sound-toggle-btn {
  height: 36px !important;
  min-width: 38px !important;
  padding: 0 8px !important;
  font-size: 15px !important;
  border-radius: 9px !important;
}

/* 품번 입력창: IQ8243-001 뒷자리가 복사 아이콘(📋)에 절대 가려지지 않도록 패딩·폰트 최적화 */
.code-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  gap: 6px !important;
}
.code-input-wrap {
  min-width: 0 !important;
}
#modelInput {
  width: 100% !important;
  height: 52px !important;
  font-size: 15.5px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  padding: 0 32px 0 10px !important;
}
.copy-sku-btn {
  right: 5px !important;
  width: 27px !important;
  height: 28px !important;
  font-size: 13px !important;
}
.lookup-btn {
  height: 52px !important;
  padding: 0 13px !important;
  font-size: 16px !important;
}
.clear-btn {
  height: 52px !important;
  padding: 0 11px !important;
  font-size: 15px !important;
}

/* 판정 배너 문장 단어 잘림((택배비 별도) 괄호 줄바꿈) 방지 */
.pz-verdict strong,
.pz-verdict span,
.target-headline {
  word-break: keep-all !important;
}

/* 스캐너: 답답한 가운데 작은 초록 네모칸 제거 -> 시원한 390px 전체화면 뷰파인더! */
.scanner-box {
  height: 390px !important;
  min-height: 390px !important;
  border-radius: 14px !important;
  border: 2.5px solid #1652f0 !important;
  background: #000 !important;
}
.scanner-box video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.scan-fullview-corners {
  position: absolute;
  inset: 46px 12px 98px 12px;
  pointer-events: none;
  z-index: 4;
}
.scan-fullview-corners .sc-c {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #22c55e;
  border-style: solid;
  border-width: 0;
}
.scan-fullview-corners .sc-c.tl { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 8px; }
.scan-fullview-corners .sc-c.tr { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 8px; }
.scan-fullview-corners .sc-c.bl { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 8px; }
.scan-fullview-corners .sc-c.br { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 8px; }

.scan-top-guide-pill {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}

.field label.scan-native-photo-btn,
label.scan-native-photo-btn {
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
}


/* ==========================================================================
   v13: 숫자·배지 줄바꿈 깨짐 0% 보장 & 결과표 미니멀 고시인성 정리
   ========================================================================== */
.buy-cost-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  padding: 14px 15px !important;
}
.buy-cost-label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.buy-cost-label span {
  font-size: 17px !important;
  white-space: nowrap !important;
}
.discount-badge {
  white-space: nowrap !important;
  font-size: 13px !important;
  padding: 3px 8px !important;
  border-radius: 99px !important;
}
#finalBuyTxt {
  white-space: nowrap !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  text-align: right !important;
}

.t-row-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 13px 14px !important;
}
.t-info {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.t-title {
  font-size: 18px !important;
  white-space: nowrap !important;
}
.t-even {
  font-size: 14.5px !important;
  white-space: nowrap !important;
  color: #334155 !important;
}
.t-cut-box {
  flex-shrink: 0 !important;
  min-width: 128px !important;
  white-space: nowrap !important;
}
.t-cut-price {
  white-space: nowrap !important;
  font-size: 20px !important;
}

.best-ch-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 10px !important;
}
.best-ch-head strong {
  font-size: 16.5px !important;
  white-space: nowrap !important;
}
.best-ch-cnt-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.best-ch-row {
  display: grid !important;
  grid-template-columns: 68px auto 1fr !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 12px !important;
}
.best-ch-sz {
  font-size: 16.5px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}
.ch-pill {
  white-space: nowrap !important;
  font-size: 12.5px !important;
  padding: 4px 9px !important;
}
.best-ch-right {
  text-align: right !important;
  min-width: 0 !important;
}
.best-ch-right strong {
  display: block !important;
  font-size: 16.5px !important;
  white-space: nowrap !important;
}
.best-ch-right small {
  display: block !important;
  font-size: 12px !important;
  color: #64748b !important;
  white-space: nowrap !important;
}

.pz-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}
.pz-table th:nth-child(1),
.pz-table td:nth-child(1) { width: 27% !important; }
.pz-table th:nth-child(2),
.pz-table td:nth-child(2) { width: 27% !important; }
.pz-table th:nth-child(3),
.pz-table td:nth-child(3) { width: 26% !important; }
.pz-table th:nth-child(4),
.pz-table td:nth-child(4) { width: 20% !important; }

.pz-table th,
.pz-table td {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 10px 2px !important;
}
.pz-sz-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
}
.pz-table td:first-child strong {
  font-size: 16.5px !important;
  white-space: nowrap !important;
}
.sz-sales {
  font-size: 11px !important;
  padding: 2px 5px !important;
  white-space: nowrap !important;
  display: inline-block !important;
}
.price-main-line strong,
.pz-table td:nth-child(2) strong {
  font-size: 15.5px !important;
  white-space: nowrap !important;
}
.sub-price-line {
  font-size: 11px !important;
  white-space: nowrap !important;
}
.margin-won {
  font-size: 15.5px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

.v-pill {
  display: inline-block !important;
  padding: 5px 7px !important;
  border-radius: 7px !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  line-height: 1.1 !important;
}
.v-pill.buy {
  background: #15803d !important;
  color: #ffffff !important;
}
.v-pill.mid {
  background: #0284c7 !important;
  color: #ffffff !important;
}
.v-pill.warn {
  background: #fef3c7 !important;
  color: #92400e !important;
}
.v-pill.hold {
  background: #f1f5f9 !important;
  color: #475569 !important;
}
.v-pill.pass {
  background: #f1f5f9 !important;
  color: #94a3b8 !important;
}


/* v14: 6자리 순익(+100,000원+) 여백 확보 & 빈 테이블 숨김 · 태그 한줄 정렬 */
.pz-prod-meta .pz-tag-row,
.pz-tag-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  margin-bottom: 6px !important;
}
.kr-tag, .pz-tag {
  font-size: 12.5px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}
.kr-refresh-btn, .pz-refresh-btn {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 12px !important;
  padding: 4px 8px !important;
}
.sz-paren-sub {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  line-height: 1.1 !important;
}
.pz-table th:nth-child(1), .pz-table td:nth-child(1) { width: 25% !important; }
.pz-table th:nth-child(2), .pz-table td:nth-child(2) { width: 27% !important; }
.pz-table th:nth-child(3), .pz-table td:nth-child(3) { width: 28% !important; }
.pz-table th:nth-child(4), .pz-table td:nth-child(4) { width: 20% !important; }
.price-main-line strong, .pz-table td:nth-child(2) strong {
  font-size: 14.5px !important;
  letter-spacing: -0.02em !important;
}
.margin-won {
  font-size: 14.5px !important;
  letter-spacing: -0.02em !important;
}
.v-pill {
  font-size: 12px !important;
  padding: 5px 6px !important;
}


/* ==========================================================================
   v15: 375px 모바일 전 구간 '한 칸 1줄 정렬' & 상단바 타이틀·이용권 버튼 보호
   ========================================================================== */
.topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}
.topbar h1 {
  font-size: 16.5px !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}
.topbar-actions {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}
.saas-top-rule-btn {
  height: 33px !important;
  padding: 0 8px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.saas-top-lic-btn {
  height: 33px !important;
  padding: 0 9px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  border-radius: 9px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
body.saas-mode .sound-toggle-btn {
  width: 33px !important;
  height: 33px !important;
  min-width: 33px !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.custom-disc-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}
.custom-disc-row input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}
.custom-disc-row span {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-size: 14.5px !important;
}

/* 설정 모달 (2문항 + 자동수수료 박스) 전 항목 한 줄 고정 */
.personal-rule-modal {
  padding: 18px 16px !important;
}
.prule-sec-title {
  font-size: 14.5px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
  letter-spacing: -0.03em !important;
}
.prule-preset-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 5px !important;
}
.prule-chip-btn {
  height: 38px !important;
  padding: 0 2px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  text-align: center !important;
}
.prule-inline-input {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}
.prule-inline-input input {
  width: 112px !important;
  flex-shrink: 0 !important;
}
.prule-inline-input span {
  font-size: 13.5px !important;
  white-space: nowrap !important;
}
.prule-tax-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.prule-tax-btn {
  padding: 11px 8px !important;
  text-align: left !important;
}
.prule-tax-btn strong {
  display: block !important;
  font-size: 14px !important;
  white-space: nowrap !important;
  margin-bottom: 3px !important;
}
.prule-tax-btn small {
  display: block !important;
  font-size: 11.5px !important;
  white-space: nowrap !important;
  letter-spacing: -0.03em !important;
  line-height: 1.3 !important;
}
.prule-auto-fee-box {
  padding: 11px 12px !important;
}
.prule-auto-head {
  font-size: 13px !important;
  white-space: nowrap !important;
  margin-bottom: 6px !important;
}
.prule-auto-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  padding: 4px 0 !important;
}
.prule-auto-row span,
.prule-auto-row strong {
  font-size: 13px !important;
  white-space: nowrap !important;
}
.prule-auto-note {
  font-size: 11.5px !important;
  white-space: nowrap !important;
}

/* 이용권 모달 1화면 수납 & 한 줄 정렬 */
.saas-lic-modal {
  padding: 18px 16px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}
.saas-stat-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}
.saas-stat-lbl,
#saasLicMaskedTxt,
#saasDaysLeftTxt,
.saas-bridge-pill {
  white-space: nowrap !important;
  font-size: 13.5px !important;
}
.saas-chk-item {
  font-size: 12.5px !important;
  line-height: 1.42 !important;
  padding: 6px 0 !important;
}
.saas-legal-footer {
  line-height: 1.55 !important;
}
.saas-legal-footer .saas-footer-link {
  display: inline-block !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* v16: 포이즌 CN최저가 · ⚡즉판가 1줄 분리 표기 (숫자 줄바꿈 제로 & 역마진 매수 실수 방지) */
.pz-table .sub-price-line {
  display: block !important;
  font-size: 11px !important;
  line-height: 1.28 !important;
  color: #64748b !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  margin-top: 1px !important;
}
.pz-table .sub-price-line.sub-fast-sell {
  color: #7c3aed !important;
  font-weight: 800 !important;
}

/* SaaS PC + Chrome 유지 상단 바 & 모달 안내 박스 (토스·백오피스 라이트 스타일) */
.saas-pc-must-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e8eb;
  border-left: 3px solid #d97706;
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 10px;
  word-break: keep-all;
}
.saas-pc-must-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.saas-pc-must-txt strong {
  font-size: 13.5px;
  font-weight: 600;
  color: #191f28;
  line-height: 1.35;
}
.saas-pc-must-txt span {
  font-size: 12.5px;
  font-weight: 400;
  color: #4e5968;
  line-height: 1.45;
}
.saas-pc-must-btn {
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #d1d6db;
  color: #333d4b;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.saas-modal-req-notice {
  background: #f9fafb;
  border: 1px solid #e5e8eb;
  border-left: 3px solid #191f28;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  color: #333d4b;
  word-break: keep-all;
}
.saas-modal-req-notice strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #191f28;
  margin-bottom: 2px;
}
.saas-modal-req-notice.compact {
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 400;
  color: #4e5968;
}
