/* 캐스케이드 레이어 — components(컴포넌트·화면 CSS) 다음에 utilities.
   레이어 순서가 특이도보다 먼저 판정되므로 유틸리티 클래스는 인라인 style 처럼 컴포넌트 규칙을
   항상 이긴다(.btn 의 font-size 를 fs-13 이 덮는 식). 화면 CSS(static/css/pages)도 components 에 둔다.
   레이어 밖(외부 CDN CSS 등)의 규칙은 두 레이어를 모두 이긴다 — Quill 덮어쓰기 파일이 레이어 밖인 이유. */
@layer components, utilities;

@layer components {

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #f7f8fc;
  --bg-soft: #f1f4fb;
  --panel: #ffffff;
  --panel-2: #fbfcff;
  --line: #e8ecf5;
  --line-strong: #d8dfeb;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #667085;
  --text-muted: #667085;
  --primary: #4857d6;
  --primary-strong: #3948bf;
  --primary-text: #3f4fd4;
  --primary-soft: rgba(91,108,255,.10);
  /* 보조 색(보라). 버튼은 칠하지 않는다 — 버튼 색은 primary 하나로 통일 */
  --accent: #6d4fe0;
  --accent-action: var(--primary);
  --accent-text: #6d4fe0;
  --accent-soft: rgba(124,92,255,.10);
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #087a55;
  --success-action: #087a55;
  --success-soft: rgba(8,122,85,.10);
  --success-text: #087a55;
  --info: #3b82f6;
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-xs: 0 2px 10px rgba(16,24,40,.04);
  --shadow-sm: 0 10px 30px rgba(16,24,40,.06);
  --shadow-md: 0 22px 60px rgba(16,24,40,.10);
  --page-pad: 24px;
  --page-pad-mobile: 16px;
  --header-height: 78px;
  /* sticky 헤더(header-shell + main-nav) 전체 높이 — JS가 실측값으로 갱신 */
  --header-total: 144px;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(91,108,255,.10), transparent 24%),
    radial-gradient(circle at top right, rgba(124,92,255,.08), transparent 22%),
    linear-gradient(180deg, #ffffff 0, var(--bg) 220px, var(--bg) 100%);
  color: var(--text);
  font-family: Inter, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  /* 한국어는 기본값이면 글자 단위로 끊긴다('예금/주', '판/매자'). 띄어쓰기에서만 끊고, 띄어쓰기 없이
     칸보다 긴 문자열(주문코드·URL)만 넘치기 전에 끊는다. 표·플렉스의 칸 너비 계산은 바뀌지 않으므로,
     좁은 칸에 긴 코드를 넣는 곳은 .break-anywhere 를 따로 붙인다. */
  word-break: keep-all;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
}

.container, .container-sm {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  /* viewport-fit=cover(base.html) 라 가로로 든 아이폰은 노치·둥근 모서리 아래까지 화면이 깔린다 — 그쪽 여백을 더 준다. */
  padding-inline: max(var(--page-pad), env(safe-area-inset-left)) max(var(--page-pad), env(safe-area-inset-right));
}
.container-sm { max-width: 980px; }
main { flex: 1; padding: 28px 0 56px; }
main:focus { outline: none; }  /* 본문 바로가기로 옮긴 포커스에 큰 테두리를 그리지 않는다 */
/* 본문 바로가기(2026-11-08 D7) — 평소에는 화면 밖, 키보드 포커스를 받으면 왼쪽 위에 나타난다 */
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 10000;
  padding: 10px 16px; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.topbar-band {
  background: linear-gradient(90deg, rgb(237 240 246) 0%, rgba(220,224,238,1) 100%);
  border-bottom: 1px solid rgba(216,223,235,.9);
}
.topbar {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 6px;
  color: var(--text-2);
  font-size: 12px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mini-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(17,24,39,.04); color: var(--text-2);
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(247,248,252,.78);
  border-bottom: 1px solid rgba(216,223,235,.8);
}
.site-header.scrolled {
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-xs);
}
.header-shell {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding-block: 14px;
}

.mobile-menu-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-copy { min-width: 0; }
.brand-title { font-size: 22px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.brand-sub { margin-top: 4px; font-size: 12px; color: var(--text-3); }

.search-wrap { position: relative; min-width: 0; }
.search-box {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 10px 8px 18px;
  border-radius: 20px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: .18s ease;
}
.search-box:focus-within {
  border-color: rgba(91,108,255,.32);
  box-shadow: 0 0 0 6px rgba(91,108,255,.08), var(--shadow-sm);
  transform: translateY(-1px);
}
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 15px;
}
.search-box input::placeholder { color: var(--text-3); }
.search-submit {
  min-width: 108px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(91,108,255,.22);
}
.search-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px);
  background: rgba(255,255,255,.98); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-md);
  padding: 10px; display: none;
}
.search-suggest.open { display: block; }
.suggest-label { padding: 8px 10px; color: var(--text-3); font-size: 12px; font-weight: 700; }
.suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; border-radius: 14px; color: var(--text-2);
}
.suggest-item:hover { background: var(--bg-soft); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .mobile-only { display: none; }
/* 버튼 모서리에 붙는 건수 배지(예: 확인 대기 주문) */
.has-count { position: relative; }
.count-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-size: 13px; font-weight: 800; line-height: 1;
  transition: .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(91,108,255,.24);
  outline-offset: 2px;
}
.btn-primary,
.btn-accent {
  color: #fff; background: var(--primary);
  box-shadow: 0 8px 20px rgba(72,87,214,.20);
}
.btn-primary:hover:not(:disabled),
.btn-accent:hover:not(:disabled) { background: var(--primary-strong); }
.btn-secondary {
  background: var(--panel); border-color: var(--line); color: var(--text);
  box-shadow: var(--shadow-xs);
}
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--text-2);
}
/* 선택된 필터 탭처럼 '현재 상태'를 나타내는 버튼 — 행동 버튼(primary)과 구분한다 */
.btn-soft { background: var(--primary-soft); border-color: rgba(72,87,214,.16); color: var(--primary-text); }
.btn-danger { background: var(--danger); color: #fff; }
/* 주의가 필요한 보조 행동(이의 제기·중재 개입·재처리) — 단색이면 핵심 버튼과 경쟁한다 */
.btn-warning { background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.34); color: #92400e; }
.btn-warning:hover:not(:disabled) { background: rgba(245,158,11,.2); }
/* 되돌리기 어려운 보조 행동(주문 취소·비활성화). 관리자 강제 조치는 단색 btn-danger 를 쓴다 */
.btn-danger-soft { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.22); color: #dc2626; }
.btn-danger-soft:hover:not(:disabled) { background: rgba(239,68,68,.14); }
.btn-success { background: var(--success-soft); border-color: rgba(8,122,85,.18); color: var(--success-text); }
.btn-success:hover:not(:disabled) { background: rgba(8,122,85,.16); }
.btn-sm { min-height: 36px; padding: 0 12px; border-radius: 12px; font-size: 12px; }
.btn-lg { min-height: 52px; padding: 0 20px; border-radius: 16px; font-size: 14px; }
/* 표 안 값 옆에 붙는 작은 버튼(수정 요청·수정 이력) */
.btn-xs { min-height: 28px; padding: 0 9px; border-radius: 9px; font-size: 12px; margin-left: 8px; }

.main-nav-wrap { border-top: 1px solid rgba(216,223,235,.72); }
.main-nav {
  display: flex; align-items: center; gap: 8px;
  min-height: 58px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

/* ── 가로 스크롤 fade edge ── */
.hscroll {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.hscroll.at-start {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
  mask-image:         linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}
.hscroll.at-end {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 28px);
  mask-image:         linear-gradient(to right, transparent 0, #000 28px);
}
.hscroll.at-start.at-end {
  -webkit-mask-image: none;
  mask-image: none;
}
.main-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 14px; border-radius: 12px; color: var(--text-2);
  font-weight: 700; white-space: nowrap; transition: .16s ease;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary-soft); color: var(--primary);
}

.hero-panel {
  background: linear-gradient(135deg, rgba(91,108,255,.95), rgba(124,92,255,.88));
  color: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-md);
  padding: 28px; margin-bottom: 26px; position: relative;
}
.hero-panel::after {
  content: ""; position: absolute; inset: auto -60px -80px auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: rgba(255,255,255,.12); filter: blur(4px);
  pointer-events: none;
}

.card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(232,236,245,.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(251,252,255,.96), rgba(255,255,255,.92));
}
.card-body { padding: 22px; }
.card-title { font-size: 16px; font-weight: 900; letter-spacing: -.02em; }

.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1.4; white-space: nowrap;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-text); }
.badge-success { background: rgba(16,185,129,.12); color: var(--success-text); }
.badge-danger { background: rgba(239,68,68,.10); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--warning); }
.badge-info { background: rgba(59,130,246,.12); color: var(--info); }
.badge-gray { background: #eef2f7; color: var(--text-2); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 12px 14px; text-align: left; color: var(--text-3);
  font-size: 12px; font-weight: 800; border-bottom: 1px solid var(--line);
  text-transform: uppercase; letter-spacing: .04em;
}
td {
  padding: 15px 14px; border-bottom: 1px solid #edf1f7;
  color: var(--text-2); vertical-align: middle;
}
tbody tr:hover td { background: #fafcff; color: var(--text); }
tbody tr:last-child td { border-bottom: 0; }
/* 배지가 들어가는 값 셀 — 좌우 여백은 다른 값 셀과 같게 두고 위아래만 줄인다 */
td.cell-badges { padding-top: 6px; padding-bottom: 6px; }
td.cell-badges .badge { margin: 2px 6px 2px 0; }

.form-group { margin-bottom: 16px; }
.form-label {
  display: block; margin-bottom: 7px; color: var(--text-2); font-size: 13px; font-weight: 700;
}
.form-control {
  width: 100%; min-height: 48px; padding: 0 14px;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); outline: 0;
  transition: .16s ease;
}
textarea.form-control { min-height: 120px; padding: 14px; resize: vertical; }
.form-control:focus {
  border-color: rgba(91,108,255,.35);
  box-shadow: 0 0 0 5px rgba(91,108,255,.08);
}
/* 서버 검증 오류가 난 입력칸(예: 주문서의 예매자 ID) */
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 5px rgba(239,68,68,.10); }

.page-header { margin-bottom: 22px; }
.page-header h1 { font-size: 30px; line-height: 1.12; font-weight: 900; letter-spacing: -.04em; }
.page-header p { margin-top: 8px; color: var(--text-2); }
/* 제목에 넣으면 모바일에서 중간이 끊기는 긴 식별자(주문번호 등)는 제목 아래 한 줄로 */
.page-header .code-line { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.page-header .code-line .code { margin-left: 4px; color: var(--text-2); font-weight: 700; letter-spacing: .02em; white-space: nowrap; user-select: all; }
.section-title {
  margin-bottom: 14px; font-size: 13px; font-weight: 900; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em;
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text-2); font-weight: 800;
}
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

.empty-state {
  padding: 56px 20px; text-align: center; color: var(--text-3);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(248,250,255,.94));
  border: 1px dashed var(--line-strong); border-radius: 24px;
}
.empty-state .icon { font-size: 44px; margin-bottom: 10px; }
/* 목록이 비었을 때(components/list_empty.html) — 표 밖에 두어 모바일 카드 규칙을 받지 않는다 */
.list-empty { padding: 44px 20px; text-align: center; }
.list-empty-title { font-size: 15px; font-weight: 800; color: var(--text); }
.list-empty-desc { margin-top: 6px; font-size: 13px; color: var(--text-3); }
.list-empty-actions { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.alert {
  padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; font-size: 13px; font-weight: 700;
}
.alert-success { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.18); color: var(--success-text); }
.alert-danger { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.16); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.16); color: var(--warning); }
.alert-info { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.16); color: var(--info); }

.messages-container {
  position: fixed; right: 20px; top: 96px; z-index: 300;
  display: flex; flex-direction: column; gap: 10px;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(18px) scale(.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.message-item {
  min-width: 280px; max-width: 380px;
  padding: 13px 16px 13px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  border-left-width: 2px;
  box-shadow: 0 8px 28px rgba(16,24,40,.13), 0 2px 8px rgba(16,24,40,.07);
  font-size: 13px; font-weight: 700; line-height: 1.5;
  animation: toast-in .22s ease both;
  transition: opacity .2s ease, transform .2s ease;
}
.message-item.alert-success {
  background: #f0fdf8; border-color: #6ee7c7; border-left-color: var(--success); color: #065f46;
}
.message-item.alert-danger {
  background: #fff4f4; border-color: #fca5a5; border-left-color: var(--danger); color: #991b1b;
}
.message-item.alert-warning {
  background: #fffbeb; border-color: #fcd34d; border-left-color: var(--warning); color: #92400e;
}
.message-item.alert-info {
  background: #eff6ff; border-color: #93c5fd; border-left-color: var(--info); color: #1e40af;
}
.message-item:not(.alert-success):not(.alert-danger):not(.alert-warning):not(.alert-info) {
  background: rgba(255,255,255,.97); border-color: var(--line); border-left-color: var(--primary); color: var(--text);
}
/* 닫을 때까지 남는 안내(로그인 만료 — base-ui.js showLoginRequired): 문구 + 버튼 + 닫기 */
.message-item.message-sticky { display: flex; align-items: center; gap: 10px; }
.message-sticky > span { flex: 1; min-width: 0; }
.message-sticky > .btn { flex-shrink: 0; }
.message-close {
  flex-shrink: 0; width: 32px; height: 32px; margin-right: -6px;
  border: 0; border-radius: 10px; background: transparent; color: inherit;
  font-size: 14px; cursor: pointer;
}
.message-close:hover { background: rgba(16,24,40,.06); }

footer {
  margin-top: auto; border-top: 1px solid var(--line);
  background: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 18px;
  padding-block: 26px; color: var(--text-2);
}
.footer-title { font-size: 13px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.footer-section { min-width: 0; }
.footer-section > summary { list-style: none; cursor: default; }
.footer-section > summary::-webkit-details-marker { display: none; }
.footer-business > summary { display: none; }
.footer-contact { display: flex; flex-direction: column; gap: 7px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 800; color: var(--text);
}
.footer-contact a svg { flex: none; color: var(--primary); }

@media (min-width: 821px) and (min-height: 501px), (min-width: 821px) and (pointer: fine) {
  .footer-section > summary { pointer-events: none; }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.badge-accent { background: var(--accent-soft); color: var(--accent-text); }

/* ── Seller Stats Modal ── */
.smodal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(15,23,42,.44);
  backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.smodal-overlay.open { opacity: 1; visibility: visible; }
.smodal {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 32px 80px rgba(16,24,40,.22);
  width: 100%; max-width: 420px;
  overflow: hidden;
  transform: translateY(18px) scale(.96);
  transition: transform .28s cubic-bezier(.34,1.4,.64,1);
}
.smodal-overlay.open .smodal { transform: translateY(0) scale(1); }
.smodal-head {
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, rgba(91,108,255,.09), rgba(124,92,255,.06));
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.smodal-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 12px; font-weight: 800; margin-bottom: 6px;
}
.smodal-name { font-size: 17px; font-weight: 900; color: var(--text); }
.smodal-close {
  width: 34px; height: 34px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.8);
  cursor: pointer; display: grid; place-items: center;
  font-size: 15px; color: var(--text-3); flex-shrink: 0;
  transition: .14s ease;
}
.smodal-close:hover { background: var(--bg-soft); color: var(--text); }
.smodal-body { padding: 22px; }
.smodal-counters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.smodal-counter {
  background: var(--bg-soft); border-radius: 16px; padding: 16px;
  text-align: center; border: 1px solid var(--line);
}
.smodal-counter-val { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; }
.smodal-counter-lbl { margin-top: 6px; font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.smodal-rate-row { margin-bottom: 16px; }
.smodal-rate-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.smodal-rate-label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.smodal-rate-pct { font-size: 15px; font-weight: 900; }
.smodal-bar-bg { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.smodal-bar { height: 100%; border-radius: 999px; width: 0; transition: width .7s cubic-bezier(.34,1.2,.64,1); }
.smodal-bar.clr-good { background: linear-gradient(90deg, #10b981, #34d399); }
.smodal-bar.clr-mid  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.smodal-bar.clr-bad  { background: linear-gradient(90deg, #ef4444, #f87171); }
.smodal-rate-detail { margin-top: 5px; font-size: 12px; color: var(--text-3); }
.smodal-empty { text-align: center; padding: 32px 0; color: var(--text-3); }
.smodal-empty-icon { font-size: 38px; margin-bottom: 10px; }
.smodal-loading { text-align: center; padding: 36px 0; color: var(--text-3); font-weight: 700; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 250; display: none;
  background: rgba(15,23,42,.34);
}
.mobile-drawer.open { display: block; }
.mobile-drawer-panel {
  width: min(90vw, 360px); height: 100%; background: #fff; box-shadow: var(--shadow-md);
  padding: 18px; display: flex; flex-direction: column; gap: 16px;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav-label {
  margin-top: 10px; padding: 4px 4px 0;
  color: var(--text-3); font-size: 12px; font-weight: 900;
  text-transform: uppercase; letter-spacing: .08em;
}
.mobile-nav a {
  padding: 14px 14px; border-radius: 14px; font-weight: 800; color: var(--text-2); background: var(--bg-soft);
}
.mobile-nav a.mobile-nav-logout { background: transparent; border: 1px solid var(--line); color: var(--text-3); text-align: center; margin-top: 4px; }
.mobile-nav a.active {
  background: var(--primary-soft);
  color: var(--primary);
}
.mobile-nav-more {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
}
.mobile-nav-more summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: var(--text-2);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.mobile-nav-more summary::-webkit-details-marker { display: none; }
.mobile-nav-more summary::after { content: "+"; font-size: 18px; font-weight: 500; }
.mobile-nav-more[open] summary::after { content: "−"; }
.mobile-nav-more-links { display: grid; gap: 8px; padding-top: 8px; }

@media (max-width: 1080px) {
  .header-shell { grid-template-columns: auto 1fr auto; }
  .brand-sub { display: none; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  :root { --page-pad: var(--page-pad-mobile); --header-total: 78px; }
  .topbar-band { display: none; }
  .header-shell { grid-template-columns: auto auto 1fr auto; gap: 10px; }
  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  /* 모바일: 브랜드 마크 없이 brand-title만 노출 (brand-sub는 1080px 이하에서 숨김) */
  .header-actions .desktop-only { display: none; }
  .header-actions .mobile-only { display: inline-flex; }
  .header-actions { gap: 6px; }
  .header-actions .btn { min-height: 44px; padding-inline: 11px; }
  .search-wrap { display: none; }
  .mobile-search-btn { display: inline-flex !important; }
  .main-nav-wrap { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .messages-container { left: max(16px, env(safe-area-inset-left)); right: max(16px, env(safe-area-inset-right)); top: 88px; }
  .message-item { min-width: 0; max-width: none; }
  main { padding-top: 20px; }
  .page-header { margin-bottom: 16px; }
  /* 주문번호(24자) 같은 끊김 없는 문자열이 제목을 화면 밖으로 밀지 않게 한다. */
  .page-header h1 { font-size: 24px; line-height: 1.25; letter-spacing: 0; overflow-wrap: anywhere; }
  /* 제목 + 검색 필터/버튼 줄이 한 줄에 억지로 들어가면 제목이 한 글자 폭으로 찌그러지고
     나머지는 화면 밖으로 나간다. 넘칠 때만 다음 줄로 내린다(원래 맞던 헤더는 그대로). */
  .page-header.flex { flex-wrap: wrap; row-gap: 12px; }
  .page-header.flex > * { min-width: 0; max-width: 100%; }
  .page-header .flex { flex-wrap: wrap; }
  .card { border-radius: 18px; }
  .card-header { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .card-title { letter-spacing: 0; }
  .empty-state { padding: 40px 16px; border-radius: 18px; }
  .pagination { gap: 6px; margin-top: 20px; }
  .pagination a, .pagination span { min-width: 44px; height: 44px; border-radius: 12px; }
  .pagination .pagination-distant { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 0; padding-block: 18px; }
  .footer-brand { padding-bottom: 10px; }
  .footer-brand > .footer-title { margin-bottom: 2px; }
  .footer-section { border-top: 1px solid var(--line); }
  .footer-section > summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    cursor: pointer;
  }
  .footer-section > summary::after { content: "+"; color: var(--text-3); font-size: 18px; font-weight: 500; }
  .footer-section[open] > summary::after { content: "−"; }
  .footer-section:not([open]) > .footer-section-content { display: none; }
  .footer-section-content { padding: 2px 0 14px; }
  .footer-business > summary { color: var(--text-2); font-size: 12px; }
  .footer-copyright { margin-top: 6px !important; }
  /* 터치 타깃 최소 44px */
  .btn-sm { min-height: 44px; }
  .btn-xs { min-height: 36px; }
  .dpr-nav-btn { min-width: 44px; min-height: 44px; }
  .dpr-qb { min-height: 44px; }
  /* iOS Safari: 입력 폰트 16px 미만이면 포커스 시 화면이 강제 확대됨 */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea { font-size: 16px !important; }
}

/* ── 가로로 든 휴대폰(높이 500px 이하·터치) ── 높이 390px 중 헤더 79px·하단 바 77px 이 고정이라 내용이 234px 만
   보였다(2026-11-07 재점검 D2). 헤더는 고정을 유지하되 위아래 여백을 줄여 56px 로, 하단 바는 각 화면 CSS 가 줄인다.
   버튼은 44px 그대로 둔다(터치 최소). 세로 화면은 그대로다. */
@media (max-height: 500px) and (pointer: coarse) {
  .header-shell { min-height: 0; padding-block: 6px; }
  .messages-container { top: 66px; }
  main { padding-top: 12px; }
}

/* ── 필터 칩 해제(✕) 버튼 ── 모양은 16px 원 그대로 두고 누르는 영역만 40px 로 넓힌다.
   (내 주문·판매 주문·정산 목록. 16px 는 손가락으로 누르기 어렵다.) */
.filter-chip-close { position: relative; }
.filter-chip-close::before { content: ""; position: absolute; inset: -12px; }
/* 작은 글자 링크의 터치 영역(2026-10-07) — 겉모양·자리는 그대로 두고 보이지 않는 영역만 넓힌다(위 ✕ 와 같은
   방식). '← 목록'·위치 표시 '홈'·'보기 →' 가 높이 17~21px 이라 손가락으로 누르기 어려웠다(최소 24px).
   아래쪽은 제목과의 간격(8px)보다 덜 넓혀 제목을 눌러도 링크가 열리지 않게 한다. 상품 상세의 위치 표시는 클래스 이름이
   달라(.product-breadcrumb) 빠져 있었다(2026-11-08 추가). */
.back-link, .breadcrumbs a, .product-breadcrumb a, .product-link, .faq-more-link { position: relative; }
.back-link::before, .breadcrumbs a::before, .product-breadcrumb a::before, .product-link::before, .faq-more-link::before {
  content: ""; position: absolute; inset: -8px -8px -6px;
}
.back-link { display: inline-block; }

/* ── 모바일 검색 버튼 ── */
.mobile-search-btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── 검색 Overlay ── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(15,23,42,.38);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay-panel {
  background: var(--panel);
  padding: 14px 16px 16px;
  box-shadow: 0 8px 32px rgba(16,24,40,.14);
  transform: translateY(-8px);
  transition: transform .22s cubic-bezier(.34,1.3,.64,1);
}
.search-overlay.open .search-overlay-panel { transform: translateY(0); }
.search-overlay-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.search-overlay-close {
  width: 36px; height: 36px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft);
  cursor: pointer; font-size: 16px; color: var(--text-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.search-overlay-box {
  flex: 1; display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 6px 8px 6px 14px;
  border-radius: 16px; background: var(--bg-soft);
  border: 1.5px solid rgba(91,108,255,.24);
  box-shadow: 0 0 0 4px rgba(91,108,255,.08);
}
.search-overlay-box input {
  flex: 1; min-width: 0; border: 0; outline: 0;
  background: transparent; color: var(--text); font-size: 15px;
}
.search-overlay-submit {
  min-width: 44px; height: 36px; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff; font-weight: 800; font-size: 13px; cursor: pointer;
  padding: 0 12px;
}
.search-overlay-suggest { padding: 4px 0 2px; }
.search-overlay-suggest .suggest-label {
  padding: 8px 4px 4px; color: var(--text-3); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
}
.search-overlay-suggest .suggest-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 8px; border-radius: 12px; color: var(--text-2); font-size: 14px;
}
.search-overlay-suggest .suggest-item:active { background: var(--bg-soft); }

/* ── 공통 모달 ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.45);
  align-items: center; justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--panel);
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  position: relative;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
}
.modal-box-sm { max-width: 360px; }
.modal-box-lg { max-width: 560px; }
.modal-title { font-size: 18px; font-weight: 900; letter-spacing: -.03em; margin-bottom: 10px; }
.modal-body  { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }
.modal-footer { display: flex; gap: 10px; }
.modal-footer .btn { flex: 1; }
/* 공통 확인·알림 창(base-ui.js confirmDialog) — 문구 안의 줄바꿈을 그대로 보인다 */
.app-dialog-body { white-space: pre-line; }
.app-dialog-input { margin: -8px 0 20px; }  /* promptDialog 입력 칸 — 본문 아래, 버튼 위 */

/* ── 공통 필터 패널 ── */
.filter-panel { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filter-field { display: flex; flex-direction: column; gap: 5px; }
.filter-field-label { font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.filter-field select.form-control,
.filter-field input.form-control  { min-height: 44px; }
.filter-field-w120 { width: 120px; }
.filter-field-w150 { width: 150px; }
.filter-field-w200 { width: 200px; }
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .filter-panel { flex-direction: column; }
  .filter-field,
  .filter-field-w120,
  .filter-field-w150,
  .filter-field-w200 { width: 100%; }
}

/* ── 인라인 style 에서 옮긴 공용 컴포넌트 (2026-10-06) ── */
.box-danger {
  margin-bottom: 16px; padding: 12px 16px; border-radius: 10px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: var(--danger);
}
.box-warning { margin-bottom: 16px; padding: 12px 16px; border-radius: 10px; background: rgba(245,158,11,.08); color: #b45309; }
.note-amber {
  padding: 14px 16px; border-radius: 14px; background: #fef3c7; border: 1px solid #fde68a;
  font-size: 13px; color: #92400e; font-weight: 600;
}
.empty-dashed {
  text-align: center; padding: 48px 20px; background: var(--panel);
  border: 1px dashed var(--line-strong); border-radius: 16px;
}
.icon-tile {
  border-radius: 14px; background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; flex-shrink: 0;
}
.card-accent-primary { border-left: 3px solid var(--primary); }
.card-accent-danger { border-left: 4px solid var(--danger); }
.card-accent-warning { border-left: 4px solid var(--warning); }
.card-warning { border-color: var(--warning, #f59e0b); background: rgba(245,158,11,.06); }
/* 모달 본문 상자 — 여백·최대 폭은 유틸리티로 정한다 */
.dialog-box { background: #fff; border-radius: 20px; width: 90%; box-shadow: 0 16px 48px rgba(0,0,0,.18); }
.overlay-dim {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
}
/* 하이라이트(유료 노출) 표시 칩 — 크기는 유틸리티로 정한다 */
.chip-amber {
  display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; font-weight: 700;
  background: #fff7ed; color: #b45309; border: 1px solid rgba(180,83,9,.25);
}
.badge-canceled { background: #f1f5f9; color: #94a3b8; }
.banner-item-static { cursor: default; pointer-events: none; }

/* 내비·사이드바의 건수 배지 — 0건이면 is-hidden 으로 시작하고, JS 가 inline-flex/none 으로 바꾼다 */
.nav-count {
  position: absolute; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.side-count {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* 판매자 정보 모달의 팔로우 버튼 */
/* 판매자 등록 단계(components/seller_onboarding_steps.html) — 본인인증·계약 동의·정산계좌 화면이 같이 쓴다 */
.onboarding-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 16px; }
.onboarding-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text-3); font-size: 13px; font-weight: 700; }
.onboarding-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--line); color: var(--text-2); font-size: 12px; }
.onboarding-steps li.is-current { color: var(--primary-text); border-color: var(--primary); }
.onboarding-steps li.is-current span { background: var(--primary); color: #fff; }
.onboarding-steps li.is-done { color: var(--text-2); }
.onboarding-steps li.is-done span { background: var(--success-soft); color: var(--success-text); }

/* 버튼 색은 인디고 하나(2026-10-05) — 하늘색 #60a5fa 는 흰 바탕 대비가 2.5:1 이었다 */
.smodal-follow-btn {
  width: 100%; min-height: 44px; border-radius: 12px; border: 1px solid rgba(72,87,214,.16);
  color: var(--primary-text); background: var(--primary-soft); font-size: 13px; font-weight: 700; cursor: pointer;
}
.smodal-follow-btn:hover { background: rgba(72,87,214,.16); }

} /* @layer components */

@layer utilities {

/* 기본 유틸리티 */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-2); }
.text-primary { color: var(--primary-text); }
.text-accent { color: var(--accent-text); }
.text-success { color: var(--success-text); }
.text-danger { color: var(--danger); }
.font-bold { font-weight: 800; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }
/* 화면에는 숨기고 스크린리더에는 읽힌다(로그인 화면의 h1 등). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── 인라인 style 대체 유틸리티 ──────────────────────────────
   style="..." 대신 쓴다. 숫자는 px 값 그대로다(mt-4 = 4px, gap-10 = 10px).
   레이어가 utilities 라 컴포넌트 규칙보다 특이도와 무관하게 우선한다. */
.info-cell { padding: 6px 0; }          /* 상세 정보표의 라벨·값 셀 */
.info-cell-loose { padding: 8px 0; }
.empty-cell, tbody tr:hover td.empty-cell { text-align: center; padding: 40px; color: var(--text-3); }
.empty-note { padding: 28px; text-align: center; color: var(--text-3); font-size: 14px; }

.text-3 { color: var(--text-3); }
.text-body { color: var(--text); }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }
.mono { font-family: monospace; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.align-top { vertical-align: top; }
.align-middle { vertical-align: middle; }

.m-0 { margin: 0; }
.my-10 { margin: 10px 0; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.p-0 { padding: 0; }

.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }
.relative { position: relative; }
.sticky { position: sticky; }
.overflow-x-auto { overflow-x: auto; }
.cursor-pointer { cursor: pointer; }
.border-b { border-bottom: 1px solid var(--line); }
.bg-soft { background: var(--bg-soft); }

.w-full { width: 100%; }
.w-90 { width: 90px; }
.w-100 { width: 100px; }
.w-120 { width: 120px; }
.w-140 { width: 140px; }
.w-160 { width: 160px; }
.w-200 { width: 200px; }
.h-36 { height: 36px; }


/* 2차 — 이름 규칙: 숫자는 px(p 는 %), 축약은 px/py/pt… 로 푼다.
   opacity·lh 는 백분율(opacity-50 = .5, lh-150 = 1.5). 글자 12px 은 text-sm 하나만 쓴다. */
.absolute { position: absolute; }
.bg-danger { background: var(--danger); }
.bg-line { background: var(--line); }
.bg-none { background: none; }
.bg-panel { background: var(--panel); }
.block { display: block; }
.border { border: 1px solid var(--line); }
.border-0 { border: 0; }
.border-b-0 { border-bottom: 0; }
.border-t { border-top: 1px solid var(--line); }
.break-all { word-break: break-all; }
.c-accent { color: var(--accent); }
.c-info { color: var(--info); }
.c-primary { color: var(--primary); }
.c-warning { color: var(--warning); }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }
.flex-1 { flex: 1; }
.flex-col { flex-direction: column; }
.flex-none { flex: none; }
.fs-12_5 { font-size: 12.5px; }
.fs-13_5 { font-size: 13.5px; }
.fs-17 { font-size: 17px; }
.fs-20 { font-size: 20px; }
.fs-22 { font-size: 22px; }
.fs-24 { font-size: 24px; }
.fs-26 { font-size: 26px; }
.fs-28 { font-size: 28px; }
.fs-30 { font-size: 30px; }
.fs-40 { font-size: 40px; }
.fs-80 { font-size: 80px; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.gap-14 { gap: 14px; }
.gap-18 { gap: 18px; }
.gap-20 { gap: 20px; }
.gap-32 { gap: 32px; }
.gap-7 { gap: 7px; }
.gap-x-14 { column-gap: 14px; }
.gap-x-16 { column-gap: 16px; }
.gap-y-4 { row-gap: 4px; }
.gap-y-6 { row-gap: 6px; }
.grid { display: grid; }
.h-16 { height: 16px; }
.h-44 { height: 44px; }
.inline-flex { display: inline-flex; }
.items-baseline { align-items: baseline; }
.items-end { align-items: end; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-end { justify-content: flex-end; }
.lh-100 { line-height: 1; }
.lh-150 { line-height: 1.5; }
.lh-160 { line-height: 1.6; }
.lh-165 { line-height: 1.65; }
.lh-170 { line-height: 1.7; }
.lh-180 { line-height: 1.8; }
.lh-190 { line-height: 1.9; }
.lh-220 { line-height: 2.2; }
.line-through { text-decoration: line-through; }
.list-none { list-style: none; }
.m-20 { margin: 20px; }
.m-auto { margin: auto; }
.maxh-120 { max-height: 120px; }
.maxh-140 { max-height: 140px; }
.maxh-200 { max-height: 200px; }
.maxh-400 { max-height: 400px; }
.maxh-80vh { max-height: 80vh; }
.maxw-100p { max-width: 100%; }
.maxw-120 { max-width: 120px; }
.maxw-130 { max-width: 130px; }
.maxw-140 { max-width: 140px; }
.maxw-160 { max-width: 160px; }
.maxw-180 { max-width: 180px; }
.maxw-200 { max-width: 200px; }
.maxw-240 { max-width: 240px; }
.maxw-260 { max-width: 260px; }
.maxw-280 { max-width: 280px; }
.maxw-320 { max-width: 320px; }
.maxw-360 { max-width: 360px; }
.maxw-400 { max-width: 400px; }
.maxw-420 { max-width: 420px; }
.maxw-440 { max-width: 440px; }
.maxw-460 { max-width: 460px; }
.maxw-480 { max-width: 480px; }
.maxw-500 { max-width: 500px; }
.maxw-520 { max-width: 520px; }
.maxw-680 { max-width: 680px; }
.mb-18 { margin-bottom: 18px; }
.mb-2 { margin-bottom: 2px; }
.mb-28 { margin-bottom: 28px; }
.mb-32 { margin-bottom: 32px; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.minh-200 { min-height: 200px; }
.minh-300 { min-height: 300px; }
.minh-44 { min-height: 44px; }
.minh-60vh { min-height: 60vh; }
.minw-0 { min-width: 0; }
.minw-1000 { min-width: 1000px; }
.minw-1060 { min-width: 1060px; }
.minw-1100 { min-width: 1100px; }
.minw-120 { min-width: 120px; }
.minw-140 { min-width: 140px; }
.minw-1400 { min-width: 1400px; }
.minw-180 { min-width: 180px; }
.minw-200 { min-width: 200px; }
.minw-240 { min-width: 240px; }
.minw-280 { min-width: 280px; }
.minw-320 { min-width: 320px; }
.minw-60 { min-width: 60px; }
.minw-64 { min-width: 64px; }
.minw-760 { min-width: 760px; }
.minw-80 { min-width: 80px; }
.minw-900 { min-width: 900px; }
.ml-12 { margin-left: 12px; }
.ml-2 { margin-left: 2px; }
.ml-3 { margin-left: 3px; }
.ml-4 { margin-left: 4px; }
.ml-5 { margin-left: 5px; }
.ml-6 { margin-left: 6px; }
.ml-8 { margin-left: 8px; }
.mr-4 { margin-right: 4px; }
.mt-1 { margin-top: 1px; }
.mt-10 { margin-top: 10px; }
.mt-11 { margin-top: 11px; }
.mt-18 { margin-top: 18px; }
.mt-3 { margin-top: 3px; }
.mt-48 { margin-top: 48px; }
.mt-5 { margin-top: 5px; }
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-20 { margin-left: 20px; margin-right: 20px; }
.my-20 { margin-top: 20px; margin-bottom: 20px; }
.my-4 { margin-top: 4px; margin-bottom: 4px; }
.no-underline { text-decoration: none; }
.opacity-35 { opacity: .35; }
.opacity-40 { opacity: .4; }
.opacity-45 { opacity: .45; }
.opacity-50 { opacity: .5; }
.opacity-60 { opacity: .6; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-14 { padding: 14px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }
.p-24 { padding: 24px; }
.p-28 { padding: 28px; }
.p-32 { padding: 32px; }
.p-36 { padding: 36px; }
.p-40 { padding: 40px; }
.pb-0 { padding-bottom: 0; }
.pb-12 { padding-bottom: 12px; }
.pb-14 { padding-bottom: 14px; }
.pb-16 { padding-bottom: 16px; }
.pb-20 { padding-bottom: 20px; }
.pb-64 { padding-bottom: 64px; }
.pb-8 { padding-bottom: 8px; }
.pb-80 { padding-bottom: 80px; }
.pointer-events-none { pointer-events: none; }
.pr-24 { padding-right: 24px; }
.pt-0 { padding-top: 0; }
.pb-6 { padding-bottom: 6px; }
.pt-10 { padding-top: 10px; }
.pt-12 { padding-top: 12px; }
.pt-14 { padding-top: 14px; }
.pt-16 { padding-top: 16px; }
.pt-18 { padding-top: 18px; }
.pt-28 { padding-top: 28px; }
.pt-4 { padding-top: 4px; }
.pt-40 { padding-top: 40px; }
.pt-60 { padding-top: 60px; }
.px-0 { padding-left: 0; padding-right: 0; }
.px-10 { padding-left: 10px; padding-right: 10px; }
.px-12 { padding-left: 12px; padding-right: 12px; }
.px-15 { padding-left: 15px; padding-right: 15px; }
.px-16 { padding-left: 16px; padding-right: 16px; }
.px-18 { padding-left: 18px; padding-right: 18px; }
.px-20 { padding-left: 20px; padding-right: 20px; }
.px-22 { padding-left: 22px; padding-right: 22px; }
.px-24 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 8px; padding-right: 8px; }
.px-9 { padding-left: 9px; padding-right: 9px; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-10 { padding-top: 10px; padding-bottom: 10px; }
.py-11 { padding-top: 11px; padding-bottom: 11px; }
.py-12 { padding-top: 12px; padding-bottom: 12px; }
.py-13 { padding-top: 13px; padding-bottom: 13px; }
.py-14 { padding-top: 14px; padding-bottom: 14px; }
.py-16 { padding-top: 16px; padding-bottom: 16px; }
.py-18 { padding-top: 18px; padding-bottom: 18px; }
.py-2 { padding-top: 2px; padding-bottom: 2px; }
.py-20 { padding-top: 20px; padding-bottom: 20px; }
.py-24 { padding-top: 24px; padding-bottom: 24px; }
.py-28 { padding-top: 28px; padding-bottom: 28px; }
.py-30 { padding-top: 30px; padding-bottom: 30px; }
.py-32 { padding-top: 32px; padding-bottom: 32px; }
.py-4 { padding-top: 4px; padding-bottom: 4px; }
.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-48 { padding-top: 48px; padding-bottom: 48px; }
.py-6 { padding-top: 6px; padding-bottom: 6px; }
.py-60 { padding-top: 60px; padding-bottom: 60px; }
.py-7 { padding-top: 7px; padding-bottom: 7px; }
.py-8 { padding-top: 8px; padding-bottom: 8px; }
.py-9 { padding-top: 9px; padding-bottom: 9px; }
.right-16 { right: 16px; }
.rounded-10 { border-radius: 10px; }
.rounded-14 { border-radius: 14px; }
.rounded-16 { border-radius: 16px; }
.rounded-6 { border-radius: 6px; }
.rounded-8 { border-radius: 8px; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-xs { border-radius: var(--radius-xs); }
.self-end { align-self: flex-end; }
.self-start { align-self: flex-start; }
.text-ellipsis { text-overflow: ellipsis; }
.top-14 { top: 14px; }
.tracking-0 { letter-spacing: 0; }
.tracking-0_04em { letter-spacing: .04em; }
.tracking-0_06em { letter-spacing: .06em; }
.tracking-0_07em { letter-spacing: .07em; }
.tracking-n0_02em { letter-spacing: -.02em; }
.tracking-n0_03em { letter-spacing: -.03em; }
.tracking-n0_04em { letter-spacing: -.04em; }
.underline { text-decoration: underline; }
.uppercase { text-transform: uppercase; }
.w-0p { width: 0%; }
.w-1 { width: 1px; }
.w-110 { width: 110px; }
.w-126 { width: 126px; }
.w-130 { width: 130px; }
.w-148 { width: 148px; }
.w-150 { width: 150px; }
.w-16 { width: 16px; }
.w-170 { width: 170px; }
.w-220 { width: 220px; }
.w-240 { width: 240px; }
.w-40 { width: 40px; }
.w-56 { width: 56px; }
.w-60 { width: 60px; }
.w-80 { width: 80px; }
.w-84 { width: 84px; }
.ws-normal { white-space: normal; }
.ws-pre-line { white-space: pre-line; }
.ws-pre-wrap { white-space: pre-wrap; }
.z-500 { z-index: 500; }


/* 3차 — 그 밖의 값 */
.accent-primary { accent-color: var(--primary); }
.align-n1 { vertical-align: -1px; }
.bg-primary { background: var(--primary); }
.border-c-line { border-color: var(--line); }
.border-collapse { border-collapse: collapse; }
.border-current { border: 1px solid currentColor; }
.border-dashed { border: 1px dashed var(--line); }
.border-t-2 { border-top: 2px solid var(--line); }
.border-t-current { border-top: 1px solid currentColor; }
.break-words { word-break: break-word; }
.c-amber-600 { color: #d97706; }
.c-amber-700 { color: #b45309; }
.c-amber-800 { color: #92400e; }
.c-emerald-500 { color: #10b981; }
.c-orange-dark { color: #bf6000; }
.c-orange-deep { color: #e65100; }
.c-red-800 { color: #991b1b; }
.c-white { color: #fff; }
.col-span-full { grid-column: 1 / -1; }
.font-inherit { font: inherit; }
.fs-08em { font-size: .8em; }
.gap-5 { gap: 5px; }
.grid-cols-2 { grid-template-columns: 1fr 1fr; }
.grid-cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-fill-180 { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); }
.grid-fit-160 { grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); }
.grid-fit-180 { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.grid-fit-190 { grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); }
.invisible { visibility: hidden; }
.lh-175 { line-height: 1.75; }
.maxh-420 { max-height: 420px; }
.minw-430 { min-width: 430px; }
.mr-2 { margin-right: 2px; }
.mt-14 { margin-top: 14px; }
.my-16 { margin-top: 16px; margin-bottom: 16px; }
.object-cover { object-fit: cover; }
.p-8 { padding: 8px; }
.pt-8 { padding-top: 8px; }
.px-6 { padding-left: 6px; padding-right: 6px; }
.py-1 { padding-top: 1px; padding-bottom: 1px; }
.resize-y { resize: vertical; }
.rounded-full { border-radius: 999px; }
.table-fixed { table-layout: fixed; }
.wrap-break { overflow-wrap: break-word; }
.break-anywhere { overflow-wrap: anywhere; }

/* 3차 — 색 */
.settle-success { color: #1d4ed8; }   /* 거래완료 배지 안 정산 결과 */
.settle-refund { color: #dc2626; }
.settle-partial { color: #f97316; }
.icon-brand-soft { color: rgba(91,108,255,.55); }

/* 3차 — 공용 클래스와 함께 쓰는 크기 */
.fs-085rem { font-size: 0.85rem; }
.gap-9 { gap: 9px; }
.w-42 { width: 42px; }
.h-42 { height: 42px; }
.w-44 { width: 44px; }
.w-92p { width: 92%; }
.maxw-380 { max-width: 380px; }
.py-3 { padding-top: 3px; padding-bottom: 3px; }
.px-11 { padding-left: 11px; padding-right: 11px; }
.px-14 { padding-left: 14px; padding-right: 14px; }
.px-32 { padding-left: 32px; padding-right: 32px; }
.rounded-4 { border-radius: 4px; }
.rounded-12 { border-radius: 12px; }
.rounded-20 { border-radius: 20px; }


/* 4차 */
.bg-backdrop-40 { background: rgba(0,0,0,.4); }
.bg-backdrop-45 { background: rgba(0,0,0,.45); }
.bg-backdrop-50 { background: rgba(0,0,0,.5); }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.maxh-260 { max-height: 260px; }
.minh-400 { min-height: 400px; }
.z-1000 { z-index: 1000; }
.z-10000 { z-index: 10000; }
.z-400 { z-index: 400; }
.z-410 { z-index: 410; }
.z-9999 { z-index: 9999; }

/* JS 가 보였다 숨겼다 하는 요소의 처음 상태. JS 는 style.display 로 보이게 한다 — 인라인 값이 이 클래스를
   이기므로 !important 를 붙이면 안 된다(.hidden 과 다른 점). style.display = '' 로는 다시 숨겨진다. */
.is-hidden { display: none; }

/* 5차 — 조건부 클래스로 바꾼 값 */
.c-success { color: var(--success); }
.c-emerald-600 { color: #059669; }
.c-inherit { color: inherit; }
.bg-white-96 { background: rgba(255,255,255,.96); }
.bg-brand-soft { background: rgba(91,108,255,.06); }
.top-4 { top: 4px; }
.top-6 { top: 6px; }
.right-2 { right: 2px; }
.right-4 { right: 4px; }

/* JS 가 만드는 마크업용 */
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-block { display: inline-block; }
.lh-28px { line-height: 28px; }
.p-18 { padding: 18px; }
.pb-5 { padding-bottom: 5px; }
.py-5 { padding-top: 5px; padding-bottom: 5px; }
.bg-white-55 { background: rgba(255,255,255,.55); }
.bg-info-soft { background: rgba(21,112,239,.04); }
.opacity-85 { opacity: .85; }
.w-38 { width: 38px; }
.h-38 { height: 38px; }

/* 카테고리 색 그라데이션 — 색은 base-ui.js 가 data-category-color 에서 --category-color 로 넣는다 */
.category-gradient { background: linear-gradient(135deg, #111827 0%, var(--category-color, #7c3aed) 100%); }
.w-28 { width: 28px; }
.h-28 { height: 28px; }

} /* @layer utilities */
