/* ---- apple.css ---- */
/* ═══════════════════════════════════════════════════════════════
   Sellio — Apple/Toss 계열 디자인 오버레이 (셀러 + 관리자 공통)
   base.html에서 theme.css 뒤에 항상 마지막으로 로드된다. 덮어쓰기 전용 파일.
   구조 참조: 압도마케팅(apdomkt.com) UI — 반투명 재질 상단바, 헤어라인 카드,
   세그먼트 컨트롤 탭, 회색 채움 입력칸, 좌우 2단 로그인.
   ═══════════════════════════════════════════════════════════════ */

/* 세로 스크롤바 자리를 항상 비워 둬 가운데 정렬이 페이지마다 흔들리지 않게 한다. */
:root:has(body.ui-refresh) { scrollbar-gutter: stable; }

/* ── 0) 토큰 ──
   Sellio 기존 변수(--accent/--cyan/--canvas ...)를 같은 이름 그대로 새 팔레트로
   다시 정의한다. 기존 시트 1000여 줄이 수정 없이 새 색을 따라온다. */
body.ui-refresh {
  --font-ui: 'Pretendard Variable', 'Plus Jakarta Sans', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --blue: #0071e3;
  --blue-dark: #0064d2;
  --blue-soft: #eaf3ff;
  --blue-fill: #0071e3;
  --blue-ink: #0062c8;
  /* 강조색 바탕(--blue-fill) 위의 글자색. 파스텔 스킨(skin.css)은 짙은 색으로 바꾼다. */
  --on-fill: #fff;
  --green-ink: #0f7a4d;
  --violet-ink: #7b3fa8;
  --gray-strong: #4e5968;
  --ink: #191f28;
  --gray: #6b7684;
  --gray-light: #8b95a1;
  --line: #e5e8eb;
  --bg: #f2f4f6;
  --card: #ffffff;
  --green: #00b86b;
  --orange: #ff9500;
  --violet: #af52de;
  --red: #ff3b30;
  --radius: 16px;
  --radius-lg: 20px;
  --hairline: rgba(0, 19, 43, 0.08);
  --material: rgba(255, 255, 255, 0.72);
  --fill: rgba(120, 120, 128, 0.12);
  --fill-strong: rgba(120, 120, 128, 0.18);
  --shadow: 0 0 0 1px rgba(0, 19, 43, 0.04), 0 1px 2px rgba(0, 19, 43, 0.04), 0 8px 24px rgba(0, 19, 43, 0.05);
  --shadow-hover: 0 0 0 1px rgba(0, 19, 43, 0.05), 0 2px 6px rgba(0, 19, 43, 0.06), 0 16px 40px rgba(0, 19, 43, 0.10);

  /* 기존 이름 → 새 팔레트 */
  --canvas: var(--bg);
  --muted: var(--gray);
  --accent: var(--blue);
  --cyan: var(--blue);
  --cyan-soft: var(--blue-soft);
  --cyan-bright: var(--blue);
  --surface-soft: #f7f8fa;
  --teal: var(--green);
  --teal-soft: #e5f8ef;
  --violet-soft: #f6ecfd;
  --amber: #b45309;
  --amber-soft: #fff4e0;
  --sidebar-width: 252px;
  --sidebar-bg: var(--material);
  --charcoal: var(--material);
  --topbar-height: 64px;

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 450;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] body.ui-refresh {
  --blue: #0a84ff;
  --blue-dark: #409cff;
  --blue-soft: #16283f;
  --blue-fill: #0a6fd8;
  --blue-ink: #5aaaff;
  --green-ink: #35d08a;
  --violet-ink: #d08cf5;
  --gray-strong: #b6c0cd;
  --ink: #e9edf4;
  --gray: #9aa4b2;
  --gray-light: #8b95a1;
  --line: #262e3b;
  --bg: #0c0f15;
  --card: #161b24;
  --green: #35d08a;
  --orange: #ff9e57;
  --violet: #d08cf5;
  --red: #ff6b76;
  --hairline: rgba(255, 255, 255, 0.09);
  --material: rgba(18, 22, 30, 0.72);
  --fill: rgba(120, 120, 128, 0.20);
  --fill-strong: rgba(120, 120, 128, 0.28);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 2px 10px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 8px 28px rgba(0, 0, 0, 0.6);
  --surface-soft: #10151e;
  --teal-soft: #152b21;
  --violet-soft: #251a33;
  --amber: #f0b24a;
  --amber-soft: #322611;
  color-scheme: dark;
}

/* ── 1) 타이포 — 큰 글자는 자간 음수, 숫자는 자릿수 고정폭 ── */
.ui-refresh h1 { font-size: 26px; font-weight: 750; letter-spacing: -0.03em; }
.ui-refresh h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.022em; }
.ui-refresh h3 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.ui-refresh .sub,
.ui-refresh :is(.page-heading, .admin-page-heading) p { color: var(--gray); font-size: 14px; font-weight: 450; }
.ui-refresh :is(.home-balance > strong, .home-stat strong, .dashboard-kpi > strong, .attention-box strong,
  .flow-step strong, .metric strong, .metric-box strong, .big-number, .amount strong, .subscription-total,
  td.amt, .badge) { font-variant-numeric: tabular-nums; }

/* ── 2) 상단바 — 반투명 재질 + 헤어라인 ── */
.ui-refresh .workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  gap: 16px;
  min-height: var(--topbar-height);
  padding: 14px 28px;
  background: var(--material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: none;
  box-shadow: 0 1px 0 var(--hairline);
}
.ui-refresh .workspace-location { color: var(--gray); font-size: 14px; }
.ui-refresh .workspace-location > a { color: var(--gray); font-weight: 600; }
.ui-refresh .workspace-location > a:hover { color: var(--ink); text-decoration: none; }
.ui-refresh .breadcrumb-divider { color: var(--gray-light); }
.ui-refresh .workspace-location > span:last-child { color: var(--ink); font-weight: 700; }
.ui-refresh .workspace-tools a {
  color: var(--gray);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: color .15s, border-color .15s;
}
.ui-refresh .workspace-tools a:hover { color: var(--ink); border-color: var(--gray-light); text-decoration: none; }
/* 재질 상단바가 backdrop-filter로 고정 위치의 기준이 되므로, 접기 버튼은 흐름에 둔다. */
body.ui-refresh:not(.sidebar-collapsed) .sidebar-collapse,
body.ui-refresh .sidebar-collapse {
  position: static;
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--fill);
  color: var(--gray);
  transition: background .15s, transform .05s;
}
body.ui-refresh .sidebar-collapse:hover:not(:disabled) { background: var(--fill-strong); color: var(--ink); }
body.ui-refresh .sidebar-collapse:active { transform: scale(.92); }

/* 다크모드 토글 — 상단바·게스트 상단 공통 칩 */
body.ui-refresh .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px;
  line-height: 0;
  color: var(--gray);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
body.ui-refresh .theme-toggle:hover:not(:disabled) { background: var(--card); color: var(--ink); border-color: var(--gray-light); }
body.ui-refresh .theme-toggle svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
body.ui-refresh .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] body.ui-refresh .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] body.ui-refresh .theme-toggle .icon-sun { display: block; }

/* ── 3) 사이드바 — 어두운 패널 대신 같은 반투명 재질 ── */
.ui-refresh .workspace-sidebar {
  --muted: var(--gray);
  width: var(--sidebar-width);
  background: var(--material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  color: var(--ink);
  border-right: 1px solid var(--hairline);
}
.ui-refresh .workspace-brand {
  height: var(--topbar-height);
  gap: 10px;
  padding-left: 20px;
  padding-right: 20px;
  color: var(--ink);
  background: transparent;
  border-bottom: 1px solid var(--hairline);
}
.ui-refresh .workspace-brand b,
.ui-refresh .mobile-brand b { font-family: var(--font-ui); font-weight: 800; letter-spacing: -0.03em; }
/* 브랜드 마크 — 판 없이 그대로 두고, 뒤에서 은은하게 빛난다. */
.ui-refresh .brand-symbol {
  border-radius: 0;
  background: none;
  box-shadow: none;

}
.ui-refresh .brand-symbol::after { content: none; }
/* 로고 뒤의 빛만 천천히 점멸하고, 마크 자체는 선명하게 유지한다. */
.ui-refresh :is(.brand-symbol, .seller-login .brand-mark, .topnav .brand) {
  position: relative;
  isolation: isolate;
}
.ui-refresh :is(.brand-symbol, .seller-login .brand-mark, .topnav .brand)::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(0 122 255 / 26%), transparent 70%);
  opacity: .2;
  animation: brand-halo 3.8s cubic-bezier(.45, 0, .55, 1) infinite;
}
.ui-refresh .topnav .brand::before {
  inset: auto;
  left: -12px;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
}
@keyframes brand-halo {
  0%, 100% { opacity: .2; }
  50% { opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .ui-refresh :is(.brand-symbol, .seller-login .brand-mark, .topnav .brand)::before {
    animation: none;
    opacity: .35;
  }
}
.ui-refresh .center-badge {
  color: var(--blue-ink);
  background: var(--blue-soft);
  border: none;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}
.ui-refresh .workspace-profile { padding: 18px 20px; min-height: auto; }
.ui-refresh .profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--blue-ink);
  background: var(--blue-soft);
  font-weight: 800;
}
.ui-refresh .workspace-profile b { color: var(--ink); font-size: 13px; font-weight: 700; }
.ui-refresh .workspace-profile small { color: var(--gray); }
.ui-refresh .workspace-navigation { scrollbar-color: var(--fill-strong) transparent; }
.ui-refresh .workspace-navigation a {
  min-height: 42px;
  border-radius: 10px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transition: background .15s, color .15s, transform .1s;
}
.ui-refresh .workspace-navigation a:hover { background: var(--fill); color: var(--ink); }
.ui-refresh .workspace-navigation a:active { transform: scale(.98); }
.ui-refresh .workspace-navigation a.active {
  background: var(--blue-soft);
  color: var(--blue-ink);
  font-weight: 700;
  box-shadow: none;
}
.ui-refresh .workspace-nav-group > summary {
  min-height: 42px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.ui-refresh .workspace-nav-group > summary:hover { background: var(--fill); }
.ui-refresh .workspace-nav-group > summary > .admin-icon:last-child { color: var(--gray-light); }

/* ── 사이드바 묶음별 색 ── 묶음마다 아이콘·세로선·선택 상태가 같은 색을 쓴다. */
.ui-refresh .workspace-nav-group { --nav-accent: var(--blue-ink); --nav-accent-soft: var(--blue-soft); }
.ui-refresh .workspace-nav-group:nth-of-type(2) { --nav-accent: var(--green-ink); --nav-accent-soft: var(--teal-soft); }
.ui-refresh .workspace-nav-group:nth-of-type(3) { --nav-accent: var(--violet-ink); --nav-accent-soft: var(--violet-soft); }
.ui-refresh .workspace-nav-group:nth-of-type(4) { --nav-accent: var(--amber); --nav-accent-soft: var(--amber-soft); }
/* 묶음 번호별 선택자를 그대로 맞춰 둬야 theme.css의 옛 색 지정을 덮는다. */
.ui-refresh .workspace-nav-group > summary > .admin-icon:first-child,
.ui-refresh .workspace-nav-group:nth-of-type(2) > summary > .admin-icon:first-child,
.ui-refresh .workspace-nav-group:nth-of-type(3) > summary > .admin-icon:first-child,
.ui-refresh .workspace-nav-group:nth-of-type(4) > summary > .admin-icon:first-child { color: var(--nav-accent); }
.ui-refresh .nav-group-links {
  margin-left: 21px;
  padding-left: 9px;
  border-left: 2px solid var(--nav-accent-soft);
}
.ui-refresh .nav-group-links a { padding-left: 11px; }
.ui-refresh .nav-group-links a:hover { background: var(--nav-accent-soft); color: var(--nav-accent); }
.ui-refresh .workspace-navigation .nav-group-links a.active {
  background: var(--nav-accent-soft);
  color: var(--nav-accent);
  box-shadow: inset 2px 0 var(--nav-accent);
}
.ui-refresh .workspace-navigation .nav-group-links a.active .nav-badge { color: #fff; background: var(--nav-accent); }
:where(:root[data-theme="dark"]) .ui-refresh .workspace-navigation .nav-group-links a.active .nav-badge { color:#0c0f15; }
.ui-refresh .nav-badge {
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
}
.ui-refresh .workspace-sidebar-foot {
  color: var(--gray);
  background: transparent;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
}
.ui-refresh button.logout { color: var(--gray); font-size: 12px; font-weight: 600; }
.ui-refresh button.logout:hover:not(:disabled) { background: var(--fill); color: var(--ink); }
.ui-refresh .workspace-menu,
.ui-refresh .workspace-menu-toggle { background: var(--material); color: var(--ink); }
.ui-refresh .mobile-brand small { color: var(--gray); }

/* ── 4) 본문 폭 ── */
.ui-refresh main.main,
.ui-refresh main#main { max-width: 1480px; padding: 28px 28px 80px; }
.ui-refresh .site-footer { color: var(--gray-light); border-top: 1px solid var(--line); font-size: 12px; }

/* ── 5) 카드 — 헤어라인 링이 포함된 그림자, 색 테두리 없음 ── */
.ui-refresh .card {
  background: var(--card);
  border: none;
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.ui-refresh :is(.card.accent-blue, .card.accent-cyan, .card.accent-purple, .card.accent-green,
  .card.accent-orange, .card.accent-red, .card.green-top, .home-news,
  .home-secondary > .card:first-child, .home-secondary > .card:last-child) {
  border-top: none;
  background: var(--card);
}
.ui-refresh .card > :last-child { margin-bottom: 0; }

/* ── 6) 버튼 — 누르는 순간 피드백, 전부 통일 ── */
.ui-refresh :is(button, .button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: none;
  border-radius: 12px;
  background: var(--blue-fill);
  color: var(--on-fill);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background .15s ease-out, color .15s ease-out, border-color .15s ease-out, transform .1s ease-out;
}
.ui-refresh :is(button, .button):hover:not(:disabled) { background: var(--blue-dark); color: var(--on-fill); text-decoration: none; }
:where(:root[data-theme="dark"]) .ui-refresh :is(button, .button):hover:not(:disabled) { background:#1273de; }
.ui-refresh :is(button, .button):active:not(:disabled) { transform: scale(.96); }
.ui-refresh :is(button.secondary, .button.secondary, button.gray, .btn-ghost) {
  background: var(--fill);
  color: var(--gray);
  border: none;
}
.ui-refresh :is(button.secondary, .button.secondary, button.gray, .btn-ghost):hover:not(:disabled) {
  background: var(--fill-strong);
  color: var(--ink);
}
.ui-refresh button.danger { background: var(--red); }
:where(:root[data-theme="dark"]) .ui-refresh button.danger { background:#d93a4a; }
.ui-refresh button.danger:hover:not(:disabled) { filter: brightness(.92); background: var(--red); }
:where(:root[data-theme="dark"]) .ui-refresh button.danger:hover:not(:disabled) { background:#d93a4a; }
.ui-refresh :is(button, .button):disabled,
.ui-refresh :is(button, .button)[disabled] { background: var(--fill); color: var(--gray-light); opacity: 1; cursor: not-allowed; }
.ui-refresh button.logout,
.ui-refresh .logout-form button { min-height: 30px; padding: 5px 8px; background: transparent; border-radius: 8px; }
.ui-refresh .workspace-tools a { min-height: 36px; }
/* 화살표로 끝나던 안내 링크를 같은 버튼 문법으로 세운다. */
.ui-refresh .card-action { margin-top: 16px; min-height: 38px; padding: 9px 15px; color: var(--gray-strong); font-size: 13px; }
.ui-refresh .panel-heading .card-action { margin-top: 0; }
.ui-refresh .home-notice-list .card-action { display: flex; width: fit-content; margin-top: 10px; }
.ui-refresh .collection-api-link { margin-top: 16px; }
.ui-refresh .mapping-supplier-link { min-height: 34px; margin-top: 8px; padding: 7px 12px; font-size: 12px; }
.ui-refresh .signup-guide-links .button { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.ui-refresh .back-link { margin-bottom: 16px; min-height: 38px; padding: 9px 15px; font-size: 13px; }

/* ── 6-1) 접힘 영역 — 기본 ▶ 표시를 없애고 요약줄을 버튼으로 ── */
.ui-refresh summary { list-style: none; cursor: pointer; }
.ui-refresh summary::-webkit-details-marker { display: none; }
.ui-refresh summary::marker { content: ""; }
.ui-refresh main details:not(.home-setting, .balance-day, .cs-day-group, .cs-case-shipment,
  .cs-bulk-accounts, .cs-expand details) > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: var(--fill);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: background .15s ease-out, transform .1s ease-out;
}
.ui-refresh main details:not(.home-setting, .balance-day, .cs-day-group, .cs-case-shipment,
  .cs-bulk-accounts, .cs-expand details) > summary:hover { background: var(--fill-strong); }
.ui-refresh main details:not(.home-setting, .balance-day, .cs-day-group, .cs-case-shipment,
  .cs-bulk-accounts, .cs-expand details) > summary:active { transform: scale(.97); }
.ui-refresh main details:not(.home-setting, .balance-day) > summary::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: .55;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .15s ease-out;
}
.ui-refresh main details[open]:not(.home-setting, .balance-day) > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.ui-refresh main details[open] > summary { margin-bottom: 14px; }
/* 접힌 카드가 버튼 하나만 담은 채 커 보이지 않게 한다. */
.ui-refresh main details.card { padding: 14px 16px; }
.ui-refresh main details.card[open] { padding: 18px 20px 20px; }

/* ── 7) 입력칸 — 회색 채움 + 초점 파란 링 ── */
.ui-refresh :is(input, select, textarea) {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 450;
  transition: border-color .15s ease-out, background .15s ease-out, box-shadow .15s ease-out;
}
.ui-refresh :is(input, textarea)::placeholder { color: var(--gray-light); }
.ui-refresh :is(input, select, textarea):focus,
.ui-refresh :is(input, select, textarea):focus-visible {
  outline: none;
  background: var(--card);
  border-color: var(--blue);
  box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.18);
}
.ui-refresh input[type="checkbox"],
.ui-refresh input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--blue); box-shadow: none; }
.ui-refresh input[type="file"] { padding: 10px; background: var(--bg); }
.ui-refresh input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 12px;
  border: none;
  border-radius: 8px;
  background: var(--fill);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.ui-refresh :is(input, select, textarea):disabled { background: var(--fill); color: var(--gray-light); opacity: 1; }
.ui-refresh textarea { resize: vertical; }
.ui-refresh :is(.form-grid label, .seller-row > label, .label-rows > label) { color: var(--gray); font-size: 13px; font-weight: 600; }

/* ── 8) 초점 — 어디에 있는지 항상 보이게 ── */
.ui-refresh :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
}

/* ── 9) 탭 — 애플 세그먼트 컨트롤 ── */
.ui-refresh :is(.tabs, .inline-tabs, .transaction-tabs, .calc-tabs, .cs-history-toggle) {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  background: var(--fill);
  border: none;
  border-radius: 14px;
}
body.ui-refresh :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a,
body.ui-refresh .calc-tabs button {
  min-height: 38px;
  padding: 8px 16px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  transition: background .18s ease-out, color .18s ease-out, transform .1s ease-out;
}
body.ui-refresh :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a:hover,
body.ui-refresh .calc-tabs button:hover:not(:disabled) { background: var(--fill); color: var(--ink); text-decoration: none; }
.ui-refresh :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a:active,
.ui-refresh .calc-tabs button:active { transform: scale(.97); }
body.ui-refresh :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a[aria-current],
body.ui-refresh .calc-tabs button[aria-selected="true"] {
  background: var(--card);
  color: var(--ink);
  border: none;
  font-weight: 700;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 3px 8px rgba(0, 0, 0, .10);
}
body.ui-refresh :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a[aria-current]:hover,
body.ui-refresh .calc-tabs button[aria-selected="true"]:hover:not(:disabled) { background: var(--card); color: var(--ink); }

/* ── 10) 표 — 옅은 머리글, 조용한 행 호버 ── */
.ui-refresh :is(.table-scroll, .table-wrap) { border: none; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
/* 카드 안에서는 표가 또 하나의 카드처럼 겹쳐 보이지 않게 한다. */
.ui-refresh .card :is(.table-scroll, .table-wrap) { border-radius: 0; background: transparent; box-shadow: none; }
.ui-refresh th {
  padding: 12px 14px;
  color: var(--gray);
  background: transparent;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}
.ui-refresh td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 450; }
.ui-refresh tbody tr:not(.cs-expand):hover { background: var(--fill); }
.ui-refresh tbody tr:last-child td { border-bottom: 0; }
.ui-refresh .account-table td:first-child { color: var(--gray-strong); background: var(--bg); font-weight: 600; }
.ui-refresh .empty { padding: 48px 20px; color: var(--gray); text-align: center; }

/* ── 11) 배지·상태 — 알약 모양 ── */
.ui-refresh :is(.badge, .trial-status, .mapping-badge) {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.ui-refresh .badge { color: var(--blue-ink); background: var(--blue-soft); }
.ui-refresh :is(.badge.green, .trial-status.matched) { color: var(--green-ink); background: var(--teal-soft); }
.ui-refresh .badge.blue { color: var(--blue-ink); background: var(--blue-soft); }
.ui-refresh .badge.red { color: var(--red); background: #ffeaec; }
.ui-refresh .badge.orange { color: var(--amber); background: var(--amber-soft); }
:root[data-theme="dark"] .ui-refresh .badge.red { background: #35202a; }

/* ── 12) 안내 문구 ── */
.ui-refresh .notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: none;
  border-left: none;
  border-radius: 12px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  font-size: 14px;
  font-weight: 600;
}
.ui-refresh .notice.success { color: var(--green-ink); background: var(--teal-soft); }
.ui-refresh .notice.warning { color: var(--amber); background: var(--amber-soft); }
.ui-refresh .notice.error { color: var(--red); background: #ffeaec; }
:root[data-theme="dark"] .ui-refresh .notice.error { background: #35202a; }

/* ── 13) 셀러 홈 — 파란 히어로, 테두리 없는 통계 칸 ── */
.ui-refresh .home-balance {
  background: linear-gradient(135deg, var(--blue) 0%, #3395ff 100%);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.28);
}
:root[data-theme="dark"] .ui-refresh .home-balance { background: linear-gradient(135deg, #0a84ff 0%, #3f9bff 100%); }
.ui-refresh .home-balance h2 { color: rgba(255, 255, 255, .9); }
.ui-refresh .home-balance > strong { color: #fff; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.ui-refresh .home-balance > strong small { color: rgba(255, 255, 255, .9); font-weight: 600; }
.ui-refresh .home-balance > p { color: rgba(255, 255, 255, .88); font-weight: 500; }
.ui-refresh .home-balance > .button { color: var(--blue); background: #fff; border: none; box-shadow: none; }
.ui-refresh .home-balance > .button:hover { color: var(--blue); background: rgba(255, 255, 255, .88); }
.ui-refresh .home-balance :focus-visible { outline-color: #fff; }
.ui-refresh .home-stat,
.ui-refresh .home-stat[data-order-state] {
  border: none;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 20px 12px;
  transition: transform .12s ease-out, box-shadow .15s ease-out;
}
.ui-refresh .home-stat strong { color: var(--ink); font-size: 32px; font-weight: 800; letter-spacing: -0.03em; }
.ui-refresh .home-stat span { color: var(--gray); font-weight: 600; }
.ui-refresh .home-stat[data-order-state="ON_HOLD"] strong { color: var(--amber); }
.ui-refresh .home-stat:hover { background: var(--card); outline: none; box-shadow: var(--shadow-hover); }
.ui-refresh .home-stat:active { transform: scale(.98); }
.ui-refresh .home-news h2 > .admin-icon,
.ui-refresh .home-orders h2 > .admin-icon,
.ui-refresh .home-secondary > .card h2 > .admin-icon { color: var(--blue); }
.ui-refresh .home-notice-list strong { display: block; color: var(--ink); font-size: 17px; font-weight: 700; }
.ui-refresh .home-notice-list li { padding: 16px 0; border-bottom-color: var(--line); color: var(--gray); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.ui-refresh .home-notice-list li > span { display: block; margin-top: 4px; }

/* ── 14) 관리자 지표 — 같은 카드 문법 ── */
.ui-refresh .dashboard-kpi.card,
.ui-refresh .dashboard-kpi[data-metric] {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.ui-refresh .dashboard-kpi .kpi-icon { color: var(--blue-ink); background: var(--blue-soft); border-radius: 10px; }
.ui-refresh .dashboard-kpi > strong { color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.ui-refresh .kpi-label h2 { color: var(--gray); font-size: 13px; font-weight: 600; }
.ui-refresh .attention-box,
.ui-refresh .attention-box:nth-child(2),
.ui-refresh .attention-box:nth-child(3),
.ui-refresh .attention-box:nth-child(4) {
  border: none;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: background .15s ease-out, transform .12s ease-out;
}
.ui-refresh .attention-box:hover { background: var(--fill); border: none; }
.ui-refresh .attention-box:active { transform: scale(.98); }
.ui-refresh .attention-label { color: var(--gray); font-weight: 600; }
.ui-refresh .attention-label > .admin-icon { color: var(--gray); }
.ui-refresh .attention-box strong { color: var(--ink); font-weight: 800; }
.ui-refresh .attention-box strong.connection-label,
.ui-refresh :is(.attention-box strong small, .flow-step strong small) { color: var(--gray); }
.ui-refresh .order-flow { border: none; border-radius: var(--radius); background: var(--bg); }
.ui-refresh .flow-step { border-right-color: var(--line); }
.ui-refresh .flow-step span { color: var(--gray); font-weight: 600; }
.ui-refresh .flow-step strong,
.ui-refresh .flow-step:nth-child(3) strong,
.ui-refresh .flow-step:nth-child(4) strong,
.ui-refresh .flow-step:nth-child(5) strong { color: var(--ink); font-weight: 800; }
.ui-refresh .flow-step.flow-held { background: var(--amber-soft); }
.ui-refresh .flow-step.flow-held :is(span, strong) { color: var(--amber); }
.ui-refresh .workflow-steps > li > span,
.ui-refresh .workflow-steps > li:nth-child(2) > span,
.ui-refresh .workflow-steps > li:nth-child(3) > span,
.ui-refresh .workflow-steps > li:nth-child(4) > span {
  color: var(--blue-ink);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 800;
}
.ui-refresh .dashboard-date {
  color: var(--gray);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
}
.ui-refresh :is(.metric, .metric-box) { border: none; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.ui-refresh :is(.metric strong, .metric-box strong, .big-number) { color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }

/* ── 15) 경고·알림 띠 ── */
.ui-refresh .seller-order-alert {
  border: none;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: var(--amber);
}
.ui-refresh .seller-order-alert strong { color: var(--amber); }
.ui-refresh .seller-order-alert p { color: var(--amber); opacity: .9; }
.ui-refresh .seller-order-alert-actions > a:not(.button) { color: var(--blue); font-weight: 700; }
:where(:root[data-theme="dark"]) .ui-refresh .seller-order-alert-actions > a:not(.button) { color:var(--blue-ink); }
.ui-refresh .seller-order-alert .button { background: var(--blue-fill); color: var(--on-fill); }
.ui-refresh .automation-banner { background: var(--blue-soft); border: none; border-radius: var(--radius); }
.ui-refresh .automation-label { color: var(--blue-ink); background: var(--blue-soft); border-radius: 999px; }
.ui-refresh .automation-features span { color: var(--gray); border-color: var(--line); }

/* ── 16) 떠 있는 문의 버튼 ── */
.ui-refresh .inq-fab {
  border-radius: 999px;
  padding: 13px 18px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 122, 255, .28);
  transition: transform .12s ease-out;
}
.ui-refresh .inq-fab:active { transform: scale(.94); }

/* ═════════ 게스트(로그인·회원가입) 화면 — 압도 auth-layout ═════════ */
.ui-refresh .topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 32px;
  background: var(--material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--hairline);
}
.ui-refresh .nav-left,
.ui-refresh .nav-right { display: flex; align-items: center; gap: 8px; }
.ui-refresh .topnav .brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.ui-refresh .topnav .brand img { width: 36px; height: 36px; border-radius: 10px; }
.ui-refresh .nav-right a {
  color: var(--gray);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.ui-refresh .nav-right a:hover { color: var(--ink); border-color: var(--gray-light); text-decoration: none; }

body.ui-refresh.guest { background: var(--bg); }
body.ui-refresh.guest main.main { max-width: 1480px; padding: 0 40px 64px; }
.ui-refresh .auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 4vw, 80px);
  min-height: 76vh;
  padding: 64px 0;
}
.ui-refresh .auth-intro .auth-eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.ui-refresh .auth-intro h2 {
  font-size: clamp(36px, 3.5vw, 64px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.04em;
  word-break: keep-all;
}
.ui-refresh .auth-intro h2 span { color: var(--blue); }
.ui-refresh .auth-intro p {
  color: var(--gray);
  font-size: 22px;
  line-height: 1.8;
  margin: 32px 0;
  word-break: keep-all;
}
.ui-refresh .auth-action { margin-top: 24px; min-height: 52px; padding: 14px 22px; font-size: 16px; }
.ui-refresh .auth-card {
  width: 100%;
  padding: clamp(32px, 3vw, 56px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.ui-refresh .auth-card h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.ui-refresh .auth-card .login-subtitle { color: var(--gray); font-size: 17px; margin: 12px 0 32px; }
.ui-refresh .auth-card form { display: block; }
.ui-refresh .auth-card label {
  display: block;
  color: var(--gray);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}
.ui-refresh .auth-card input {
  display: block;
  width: 100%;
  min-height: 68px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 16px;
  font-size: 19px;
}
.ui-refresh .auth-card form > button {
  width: 100%;
  min-height: 68px;
  margin-top: 8px;
  border-radius: 16px;
  font-size: 20px;
  font-weight: 700;
}
.ui-refresh .auth-card .btn-outline,
.ui-refresh .auth-card .btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60px;
  margin-top: 12px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}
.ui-refresh .auth-card .btn-outline { color: var(--gray); background: var(--bg); border: none; }
.ui-refresh .auth-card .btn-outline:hover { color: var(--ink); background: var(--fill); }
.ui-refresh .auth-card .btn-kakao { color: #3c1e1e; background: #fee500; border: none; }
.ui-refresh .auth-card .login-notes {
  margin-top: 28px;
  padding: 16px 18px;
  color: var(--gray);
  background: var(--bg);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.8;
}
.ui-refresh .auth-card .login-notes strong { color: var(--ink); }
.ui-refresh .auth-card .login-reset { margin: 20px 0 0; color: var(--blue); font-size: 15px; font-weight: 600; text-align: center; }
.ui-refresh .auth-card .login-reset a { color: inherit; }

/* 기존 로그인 화면의 짙은 배경·카드 규칙을 끈다. */
body.ui-refresh:has(.seller-login, .admin-login),
body.seller.ui-refresh:has(.seller-login) { background: var(--bg); color: var(--ink); font-family: var(--font-ui); }
body.seller.ui-refresh:has(.seller-login) .main {
  display: block;
  min-height: 0;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px 64px;
}
body.ui-refresh:has(.admin-login) main#main {
  display: block;
  min-height: 0;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 40px 64px;
}
body.ui-refresh:has(.seller-login, .admin-login) .main > .notice { width: auto; max-width: none; margin-top: 24px; }
body.seller.ui-refresh:has(.seller-login) .app { display: block; min-height: 0; }
body.ui-refresh:has(.seller-login, .admin-login) .site-footer { display: none; }
.ui-refresh :is(.seller-login, .admin-login) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(32px, 3vw, 56px);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.ui-refresh .seller-login .brand-mark {
  width: 56px;
  height: 56px;
  margin: 0 0 20px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.ui-refresh .seller-login .brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ui-refresh :is(.seller-login, .admin-login) h1 { color: var(--ink); font-family: var(--font-ui); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 0; }
.ui-refresh .seller-login h1 span { color: var(--blue); }
.ui-refresh :is(.seller-login, .admin-login) .login-subtitle { color: var(--gray); font-size: 17px; margin: 12px 0 32px; text-align: left; }
.ui-refresh .admin-login > p { margin: 12px 0 32px; text-align: left; }
.ui-refresh :is(.seller-login, .admin-login) label { color: var(--gray); font-size: 17px; font-weight: 600; margin-bottom: 12px; }
.ui-refresh :is(.seller-login, .admin-login) input {
  min-height: 68px;
  margin-bottom: 28px;
  padding: 18px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 16px;
  font-size: 19px;
}
.ui-refresh :is(.seller-login, .admin-login) input:focus { background: var(--card); border-color: var(--blue); }
.ui-refresh :is(.seller-login, .admin-login) form > button {
  width: 100%;
  min-height: 68px;
  margin-top: 8px;
  background: var(--blue-fill);
  border-radius: 16px;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
}
.ui-refresh .seller-login .btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin-top: 12px;
  padding: 0;
  color: var(--gray);
  background: var(--bg);
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 700;
}
.ui-refresh .seller-login .btn-outline:hover { color: var(--ink); background: var(--fill); }
.ui-refresh .seller-login a.login-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin: 8px auto 0;
  padding: 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}
.ui-refresh .seller-login a.login-reset:hover { text-decoration: underline; }
.ui-refresh .seller-login a.login-reset:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.ui-refresh .seller-login .btn-kakao { min-height: 60px; margin-top: 12px; border-radius: 16px; font-size: 17px; }
.ui-refresh .seller-login .login-notes {
  margin-top: 28px;
  padding: 16px 18px;
  color: var(--gray);
  background: var(--bg);
  border: none;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.8;
}
.ui-refresh .seller-login .login-notes strong { color: var(--ink); }
.ui-refresh .seller-login .login-reset { color: var(--blue); }

/* 밝은 색이 박혀 있는 면들 — 토큰으로 바꿔 다크모드에서도 읽히게 한다. */
body.ui-refresh .bank-row { background: var(--bg); }
body.ui-refresh .bank-row .bank-label { color: var(--gray); }
body.ui-refresh .home-news { background: var(--card); border-left: none; }
body.ui-refresh .home-news h2 { color: var(--ink); }
body.ui-refresh .home-news ul { color: var(--gray); }
body.ui-refresh :is(.orders-guidance, .cancel-info, .seller-notice-orange) {
  background: var(--amber-soft);
  border: none;
  border-left: none;
  color: var(--amber);
}
body.ui-refresh :is(.orders-guidance, .cancel-info, .seller-notice-orange) :is(h2, strong) { color: var(--amber); }
body.ui-refresh .orders-warning { background: #ffeaec; border: none; color: var(--red); }
:root[data-theme="dark"] body.ui-refresh .orders-warning { background: #35202a; }
body.ui-refresh .orders-warning :is(h2, .warning-copy) { color: var(--red); }
body.ui-refresh .orders-warning .warning-emphasis { background: transparent; font-weight: 800; }
body.ui-refresh .guide-link { background: var(--blue-fill); color: var(--on-fill); border-radius: 12px; }
body.ui-refresh .paste-table input {
  min-height: 42px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 10px;
}
body.ui-refresh .automation-features span { background: var(--card); }
body.ui-refresh :is(.trial-status.similar, .trial-status.not_found) { color: var(--amber); background: var(--amber-soft); }
body.ui-refresh :is(.seller-notice-blue, .seller-notice-yellow) { border-left: none; }

/* ═════════ 페이지 전용 시트에 남은 색을 새 팔레트로 ═════════ */
.ui-refresh .workspace-navigation a.active .nav-badge { color: var(--on-fill); background: var(--blue-fill); }
body.ui-refresh .cs-bulk-actions { border-top: none; }
body.ui-refresh .cs-order-summary { background: var(--bg); border-left: 3px solid var(--line); }
body.ui-refresh [data-priority-bucket="overdue"] .cs-order-summary { background: #ffeaec; border-left-color: var(--red); }
body.ui-refresh [data-priority-bucket="urgent"] .cs-order-summary { background: var(--amber-soft); border-left-color: var(--amber); }
body.ui-refresh [data-priority-bucket="soon"] .cs-order-summary { background: var(--violet-soft); border-left-color: var(--violet); }
body.ui-refresh [data-priority-bucket="normal"] .cs-order-summary { background: var(--blue-soft); border-left-color: var(--blue); }
:root[data-theme="dark"] body.ui-refresh [data-priority-bucket="overdue"] .cs-order-summary { background: #35202a; }
body.ui-refresh .cs-central-table tbody[data-case]:has(input[name="case_id"]:checked) > tr { background: var(--blue-soft); }
body.ui-refresh .cs-central-table [data-case-editor] > td { background: var(--bg); }
body.ui-refresh .cs-central-table small { color: var(--gray); }
body.ui-refresh .cs-deadline--soon { color: var(--violet); }
body.ui-refresh .cs-history-toggle a[aria-current="page"] { color: var(--ink); background: var(--card); border: none; }
body.ui-refresh .cs-history-toggle a { color: var(--gray); }
body.ui-refresh [data-row-status]:focus { outline-color: var(--blue); }
body.ui-refresh .mapping-fields > button:not(.mapping-update) { background: var(--blue-fill); color: var(--on-fill); }
body.ui-refresh .mapping-price-form button.secondary { background: var(--fill); color: var(--gray-strong); }
.ui-refresh .mapping-suggestions button:hover:not(:disabled),
.ui-refresh .mapping-suggestions button:focus { background: var(--blue-soft); color: var(--blue-ink); }
.ui-refresh .mapping-card.is-connected { border-left-color: var(--green); }
.ui-refresh .is-connected .mapping-badge { color: var(--green-ink); background: var(--teal-soft); }
/* 연결은 있지만 공급처에서 상품을 못 찾는 카드: 연결됨의 초록 파스텔과 같은 농도의 빨강 파스텔 */
.ui-refresh .mapping-card.is-broken { border-left: 3px solid var(--red); background: #fff1f2; }
.ui-refresh .is-broken .mapping-badge { color: #c0262d; background: #ffe1e3; }
.ui-refresh .mapping-health.is-broken { color: #c0262d; }
:root[data-theme="dark"] .ui-refresh .mapping-card.is-broken { background: #2e1a1d; }
:root[data-theme="dark"] .ui-refresh .is-broken .mapping-badge { background: #35202a; color: var(--red); }
:root[data-theme="dark"] .ui-refresh .mapping-health.is-broken { color: var(--red); }
.ui-refresh .bank-row.payer { color: var(--amber); background: var(--amber-soft); border-color: var(--amber-soft); }

/* ═════════ 회원가입 — 같은 토큰으로 정돈 ═════════ */
body.ui-refresh:has(.signup-page) { background: var(--bg); }
body.ui-refresh:has(.signup-page) main#main { max-width: 1480px; padding: 0 40px 64px; }
/* 브랜드 줄은 공통 상단바가 맡는다. */
.ui-refresh .signup-header { display: none; }
.ui-refresh .signup-layout { gap: 32px; padding-top: 40px; }
.ui-refresh .signup-intro {
  padding: 36px 30px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--gray);
  box-shadow: var(--shadow);
  top: 88px;
}
.ui-refresh .signup-eyebrow { font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--blue); }
.ui-refresh .signup-intro h1 { color: var(--ink); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.ui-refresh .signup-intro h1 em { color: var(--blue); }
.ui-refresh .signup-intro > p { color: var(--gray); font-size: 14px; }
.ui-refresh .signup-intro nav a { color: var(--ink); }
.ui-refresh .signup-intro nav a > span { color: var(--blue-ink); background: var(--blue-soft); border: none; border-radius: 12px; font-weight: 800; }
.ui-refresh .signup-intro nav small { color: var(--gray); }
.ui-refresh .signup-orbit > span { color: var(--blue-ink); background: var(--blue-soft); border: none; box-shadow: none; }
.ui-refresh .signup-orbit i { border-color: var(--line); }
.ui-refresh .signup-orbit i:nth-child(4) { background: var(--blue-fill); }
.ui-refresh .signup-card {
  padding: 32px 30px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}
.ui-refresh .signup-section-title > span { color: var(--blue-ink); background: var(--blue-soft); border-radius: 10px; font-weight: 800; }
.ui-refresh .signup-section-title h2 { color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.ui-refresh .signup-section-title p { color: var(--gray); font-size: 13px; }
.ui-refresh .signup-form label { color: var(--gray); font-size: 14px; font-weight: 600; }
.ui-refresh .signup-form input:not([type="checkbox"]) {
  margin-top: 9px;
  min-height: 52px;
  padding: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 450;
}
.ui-refresh .signup-form input:focus {
  background: var(--card);
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 3.5px rgba(0, 122, 255, 0.18);
}
.ui-refresh .signup-optional { color: var(--gray-light); font-size: 12px; font-weight: 500; }
.ui-refresh .signup-upload { border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--bg); }
.ui-refresh .signup-upload label span { color: var(--blue); font-size: 12px; }
.ui-refresh .signup-upload :is(p, small) { color: var(--gray); font-size: 12px; }
.ui-refresh .signup-upload input::file-selector-button { color: var(--ink); background: var(--card); border: none; border-radius: 8px; font-weight: 700; }
.ui-refresh :is(.signup-privacy, .signup-privacy p) { color: var(--gray); font-size: 12px; }
.ui-refresh .signup-guide { border: none; border-radius: var(--radius); background: var(--bg); }
.ui-refresh .signup-guide summary { color: var(--ink); font-size: 13px; font-weight: 700; }
.ui-refresh .signup-guide summary > span { color: var(--blue-ink); background: var(--blue-soft); border-radius: 999px; font-size: 11px; }
.ui-refresh .signup-guide :is(ol, li p, .signup-guide-note) { color: var(--gray); font-size: 12px; }
.ui-refresh .signup-guide-note { border-top: 1px solid var(--line); }
.ui-refresh .signup-discord { background: var(--card); border: none; }
.ui-refresh .signup-discord .signup-section-title > span { color: var(--violet); background: var(--violet-soft); }
.ui-refresh .signup-discord > p { color: var(--gray); font-size: 13px; }
.ui-refresh .signup-tags span { color: var(--violet); background: var(--violet-soft); border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 700; }
.ui-refresh .signup-discord > small { color: var(--gray-light); font-size: 12px; }
.ui-refresh .signup-submit {
  min-height: 64px;
  padding: 16px 24px;
  background: var(--blue-fill);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: none;
}
.ui-refresh .signup-submit:hover:not(:disabled) { background: var(--blue-dark); }
:where(:root[data-theme="dark"]) .ui-refresh .signup-submit:hover:not(:disabled) { background:#1273de; }
@media (max-width: 720px) {
  body.ui-refresh:has(.signup-page) main#main { padding: 0 16px 48px; }
  .ui-refresh .signup-layout { padding-top: 24px; }
  .ui-refresh .signup-intro h1 { font-size: 26px; }
  .ui-refresh .signup-card { padding: 24px 20px; border-radius: var(--radius); }
  .ui-refresh .signup-form input:not([type="checkbox"]) { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   내부 화면 — 로그인과 같은 규칙을 셀러·관리자 업무 화면 전체에 적용한다.
   기준: UI Skills baseline-ui
   ① 목적 없는 장식 줄이기 ② 강조색은 핵심 행동 하나에
   ③ 읽는 순서 만들기 ④ 빈 화면에 다음 행동 ⑤ 폰에서 보이고 눌리기
   ═══════════════════════════════════════════════════════════════ */

/* ── ① 장식 — 그라디언트·빛 효과를 쓰지 않는다 ── */
.ui-refresh .home-balance,
:root[data-theme="dark"] .ui-refresh .home-balance {
  background: var(--card);
  box-shadow: var(--shadow);
}
.ui-refresh .home-balance h2 { color: var(--gray); }
.ui-refresh .home-balance > strong { color: var(--ink); font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.ui-refresh .home-balance > strong small { color: var(--gray); font-weight: 600; }
.ui-refresh .home-balance > p { color: var(--gray); font-weight: 500; }
.ui-refresh .home-balance > .button,
.ui-refresh .home-balance > .button:hover { color: var(--on-fill); background: var(--blue-fill); }
.ui-refresh .home-balance :focus-visible { outline-color: var(--blue); }
.ui-refresh .inq-fab { background: var(--blue-fill); box-shadow: var(--shadow-hover); }
.ui-refresh .workspace-sidebar { background-image: none; }
body.ui-refresh .photo-body { background-image: none; }

/* ── ② 강조 — 화면당 파랑 하나. 알림 띠는 조용한 카드 + 색 라벨로 ── */
body.ui-refresh :is(.notice, .home-news, .orders-guidance, .cancel-info,
  .seller-notice-blue, .seller-notice-yellow, .seller-notice-orange, .orders-warning, .automation-banner) {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
body.ui-refresh :is(.notice, .orders-guidance, .cancel-info, .seller-notice-yellow,
  .seller-notice-orange, .orders-warning) :is(p, li, .warning-copy) { color: var(--gray); }
body.ui-refresh :is(.notice, .orders-guidance, .cancel-info, .seller-notice-yellow,
  .seller-notice-orange, .orders-warning) :is(h2, strong, b) { color: var(--ink); }
/* 상태는 색만이 아니라 왼쪽 표시선으로도 구분한다. */
body.ui-refresh :is(.notice, .orders-guidance, .cancel-info, .seller-notice-yellow,
  .seller-notice-orange, .orders-warning, .automation-banner) {
  border-left: 3px solid var(--line);
}
body.ui-refresh .notice { border-left-color: var(--blue); }
body.ui-refresh .notice.success { border-left-color: var(--green); }
body.ui-refresh :is(.notice.warning, .orders-guidance, .cancel-info,
  .seller-notice-yellow, .seller-notice-orange) { border-left-color: var(--orange); }
body.ui-refresh :is(.notice.error, .orders-warning) { border-left-color: var(--red); }
body.ui-refresh :is(.orders-warning h2, .notice.error strong) { color: var(--red); }
/* 쿠팡 키 반영 대기: 적용은 끝났으므로 연결됨과 같은 초록 파스텔 */
body.ui-refresh .notice.waiting { background: #ecf8f1; border-left-color: var(--green); word-break: keep-all; }
:root[data-theme="dark"] body.ui-refresh .notice.waiting { background: #16291f; }
/* 연결 화면의 등록 중 카드: 도는 고리 + 제목·소요 시간 두 줄(2026-10-28 "로딩표시처럼"). 움직임 줄이기면 고리가 돌지 않고 숨만 쉰다. */
body.ui-refresh .notice.coupang-waiting { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
body.ui-refresh .notice.coupang-waiting strong { display: block; font-size: 16px; font-weight: 800; }
body.ui-refresh .notice.coupang-waiting p { margin: 2px 0 0; font-weight: 500; }
.waiting-spinner {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--green) 22%, transparent); border-top-color: var(--green);
  animation: waiting-spin 900ms linear infinite;
}
@keyframes waiting-spin { to { transform: rotate(360deg); } }
@keyframes waiting-breathe { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .waiting-spinner { animation: waiting-breathe 2s ease-in-out infinite; } }
body.ui-refresh .orders-warning .warning-emphasis { color: var(--ink); background: transparent; font-weight: 700; }
/* 발주를 막는 경고 하나만 채움을 유지한다. */
body.ui-refresh .seller-order-alert {
  background: var(--amber-soft);
  border-left: 3px solid var(--amber);
  box-shadow: none;
}
body.ui-refresh .seller-order-alert :is(strong, p) { color: var(--amber); }
/* 카드 제목 옆 아이콘은 장식이므로 회색으로 모은다. 기존 시트의 색 지정과 자리를 맞춘다. */
body.ui-refresh :is(.card h2, .home-news h2, .home-orders h2) > .admin-icon,
body.ui-refresh .home-secondary > .card:first-child h2 > .admin-icon,
body.ui-refresh .home-secondary > .card:last-child h2 > .admin-icon,
body.ui-refresh .attention-label > .admin-icon { color: var(--gray); }

/* ── ③ 읽는 순서 — 제목·본문·보조 설명의 크기와 줄바꿈 ── */
.ui-refresh :is(h1, h2, h3) { text-wrap: balance; word-break: keep-all; }
.ui-refresh :is(p, li, dd, .sub, .small) { text-wrap: pretty; word-break: keep-all; }
.ui-refresh main.main > h1 { margin: 0 0 6px; }
.ui-refresh main.main > :is(h1 + p, .page-heading p, .admin-page-heading p) { margin: 0 0 22px; max-width: 72ch; }
.ui-refresh :is(.card h2 + p, .card > p.sub, .card > .small:first-of-type) { color: var(--gray); max-width: 76ch; }
.ui-refresh td :is(.amt, .amount, .won), .ui-refresh :is(td, th).amt,
.ui-refresh :is(.kpi-value, .stat-value, .home-stat strong, .metric strong) { font-variant-numeric: tabular-nums; }
/* 표의 머리글은 옅게, 그러나 읽히는 회색으로. 고정 머리글은 카드색으로 덮는다. */
.ui-refresh th,
.ui-refresh :is(.data-table th, .mobile-card-table th, .paste-table th) { color: var(--gray); background: transparent; }
.ui-refresh .trial-review-table th,
.ui-refresh .cs-central-table thead tr > :last-child { color: var(--gray); background: var(--card); }
.ui-refresh .account-table td:first-child { color: var(--gray-strong); background: var(--bg); }

/* ── ④ 빈 화면 — 무엇이 없는지 + 다음 행동 하나 ── */
.ui-refresh .empty,
.ui-refresh td.empty { padding: 44px 20px; color: var(--gray); text-align: center; }
.ui-refresh .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 24px;
  text-align: center;
}
.ui-refresh .empty-state strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.ui-refresh .empty-state p { margin: 0; color: var(--gray); font-size: 14px; max-width: 46ch; }
.ui-refresh .empty-state > .button { margin-top: 6px; }
.ui-refresh td.empty .empty-state { padding: 20px 4px; }
.ui-refresh .empty-cancel { color: var(--ink); }
.ui-refresh .empty-cancel .check { color: var(--green); }
.ui-refresh .empty-cancel p { color: var(--gray); }

/* ── ⑤ 폰 — 변하는 화면 높이와 안전영역 ── */
.ui-refresh .admin-shell { min-height: 100dvh; }
.ui-refresh .auth-layout { min-height: 76dvh; }
.ui-refresh .trial-review-scroll { max-height: 65dvh; }
.ui-refresh .inq-fab {
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
}
.ui-refresh .skip-link { background: var(--card); color: var(--blue-ink); border: 1px solid var(--blue); }
@media (max-width: 900px) {
  .ui-refresh main.main,
  .ui-refresh main#main { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .ui-refresh .workspace-menu-toggle { padding-top: env(safe-area-inset-top, 0px); }
}

/* ── 남아 있던 옛 팔레트 면들을 토큰으로 ── */
body.ui-refresh :is(.formula, .calculator-panel .formula) {
  color: var(--blue-ink);
  background: var(--blue-soft);
  border: none;
  border-radius: 12px;
  font-size: 13px;
}
body.ui-refresh .toc { background: var(--bg); border: none; border-radius: var(--radius); }
body.ui-refresh .toc a { color: var(--ink); }
body.ui-refresh .callout { background: var(--bg); border-left: 3px solid var(--line); border-radius: 12px; color: var(--ink); }
body.ui-refresh .callout.danger { background: var(--bg); border-left-color: var(--red); }
body.ui-refresh .do-dont > div { border: none; border-radius: 12px; }
body.ui-refresh .do { background: var(--bg); border-left: 3px solid var(--green); }
body.ui-refresh .dont { background: var(--bg); border-left: 3px solid var(--red); }
body.ui-refresh :is(.do, .dont) :is(h3, li) { color: var(--ink); }
body.ui-refresh .cheapest-card { background: var(--card); border-left: none; }
body.ui-refresh .deduction-badge { color: var(--green-ink); background: var(--teal-soft); border-radius: 999px; }
body.ui-refresh .cs-history-toggle { background: var(--fill); }
body.ui-refresh :is(.seller-notice-yellow, .seller-notice-orange, .orders-guidance, .cancel-info) strong { color: var(--ink); }
body.ui-refresh .empty-cancel { background: var(--card); }
body.ui-refresh .guide-link { color: var(--on-fill); }
body.ui-refresh .paste-table input { color: var(--ink); }

/* ═════════ 접근성 ═════════ */
@media (prefers-reduced-motion: reduce) {
  .ui-refresh :is(button, .button, .home-stat, .attention-box, .inq-fab, .sidebar-collapse,
    .workspace-navigation a, .tabs a, .inline-tabs a, .calc-tabs button):active { transform: none; }
  .ui-refresh .brand-symbol { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .ui-refresh :is(.workspace-topbar, .workspace-sidebar, .topnav, .workspace-menu, .workspace-menu-toggle) {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--card);
  }
}

/* ═════════ 반응형 ═════════ */
@media (max-width: 900px) {
  .ui-refresh .workspace-menu { background: var(--material); border-bottom: 1px solid var(--hairline); }
  .ui-refresh .workspace-sidebar { width: 100%; border-right: none; }
  .ui-refresh main.main, .ui-refresh main#main { padding: 22px 20px 64px; }
  body.ui-refresh.guest main.main,
  body.seller.ui-refresh:has(.seller-login) .main { padding: 0 20px 48px; }
  .ui-refresh .topnav { padding: 14px 20px; }
  .ui-refresh .auth-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 32px 0; min-height: auto; }
  .ui-refresh .auth-intro h2 { font-size: 32px; }
  .ui-refresh .auth-intro h2 br { display: none; }
  .ui-refresh .auth-intro p { font-size: 16px; margin: 16px 0; }
  .ui-refresh .auth-intro p br { display: none; }
  .ui-refresh .auth-eyebrow { font-size: 15px; }
  .ui-refresh .auth-action { min-height: 46px; font-size: 15px; }
}
/* Keep mobile shell and input rules after desktop overlay rules. */
@media (max-width: 900px) {
  body.ui-refresh .sidebar-collapse { display: none; }
  body.ui-refresh .workspace-menu-toggle { padding: 12px 18px; }
  body.ui-refresh .workspace-topbar { top: 58px; min-height: 52px; padding: 8px 16px; }
}
@media (max-width: 760px) {
  body.ui-refresh main#main :is(input, select, textarea):not([type="checkbox"], [type="radio"], [type="hidden"], [type="range"]) {
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .ui-refresh h1 { font-size: 23px; }
  .ui-refresh h2 { font-size: 16px; }
  .ui-refresh main.main, .ui-refresh main#main { padding: 20px 16px 64px; }
  body.ui-refresh.guest main.main,
  body.seller.ui-refresh:has(.seller-login) .main { padding: 0 16px 40px; }
  .ui-refresh .topnav { padding: 12px 16px; }
  /* 좁은 화면에서도 테마 전환은 남긴다. */
  .ui-refresh .workspace-tools { display: flex; }
  .ui-refresh .topnav .brand { font-size: 21px; }
  .ui-refresh .nav-right a { padding: 7px 10px; font-size: 13px; }
  .ui-refresh .home-balance > strong { font-size: 34px; }
  .ui-refresh .home-stat { padding: 16px 8px; }
  .ui-refresh .home-stat strong { font-size: 28px; }
  .ui-refresh :is(.seller-login, .admin-login), .ui-refresh .auth-card { padding: 28px 22px; border-radius: 22px; }
  .ui-refresh :is(.seller-login, .admin-login) h1, .ui-refresh .auth-card h1 { font-size: 24px; }
  .ui-refresh :is(.seller-login, .admin-login, .auth-card) :is(.login-subtitle, label) { font-size: 16px; }
  .ui-refresh :is(.seller-login, .admin-login, .auth-card) :is(input, form > button) { min-height: 56px; font-size: 16px; }
  .ui-refresh :is(.seller-login, .auth-card) :is(.btn-outline, .btn-kakao) { min-height: 52px; font-size: 15px; }
}
/* 사이드바 배지: 아직 처리 안 한 취소·매핑이 있으면 빨갛게 반짝인다(2026-09-28). */
body.ui-refresh .workspace-navigation .nav-badge.is-alert {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 14%, transparent);
  animation: nav-badge-alert 1.4s ease-in-out infinite;
}
body.ui-refresh .workspace-navigation a.active .nav-badge.is-alert { color: #fff; background: var(--red); }
:where(:root[data-theme="dark"]) body.ui-refresh .workspace-navigation a.active .nav-badge.is-alert { background:#c42b3f; }
@keyframes nav-badge-alert {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent); opacity: 1; }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 0%, transparent); opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  body.ui-refresh .workspace-navigation .nav-badge.is-alert { animation: none; }
}
@media print {
  body.ui-refresh { background: #fff; }
  .ui-refresh :is(.card, .home-stat, .flow-step, .order-flow, .dashboard-kpi) { background: #fff; box-shadow: none; border: 1px solid var(--line); }
  .ui-refresh .home-balance :is(h2, strong, small, p) { color: var(--ink); }
}

/* ---- page.css ---- */
/* ══════════════════════════════════════════════════════════════
   메뉴에서 들어간 화면의 배치.
   색과 왼쪽 메뉴는 그대로 두고, 본문 안쪽만 새로 짠다.
   1) 화면 머리: 제목·설명·주요 동작을 묶어 읽는 순서를 유지한다.
   2) 작업 구역: 각 화면의 배치를 존중하고 폼·표가 카드 너비를 쓰게 한다.
   3) 표: 머리줄을 고정하고 표 안에서 굴린다. 도구 줄은 표 위에 띠로 붙인다.
   base.html에서 apple.css 다음에 읽는다.
   ══════════════════════════════════════════════════════════════ */

body.ui-refresh {
  --page-stack:22px;
}

/* ── 1) 화면 머리 ── */
body.ui-refresh main#main > h1:first-of-type { margin:0 0 20px; padding:0; border:0; }
body.ui-refresh main#main > h1:has(+ :is(.seller-subtitle, .page-lead, p.sub)) { margin-bottom:8px; }
body.ui-refresh :is(.page-heading, .admin-page-heading) {
  margin:0 0 24px;
  padding:0 0 16px;
  border-bottom:1px solid var(--line);
}
body.ui-refresh :is(.page-heading, .admin-page-heading) { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:16px; }
body.ui-refresh :is(.page-heading, .admin-page-heading) > div { min-width:0; }
body.ui-refresh :is(.page-heading, .admin-page-heading) h1 { margin:0 0 6px; padding:0; border:0; }
body.ui-refresh :is(.page-heading, .admin-page-heading) p { margin:0; }
body.ui-refresh :is(.page-lead, .seller-subtitle) {
  margin:0 0 24px;
  max-width:76ch;
  font-size:14px;
  line-height:1.7;
}

/* ── 2) 작업 구역 ── */
/* 사이 간격은 본문 바로 아래 구역에만 준다. 격자 안의 판에 margin을 주면 칸 높이가 어긋난다. */
body.ui-refresh main#main > .card { margin-bottom:var(--page-stack); }
body.ui-refresh main#main .card { box-shadow:none; }

/* ── 3) 표 ── */
body.ui-refresh :is(.table-scroll, .table-wrap) { max-height:min(72vh, 780px); }
/* 머리줄은 표 안에서 굴려도 남는다. 뒤 줄이 비쳐 보이지 않게 색을 채운다. */
body.ui-refresh :is(.table-scroll, .table-wrap) > table > thead th {
  position:sticky; top:0; z-index:2;
  background-color:var(--surface-soft);
  box-shadow:inset 0 -1px 0 var(--line);
}
body.ui-refresh .card > .toolbar:first-child,
body.ui-refresh .card > .toolbar.filter-bar { margin-top:0; }
body.ui-refresh .card .toolbar + :is(.table-scroll, .table-wrap) { margin-top:0; }
/* 화면 바로 아래에 혼자 놓인 검색·기간 줄만 띠로 만든다. 판 안에서는 판이 이미 테두리다. */
body.ui-refresh main#main > .toolbar:has(:is(input, select)) {
  gap:10px 12px; padding:12px 14px;
  border:1px solid var(--line); border-radius:12px; background:var(--surface-soft);
}
body.ui-refresh .toolbar:has(:is(input, select)) label { display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--muted); }

/* ── 좁은 화면 ── */
@media(max-width:760px) {
  body.ui-refresh { --page-stack:16px; }
  body.ui-refresh :is(.table-scroll, .table-wrap) { max-height:none; }
  body.ui-refresh :is(.table-scroll, .table-wrap) > table > thead th { position:static; }
  /* 빈 표의 안내가 가로 스크롤 영역 가운데로 밀리지 않게 한다. */
  body.ui-refresh :is(.table-scroll, .table-wrap) td.empty { text-align:left; }
}
@media print {
  body.ui-refresh :is(.table-scroll, .table-wrap) { max-height:none; }
  body.ui-refresh main#main .card { display:block!important; }
}

/* ---- kakao-support.css ---- */
body.ui-refresh a.kakao-support {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px 0 18px;
  border: 0;
  border-radius: 999px;
  background: #fee500;
  color: #391b1b;
  box-shadow: 0 4px 14px #0003;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
}
body.ui-refresh a.kakao-support svg { flex: none; }
body.ui-refresh a.kakao-support:hover { background: #fada00; color: #391b1b; text-decoration: none; }
body.ui-refresh a.kakao-support:active { transform: scale(0.97); }
body.ui-refresh a.kakao-support:focus-visible { outline: 3px solid #1877e8; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { body.ui-refresh a.kakao-support { transition: none; } }
@media (max-width: 760px) {
  body.ui-refresh a.kakao-support { right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); height: 46px; padding: 0 18px 0 14px; font-size: 15px; gap: 6px; }
  body.ui-refresh a.kakao-support svg { width: 22px; height: 22px; }
  body.ui-refresh:has(.mobile-tabbar) a.kakao-support { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media print { body.ui-refresh a.kakao-support { display: none; } }

/* ---- readability.css ---- */
/* ══════════════════════════════════════════════════════════════
   읽기 쉬운 화면 (2026-10-07 사용자 지시)
   셀러 중에는 나이 든 분이 많다. 카드 틀에 비해 글자가 작고, 다크 화면에서
   밝은 화면용 색이 남아 거의 안 보이는 글자가 있었다.
   1) 셀러 본문 글자를 한 단계 키운다. 관리자 표의 밀도는 그대로 둔다.
   2) 다크 화면에서 배경과 구분되지 않던 글자의 대비를 맞춘다.
   3) 꼭 봐야 하는 안내(예치금·발주 제외·입금자명)는 크게, 색으로 구분한다.
   4) 숫자 칸의 브라우저 기본 위아래 화살표를 없앤다.
   5) 저장 완료는 화면 위에 잠깐 띄운다.
   overlay 번들의 마지막 시트라 앞 시트의 같은 규칙을 덮는다.
   ══════════════════════════════════════════════════════════════ */

/* ── 1) 글자 크기 ── */
body.ui-refresh.seller main :is(.small, .muted) { font-size:14px; line-height:1.65; }
body.ui-refresh.seller main .heading-note { font-size:14px; }
body.ui-refresh.seller main :is(th, dt) { font-size:13.5px; }
body.ui-refresh.seller main td small { font-size:12.5px; }
body.ui-refresh.seller main .badge { font-size:13px; }
body.ui-refresh.seller main .refresh-status { font-size:13.5px; }
body.ui-refresh.seller main .balance-caption { font-size:14px; }
body.ui-refresh.seller .site-footer, body.ui-refresh.seller .site-footer span { font-size:13px; color:var(--gray); }
body.ui-refresh.seller main :is(dd, td, label, .bank-row button) { font-size:14px; }
body.ui-refresh.seller main .signup-upload :is(p, small), body.ui-refresh.seller main .signup-privacy :is(strong, small, p) { font-size:13.5px; }
/* 한 문장 한 줄: 문장마다 줄을 나눠 문장 중간에서 꺾이지 않게 한다. */
body.ui-refresh.seller .banner-lines > span { display:block; }

/* ── 2) 대비 ── */
/* 밝은 화면의 보조 회색이 연한 배경 위에서 4.2:1이었다. 셀러 화면만 한 단계 진하게. */
:root:not([data-theme="dark"]) body.ui-refresh.seller { --gray:#566170; }
:root:not([data-theme="dark"]) body.ui-refresh.seller .is-empty-balance strong em { color:#c4000f; }
/* 표 본문 글자색이 밝은 화면용(#374356)으로 고정돼 다크 카드 위에서 1.7:1이었다. */
:where(:root[data-theme="dark"]) .ui-refresh td { color:var(--ink); }
/* 상품등록 자동화 소개: 밝은 그라데이션 위에 다크 화면의 흰 글자가 얹혀 보이지 않았다. 배경을 어둡게 바꾼다. */
:root[data-theme="dark"] body.ui-refresh .growth-hero { background:linear-gradient(115deg,#11261f,#122030); border-color:#24413a; color:var(--ink); }
:root[data-theme="dark"] body.ui-refresh .growth-hero h2 { color:var(--ink); }
:root[data-theme="dark"] body.ui-refresh .growth-hero p { color:#b9d3cb; }
:root[data-theme="dark"] body.ui-refresh .growth-hero .pageo-beta { background:rgba(255,255,255,.06); border-color:#2d4c44; color:#d3e8e1; }
:root[data-theme="dark"] body.ui-refresh .pageo-beta b { background:var(--green); color:#08140e; }
body.ui-refresh .pageo-beta b { font-size:12px; }
body.ui-refresh .pageo-steps span { color:var(--green-ink); font-size:15px; }
/* 흰 종이 그림 속 글자는 다크에서도 어두운 글자로 둔다. 소개 제목은 틀에 맞게 키운다. */
body.ui-refresh .pageo-sheet b { color:#193e3b; }
body.ui-refresh .growth-hero.pageo-hero h2 { font-size:30px; line-height:1.35; }
@media(max-width:680px) { body.ui-refresh .growth-hero.pageo-hero h2 { font-size:24px; } }
/* 상품 연결표의 공급가 칸(읽기 전용)이 다크 화면에서 흰 상자로 튀었다. */
:root[data-theme="dark"] body.ui-refresh .mapping-fields [data-unit-cost] { background:var(--fill); color:var(--gray-strong); }
/* 화면 아래 바닥글은 밝은 화면에서 2.8:1이었다. */
body.ui-refresh .site-footer { color:var(--gray); }

/* ── 2-1) 다크 화면 전수 점검 (2026-10-13 사용자 지시: 나이트모드에서 안 보이는 글자 전부) ──
   밝은 화면용으로 고정된 색이 다크에 남아 글자가 묻히던 곳. 공통 시트의 것은 원래 규칙 바로 뒤에
   :where(:root[data-theme="dark"]) 로 두었고(같은 우선순위에서 값만 바뀐다), 주소에 버전을 박아 부르는
   화면별 시트의 것은 여기에 모았다. 이 시트는 내용이 바뀌면 주소가 따라 바뀌어 템플릿을 고칠 필요가 없다. */
/* 관리자 주문 처리 탭의 '확인 필요' */
:root[data-theme="dark"] .admin .order-state-tabs a.stage-attention:not([aria-current]) { color:var(--red); }
/* 취소 안내의 '필독' */
:root[data-theme="dark"] .cancel-guide .must-read { background:#d93a4a; }
/* 고객문의 통합 답변 */
:root[data-theme="dark"] .ui-refresh :is([data-row-status], [data-bulk-status])[data-error=true] { color:var(--red); }
:root[data-theme="dark"] .ui-refresh :is(.cs-connection-warning, .cs-before-placement strong) { background:var(--amber-soft); color:var(--amber); }
:root[data-theme="dark"] .ui-refresh .cs-day-group > summary [data-day-count] { color:var(--gray); }
:root[data-theme="dark"] .ui-refresh .cs-day-group[open] > summary { border-bottom-color:var(--line); }
:root[data-theme="dark"] .ui-refresh .cs-deadline:not(.cs-deadline--soon) { color:var(--gray-strong); }
:root[data-theme="dark"] .ui-refresh .cs-deadline.cs-deadline--overdue { color:var(--red); }
:root[data-theme="dark"] .ui-refresh .cs-deadline.cs-deadline--urgent { color:var(--orange); }
/* 공급처 CS 전달·접수 관리의 상태 표시 */
:root[data-theme="dark"] :is(.handoff-route.on, .handoff-state.state-SENT, .intake-state.on) { background:#16301f; color:#6fdc9a; border-color:transparent; }
:root[data-theme="dark"] .handoff-kind.kind-PHOTO { background:#143540; color:#7fd6ea; border-color:transparent; }
:root[data-theme="dark"] :is(.handoff-kind.kind-CANCEL, .handoff-state.state-CLAIMED, .handoff-state.state-UNKNOWN) { background:#3a1f25; color:#ff8a8f; border-color:transparent; }
:root[data-theme="dark"] .handoff-kind.kind-RETURN { background:var(--amber-soft); color:var(--amber); border-color:transparent; }
:root[data-theme="dark"] .intake-state.off { background:#2a3038; color:#c9d1dc; }
:root[data-theme="dark"] .handoff-warn { color:var(--amber); }
:root[data-theme="dark"] .handoff-photos img { background:var(--fill); }
:root[data-theme="dark"] .intake-preview pre { background:var(--surface-soft); }
/* Discord 연결 안내 */
:root[data-theme="dark"] body.ui-refresh .notice .discord-guide-caution strong { color:var(--red); }
:root[data-theme="dark"] .discord-guide-num { color:var(--blue-ink); }
/* 상품등록 자동화 */
:root[data-theme="dark"] :is(.lx-step.is-current .lx-step-no, .lx-chip-check) { background:var(--blue-fill); }
:root[data-theme="dark"] :is(.lx-progress li.is-failed, .lx-step-error, .listing-status-failed) { color:var(--red); }
:root[data-theme="dark"] .lx-progress li.is-skip { opacity:.8; }
:root[data-theme="dark"] :is(.lx-filter-count, .listing-filter .listing-check:has(input:checked)) { color:var(--blue-ink); }
:root[data-theme="dark"] .listing-status:not(.listing-status-done, .listing-status-failed, .listing-status-submitting, .listing-status-created, .listing-status-approved, .listing-status-coupon_requested, .listing-status-coupon_items_requested) { color:var(--blue-ink); }
/* 상품 연결 상태 · AI 고객문의 자동 답변 표시 */
:root[data-theme="dark"] .mapping-health.is-warning { color:var(--amber); }
:root[data-theme="dark"] .cs-ai-auto-state.is-on { color:var(--blue-ink); }

/* ── 3) 꼭 봐야 하는 안내 ── */
/* 예치금이 없으면 발주가 들어가지 않는다: 제목을 크게, 핵심 구절은 빨강. */
body.ui-refresh.seller .seller-order-alert.is-empty-balance { padding:20px 24px; border-left-width:5px; }
body.ui-refresh.seller .is-empty-balance strong { font-size:19px; line-height:1.45; color:var(--ink); }
body.ui-refresh.seller .is-empty-balance strong em { font-style:normal; color:var(--red); text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:4px; }
body.ui-refresh.seller .is-empty-balance p { margin:6px 0 0; font-size:15px; line-height:1.6; opacity:1; }
body.ui-refresh.seller .is-empty-balance p b { color:var(--ink); font-weight:800; }
body.ui-refresh.seller .seller-order-alert .button { padding:12px 20px; font-size:15px; font-weight:700; white-space:nowrap; }

/* 상품 연결 안내: 발주·송장등록·고객문의 관리 글자를 키우고, '발주하지 않습니다'를 빨간 띠로 구분한다. */
body.ui-refresh.seller .automation-banner { padding:20px 22px; }
body.ui-refresh.seller .automation-banner .banner-top strong { font-size:17px; }
body.ui-refresh.seller .automation-label { font-size:13px; padding:4px 11px; }
body.ui-refresh.seller .automation-features { gap:10px; margin-top:16px; }
body.ui-refresh.seller .automation-features span { padding:10px 18px; border:1px solid var(--line); border-radius:10px; background:var(--card); color:var(--ink); font-size:16px; font-weight:700; }
body.ui-refresh.seller .automation-banner > p { margin:16px 0 0; color:var(--gray-strong); font-size:15px; line-height:1.7; }
/* 2026-10-07: 띠 상자가 마침표만 떨어뜨려 어색했다. 상자 없이 빨간 굵은 글씨로 문장에 붙인다. */
body.ui-refresh.seller .automation-banner .excluded { padding:0; border-radius:0; background:none; color:var(--red); font-weight:800; }
:root:not([data-theme="dark"]) body.ui-refresh.seller .automation-banner .excluded { color:#c4000f; }
body.ui-refresh.seller .mapping-intro { font-size:15px; }

/* 최저가 한번에 찾기: 추천 기능으로 눈에 띄게. */
body.ui-refresh.seller .cheapest-card { border:1.5px solid var(--green-ink); border-left-width:1.5px; background:linear-gradient(135deg, var(--teal-soft) 0%, var(--card) 65%); }
body.ui-refresh.seller .cheapest-badge { display:inline-block; margin-bottom:10px; padding:4px 11px; border-radius:999px; background:var(--green-ink); color:var(--card); font-size:13px; font-weight:800; letter-spacing:.02em; }
body.ui-refresh.seller .cheapest-card h2 { margin-top:0; font-size:22px; }
body.ui-refresh.seller .cheapest-card h2 .heading-note { margin-top:8px; color:var(--gray-strong); font-size:15px; font-weight:600; }
body.ui-refresh.seller .cheapest-card .mapping-price-form { max-width:640px; margin-top:16px; gap:10px; }
body.ui-refresh.seller .cheapest-card .mapping-price-form input { min-height:50px; font-size:16px; }
body.ui-refresh.seller .cheapest-card .mapping-price-form button { min-height:50px; padding:0 24px; background:var(--green-ink); color:var(--card); font-size:16px; font-weight:800; }
body.ui-refresh.seller .cheapest-card .mapping-price-form button:hover { filter:brightness(1.08); }
body.ui-refresh.seller .cheapest-card .price-basis { margin:14px 0 0; color:var(--gray-strong); font-size:14px; }
body.ui-refresh.seller .cheapest-card .price-basis b { color:var(--ink); }

/* 충전 화면 입금자명: 괄호 안 이름을 색 띠로 강조한다. */
body.ui-refresh.seller .bank-row.payer-rule { align-items:center; gap:16px; padding:16px 18px; border:1.5px solid var(--amber); }
body.ui-refresh.seller .payer-copy { min-width:0; }
body.ui-refresh.seller .payer-copy p { margin:0; }
body.ui-refresh.seller .payer-line { color:var(--ink); font-size:16px; font-weight:700; line-height:1.6; }
/* 2026-10-07: 괄호를 빼고 이름만 형광펜처럼 칠한다. 앞뒤 띄어쓰기는 문장에서 그대로 둔다. */
body.ui-refresh.seller .payer-name { padding:0 3px; border-radius:4px; background:linear-gradient(transparent 12%, rgba(255, 176, 32, .38) 12%, rgba(255, 176, 32, .38) 92%, transparent 92%); color:var(--ink); font-size:18px; font-weight:800; overflow-wrap:anywhere; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
body.ui-refresh.seller .payer-edit { margin:10px 0 0 !important; font-size:14px; color:var(--gray-strong); }
body.ui-refresh.seller .payer-edit a { margin-left:6px; color:var(--blue); font-weight:700; text-decoration:none; }
:where(:root[data-theme="dark"]) body.ui-refresh.seller .payer-edit a { color:var(--blue-ink); }
body.ui-refresh.seller .payer-edit a:hover { text-decoration:underline; text-underline-offset:3px; }
body.ui-refresh.seller .payer-edit a::after { content:" ›"; }
body.ui-refresh.seller .payer-warn { margin-top:4px !important; color:var(--amber); font-size:14px; font-weight:600; line-height:1.6; }
body.ui-refresh.seller .bank-row.payer-rule button { flex:none; }

/* ── 4) 숫자 칸 ── */
/* 위아래 작은 화살표는 어색하고 누르기 어렵다. 금액 칸은 숫자만 받고, 수량 칸은 −/+ 버튼을 둔다. */
body.ui-refresh input[type=number] { -moz-appearance:textfield; appearance:textfield; }
body.ui-refresh input[type=number]::-webkit-inner-spin-button,
body.ui-refresh input[type=number]::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
body.ui-refresh .num-stepper { display:flex; align-items:stretch; height:42px; min-width:0; border:1px solid var(--line); border-radius:10px; overflow:hidden; background:var(--bg); transition:border-color .15s ease, box-shadow .15s ease; }
body.ui-refresh .num-stepper:focus-within { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }
body.ui-refresh .num-stepper input[type=number] { flex:1 1 auto; width:100%; min-width:0; height:auto; min-height:0; align-self:stretch; margin:0; padding:0 2px; border:0; border-radius:0; background:transparent; box-shadow:none; outline:none; color:var(--ink); font-size:15px; font-weight:700; font-variant-numeric:tabular-nums; text-align:center; }
body.ui-refresh .num-stepper button { flex:0 0 32px; min-width:0; min-height:0; height:100%; margin:0; padding:0; border:0; border-radius:0; background:var(--fill); color:var(--ink); font-size:18px; font-weight:600; line-height:1; box-shadow:none; transition:background-color .12s ease, transform .1s ease; }
body.ui-refresh .num-stepper button:hover { background:var(--fill-strong); }
body.ui-refresh .num-stepper button:active { transform:scale(.94); }
body.ui-refresh .num-stepper button:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }
body.ui-refresh .num-stepper:has(input:disabled) { opacity:.5; }
body.ui-refresh .num-stepper:has(input:disabled) button { cursor:not-allowed; pointer-events:none; }
/* 상품 연결표 줄의 수량 칸을 −/+ 가 들어갈 만큼 넓힌다. 다른 칸 배치는 그대로. */
body.ui-refresh .mapping-fields { grid-template-columns:minmax(125px,.8fr) minmax(200px,2fr) 110px 12px 112px 70px; }
@media(max-width:1200px) { body.ui-refresh .mapping-fields { grid-template-columns:140px minmax(160px,1fr) 90px 12px 104px 65px; } }
@media(max-width:1050px) { body.ui-refresh .mapping-fields { grid-template-columns:minmax(0,1fr) 12px 104px 75px; } }
/* 휴대폰: 공급가 칸이 '공'만 보일 만큼 좁아져 [연결] 버튼을 아래 줄로 내린다. */
@media(max-width:600px) { body.ui-refresh .mapping-fields { grid-template-columns:minmax(0,1fr) 12px 104px; } body.ui-refresh .mapping-fields > button { grid-column:1 / -1; } }

/* ── 5) 저장 완료 팝업 ── */
/* 저장 뒤 #칸으로 돌아오면 위쪽 안내가 화면 밖이다. 약 1.5초 보이고 사라진다. 누르는 것을 막지 않는다. */
body.ui-refresh .flash-toasts { position:fixed; top:22px; left:50%; z-index:1000; display:grid; gap:8px; justify-items:center; width:max-content; max-width:calc(100vw - 32px); transform:translateX(-50%); pointer-events:none; }
body.ui-refresh .flash-toast { display:flex; align-items:center; gap:10px; padding:14px 22px; border-radius:14px; background:var(--green-ink); color:var(--card); font-size:16px; font-weight:700; line-height:1.4; box-shadow:0 12px 32px rgba(0, 0, 0, .28); animation:flash-toast 1.9s cubic-bezier(.22, 1, .36, 1) forwards; }
body.ui-refresh .flash-toast::before { content:"✓"; font-size:18px; font-weight:900; }
@keyframes flash-toast {
  0% { opacity:0; transform:translateY(-10px) scale(.97); }
  11% { opacity:1; transform:none; }
  88% { opacity:1; transform:none; }
  100% { opacity:0; transform:translateY(-6px); visibility:hidden; }
}
@media(prefers-reduced-motion:reduce) {
  @keyframes flash-toast { 0%, 88% { opacity:1; } 100% { opacity:0; visibility:hidden; } }
}

/* ── 6) 2026-10-07 셀러 화면 다듬기 ── */
/* 체험단 입력표 위 안내: 한 줄 설명과 세 단계 카드. */
body.ui-refresh.seller .trial-entry-lead { margin:-4px 0 16px; color:var(--gray-strong); font-size:15px; line-height:1.65; }
body.ui-refresh.seller .trial-entry-lead a { color:var(--blue); font-weight:700; text-decoration:none; }
body.ui-refresh.seller .trial-entry-lead a:hover { text-decoration:underline; text-underline-offset:3px; }
body.ui-refresh.seller .trial-entry-steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; margin:0 0 22px; padding:0; list-style:none; counter-reset:trial-step; }
body.ui-refresh.seller .trial-entry-steps li { display:grid; grid-template-columns:28px minmax(0, 1fr); column-gap:12px; row-gap:4px; align-content:start; padding:16px; border-radius:14px; background:var(--fill); counter-increment:trial-step; }
body.ui-refresh.seller .trial-entry-steps li::before { content:counter(trial-step); grid-row:1 / span 2; display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--blue-soft); color:var(--blue); font-size:14px; font-weight:800; }
:where(:root[data-theme="dark"]) body.ui-refresh.seller .trial-entry-steps li::before { color:var(--blue-ink); }
body.ui-refresh.seller .trial-entry-steps b { color:var(--ink); font-size:15px; line-height:28px; }
body.ui-refresh.seller .trial-entry-steps span { color:var(--gray-strong); font-size:14px; line-height:1.6; }

/* 내 공급처 목록: 밑줄 링크 대신 누를 수 있는 타일. */
body.ui-refresh.seller .supplier-name-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:10px; margin:14px 0 0; padding:0; }
body.ui-refresh.seller .supplier-name-list li { padding:0; border:0; }
body.ui-refresh.seller .supplier-name-list li > a,
body.ui-refresh.seller .supplier-name-list li:not(:has(a)) { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:52px; padding:0 16px; border-radius:14px; background:var(--fill); color:var(--ink); font-size:15px; font-weight:700; text-decoration:none; }
body.ui-refresh.seller .supplier-name-list li > a { transition:background-color .15s ease, transform .1s ease; }
body.ui-refresh.seller .supplier-name-list li > a::after { content:"↗"; flex:none; color:var(--gray); font-size:14px; font-weight:600; }
body.ui-refresh.seller .supplier-name-list li > a:hover { background:var(--fill-strong); color:var(--ink); }
body.ui-refresh.seller .supplier-name-list li > a:active { transform:scale(.97); }
body.ui-refresh.seller .supplier-name-list li > a:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }

/* 정책 안내 단계 번호: 흰 원이 눈부셨다. 옅은 파랑 원에 파란 숫자. */
body.ui-refresh.seller .help-page .flow li { padding:14px 0 14px 48px; border-bottom:1px solid var(--line); font-size:15px; }
body.ui-refresh.seller .help-page .flow li:last-child { border-bottom:0; }
body.ui-refresh.seller .help-page .flow li::before { top:13px; width:30px; height:30px; background:var(--blue-soft); color:var(--blue); font-size:14px; font-weight:800; }
:where(:root[data-theme="dark"]) body.ui-refresh.seller .help-page .flow li::before { color:var(--blue-ink); }

/* 정책 안내 목차: 항목마다 누르는 버튼 모양, 두 줄 배치. */
body.ui-refresh.seller .help-page .toc { margin:0 0 28px; padding:22px; border:1px solid var(--line); border-radius:18px; background:var(--card); }
body.ui-refresh.seller .help-page .toc h2 { margin:0 0 14px; font-size:18px; }
body.ui-refresh.seller .help-page .toc ol { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin:0; padding:0; list-style:none; counter-reset:toc; line-height:1.5; }
body.ui-refresh.seller .help-page .toc li { counter-increment:toc; }
body.ui-refresh.seller .help-page .toc a { display:flex; align-items:center; gap:12px; min-height:52px; padding:10px 16px; border-radius:12px; background:var(--fill); color:var(--ink); font-size:16px; font-weight:700; text-decoration:none; transition:background-color .15s ease, transform .1s ease; }
body.ui-refresh.seller .help-page .toc a::before { content:counter(toc); flex:none; display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:8px; background:var(--blue-soft); color:var(--blue); font-size:14px; font-weight:800; font-variant-numeric:tabular-nums; }
:where(:root[data-theme="dark"]) body.ui-refresh.seller .help-page .toc a::before { color:var(--blue-ink); }
body.ui-refresh.seller .help-page .toc a::after { content:"›"; margin-left:auto; color:var(--gray); font-size:20px; font-weight:600; }
body.ui-refresh.seller .help-page .toc a:hover { background:var(--fill-strong); text-decoration:none; }
body.ui-refresh.seller .help-page .toc a:active { transform:scale(.98); }
body.ui-refresh.seller .help-page .toc a:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { body.ui-refresh.seller :is(.help-page .toc a, .supplier-name-list a) { transition:none; } }

/* ── 휴대폰 ── */
@media(max-width:760px) {
  body.ui-refresh.seller .automation-features span { padding:9px 14px; font-size:15px; }
  body.ui-refresh.seller .cheapest-card .mapping-price-form { flex-wrap:wrap; }
  body.ui-refresh.seller .cheapest-card .mapping-price-form :is(input, button) { flex:1 1 100%; max-width:none; }
  body.ui-refresh.seller .bank-row.payer-rule { flex-direction:column; align-items:stretch; }
  body.ui-refresh.seller .is-empty-balance strong { font-size:17px; }
  body.ui-refresh.seller .trial-entry-steps { grid-template-columns:1fr; }
  body.ui-refresh.seller .help-page .toc ol { grid-template-columns:1fr; }
  body.ui-refresh.seller .supplier-name-list { grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

/* ---- seller-ui.css ---- */
/* ══════════════════════════════════════════════════════════════
   셀러 센터 공통 컴포넌트·셸 (2026-10-18 리디자인 — 야간 관제실)
   overlay 번들에서 readability.css 뒤, skin.css 앞에 읽힌다.
   - 범위: '.ui-refresh:where(.seller:not(.guest, .skin-classic))' — 관리자·로그인 전 화면에는 닿지 않는다.
     :where 로 묶어 apple.css 원래 규칙과 명시도가 같다. 그래서 뒤에 있는 이 파일이 이기고,
     더 구체적인 화면별 규칙·readability.css 글자 크기·skin.css 는 그대로 이긴다.
   - 값은 tokens.css 의 토큰만 쓴다. 글자 크기는 2026-10-07 셀러 확대(readability.css)보다
     작게 줄이지 않는다.
   ══════════════════════════════════════════════════════════════ */

/* 원래 화면을 쓰는 스킨(초이, body.skin-classic)은 이 파일 규칙을 하나도 받지 않는다(2026-10-19 사용자 "셀리오만 배포").
   파밍은 2026-10-27부터 받는다(로고·강조색만 다르다, skin.css).
   원래 화면으로 되돌린 화면(body.is-classic: 주문·취소·체험단·압도, 2026-10-19 사용자 "기존거로 깔끔하게")은
   아래 부품 규칙(0~7·11·13)을 받지 않고 셸(8~10·12)만 받는다. */
/* ── 0) 바탕 글자 ── */
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) { font-weight: 400; letter-spacing: 0; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) ::selection { background: var(--accent-soft); color: var(--ink); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) h1 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) h2 { font-weight: 700; letter-spacing: -0.015em; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(strong, b) { font-weight: 700; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :where(td, .num, .amount, .won, time) { font-variant-numeric: tabular-nums; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :where(main, .workspace-topbar, dialog) :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :where(.table-scroll, .table-wrap) {
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

/* ── 1) 카드 — 살아있는 표면: 헤어라인 + 윗면 빛 + 부드러운 그림자로 한 층 떠 있다 ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) main .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) main details.card { padding: 16px 20px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) main details.card[open] { padding: 20px 24px 24px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) main .card .card { box-shadow: none; }

/* ── 2) 버튼 — 채움(주 동작)·면(일반)·글자·위험. 윗면 빛과 색 그림자, 올리면 떠오르고 누르면 눌린다 ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button) {
  min-height: 42px;
  padding: 10px 18px;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.3;
  box-shadow: none;
  transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease),
    box-shadow 180ms var(--ease), transform 120ms var(--ease), filter 120ms var(--ease);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):hover:not(:disabled) { background: var(--accent-fill-hover); color: var(--on-accent); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):where(:not(.secondary, .gray, .ghost, .danger, .btn-ghost, .logout, .theme-toggle, .sidebar-collapse, [role='tab'], [role='option'], [aria-pressed], .calc-tabs *, .num-stepper *, .md-seg *, .mapping-suggestions *, [data-suggestions] *, .mk-morph-status *)):not(:disabled, [disabled]) { box-shadow: var(--btn-shadow); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):where(:not(.secondary, .gray, .ghost, .danger, .btn-ghost, .logout, .theme-toggle, .sidebar-collapse, [role='tab'], [role='option'], [aria-pressed], .calc-tabs *, .num-stepper *, .md-seg *, .mapping-suggestions *, [data-suggestions] *, .mk-morph-status *)):active:not(:disabled) { transform: scale(0.97); box-shadow: var(--btn-press); filter: brightness(0.94); transition-duration: 60ms; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.secondary, .button.secondary, button.gray, .button.gray, .btn-ghost, button.danger, .button.danger):active:not(:disabled) { transform: scale(0.97); box-shadow: var(--btn-press); transition-duration: 60ms; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.secondary, .button.secondary, button.gray, .button.gray, .btn-ghost) {
  background: var(--btn2-bg);
  color: var(--ink);
  border: 1px solid var(--btn2-border);
  box-shadow: var(--btn2-shadow);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.secondary, .button.secondary, button.gray, .button.gray, .btn-ghost):hover:not(:disabled) {
  background: var(--btn2-bg-hover);
  color: var(--ink);
  border-color: var(--btn2-border-hover);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.ghost, .button.ghost) { background: transparent; color: var(--gray); border-color: transparent; box-shadow: none; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.ghost, .button.ghost):hover:not(:disabled) { background: var(--fill); color: var(--ink); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.danger, .button.danger) { background: var(--btn2-bg); color: var(--danger); border: 1px solid var(--btn2-border); box-shadow: var(--btn2-shadow); filter: none; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.danger, .button.danger):hover:not(:disabled) { background: var(--danger-fill); color: #ffffff; border-color: var(--danger-fill); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--danger-fill) 70%, transparent); filter: none; }
@media (hover: hover) and (pointer: fine) {
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):where(:not(.secondary, .gray, .ghost, .danger, .btn-ghost, .logout, .theme-toggle, .sidebar-collapse, [role='tab'], [role='option'], [aria-pressed], .calc-tabs *, .num-stepper *, .md-seg *, .mapping-suggestions *, [data-suggestions] *, .mk-morph-status *)):not(:disabled, [disabled]):hover { transform: translateY(-1px); box-shadow: var(--btn-shadow-hover); }
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.secondary, .button.secondary, button.gray, .button.gray, .btn-ghost, button.danger, .button.danger):not(:disabled, [disabled]):hover { transform: translateY(-1px); box-shadow: var(--btn2-shadow-hover); }
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):not(:disabled):active { transform: scale(0.97); }
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):where(:not(.secondary, .gray, .ghost, .danger, .btn-ghost, .logout, .theme-toggle, .sidebar-collapse, [role='tab'], [role='option'], [aria-pressed], .calc-tabs *, .num-stepper *, .md-seg *, .mapping-suggestions *, [data-suggestions] *, .mk-morph-status *)):not(:disabled):active { transform: scale(0.97); box-shadow: var(--btn-press); filter: brightness(0.94); transition-duration: 60ms; }
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button.secondary, .button.secondary, button.gray, .button.gray, .btn-ghost, button.danger, .button.danger):not(:disabled):active { transform: scale(0.97); box-shadow: var(--btn-press); transition-duration: 60ms; }
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):is(:disabled, [disabled], [aria-disabled="true"]) {
  background: var(--fill);
  color: var(--gray-light);
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
/* theme.css 의 버튼 굵기 650(명시도 0,2,1)을 600 으로 — 굵기만 맞춘다. */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button, a.guide-link) { font-weight: 600; }
/* 위 공통 규칙이 덮은 특수 버튼의 크기를 되돌린다(apple.css 의 같은 명시도 규칙). */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .card-action { min-height: 38px; padding: 8px 15px; font-size: 13px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .mapping-supplier-link { min-height: 32px; padding: 6px 12px; font-size: 12px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .back-link { min-height: 38px; padding: 8px 15px; font-size: 13px; }
/* 설정 초기화(쿠팡 API·디스코드)는 되돌릴 수 없는 동작이라 위험 버튼 모양으로. 확인 창은 기존 setup-reset.js 그대로. */
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .setup-reset button.secondary { color: var(--danger); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent); }
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .setup-reset button.secondary:hover:not(:disabled) { background: var(--danger-fill); color: #ffffff; box-shadow: none; }
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .setup-reset button.secondary:disabled { color: var(--gray-light); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* ── 3) 입력 — 안으로 살짝 들어간 칸. 포커스하면 테두리가 코발트로, 빛이 120ms 에 퍼지고 200ms 에 사라진다 ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(input, select, textarea) {
  min-height: 44px;
  padding: 10px 13px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 400;
  box-shadow: var(--field-shadow);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(input, select, textarea):hover:not(:focus, :disabled) { border-color: var(--field-border-hover); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(input, textarea)::placeholder { color: var(--gray-light); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(input, select, textarea):is(:focus, :focus-visible) {
  outline: none;
  background-color: var(--field-bg);
  border-color: var(--accent);
  box-shadow: var(--field-shadow), var(--focus-ring);
  transition-duration: 120ms;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) input:is([type="checkbox"], [type="radio"]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(input, select, textarea):disabled { background: var(--fill); color: var(--gray-light); border-color: transparent; box-shadow: none; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(input[type="checkbox"], input[type="radio"]) {
  min-height: 18px;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--accent-fill);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23848d9c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) select:is(:focus, :focus-visible) {
  background-color: var(--field-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232f7cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 16px;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.form-grid label, .seller-row > label, .label-rows > label) { color: var(--gray); font-weight: 600; }
/* 카드 안 입력 폼(쿠팡 키·공급처 신청)은 라벨 칸 너비를 맞춰 입력칸 시작선을 한 줄로. */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) section.card > form > .seller-row { max-width: 880px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) section.card > form > .seller-row > label { flex: 0 0 176px; min-width: 176px; }

/* ── 4) 세그먼트(같은 자료를 다르게 보기) ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.tabs, .inline-tabs, .transaction-tabs, .calc-tabs, .cs-history-toggle) {
  gap: 2px;
  padding: 3px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a,
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .calc-tabs button {
  min-height: 36px;
  padding: 7px 15px;
  border: 0;
  border-radius: 7px;
  color: var(--gray);
  font-weight: 500;
  transition: background-color 120ms var(--ease), color 120ms var(--ease), box-shadow 160ms var(--ease), transform 120ms var(--ease);
}
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a[aria-current],
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .calc-tabs button[aria-selected="true"] {
  background: var(--seg-active);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--seg-shadow);
}
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a[aria-current]:hover,
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .calc-tabs button[aria-selected="true"]:hover:not(:disabled) { background: var(--seg-active); color: var(--ink); }

/* ── 5) 표 — 옅은 머리줄 면, 헤어라인 행 ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.table-scroll, .table-wrap) {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: none;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .card :is(.table-scroll, .table-wrap) { border: 1px solid var(--line); border-radius: var(--r-md); background: transparent; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) th {
  padding: 10px 14px;
  background: var(--surface-soft);
  color: var(--gray);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) td { padding: 11px 14px; border-bottom: 1px solid var(--line); font-weight: 400; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .account-table td:first-child { background: var(--surface-soft); color: var(--gray); font-weight: 600; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) tbody tr:not(.cs-expand):hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }

/* ── 6) 배지 — 둥근 알약, 글자색에서 면·테두리를 만든다(색이 또렷하고 모든 상태가 같은 문법) ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.badge, .trial-status, .mapping-badge) {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.45;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .badge {
  color: var(--blue-ink);
  background: color-mix(in srgb, currentColor 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 26%, transparent);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.badge.green, .trial-status.matched) { color: var(--green-ink); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .badge.blue { color: var(--blue-ink); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .badge.red { color: var(--red); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .badge.orange { color: var(--amber); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .badge.gray { color: var(--gray); }
:root[data-theme="dark"] .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .badge.red { background: color-mix(in srgb, currentColor 14%, transparent); }
/* 상태 점 — 색만이 아니라 글자와 함께 쓴다 */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .status-dot.is-info { color: var(--accent); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .status-dot.is-success { color: var(--success); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .status-dot.is-warning { color: var(--warning); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .status-dot.is-danger { color: var(--danger); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .status-dot.is-neutral { color: var(--gray-light); }

/* ── 7) 안내(callout) — 옅은 면 + 왼쪽 2px 표시선 ── */
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.notice, .orders-guidance, .cancel-info, .seller-notice-yellow,
  .seller-notice-orange, .orders-warning, .automation-banner) {
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: none;
}
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .notice { border-left-color: var(--accent); background: var(--card); }
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .notice.success { border-left-color: var(--success); }
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.notice.warning, .orders-guidance, .cancel-info, .seller-notice-yellow, .seller-notice-orange) { border-left-color: var(--warning); }
body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(.notice.error, .orders-warning) { border-left-color: var(--danger); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .seller-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--card);
  color: var(--ink);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .seller-callout > .admin-icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .seller-callout.is-warning { border-left-color: var(--warning); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .seller-callout.is-warning > .admin-icon { color: var(--warning); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .seller-callout.is-danger { border-left-color: var(--danger); }
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .seller-callout.is-danger > .admin-icon { color: var(--danger); }

/* ── 8) 셸: 사이드바·상단 바 — 리디자인 전 모양 그대로(2026-10-18 사용자: "사이드 바 디자인은 전으로 돌려") ──
   사이드바 규칙은 apple.css·seller.css 원래 것을 그대로 쓴다. 새 색 토큰이 사이드바 색을 바꾸지 않게
   사이드바 묶음 안에서만 원래 값(apple.css 토큰)을 다시 둔다. 스킨 셀러는 스킨 색을 그대로 따른다. */
body.ui-refresh.seller:where(:not(.guest, .skin-classic)) :is(.workspace-menu, .workspace-topbar) {
  --blue: #0071e3; --blue-dark: #0064d2; --blue-soft: #eaf3ff; --blue-fill: #0071e3; --blue-ink: #0062c8;
  --green-ink: #0f7a4d; --violet-ink: #7b3fa8; --gray-strong: #4e5968; --ink: #191f28; --gray: #566170; --gray-light: #8b95a1;
  --line: #e5e8eb; --card: #ffffff; --green: #00b86b; --red: #ff3b30; --hairline: rgba(0, 19, 43, 0.08);
  --material: rgba(255, 255, 255, 0.72); --fill: rgba(120, 120, 128, 0.12); --fill-strong: rgba(120, 120, 128, 0.18);
  --teal-soft: #e5f8ef; --violet-soft: #f6ecfd; --amber: #b45309; --amber-soft: #fff4e0; --surface-soft: #f7f8fa;
  --muted: var(--gray); letter-spacing: -0.01em;
}
:root[data-theme="dark"] body.ui-refresh.seller:where(:not(.guest, .skin-classic)) :is(.workspace-menu, .workspace-topbar) {
  --blue: #0a84ff; --blue-dark: #409cff; --blue-soft: #16283f; --blue-fill: #0a6fd8; --blue-ink: #5aaaff;
  --green-ink: #35d08a; --violet-ink: #d08cf5; --gray-strong: #b6c0cd; --ink: #e9edf4; --gray: #9aa4b2; --gray-light: #8b95a1;
  --line: #262e3b; --card: #161b24; --green: #35d08a; --red: #ff6b76; --hairline: rgba(255, 255, 255, 0.09);
  --material: rgba(18, 22, 30, 0.72); --fill: rgba(120, 120, 128, 0.20); --fill-strong: rgba(120, 120, 128, 0.28);
  --surface-soft: #10151e; --teal-soft: #152b21; --violet-soft: #251a33; --amber: #f0b24a; --amber-soft: #322611;
}
body.ui-refresh.seller:where(:not(.guest, .skin-classic)) :is(.workspace-sidebar, .workspace-topbar) { font-weight: 450; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) :is(button.logout, .logout-form button) { min-height: 30px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 600; box-shadow: none; }

/* ── 9) 상단 바 예치금 칩 — 상단 바 자체는 8)에서 원래 모양 그대로 ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .topbar-chip > .admin-icon { width: 15px; height: 15px; color: var(--gray-light); }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .topbar-chip strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) a.topbar-chip:hover { border-color: var(--gray-light); color: var(--ink); text-decoration: none; }

/* ── 10) 계정 상태 바 — 페이지마다 반복되던 경고 띠를 한 줄로(가장 급한 것 하나 + 외 N건) ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status { position: relative; margin: 0 0 20px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  min-height: 48px;
  padding: 9px 10px 9px 14px;
  border: 1px solid color-mix(in srgb, var(--danger) 38%, transparent);
  border-left: 2px solid var(--danger);
  border-radius: var(--r-md);
  background: var(--danger-soft);
  color: var(--ink);
}
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-item > .admin-icon { width: 20px; height: 20px; color: var(--danger); }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-copy { min-width: 0; font-size: 14px; line-height: 1.55; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-copy strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-copy strong em { font-style: normal; color: var(--danger); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-copy p { display: inline; margin: 0 0 0 8px; color: var(--gray-strong); }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-copy p b { color: var(--ink); }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-actions { display: flex; align-items: center; gap: 12px; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-actions .button { min-height: 44px; padding: 10px 18px; font-size: 15px; white-space: nowrap; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-more { position: static; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) main .account-status details.account-status-more > summary,
.ui-refresh:where(.seller:not(.guest, .skin-classic)) main .account-status details.account-status-more > summary:hover {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--gray-strong);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.ui-refresh:where(.seller:not(.guest, .skin-classic)) main .account-status details.account-status-more > summary::after { display: none; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) main .account-status details.account-status-more[open] > summary { margin-bottom: 0; }
.ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-more-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-float);
}

/* readability.css 의 반값 13.5px(th·dt·새로고침 상태)를 14px 로 올린다(문서: 반값 금지, 2026-10-07: 줄이지 않음). */
body.ui-refresh.seller:where(:not(.guest, .skin-classic, .is-classic)) main :is(th, dt) { font-size: 14px; }
body.ui-refresh.seller:where(:not(.guest, .skin-classic, .is-classic)) main .refresh-status { font-size: 14px; }

/* 바닥글 — 셀러 화면 보조 글자 최소 14px */
body.ui-refresh.seller:where(:not(.guest, .skin-classic, .is-classic)) :is(.site-footer, .site-footer span) { font-size: 14px; }

/* ── 11) 빈 상태 ── */
.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) .empty-state strong { font-size: 16px; font-weight: 600; }

/* ── 12) 카카오 문의 — 원래의 노란 알약(2026-09-21·23 사용자 지시) 그대로, 초점선만 강조색 ── */
body.ui-refresh:where(.seller:not(.guest, .skin-classic)) a.kakao-support:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

body.ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) main#main { padding-bottom: 104px; }

/* ── 13) 움직임 줄이기 ── */
@media (prefers-reduced-motion: reduce) {
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button, .topbar-chip) { transition: none; }
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button):active:not(:disabled) { transform: none; }
}

/* ── 14) 폰 ── */
@media (max-width: 900px) {
  .ui-refresh:where(.seller:not(.guest, .skin-classic, .is-classic)) :is(button, .button) { min-height: 44px; }
  .ui-refresh:where(.seller:not(.guest, .skin-classic)) .topbar-chip { display: none; }
  .ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-item { grid-template-columns: auto minmax(0, 1fr); }
  .ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-actions { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
  .ui-refresh:where(.seller:not(.guest, .skin-classic)) .account-status-copy p { display: block; margin: 2px 0 0; }
}

/* ---- skin.css ---- */
/* ══════════════════════════════════════════════════════════════
   가입 경로별 스킨 (2026-10-13 사용자 지시, recovery/skins.py)
   /farming·/choi 로 가입한 셀러의 화면. body 에 has-skin skin-<이름> 이 붙을 때만 닿으므로
   셀리오 화면은 달라지지 않는다. overlay 번들의 마지막 시트이고, 첫 화면(intro.html)은 직접 받는다.
   1) 강조색만 바꾼다. 밝은·어두운 화면 전환은 그대로다.
      파밍은 2026-10-27부터 셀리오 리디자인 화면 부품(seller-ui.css)을 받지만 색 톤(바탕·카드·글자·강조)은 파밍 그대로다
      (셀리오 팔레트 tokens.css 는 받지 않고, 부품용 새 이름만 tokens.css 맨 아래에서 파밍 색에 잇는다).
      초이는 원래 화면(body.skin-classic, recovery/skins.py)이다.
      파스텔 바탕 위 글자는 흰색이 안 읽혀 짙은 색(--on-fill)을 쓴다. 대비는 전부 4.5:1 이상으로 맞췄다.
   2) 토큰을 타지 않고 파랑이 박혀 있던 곳을 스킨 색으로 덮는다.
   3) 메뉴 맨 아래 파밍 묶음(두 스킨 공통).
   4) 글자를 한 단계 키운다(나이 든 셀러가 많다). readability.css 가 키운 범위를 그대로 한 단계 더 올린다.
   ══════════════════════════════════════════════════════════════ */

/* ── 1) 색 ── --blue 는 선·링크·포커스, --blue-ink 는 연한 바탕 위 글자, --blue-fill 은 버튼 바탕이다. */
body.ui-refresh.skin-farming,
body.ui-refresh.skin-farming :is(.workspace-menu, .workspace-topbar) {
  --blue: #0f78ae;
  --blue-ink: #0a6590;
  --blue-fill: #a3def9;
  --blue-dark: #8bd2f4;
  --blue-fill-hover: #8bd2f4;
  --blue-soft: #e2f4fd;
  --on-fill: #0b3550;
  --skin-glow: 61 169 222;
}
:root[data-theme="dark"] body.ui-refresh.skin-farming,
:root[data-theme="dark"] body.ui-refresh.skin-farming :is(.workspace-menu, .workspace-topbar) {
  --blue: #8fd5f7;
  --blue-ink: #9bdaf8;
  --blue-fill: #8fd5f7;
  --blue-dark: #afe3fb;
  --blue-fill-hover: #afe3fb;
  --blue-soft: #11303f;
  --on-fill: #06293b;
  --skin-glow: 143 213 247;
}
body.ui-refresh.skin-choi {
  --blue: #8d6900;
  --blue-ink: #775800;
  --blue-fill: #ffe27a;
  --blue-dark: #ffd754;
  --blue-fill-hover: #ffd754;
  --blue-soft: #fff5cf;
  --on-fill: #3f3000;
  --skin-glow: 240 190 40;
}
:root[data-theme="dark"] body.ui-refresh.skin-choi {
  --blue: #ffe27a;
  --blue-ink: #ffe58c;
  --blue-fill: #ffe27a;
  --blue-dark: #ffeca3;
  --blue-fill-hover: #ffeca3;
  --blue-soft: #352c0f;
  --on-fill: #3a2c00;
  --skin-glow: 255 226 122;
}

/* 셀리오 화면(tokens.css)의 포커스 테두리는 파랑이 박혀 있다. 굵기는 셀리오와 같게, 색만 스킨으로(토큰 블록보다 구체적). */
:root body.ui-refresh.seller.has-skin:not(.skin-classic) { --focus-ring: 0 0 0 4px rgb(var(--skin-glow) / 0.24); }
:root[data-theme="dark"] body.ui-refresh.seller.has-skin:not(.skin-classic) { --focus-ring: 0 0 0 3px rgb(var(--skin-glow) / 0.3); }

/* 로고 옆 이름의 강조 글자(ChoiZ 의 Z). 마크의 금색과 맞춘다. */
.skin-accent { color: #b97f00; }
:root[data-theme="dark"] .skin-accent { color: #f2b01e; }

/* --blue-dark 는 버튼에 올렸을 때의 바탕이라 파스텔이다. 그 색을 글자로 쓰던 안내 문구는 글자색 토큰으로 돌린다. */
.ui-refresh:where(.has-skin) .notice { color: var(--blue-ink); }
/* 선택된 메뉴의 배지·상품등록 단계 표시는 짙은 파랑 바탕에 흰 글자였다. 버튼과 같은 바탕·글자로 맞춘다. */
body.ui-refresh.has-skin .workspace-nav-group:nth-of-type(1) .nav-group-links a.active .nav-badge:not(.is-alert),
body.ui-refresh.has-skin :is(.lx-step.is-current .lx-step-no, .lx-chip-check) { color: var(--on-fill); background: var(--blue-fill); }
/* 강조색이 아닌 색 바탕 버튼(삭제·입금자명 복사)은 글자색을 공통 버튼 규칙에 기대고 있었다. 스킨에서도 흰 글자로 둔다. */
body.ui-refresh.has-skin :is(button.danger, .bank-row.payer button) { color: #fff; }
/* 셀리오 상품 연결 화면의 빨간 바탕(연결 필요 개수·미사용 배지)은 --on-fill 글자를 쓴다. 스킨의 --on-fill 은 짙은 색이라 흰 글자로. */
body.ui-refresh.has-skin:not(.skin-classic) :is(#mapping-list .mapping-group.is-needs [data-group-count], .use-badge.is-off) { color: #fff; }
/* 공급처 혜택 '상품 보기'는 강조색 바탕에 흰 글자가 박혀 있다. 파스텔 바탕이라 버튼 글자색으로(펼친 회색 상태는 그대로). */
body.ui-refresh.has-skin:not(.skin-classic) .benefit:not([open]) .benefit-toggle { color: var(--on-fill); }
/* 누르는 동안의 바탕이 글자색 토큰이던 로그인 전 화면 버튼. */
body.ui-refresh.seller.guest.has-skin .seller-auth form > button:active { background: var(--blue-dark); }

/* ── 2) 박혀 있던 파랑 ── */
body.ui-refresh.has-skin :is(.brand-symbol, .seller-login .brand-mark, .topnav .brand)::before {
  background: radial-gradient(circle, rgb(var(--skin-glow) / 34%), transparent 70%);
}
body.ui-refresh.has-skin {
  --setup-glow: rgb(var(--skin-glow) / .6);
  --setup-glow-clear: rgb(var(--skin-glow) / 0);
}
/* 어두운 화면은 seller.css 의 파랑 고리(0,3,1)가 위 규칙을 이긴다. 파밍만 스킨 색으로 둔다(초이는 그대로). */
:root[data-theme="dark"] body.ui-refresh.skin-farming {
  --setup-glow: rgb(var(--skin-glow) / .6);
  --setup-glow-clear: rgb(var(--skin-glow) / 0);
}
body.ui-refresh.has-skin a.kakao-support:focus-visible { outline-color: var(--blue); }

/* ── 3) 메뉴 맨 아래 파밍 묶음 ── 다른 메뉴 묶음과 같은 모양이고 메뉴와 함께 스크롤된다(아래에 고정하지 않는다, 사용자 지시).
   초이 스킨에서도 파밍 것이라 파밍 색으로 둔다. 위 묶음들과는 가는 선으로만 나눈다. */
body.ui-refresh .workspace-nav-group.nav-partner {
  --nav-accent: #0d5f8c;
  --nav-accent-soft: #d9effb;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}
:root[data-theme="dark"] body.ui-refresh .workspace-nav-group.nav-partner { --nav-accent: #9bdaf8; --nav-accent-soft: #11303f; }
body.ui-refresh .nav-partner > summary > img { flex: none; width: 19px; height: 19px; }
body.ui-refresh .nav-partner > summary > span { letter-spacing: .05em; }
body.ui-refresh .nav-partner .nav-out { flex: none; margin-left: auto; color: var(--gray-light); transition: color .15s ease-out; }
body.ui-refresh .nav-partner a:hover .nav-out { color: var(--nav-accent); }

/* 스킨 대표의 수강생 명단(skin_admin.html)의 로그인·비밀번호 폼 */
body.ui-refresh .skin-admin-card form { display: grid; gap: 14px; max-width: 420px; }
/* 명단은 칸 안에서 줄을 바꾸지 않는다. 좁으면 표가 옆으로 스크롤된다. */
body.ui-refresh .skin-roster :is(th, td) { white-space: nowrap; }

/* 관리자 '제휴 정산' 탭(skin_settlement.html)과 대표의 결제·정산 화면(skin_admin_roster.html). 몇 줄뿐이라 이 시트에 둔다. */
body.ui-refresh .skin-settlement-months { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.ui-refresh .skin-settlement-sum { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 16px; }
body.ui-refresh .skin-settlement-sum dt { color: var(--gray); font-size: 13px; }
body.ui-refresh .skin-settlement-sum dd { margin: 2px 0 0; font-size: 15px; font-variant-numeric: tabular-nums; }
body.ui-refresh .skin-settlement-months { margin-bottom: 18px; }
body.ui-refresh .skin-roster td.amt { text-align: right; font-variant-numeric: tabular-nums; }
/* 대표 수강생 명단의 이용 상태 고르기. 인원 숫자는 고정폭. */
body.ui-refresh .skin-status-tabs strong { margin-left: 4px; font-variant-numeric: tabular-nums; }

/* ── 4) 글자 크기 ── 로그인한 셀러 화면과 가입 화면. 첫 화면(.intro)은 이미 큰 글자라 그대로 둔다. */
@media (min-width: 901px) { body.ui-refresh.seller.has-skin { --sidebar-width: 280px; } }
body.ui-refresh.seller.has-skin { font-size: 16px; }
body.ui-refresh.seller.has-skin h1 { font-size: 29px; }
body.ui-refresh.seller.has-skin h2 { font-size: 20px; }
body.ui-refresh.seller.has-skin h3 { font-size: 17px; }
body.ui-refresh.seller.has-skin :is(.sub, .page-heading p) { font-size: 16px; }
/* 메뉴 */
body.ui-refresh.seller.has-skin .workspace-brand b { font-size: 22px; letter-spacing: .01em; }
/* 좁은 화면의 머리줄은 58px 로 고정이다(그 아래 줄이 그 높이에 맞춰 붙는다). 높이를 넘지 않는 만큼만 키운다. */
body.ui-refresh.seller.has-skin .mobile-brand b { font-size: 20px; }
body.ui-refresh.seller.has-skin .center-badge { font-size: 13px; padding: 3px 9px; }
body.ui-refresh.seller.has-skin .workspace-profile b { font-size: 15px; }
body.ui-refresh.seller.has-skin .workspace-profile small { font-size: 13px; }
body.ui-refresh.seller.has-skin .workspace-navigation a,
body.ui-refresh.seller.has-skin .workspace-nav-group > summary { min-height: 46px; font-size: 16px; }
body.ui-refresh.seller.has-skin .nav-group-links a { font-size: 15.5px; }
body.ui-refresh.seller.has-skin .workspace-navigation .admin-icon { width: 19px; height: 19px; }
body.ui-refresh.seller.has-skin :is(.nav-badge, .nav-setup-status) { font-size: 12.5px; }
body.ui-refresh.seller.has-skin button.logout { font-size: 14px; }
body.ui-refresh.seller.has-skin .workspace-location { font-size: 15px; }
/* 본문 */
body.ui-refresh.seller.has-skin main :is(.small, .muted, .heading-note, .refresh-status, .balance-caption) { font-size: 15.5px; }
body.ui-refresh.seller.has-skin main :is(dd, td, label, .bank-row button) { font-size: 16px; }
body.ui-refresh.seller.has-skin main :is(th, dt) { font-size: 15px; }
body.ui-refresh.seller.has-skin main td small { font-size: 14px; }
body.ui-refresh.seller.has-skin main .badge { font-size: 14px; }
body.ui-refresh.seller.has-skin main .notice { font-size: 16px; }
body.ui-refresh.seller.has-skin .site-footer, body.ui-refresh.seller.has-skin .site-footer span { font-size: 14px; }
/* 누르는 것·적는 것 */
/* 앞 시트의 공통 규칙과 같은 무게로 두어, 화면마다 따로 정한 버튼·입력칸 크기는 그대로 이긴다. */
.ui-refresh:where(.seller.has-skin) :is(button, .button) { font-size: 16px; }
.ui-refresh:where(.seller.has-skin) :is(input, select, textarea) { font-size: 17px; }
body.ui-refresh.seller.has-skin :is(.tabs, .inline-tabs, .transaction-tabs, .cs-history-toggle) a,
body.ui-refresh.seller.has-skin .calc-tabs button { font-size: 15.5px; }

/* ── 5) 초이: 키워드 선점·최저가 한번에 찾기 ── 2026-10-18 초이 대표 요청("초록색으로 되어 있는거 톤 맞춰서 노란색으로").
   두 화면은 강조색 토큰을 타지 않고 초록을 따로 쓴다(keyword-analysis.css 의 --ki-*, readability.css 의 --green-ink·--teal-soft). */
body.ui-refresh.skin-choi .ki {
  --ki-ink: #2e2600; --ki-muted: #6b5c2e; --ki-line: #efe2b3; --ki-soft: #fff8dc;
  --ki-accent: #8d6900; --ki-glow: rgba(240, 190, 40, .22);
}
body.ui-refresh.skin-choi .ki ::selection { background: #ffe27a; color: #3f3000; }
:root[data-theme="dark"] body.ui-refresh.skin-choi .ki {
  --ki-ink: #f3ecd2; --ki-muted: #cbbd8f; --ki-line: #4d4220; --ki-bg: #262010; --ki-soft: #352c0f;
  --ki-accent: #ffe27a; --ki-glow: rgba(255, 226, 122, .24);
}
body.ui-refresh.seller.skin-choi .cheapest-card { border-color: var(--blue); background: linear-gradient(135deg, var(--blue-soft) 0%, var(--card) 65%); }
body.ui-refresh.seller.skin-choi :is(.cheapest-badge, .cheapest-card .mapping-price-form button) { background: var(--blue-fill); color: var(--on-fill); }
body.ui-refresh.seller.skin-choi .cheapest-card .mapping-price-form button:hover { background: var(--blue-fill-hover); filter: none; }
/* 상품 연결 '저장'은 workspace.css 가 --accent(스킨에서는 선 색) 바탕을 박아 둔다. 두 스킨 모두 버튼 바탕·글자로(2026-10-27 파밍도). */
body.ui-refresh.seller.has-skin .mapping-fields > .mapping-update { background: var(--blue-fill) !important; color: var(--on-fill); }
body.ui-refresh.seller.has-skin .mapping-fields > .mapping-update:hover { background: var(--blue-fill-hover) !important; }
