:root {
  /* Product UI Styleguide — 블루 + 뉴트럴 시스템 */
  --paper: #f4f6f9;             /* 배경: 라이트 쿨 그레이 */
  --bg: #f4f6f9;
  --surface: #ffffff;           /* 표면(카드) */
  --surface-soft: #f7f9fc;      /* 은은한 표면 */
  --ink: #12151c;               /* 텍스트 프라이머리 */
  --muted: #5b616e;             /* 텍스트 세컨더리 */
  --soft: #9aa0ac;              /* 텍스트 터셔리 */
  --line: #e2e5eb;              /* 보더 */
  --line-strong: #d3d7df;
  --black: #12151c;

  /* 프라이머리 = 애플 액션 블루 */
  --accent: #0066cc;
  --accent-strong: #005bb5;     /* hover */
  --accent-press: #0052a3;      /* pressed */
  --accent-focus: #0071e3;      /* 포커스 링/밝은 계열 */
  --accent-soft: #e6f0fb;       /* 라이트 블루 배경 */
  --focus-ring: rgba(0, 102, 204, 0.35);
  --blue: #0066cc;

  /* 시맨틱 (알럿·상태) */
  --green: #2e7d5b;   --green-soft: #e7f5ee;
  --red: #d64545;     --red-soft: #fcecec;
  --amber: #b7791f;   --amber-soft: #fdf6e7;
  --info: #0066cc;    --info-soft: #e6f0fb;

  /* 라운드 스케일 (xs 6 / sm 8 / md 12 / lg 20 / pill 999) */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --radius-full: 999px;
  --radius: var(--radius-md);   /* 기본 = md */

  /* 엘리베이션 (Level 0~3) */
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-2: 0 8px 20px -8px rgba(16, 24, 40, 0.10);
  --shadow-3: 0 16px 40px -12px rgba(16, 24, 40, 0.16);
  --shadow: var(--shadow-1);

  /* 스페이싱 스케일 (4 / 8 / 16 / 24 / 32 / 48 / 64) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 32px; --space-6: 48px;
  --space-7: 64px;

  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 24px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.brand {
  display: block;
  width: 112px;
  max-width: 100%;
  overflow: visible;
}

.brand img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.nav {
  display: grid;
  gap: 6px;
  margin-top: 40px;
}

.nav-item {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  background: var(--accent-soft);
  color: var(--blue);
}

.sidebar-note {
  display: grid;
  gap: 8px;
  margin-top: var(--space-7);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-logout {
  min-height: 34px;
  margin-top: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.sidebar-note strong {
  color: var(--ink);
  font-size: 13px;
}

.live-dot,
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
}

.live-dot i,
.live-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(20, 184, 106, 0.12);
}

.content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 32px 32px 56px;
}

.page-header,
.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-header {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.page-header h1,
.card-heading h2,
.panel-header h2,
.builder-card h3 {
  margin: 0;
  color: var(--ink);
}

.page-header h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-heading h2,
.panel-header h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-header p,
.card-heading p,
.helper-text {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-actions,
.builder-actions,
.campaign-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button,
.campaign-link-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
}

.primary-button,
.campaign-link-button {
  background: var(--black);
  color: var(--surface);
}

.secondary-button {
  background: var(--accent-soft);
  color: var(--blue);
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--muted);
}

.icon-button {
  width: 40px;
  padding: 0;
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  font-size: 20px;
}

.small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.full-button {
  width: 100%;
}

.dashboard-section,
.report-card,
.onboarding-card,
.stat-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.dashboard-section {
  scroll-margin-top: 22px;
}

.report-card,
.onboarding-card {
  padding: 22px;
}

.onboarding-card {
  position: relative;
  display: grid;
  grid-template-columns: 260px 1fr 40px;
  gap: 20px;
  align-items: start;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.flow-steps li {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.flow-steps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.stat-card strong {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
}

.stat-card small {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
}

.execution-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.campaign-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.campaign-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.campaign-cover {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--black);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.campaign-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.campaign-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-cover > span {
  position: relative;
  z-index: 2;
}

.campaign-cover-actions {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.campaign-cover-actions .campaign-link-button {
  min-height: 34px;
  background: rgba(17, 19, 24, 0.9);
}

.campaign-delete {
  position: static;
  min-height: 28px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(17, 19, 24, 0.72);
  color: var(--surface);
  font-size: 11px;
  font-weight: 600;
}

.campaign-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.campaign-body > span,
.campaign-body small {
  color: var(--muted);
  font-size: 12px;
}

.campaign-body strong {
  line-height: 1.35;
}

.campaign-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.compact-insight {
  align-content: start;
}

.mini-metrics {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.mini-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
}

.mini-metrics strong {
  color: var(--ink);
}


.feedback-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.feedback-item {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.feedback-item strong {
  font-size: 13px;
}

.feedback-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.segment {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.segment button {
  min-height: 30px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 0 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.segment button.active {
  background: var(--accent);
  color: var(--surface);
}

.sales-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 18px;
  margin-top: 20px;
}

.sales-period {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-soft);
}

.sales-period button {
  min-width: 48px;
  min-height: 34px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.sales-period button.active {
  background: var(--accent);
  color: var(--surface);
}

.sales-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.sales-snapshot-grid article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.sales-snapshot-grid span,
.sales-snapshot-grid small {
  color: var(--muted);
  font-size: 12px;
}

.sales-snapshot-grid strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.sales-data-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .sales-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .sales-period {
    width: 100%;
  }

  .sales-period button {
    flex: 1;
  }

  .sales-snapshot-grid {
    grid-template-columns: 1fr;
  }
}

.trend-panel {
  position: relative;
  min-height: 260px;
  display: grid;
  align-items: end;
  padding: 20px 16px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.trend-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 200px;
}

/* 표시할 데이터가 없을 때: 막대 대신 빈 상태 안내가 전체 폭을 차지하게 함 */
.trend-chart .empty-state {
  width: 100%;
  align-self: stretch;
}

.trend-bar {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 18px;
  border-radius: 7px 7px 2px 2px;
  background: var(--accent-soft);
}

.trend-bar.upload-day {
  background: var(--black);
}

.trend-bar.upload-day::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 1px;
  height: 230px;
  background: rgba(17, 19, 24, 0.28);
}

.trend-bar span {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.upload-marker-label {
  position: absolute;
  right: 16px;
  top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.lift-cards {
  display: grid;
  gap: 10px;
}

.lift-cards article,
.channel-card {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.lift-cards span,
.channel-card span,
.channel-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.lift-cards strong,
.channel-card strong {
  font-size: 22px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.filters {
  display: grid;
  grid-template-columns: 150px 150px 170px minmax(260px, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.seeding-tab-filters {
  grid-template-columns: 200px 160px 200px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
}

textarea {
  min-height: 104px;
  padding: 12px;
  resize: vertical;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

table {
  width: 100%;
  min-width: 1260px;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  color: var(--muted);
  text-align: left;
  font-weight: 600;
  background: var(--surface-soft);
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.thumb {
  width: 52px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--line-strong);
  display: block;
}

.account-cell {
  display: grid;
  gap: 4px;
}

.account-cell a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.account-cell span {
  color: var(--muted);
  font-size: 11px;
}

.scrape-meta {
  color: var(--green);
  font-size: 10px;
}

.scrape-meta.failed {
  color: var(--red);
}

.delta,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
}

.delta.up,
.status-badge.uploaded,
.status-badge.settled {
  background: var(--green-soft);
  color: var(--green);
}

.delta.down {
  background: var(--red-soft);
  color: var(--red);
}

.status-badge.pending {
  background: var(--surface-soft);
  color: var(--muted);
}

.status-badge.sent {
  background: var(--amber-soft);
  color: var(--amber);
}

.product-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

#productList {
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  align-items: start;
}

#campaignProductList,
.crawler-product-list {
  grid-template-columns: 1fr;
}

.product-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.product-card-clickable {
  cursor: pointer;
}

.product-card-clickable:hover,
.product-card-clickable:focus {
  border-color: var(--black);
  outline: none;
}

.product-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-thumb-image {
  width: 64px;
  height: 78px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--line);
}

.product-card div {
  min-width: 0;
}

.product-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.product-card small {
  color: var(--muted);
  font-size: 11px;
}

.product-colors {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 5px 0;
}

.product-colors span {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--blue);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 600;
}

.empty-state {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 150px;
  padding: 22px;
  color: var(--muted);
  box-shadow: none;
}

.empty-state strong {
  color: var(--ink);
  font-size: 16px;
}

.table-empty {
  min-height: 120px;
}

.response-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.response-panel-header,
.response-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.response-panel h3,
.response-panel p {
  margin: 0;
}

.response-panel p {
  color: var(--muted);
  font-size: 12px;
}

.response-actions select {
  min-width: 200px;
}

.compact-table-wrap {
  max-height: 340px;
}

.compact-table-wrap table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.compact-table-wrap th,
.compact-table-wrap td {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
}

.compact-table-wrap th:last-child,
.compact-table-wrap td:last-child { border-right: 0; }

.compact-table-wrap td:nth-child(4),
.compact-table-wrap td:nth-child(11) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.campaign-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  visibility: hidden;
}

.campaign-panel.open {
  pointer-events: auto;
  visibility: visible;
}

.panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  opacity: 0;
  transition: opacity 180ms ease;
}

.campaign-panel.open .panel-backdrop {
  opacity: 1;
}

.panel-card {
  position: absolute;
  right: 0;
  top: 0;
  width: min(760px, 100vw);
  height: 100vh;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.campaign-panel.open .panel-card {
  transform: translateX(0);
}

/* 헤더+스테퍼를 하나의 불투명 sticky 블록으로 묶어 스크롤 시 콘텐츠가 위로 비치지 않게 함 */
.panel-sticky-head {
  position: sticky;
  top: -24px;
  z-index: 1000;
  min-height: 139px;
  box-sizing: border-box;
  background-color: #ffffff;
  margin: -24px -24px 0;      /* panel-card 24px 패딩을 상쇄해 전체 폭을 덮음 */
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 12px -10px rgba(16, 24, 40, 0.28);
  isolation: isolate;
  overflow: hidden;
}

.panel-sticky-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #ffffff;
  pointer-events: none;
}

.panel-sticky-head > * {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 14px;
  background: #ffffff;
}

.stepper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--surface);
}

.stepper li {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
}

.stepper button {
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.stepper li.active {
  background: var(--black);
  color: var(--surface);
}

.builder-card[data-step="basic"] {
  order: 1;
}

.builder-card[data-step="guide"] {
  order: 2;
}

.builder-card[data-step="items"] {
  order: 3;
}

.builder-card[data-step="license"] {
  order: 4;
}

.builder-actions {
  order: 5;
}

.builder-card {
  scroll-margin-top: 150px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.section-kicker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--black);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.file-input {
  display: none;
}

.upload-field {
  width: 100%;
  min-height: 58px;
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px;
}

.upload-field span {
  color: var(--muted);
  font-size: 12px;
}

.cover-upload-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.cover-upload-control.is-dragging .upload-field,
.guide-reference-uploader.is-dragging #guideReferenceTrigger {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.cover-upload-control.has-cover {
  width: 180px;
  grid-template-columns: 180px;
  gap: 6px;
}

.cover-upload-control.has-cover .upload-field {
  grid-column: 1;
  grid-row: 2;
  width: 180px;
  min-height: 40px;
  padding: 9px 12px;
  font-size: 12px;
}

.cover-upload-control.has-cover .cover-preview {
  grid-column: 1;
  grid-row: 1;
}

.cover-preview {
  width: 180px;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.cover-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.cover-crop-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-3);
}

.cover-crop-dialog::backdrop {
  background: rgba(15, 23, 42, 0.48);
}

.cover-crop-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.cover-crop-header,
.cover-crop-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cover-crop-header h2,
.cover-crop-help {
  margin: 0;
}

.cover-crop-help {
  color: var(--muted);
  font-size: 13px;
}

.cover-crop-stage {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 4 / 5;
  justify-self: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #111318;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.cover-crop-stage.is-dragging {
  cursor: grabbing;
}

.cover-crop-stage > img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  pointer-events: none;
  will-change: transform;
}

.cover-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent 33.1%, rgba(255, 255, 255, 0.55) 33.3%, transparent 33.5%, transparent 66.4%, rgba(255, 255, 255, 0.55) 66.6%, transparent 66.8%),
    linear-gradient(to bottom, transparent 33.1%, rgba(255, 255, 255, 0.55) 33.3%, transparent 33.5%, transparent 66.4%, rgba(255, 255, 255, 0.55) 66.6%, transparent 66.8%);
}

.cover-crop-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.cover-crop-zoom input {
  width: 100%;
}

.cover-crop-actions {
  justify-content: flex-end;
}

.guide-block {
  display: grid;
  gap: 8px;
}

.guide-title,
.compact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guide-title button,
.guide-line button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}

.guide-lines {
  display: grid;
  gap: 8px;
}

.guide-line {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 8px;
}

.agreement {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.agreement input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--black);
}

.shipping-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.shipping-field {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
}

.shipping-field strong {
  color: var(--blue);
}

.shipping-field.optional strong {
  color: var(--muted);
}

.crawler-dialog {
  width: min(760px, calc(100vw - 32px));
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
}

.crawler-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.crawler-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.product-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.product-source-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.product-source-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(16, 24, 40, 0.1);
}

.campaign-list-filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  margin-bottom: var(--space-3);
}

.campaign-list-filter-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.campaign-list-filter-tabs button.active {
  background: var(--surface);
  color: var(--ink);
}

.paid-terms-section {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: var(--space-3);
  margin-top: var(--space-3);
}

.field-suffix-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.influencer-view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.influencer-view-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.influencer-view-tabs button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 5px rgba(16, 24, 40, 0.1);
}

.product-source-panel {
  display: grid;
  gap: 14px;
}

.manual-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.manual-product-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.manual-product-field.full {
  grid-column: 1 / -1;
}

.manual-product-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

.manual-product-field input[type="file"] {
  padding: 8px;
}

.manual-product-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.manual-product-preview {
  min-height: 190px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.manual-product-preview.is-dragging {
  border-color: var(--black);
  background: var(--accent-soft);
}

.manual-image-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.manual-image-item {
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.manual-image-item.primary {
  border-color: var(--black);
}

.manual-image-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: var(--surface-soft);
}

.manual-image-item > div {
  display: grid;
  gap: 4px;
}

.manual-image-item button {
  min-height: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 10px;
  cursor: pointer;
}

.product-detail-card.image-picker-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(820px, calc(100vh - 28px));
  overflow: hidden;
}

.image-picker-card > header {
  padding: 24px 28px 14px;
  border-bottom: 1px solid var(--line);
}

.image-picker-card > header h2 { margin: 6px 0 12px; }
.image-picker-card > header dl,
.image-picker-card > header dd { margin: 0; }

.image-picker-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px 0;
}

.image-picker-toolbar span {
  color: var(--soft);
  font-size: 11px;
}

.image-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  cursor: pointer;
}

.image-picker-grid {
  flex: 1;
  overflow-y: auto;
  padding: 14px 28px 28px;
}

.image-picker-empty {
  grid-column: 1 / -1;
  min-height: 220px;
}

.image-picker-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.image-picker-item img {
  object-fit: contain;
  background: var(--surface-soft);
}

.image-picker-item:hover,
.image-picker-item:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  outline: none;
}

.image-pick-button {
  width: 100%;
  min-height: 34px !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: var(--radius-sm);
  background: var(--surface) !important;
  color: var(--ink);
  font-size: 12px !important;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.image-pick-button:hover,
.image-pick-button:focus-visible {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--surface);
  outline: none;
}

.manual-detail-page {
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
}

.manual-detail-page header {
  display: grid;
  gap: 14px;
  padding: 48px 42px 32px;
  border-bottom: 1px solid var(--line);
}

.manual-detail-page header h2,
.manual-detail-page header p {
  margin: 0;
}

.manual-detail-page dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
}

.manual-detail-page dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.manual-detail-page dt {
  color: var(--muted);
}

.manual-detail-page dd {
  margin: 0;
  font-weight: 600;
}

.manual-detail-gallery {
  display: grid;
  gap: 1px;
  max-width: 920px;
  margin: 0 auto;
}

.manual-detail-gallery figure {
  position: relative;
  margin: 0;
  background: var(--surface-soft);
}

.manual-detail-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.manual-detail-gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}

/* 응답 폼: 아이템 아카이브(p360) 상품 상세 모달 — 고화질 갤러리 (컬러별 그룹 세로 스크롤, 14-UI-SPEC.md) */
.p360-gallery-scroll {
  max-height: 60vh;
  overflow-y: auto;
  padding: 0 var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.p360-gallery-color-group:not(:first-child) {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}

.p360-gallery-color-heading {
  margin: 0 0 var(--space-2);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.p360-gallery-shot-row {
  /* side-by-side grid replaced with a single vertical stack (user decision 2026-07-27) */
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.p360-gallery-shot,
.p360-gallery-cut {
  position: relative;
  margin: 0;
}

.p360-gallery-shot img,
.p360-gallery-cut img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  display: block;
}

.p360-gallery-shot img {
  object-fit: cover;
}

.p360-gallery-cut {
  max-width: 320px;
  margin: var(--space-2) auto 0;
}

.p360-gallery-cut img {
  object-fit: contain;
}

.p360-gallery-shot-badge {
  position: absolute;
  left: var(--space-2);
  bottom: var(--space-2);
  padding: 4px 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.manual-product-message {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 12px;
}

.crawler-status {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
}

.crawler-status a {
  color: var(--blue);
  font-weight: 600;
}

.crawler-product-list {
  max-height: 54vh;
  overflow: auto;
}

.product-detail-dialog {
  width: min(960px, calc(100vw - 28px));
  max-height: min(900px, calc(100vh - 28px));
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  box-shadow: var(--shadow-3);
}

.product-detail-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.product-detail-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1fr);
  background: var(--surface);
  border-radius: var(--radius-lg);
}

.product-detail-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
}

.product-detail-hero {
  min-height: 520px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
}

.product-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-placeholder {
  width: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--surface-soft), var(--line-strong));
}

.product-detail-info {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 44px 36px 32px;
}

.product-detail-info h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.15;
}

.product-detail-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

.product-detail-meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.product-detail-meta dt {
  color: var(--muted);
  font-size: 13px;
}

.product-detail-meta dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

.product-detail-frame-wrap {
  grid-column: 1 / -1;
  padding: 0 24px 24px;
  background: var(--surface);
}

.product-detail-frame-wrap h3 {
  margin: 0 0 12px;
}

.product-detail-frame {
  width: 100%;
  height: 620px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.public-form-body {
  background: var(--bg);
}

.public-form-page {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 24px;
}

.public-form-card {
  width: min(1040px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.public-form-cover {
  min-height: 0;
  aspect-ratio: 4 / 1;
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  background: #000000;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.public-form-cover img {
  display: block;
  width: min(42%, 320px);
  height: auto;
  max-height: 44%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.public-form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.public-form h1 {
  margin: 0;
}

.public-form-desc,
.public-form-status {
  margin: 0;
  color: var(--muted);
}

.public-upload-schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.public-upload-schedule-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.public-upload-schedule strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: right;
}

/* 제출 완료 화면 — 주문 재확인(제품명·컬러·사이즈) */
.public-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 26px 30px;
  text-align: center;
}
.success-check {
  color: var(--green);
  display: grid;
  place-items: center;
}
.public-success h1 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.public-success-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.success-order {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
}
.success-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.success-order-count {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--soft);
  font-weight: 600;
}
.success-order-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.success-order-item:last-child { border-bottom: none; }
.success-order-item img,
.success-order-noimg {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-soft);
}
.success-order-noimg {
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--soft);
}
.success-order-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.success-order-info > strong {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.success-order-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.success-order-options span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12.5px;
  color: var(--ink);
}
.success-order-options em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--soft);
}
.success-order-code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
}
.public-success-note {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: left;
}
.public-success-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
}
.public-success-note p {
  margin: 4px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.public-success-note .success-offline {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
}
.public-success .full-button {
  margin-top: 6px;
}

.public-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.public-product-section {
  display: grid;
  gap: 12px;
}

.public-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.public-section-title h2 {
  margin: 0;
  font-size: 15px;
}

.public-section-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.public-product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.public-selection-guide {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.public-product-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  grid-template-areas:
    "media main"
    "action main";
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
}

.public-product-card:hover,
.public-product-card:focus,
.public-product-card.selected {
  border-color: var(--black);
  outline: none;
}

.public-product-card.selected {
  background: var(--accent-soft);
}

.public-product-card img,
.public-product-placeholder {
  grid-area: media;
  width: 108px;
  height: 136px;
  object-fit: cover;
  border-radius: 9px;
  background: var(--line);
}

.public-product-card strong {
  display: block;
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-product-card small {
  color: var(--muted);
  font-size: 12px;
}

.public-product-card > [data-public-product-select] {
  grid-area: action;
  width: 108px;
  justify-self: stretch;
  min-height: 32px;
  padding: 7px 8px;
}

.public-product-main { grid-area: main; }

.public-product-specs {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.public-product-specs > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.public-product-specs b {
  padding-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.public-product-specs > div > span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.public-size-chip,
.public-spec-empty {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 11px;
}

.public-spec-empty { color: var(--muted); }
.color-code-chip.is-summary { min-height: 25px; padding: 3px 6px; font-size: 11px; }

.public-consent {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.public-consent h2 {
  margin: 0;
  font-size: 15px;
}

.public-consent pre {
  white-space: pre-wrap;
  margin: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.public-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.public-check input {
  width: 18px;
  min-height: 18px;
}

.is-hidden {
  display: none !important;
}

.is-page-hidden {
  display: none !important;
}

@media (max-width: 1440px) {
  .summary-grid,
  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .layout,
  .execution-grid,
  .sales-layout,
  .onboarding-card {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters,
  .shipping-fields,
  .flow-steps,
  .public-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .content {
    padding: 20px 14px 36px;
  }

  .page-header,
  .card-heading {
    flex-direction: column;
  }

  /* Display 역할 브레이크포인트 축소 — 플루이드 clamp() 대신 고정값 단계 하강 (15-UI-SPEC.md) */
  .page-header h1 {
    font-size: 22px;
  }

  .header-actions,
  .header-actions button,
  .builder-actions,
  .builder-actions button {
    width: 100%;
  }

  .summary-grid,
  .campaign-list,
  .channel-grid,
  .stepper {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .product-card-actions,
  .product-card > button {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .p360-gallery-scroll {
    padding: 0 var(--space-3) var(--space-3);
  }

  .public-form-page {
    padding: 10px;
  }

  .public-form-card {
    border-radius: 18px;
  }

  .public-form-cover {
    min-height: 0;
    aspect-ratio: 4 / 1;
  }

  .cover-upload-control.has-cover {
    width: 140px;
    grid-template-columns: 140px;
  }

  .cover-upload-control.has-cover .upload-field { width: 140px; }

  .cover-preview {
    width: 140px;
  }

  .public-form {
    gap: 14px;
    padding: 20px 18px 24px;
  }

  .public-form h1 {
    max-width: 100%;
    font-size: 26px;
    line-height: 1.18;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .public-form-desc {
    font-size: 16px;
    line-height: 1.45;
  }

  .public-upload-schedule {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 11px 12px;
  }

  .public-upload-schedule strong {
    font-size: 15px;
    text-align: left;
  }

  .public-section-title h2,
  .public-form label,
  .public-consent h2 {
    font-size: 14px;
  }

  .public-product-card {
    gap: 10px;
    padding: 10px;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .public-product-card img,
  .public-product-placeholder {
    width: 96px;
    height: 120px;
    object-fit: cover;
  }

  .public-product-card > [data-public-product-select] {
    width: 96px;
    min-height: 36px;
  }

  .public-product-card strong {
    white-space: normal;
    font-size: 15px;
    line-height: 1.35;
  }

  .public-product-card small,
  .public-consent pre {
    font-size: 12px;
  }

  .public-product-list {
    grid-template-columns: 1fr;
  }

  .response-panel-header,
  .response-actions,
  .response-actions select,
  .response-actions button {
    width: 100%;
  }

  .product-detail-hero {
    min-height: 360px;
  }

  .manual-product-grid {
    grid-template-columns: 1fr;
  }

  .manual-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manual-detail-page header {
    padding: 34px 22px 24px;
  }

  .manual-detail-page dl {
    grid-template-columns: 1fr;
  }

  .manual-product-field.full {
    grid-column: auto;
  }

  .product-detail-info {
    padding: 28px 22px 24px;
  }

  .product-detail-info h2 {
    font-size: 24px;
  }

  .product-detail-meta div {
    display: grid;
    gap: 4px;
  }

  .product-detail-meta dd {
    text-align: left;
  }

  .product-detail-frame {
    height: 560px;
  }
}


.product-detail-dialog:has(.detail-page-only) {
  position: relative;
  width: min(1080px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
}

.product-detail-card.detail-page-only {
  display: block;
  width: 100%;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}

.product-detail-card.detail-page-only:has(.product-detail-frame) {
  height: calc(100vh - 28px);
  overflow: hidden;
}

.detail-page-only .product-detail-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.public-product-main {
  min-width: 0;
}

.public-product-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.option-group {
  display: grid;
  gap: 6px;
}

.option-group b {
  font-size: 12px;
}

.option-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.option-chip {
  min-width: 40px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.option-chip.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--surface);
}

.color-option-chip { display: inline-flex; align-items: center; }

.color-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 8px 3px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.color-code-chip.is-option {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.color-code-swatch {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 4px;
  background: var(--color-chip, #d8dce2);
}

.public-product-detail-summary,
.public-detail-color-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.public-detail-size { margin-left: 4px; }

.public-detail-code {
  padding-right: 10px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.product-detail-dialog > .product-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 120;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: var(--shadow-1);
}

.option-empty {
  color: var(--muted);
  font-size: 12px;
}

/* 데이터 출처 라벨 + 게시물 링크 등록 (P0) */
.data-source-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(120, 120, 130, 0.12);
  color: var(--muted);
}
.data-source-note[data-source="live"] {
  background: rgba(34, 168, 96, 0.14);
  color: var(--green);
}
.data-source-note[data-source="local"] {
  background: rgba(183, 121, 31, 0.16);
  color: var(--amber);
}
.data-source-note[data-source="sample"] {
  background: rgba(120, 120, 130, 0.14);
  color: var(--muted);
}

.post-track-status {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* 응답 폼 주소 검색 (P1) */
.public-address-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.public-address-row label {
  flex: 1 1 auto;
}
.public-address-row .secondary-button {
  flex: 0 0 auto;
  height: 44px;
  white-space: nowrap;
}

/* 게시물 추이 차트 (P1) */
.metric-trend-dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 520px;
  width: 92vw;
}
.metric-trend-dialog::backdrop {
  background: rgba(16, 18, 24, 0.45);
}
.metric-trend-card {
  padding: 22px;
}
.metric-trend-card h3 {
  margin: 0 0 4px;
}
.metric-trend-card .trend-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.metric-trend-svg {
  width: 100%;
  height: 200px;
}
.metric-trend-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.metric-trend-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.row-trend-button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* 쿠폰코드 + ROI 랭킹 (P2) */
.coupon-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(0, 102, 204, 0.1);
  color: var(--accent-strong);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.roi-ranking {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border, rgba(20, 22, 28, 0.1));
}
.shipping-cost-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.shipping-cost-field input {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid var(--border, rgba(20, 22, 28, 0.14));
  border-radius: 8px;
  font-size: 13px;
}
.roi-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.roi-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(20, 22, 28, 0.08));
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}
.roi-rank {
  flex: 0 0 24px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.roi-main {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
}
.roi-main small {
  color: var(--muted);
  font-size: 11px;
}
.roi-cost {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--muted);
  gap: 2px;
}
.roi-cost input {
  width: 96px;
  padding: 6px 8px;
  border: 1px solid var(--border, rgba(20, 22, 28, 0.14));
  border-radius: 8px;
  font-size: 12px;
}
.roi-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--muted);
  flex: 2 1 240px;
}
.roi-figures strong.up {
  color: var(--green);
}
.roi-figures strong.down {
  color: var(--red);
}
.roi-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.roi-badge.good {
  background: rgba(34, 168, 96, 0.16);
  color: var(--green);
}
.roi-badge.mid {
  background: rgba(0, 102, 204, 0.14);
  color: var(--accent-strong);
}
.roi-badge.low {
  background: rgba(120, 120, 130, 0.14);
  color: var(--muted);
}

/* 운영 알림 센터 (고도화) */
.alert-count {
  min-width: 28px;
  height: 28px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: rgba(120, 120, 130, 0.14);
  color: var(--muted);
}
.alert-count[data-level="high"] { background: rgba(214, 69, 69, 0.16); color: var(--red); }
.alert-count[data-level="mid"] { background: rgba(183, 121, 31, 0.18); color: var(--amber); }
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  background: rgba(120, 120, 130, 0.06);
  border-left: 3px solid rgba(120, 120, 130, 0.4);
}
.alert-item .alert-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}
.alert-item.high { background: rgba(214, 69, 69, 0.08); border-left-color: var(--red); }
.alert-item.high .alert-dot { background: var(--red); }
.alert-item.mid { background: rgba(183, 121, 31, 0.1); border-left-color: var(--amber); }
.alert-item.mid .alert-dot { background: var(--amber); }
.alert-item.low { background: rgba(0, 102, 204, 0.07); border-left-color: var(--accent); }
.alert-item.low .alert-dot { background: var(--accent); }
.alert-empty {
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* AI 요약 박스 (3) */
.ai-summary-box {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 102, 204, 0.25);
  border-radius: var(--radius-md);
  background: rgba(0, 102, 204, 0.06);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ============================================================
   EDITORIAL THEME LAYER (monochrome) — gi-studio 참고 리스타일
   기존 규칙 위에 얹는 레이어(소스 순서상 후순위 = 우선 적용). 롤백 시 이 블록만 제거.
   ============================================================ */

.sidebar { border-right: 1px solid var(--line-strong); }

/* 섹션 라벨(eyebrow): 모노스페이스 대문자 트래킹 */
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--soft);
}

/* 헤드라인: Display 역할(26px/600, 논-플루이드) */
.page-header h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 600;
  line-height: 1.2;
}
h2 { letter-spacing: -0.02em; font-weight: 600; }
h3 { letter-spacing: -0.01em; }

/* 매거진 디바이더: 페이지 헤더 하단 룰 */
.page-header {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 18px;
}

/* LIVE 인디케이터: 단일 액센트 */
.live-pill {
  background: var(--accent);
  color: var(--surface);
  font-family: var(--mono);
  letter-spacing: 0.16em;
  border-radius: 2px;
}
.live-dot {
  font-family: var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 10.5px;
}
.live-dot i {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

/* 네비게이션: 활성 = 액센트 좌측 바 + 잉크 */
.nav-item {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-item.active {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* 버튼: 잉크/스퀘어 에디토리얼 */
.primary-button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  box-shadow: none;
}
.primary-button:hover { background: var(--black); border-color: var(--black); }
.ghost-button,
.secondary-button {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: none;
}
.ghost-button:hover,
.secondary-button:hover { border-color: var(--ink); }

/* 카드: 헤어라인 + 작은 라운드, 그림자 절제 */
.stat-card,
.campaign-card,
.onboarding-card,
.alert-card,
.product-card,
.channel-card,
.roi-row {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
}
.report-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: none;
}

/* 핵심 지표(stat): 큰 수치 + 모노 라벨 */
.stat-card > span:first-child {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10.5px;
  color: var(--soft);
}
.stat-card strong {
  font-size: 24px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.stat-card small { color: var(--muted); }

/* 숫자/코드: 등폭 정렬 */
.coupon-code,
.roi-figures,
.lift-cards strong,
table td strong {
  font-variant-numeric: tabular-nums;
}

/* 테이블 헤더: 모노 대문자 */
table thead th {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--soft);
  border-bottom: 1px solid var(--line-strong);
}
table tbody td { border-bottom: 1px solid var(--line); }

/* 입력·세그먼트 라운드 정리 */
input,
select,
textarea,
.segment { border-radius: var(--radius); }

/* 데이터 출처 라벨·알림: 액센트 정합 */
.data-source-note[data-source="live"] { background: rgba(46, 125, 91, 0.12); color: var(--green); }
.alert-item.high { border-left-color: var(--accent); background: rgba(197, 64, 42, 0.07); }
.alert-item.high .alert-dot { background: var(--accent); }
.alert-count[data-level="high"] { background: rgba(197, 64, 42, 0.14); color: var(--accent); }

/* ============================================================
   EDITORIAL — 화면 심화(판매 분석·인플루언서 표) + 액센트/여백 디테일
   ============================================================ */

/* 여백 리듬(저위험: 그리드 간격만 약간 키움) */
.summary-grid { gap: 12px; }
.channel-grid { gap: 12px; margin-top: 16px; }
.sales-layout { margin-top: 24px; }

/* 세그먼트: 스퀘어 + 모노 라벨 */
.segment { border-radius: var(--radius); padding: 3px; }
.segment button {
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
}
.segment button.active { background: var(--ink); color: var(--paper); }

/* 필터/폼 라벨: 모노 캡션 */
.filters label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}

/* 판매 분석 — 트렌드 차트 */
.trend-panel { border-radius: var(--radius); }
.trend-bar { border-radius: 2px; background: var(--line-strong); }
.trend-bar.upload-day { background: var(--ink); }
.trend-bar.upload-day::after { background: rgba(0, 102, 204, 0.55); }
.trend-bar span { font-family: var(--mono); font-weight: 600; }
.upload-marker-label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  color: var(--accent);
}

/* 판매 분석 — 리프트·채널 카드: 모노 라벨 + 큰 등폭 수치 */
.lift-cards article,
.channel-card {
  border-radius: var(--radius);
  background: var(--surface);
}
.lift-cards span,
.channel-card span,
.channel-card small {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}
.lift-cards strong,
.channel-card strong {
  font-size: 24px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
#salesLift { color: var(--accent); }

/* 인플루언서 표 — 상태 배지: 플랫 모노 */
.status-badge {
  border-radius: 3px;
  min-height: 22px;
  padding: 0 7px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 10.5px;
  font-weight: 600;
}
.status-badge.uploaded,
.status-badge.settled { background: rgba(46, 125, 91, 0.12); color: var(--green); }
.status-badge.pending { background: rgba(108, 102, 91, 0.12); color: var(--muted); }
.status-badge.sent { background: rgba(146, 112, 24, 0.14); color: var(--amber); }

/* 변화량(Δ) 배지: 모노 등폭 */
.delta {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.delta.up { background: rgba(46, 125, 91, 0.12); color: var(--green); }
.delta.down { background: rgba(197, 64, 42, 0.12); color: var(--accent); }

/* 표 — 행 호버 + 계정/캡션 정리 + 숫자 등폭 */
table tbody tr:hover { background: var(--surface-soft); }
table td { font-variant-numeric: tabular-nums; }
.account-cell a { font-weight: 600; letter-spacing: -0.01em; }
.account-cell span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  color: var(--soft);
}

.seeding-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.seeding-table {
  min-width: 1180px;
}

.seeding-table th,
.seeding-table td {
  vertical-align: middle;
}

.seeding-product-cell {
  display: grid;
  gap: 5px;
  min-width: 210px;
}

.seeding-product-cell small,
.estimate-label {
  color: var(--soft);
  font-size: 11px;
}

.seeding-note-input {
  min-width: 170px;
}

.seeding-cost-input {
  width: 120px;
}

.growth-badge {
  display: inline-flex;
  margin: 5px 5px 0 0;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.growth-badge.up {
  color: var(--green);
  background: rgba(46, 125, 91, 0.12);
}

.growth-badge.down {
  color: var(--red);
  background: rgba(197, 64, 42, 0.12);
}

.growth-badge.new {
  color: var(--amber);
  background: rgba(146, 112, 24, 0.14);
}

.campaign-briefing {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.briefing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.briefing-actions select {
  min-width: 240px;
}

.campaign-briefing-output {
  margin-top: 16px;
}

.campaign-product-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.campaign-product-config {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.shipping-detail-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-3);
}

.shipping-detail-dialog::backdrop { background: rgba(18, 21, 28, 0.48); }
.shipping-detail-card { padding: 24px; }
.shipping-detail-header,
.shipping-detail-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.shipping-detail-header { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.shipping-detail-header h3 { margin: 4px 0 6px; font-size: 24px; }
.shipping-detail-header p:last-child { margin: 0; color: var(--soft); }
.shipping-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-bottom: 1px solid var(--line); }
.shipping-detail-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.shipping-detail-list > div:nth-child(odd):not(.shipping-detail-wide) { padding-right: 20px; }
.shipping-detail-list > div:nth-child(even):not(.shipping-detail-wide) { padding-left: 20px; border-left: 1px solid var(--line); }
.shipping-detail-list .shipping-detail-wide { grid-column: 1 / -1; }
.shipping-detail-list dt { margin-bottom: 6px; color: var(--soft); font-size: 12px; }
.shipping-detail-list dd { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.shipping-detail-empty { color: var(--soft); }
.shipping-detail-product { display: grid; gap: 4px; padding: 18px 0; }
.shipping-detail-product span,
.shipping-detail-product small { color: var(--soft); }
.shipping-detail-product strong { font-size: 16px; }
.shipping-detail-footer { align-items: center; }
.shipping-detail-footer small { color: var(--soft); overflow-wrap: anywhere; }
.response-row-actions,
.seeding-row-actions { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }

@media (max-width: 640px) {
  .shipping-detail-card { padding: 18px; }
  .shipping-detail-list { grid-template-columns: 1fr; }
  .shipping-detail-list > div,
  .shipping-detail-list > div:nth-child(odd):not(.shipping-detail-wide),
  .shipping-detail-list > div:nth-child(even):not(.shipping-detail-wide) { grid-column: 1; padding: 14px 0; border-left: 0; }
  .shipping-detail-footer { align-items: stretch; flex-direction: column; }
}

.campaign-product-config > .product-thumb-image {
  grid-row: 1 / span 2;
  width: 80px;
  height: 100px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.campaign-product-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.campaign-product-copy > strong,
.campaign-product-copy > small {
  overflow-wrap: anywhere;
}

.campaign-color-quota-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.campaign-color-quota-row {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(88px, 1fr) auto;
  align-items: end;
  gap: 8px;
  min-width: 0;
  padding: 8px 36px 8px 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.campaign-color-code {
  align-self: center;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.campaign-color-quota-row label {
  font-size: 10px;
}

.campaign-color-quota-row input {
  min-height: 32px;
  padding: 5px 8px;
}

.campaign-color-quota-row button {
  min-height: 32px;
  white-space: nowrap;
}

.campaign-color-quota-row .campaign-color-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-grid;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  place-items: center;
  border: 1px solid #d92d20;
  border-radius: 50%;
  background: #ffffff;
  color: #d92d20;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.campaign-color-quota-row .campaign-color-remove:hover,
.campaign-color-quota-row .campaign-color-remove:focus-visible {
  background: #fff1f0;
}

.campaign-product-management {
  grid-column: 2;
  display: grid;
  grid-template-columns: minmax(160px, 240px) auto;
  align-items: end;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.campaign-product-remove {
  min-height: 38px;
  white-space: nowrap;
}

.campaign-product-config label {
  gap: 5px;
  font-size: 11px;
}

.campaign-product-config input,
.campaign-product-config select {
  min-height: 38px;
}

.public-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.public-category-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.public-category-tabs button.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--surface);
}

.public-product-category {
  display: block;
  margin-bottom: 5px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
}

.public-guide {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.public-guide > h2,
.public-guide-block h3,
.public-guide-block ol {
  margin: 0;
}

.public-guide-block {
  display: grid;
  gap: 7px;
}

.public-required-mention {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  background: var(--surface);
}

.public-required-mention h3,
.public-required-mention p {
  margin: 0;
}

.public-required-mention h3 {
  font-size: 13px;
}

.public-required-mention p {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.public-guide-block h3 {
  font-size: 13px;
}

.public-guide-block ol {
  display: grid;
  gap: 5px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .briefing-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .briefing-actions select {
    min-width: 0;
    width: 100%;
  }

  .campaign-product-settings,
  .campaign-product-config {
    grid-template-columns: 1fr;
  }

  .campaign-product-config .product-thumb-image {
    grid-row: auto;
    width: 100%;
    height: 180px;
    object-fit: contain;
  }

  .campaign-color-quota-list,
  .campaign-product-management {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .campaign-color-quota-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }
}

/* 주소 검색: 팝업 대신 페이지 내 임베드 모달 (팝업 차단 회피) */
.postcode-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 20, 15, 0.5);
}
.postcode-modal {
  width: 100%;
  max-width: 420px;
  height: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.postcode-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}
.postcode-close {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
.postcode-embed {
  flex: 1;
  min-height: 0;
}
.postcode-embed > div {
  width: 100% !important;
  height: 100% !important;
}

/* 열 정렬 + 열별 필터 (인플루언서 리스트 · 응답 표) */
table thead th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table thead th.sortable:hover {
  color: var(--ink);
}
table thead th.sortable::after {
  content: "↕";
  margin-left: 4px;
  opacity: 0.35;
  font-size: 10px;
}
table thead th.sortable.sort-asc::after {
  content: "↑";
  opacity: 1;
  color: var(--accent);
}
table thead th.sortable.sort-desc::after {
  content: "↓";
  opacity: 1;
  color: var(--accent);
}
.url-cell input {
  width: 100%;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 5px 8px;
  font-size: 11.5px;
  background: var(--surface);
  color: var(--ink);
}
.url-cell input:focus {
  outline: none;
  border-color: var(--line-strong);
}
.url-cell input:disabled {
  opacity: 0.5;
}
.row-delete-button {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  color: var(--accent);
  font-size: 12px;
  cursor: pointer;
  padding: 3px 10px;
}
.row-delete-button:hover {
  border-color: var(--accent);
}
.row-delete-button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* ============================================================
   콘텐츠 보드 — 브랜더진 스튜디오 구조(카드 그리드 + 상세 모달)
   ============================================================ */
.content-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 16px;
}
.content-campaign-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.content-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.content-tab span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0 6px;
}
.content-tab.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.content-tab.active span { color: var(--paper); background: rgba(255, 255, 255, 0.18); }
.content-controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-sort-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 600;
  color: var(--soft);
}
.content-sort-field select,
#contentSearch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 12.5px;
  background: var(--surface);
  color: var(--ink);
}
#contentSearch { min-width: 180px; }
.content-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
  margin: 0 0 12px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1050px) {
  .content-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.content-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}
.content-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.content-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.content-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface-soft);
  overflow: hidden;
}
.content-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.content-card-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--soft);
  font-size: 12px;
}
.content-card-type {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 20, 15, 0.72);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.content-card-info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 72px;
  padding: 10px 48px 12px 12px;
}
.content-favorite-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #7b8490;
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.content-favorite-button:hover {
  background: #fff0f1;
  color: #ff5a5f;
  transform: scale(1.06);
}
.content-favorite-button.is-active {
  background: transparent;
  color: #ff5a5f;
}
.content-favorite-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.content-card-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.content-card-handle {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
}
.content-card-metrics {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.content-card-product {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-card-count {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(22, 20, 15, 0.68);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
}
.content-card-count::before { content: "▦"; margin-right: 3px; font-size: 9px; }

/* 상단 업데이트 상태바 */
.content-update-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.content-update-status {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--soft);
}
.content-update-btn {
  padding: 6px 14px;
  font-size: 12.5px;
}

/* 상세 모달 — 네트워크 모드 메타(카테고리·캡션) */
.content-modal-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.content-modal-meta p {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}
.content-modal-caption {
  max-height: 180px;
  overflow-y: auto;
  white-space: pre-wrap;
  color: var(--muted) !important;
  font-size: 12.5px !important;
}

/* 상세 모달 */
.content-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.content-modal.is-open { display: flex; }
.content-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 20, 15, 0.55);
}
.content-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  width: min(860px, 100%);
  max-height: 88vh;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-3);
}
.content-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.content-modal-body {
  display: contents;
}
.content-modal-media {
  position: relative;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.content-modal-media img {
  width: 100%;
  height: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}
/* 슬라이드쇼: 화살표·카운터·도트 */
.content-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.content-slide-nav.prev { left: 12px; }
.content-slide-nav.next { right: 12px; }
.content-slide-nav:hover { background: var(--surface); }
.content-slide-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(22, 20, 15, 0.6);
  color: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  z-index: 2;
}
.content-slide-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(22, 20, 15, 0.45);
  z-index: 2;
  max-width: 80%;
  flex-wrap: wrap;
  justify-content: center;
}
.content-slide-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.content-slide-dot.active { background: var(--surface); }
.content-modal-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 24px;
  overflow-y: auto;
}
.content-modal-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.content-modal-head strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.content-modal-head a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}
.content-modal-date {
  font-size: 11.5px;
  color: var(--soft);
}
.content-modal-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.content-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.content-metric span {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 9.5px;
  color: var(--soft);
}
.content-metric strong {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.content-modal-campaign {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.content-modal-eyebrow {
  width: 100%;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  color: var(--soft);
}
.content-modal-campaign strong { font-size: 14px; font-weight: 600; }
.content-modal-campaign .content-card-type {
  position: static;
  background: var(--surface-soft);
  color: var(--muted);
}
.content-modal-link {
  width: 100%;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.brandazine-filters {
  grid-template-columns: minmax(240px, 520px) auto;
  align-items: end;
  margin-top: var(--space-4);
}

.brandazine-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0;
}

.brandazine-summary > div {
  display: grid;
  gap: 2px;
}

.brandazine-summary span,
.brandazine-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.brandazine-thumb {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--muted);
  font-weight: 700;
}
.content-source-folder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.content-source-folder .content-modal-eyebrow { grid-column: 1 / -1; }
.content-source-folder code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.content-source-folder-copy {
  align-self: start;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
}
.content-source-folder-copy:hover,
.content-source-folder-copy:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 720px) {
  /* 콘텐츠 상세 모달: 세로 스택 + 스크롤 */
  .content-modal { padding: 0; }
  .content-modal-card {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
  }
  .content-modal-media { position: sticky; top: 0; }
  .content-modal-media img { max-height: 46vh; }
  .content-modal-detail { padding: 20px 18px 28px; }
  .content-modal-metrics { grid-template-columns: repeat(3, 1fr); }
  .content-slide-nav { width: 44px; height: 44px; }

  /* 콘텐츠 컨트롤: 세로 배치 + 가로 스크롤 탭 */
  .content-controls { flex-direction: column; align-items: stretch; gap: 10px; }
  .content-campaign-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .content-campaign-tabs::-webkit-scrollbar { display: none; }
  .content-tab { flex-shrink: 0; }
  .content-controls-right { width: 100%; }
  .content-controls-right #contentSearch { flex: 1; min-width: 0; }
}

/* 모바일 최적화 (콘텐츠 그리드·제출완료·터치 타깃) */
@media (max-width: 560px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .content-card-name { font-size: 12.5px; }
  .content-card-handle { font-size: 10px; }
  .content-card-metrics { gap: 8px; font-size: 11px; }
  .content-card-info { padding: 8px 42px 10px 10px; }

  /* 제출 완료 화면 */
  .public-success { padding: 30px 18px 26px; }
  .public-success h1 { font-size: 26px; }
  .success-order-item { padding: 12px; gap: 12px; }
  .success-order-item img,
  .success-order-noimg { width: 54px; height: 54px; }

  /* 터치 타깃 최소 크기 확보 */
  .nav-item { padding-top: 12px; padding-bottom: 12px; }
  .primary-button,
  .ghost-button,
  .secondary-button { min-height: 46px; }
}

/* ============================================================
   PRODUCT UI STYLEGUIDE — 블루+뉴트럴 시스템 (최종 오버라이드)
   버튼/인풋/칩/탭/카드/알럿/엘리베이션/포커스 정합
   ============================================================ */

/* 타이포 스케일 (Pretendard) */
body { letter-spacing: -0.011em; }
h1, .h1 { font-weight: 600; letter-spacing: -0.03em; }
h2, .h2 { font-weight: 600; letter-spacing: -0.02em; }
h3, .h3 { font-weight: 600; letter-spacing: -0.015em; }

/* 카드 — 엘리베이션 Level 1 + 라운드 lg */
.report-card,
.stat-card,
.campaign-card,
.onboarding-card,
.product-card,
.channel-card,
.roi-row,
.alert-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.report-card { transition: box-shadow 0.15s ease; }

/* 버튼 — Primary(블루 채움) / Secondary(블루 아웃라인) / Ghost / Text */
.primary-button {
  background: var(--accent);
  color: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.08s ease;
}
.primary-button:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.primary-button:active { background: var(--accent-press); border-color: var(--accent-press); box-shadow: none; transform: scale(0.95); }
.primary-button:disabled { opacity: 0.5; box-shadow: none; }
.primary-button:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; }

.secondary-button {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.secondary-button:hover { background: var(--accent-soft); border-color: var(--accent-strong); }
.secondary-button:active { background: var(--accent-soft); }

.ghost-button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.ghost-button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* 세그먼트/탭 — 활성 = 블루 */
.segment { background: var(--surface-soft); border: 1px solid var(--line); border-radius: var(--radius-md); }
.segment button { border-radius: var(--radius-sm); color: var(--muted); }
.segment button.active { background: var(--accent); color: var(--surface); }
.response-scope-button.active,
.sales-period button.active { background: var(--accent); color: var(--surface); border-color: var(--accent); }

/* 인풋/셀렉트/텍스트에어리어 — 라운드 + 블루 포커스 링 */
input,
select,
textarea {
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input:focus,
select:focus,
textarea:focus,
.search-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
input[aria-invalid="true"],
.input-error { border-color: var(--red); }

/* 상태 배지 — 라운드 pill + 시맨틱 소프트 */
.status-badge { border-radius: var(--radius-full); font-weight: 600; }
.status-badge.uploaded,
.status-badge.settled { background: var(--green-soft); color: var(--green); }
.status-badge.pending { background: var(--surface-soft); color: var(--muted); }
.status-badge.sent { background: var(--amber-soft); color: var(--amber); }
.status-badge.unpaid { background: var(--surface-soft); color: var(--muted); font-size: 10.5px; }
.status-badge.paid { background: var(--info-soft); color: var(--info); font-size: 10.5px; }

/* 알럿 — 4 시맨틱 (Success/Info/Warning/Error) */
.alert-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  border-left-width: 3px;
}
.alert-item.high { border-left-color: var(--red); background: var(--red-soft); }
.alert-item.high .alert-dot { background: var(--red); }
.alert-item.medium { border-left-color: var(--amber); background: var(--amber-soft); }
.alert-item.low { border-left-color: var(--accent); background: var(--info-soft); }
.alert-count[data-level="high"] { background: var(--red-soft); color: var(--red); }

/* LIVE 인디케이터 · 데이터 소스 라벨 → 블루 정합 */
.live-pill { background: var(--accent); }
.live-dot i { background: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.data-source-note[data-source="live"] { background: var(--green-soft); color: var(--green); }

/* 네비 활성 — 블루 좌측바 + 소프트 배경 */
.nav-item { border-radius: var(--radius-md); font-weight: 600; color: var(--muted); }
.nav-item:hover { background: var(--surface-soft); color: var(--ink); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* 콘텐츠 보드 — 스타일가이드 정합 */
.content-tab { border-radius: var(--radius-sm); }
.content-tab.active { background: var(--accent); border-color: var(--accent); }
.content-card { border-radius: var(--radius-lg); box-shadow: none; transition: border-color 0.12s ease, transform 0.12s ease; }
.content-card:hover { border-color: var(--line-strong); }
.content-update-btn { border-radius: var(--radius-sm); }
.content-modal-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }
.content-modal-link,
.content-modal-head a { color: var(--accent); }

/* 커버/버튼 라운드 복구(에디토리얼 0 → 라운드) */
.campaign-cover { border-radius: var(--radius-md); }
.campaign-cover-actions .campaign-link-button { border-radius: var(--radius-sm); }

/* 전역 키보드 포커스 링 (접근성) */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 제출 완료 화면 체크 — 블루 시스템에서도 성공은 그린 유지 */
.public-success .full-button { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   촬영 레퍼런스 — 빌더 업로더 + 응답 폼 갤러리 + 확대 뷰어
   ============================================================ */
/* 빌더: 레퍼런스 업로더 */
.guide-reference-uploader { display: grid; gap: 10px; margin-bottom: 16px; }
.helper-inline { font-size: 11.5px; color: var(--soft); font-weight: 400; }
.guide-reference-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, 112px);
  gap: 10px;
}
.guide-reference-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.guide-reference-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--surface-soft); }
.guide-reference-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: none; border-radius: 50%; background: rgba(18,21,28,.72); color: var(--surface);
  font-size: 15px; line-height: 1; cursor: pointer;
}

#guideReferenceTrigger {
  min-height: 42px;
  padding: 9px 12px;
}

#guideReferenceTrigger strong { font-size: 12px; }

/* 응답 폼: 레퍼런스 갤러리 (가이드 최상단) */
.reference-guide {
  margin-bottom: 18px; padding: 16px; border-radius: var(--radius-lg);
  background: var(--surface-soft); border: 1px solid var(--line);
}
.reference-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.reference-guide-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.reference-guide-head .reference-guide-title { margin-bottom: 0; }
.reference-gallery-position { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.reference-gallery-shell { position: relative; }
.reference-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: thin;
}
.reference-gallery-nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  box-shadow: var(--shadow-1); font-size: 19px; line-height: 1; cursor: pointer;
}
.reference-gallery-nav.prev { left: 8px; }
.reference-gallery-nav.next { right: 8px; }
.reference-item {
  scroll-snap-align: start; padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius-md); overflow: hidden; background: var(--surface);
  cursor: zoom-in; aspect-ratio: 4 / 5;
}
.reference-item img { width: 100%; height: 100%; object-fit: contain; display: block; background: var(--surface); }

/* 확대 뷰어 (라이트박스) */
.reference-viewer {
  position: fixed; inset: 0; z-index: 10000; display: flex; flex-direction: column;
  background: rgba(10, 12, 16, 0.94); backdrop-filter: blur(2px);
}
.reference-viewer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; flex: 0 0 auto;
}
.reference-viewer-close, .reference-viewer-download {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: none; border-radius: 50%; background: rgba(255,255,255,.12);
  color: var(--surface); font-size: 20px; cursor: pointer; text-decoration: none;
}
.reference-viewer-main { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 8px; }
.reference-viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.reference-viewer-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: none; border-radius: 50%; background: rgba(255,255,255,.14);
  color: var(--surface); font-size: 26px; cursor: pointer;
}
.reference-viewer-nav.prev { left: 12px; }
.reference-viewer-nav.next { right: 12px; }
.reference-viewer-strip {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 14px 16px 20px;
  overflow-x: auto; justify-content: center; scrollbar-width: none;
}
.reference-viewer-strip::-webkit-scrollbar { display: none; }
.reference-viewer-thumb {
  flex: 0 0 auto; width: 56px; height: 56px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: .6;
}
.reference-viewer-thumb.active { border-color: var(--surface); opacity: 1; }
.reference-viewer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 560px) {
  .reference-guide-title { font-size: 15px; }
  .reference-gallery { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
  .reference-gallery { scrollbar-width: none; }
  .reference-gallery::-webkit-scrollbar { display: none; }
  .reference-gallery-nav { width: 28px; height: 28px; font-size: 16px; }
  .reference-gallery-nav.prev { left: 5px; }
  .reference-gallery-nav.next { right: 5px; }
  .reference-viewer-thumb { width: 48px; height: 48px; }
}

/* === 운영 스냅샷 (HOME) — 14일 추세 + rule-based 요약 ================== */
.ops-snapshot-section { display: flex; flex-direction: column; gap: 14px; }
.ops-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ops-summary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ops-summary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
}
.ops-trend-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.ops-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.ops-legend-item::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: var(--radius-full);
}
.ops-legend-responses::before { background: var(--accent); }
.ops-legend-uploads::before { background: var(--green); }
.ops-trend-chart {
  width: 100%;
  overflow-x: auto;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px;
}
.ops-trend-svg { width: 100%; height: auto; min-width: 320px; display: block; }
.ops-axis { stroke: var(--line-strong); stroke-width: 1; }
.ops-axis-label { fill: var(--soft); font-size: 11px; font-family: var(--mono); }
.ops-line { stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.ops-line-responses { stroke: var(--accent); }
.ops-line-uploads { stroke: var(--green); }
.ops-empty {
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* === 상품360 탭 ======================================================== */
.product360-section { display: flex; flex-direction: column; gap: 16px; }
.product360-actions { display: flex; align-items: center; gap: 12px; }
.product360-updated { font-size: 0.8rem; color: var(--soft); }
.product360-controls { display: flex; flex-direction: column; gap: 12px; }
#product360Search {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
}
#product360Search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.product360-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.product360-chip {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.product360-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.product360-message { color: var(--muted); font-size: 0.88rem; min-height: 1em; margin: 0; }
.product360-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.product360-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.product360-thumb { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: var(--surface-soft); }
.product360-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--soft); font-size: 0.82rem; }
.product360-card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.product360-code { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); }
.product360-name { font-size: 0.85rem; color: var(--muted); }
.product360-meta { font-size: 0.78rem; color: var(--soft); }
.product360-badge {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}
.product360-empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

/* 상품360 — 필터 셀렉트 / 상세 모달 / 토스트 */
.product360-selects { display: flex; gap: 12px; flex-wrap: wrap; }
.product360-selects label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.78rem; color: var(--muted);
}
.product360-selects select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font-size: 0.85rem; min-width: 120px;
}
.product360-card { cursor: pointer; transition: border-color 0.12s ease, transform 0.12s ease; }
.product360-card:hover { border-color: var(--line-strong); }
.product360-modal {
  border: none; border-radius: var(--radius-lg); padding: 28px; width: min(1180px, calc(100vw - 48px)); max-width: 1180px;
  max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-3); color: var(--ink); background: var(--surface);
}
.product360-modal::backdrop { background: rgba(18,21,28,0.45); }
.product360-modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.product360-modal-hero { display: grid; grid-template-columns: minmax(480px, 1.45fr) minmax(360px, 1fr); gap: 32px; align-items: start; }
.product360-modal-media { min-width: 0; border-radius: var(--radius-md); background: var(--surface-soft); overflow: hidden; }
.product360-modal-img { display: block; width: 100%; height: min(72vh, 800px); object-fit: contain; background: var(--surface-soft); }
.product360-modal-img-empty { display: grid; place-items: center; color: var(--soft); min-height: 560px; }
.product360-modal-summary { display: grid; align-content: start; min-width: 0; padding: 24px 12px 0 0; }
.product360-modal-summary .eyebrow { margin: 0 0 12px; color: var(--soft); }
.product360-modal-title { margin: 0; font-size: 30px; line-height: 1.25; letter-spacing: 0; word-break: keep-all; }
.product360-modal-code { width: fit-content; margin: 12px 0 26px; padding: 6px 9px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); font: 600 13px/1.2 var(--mono); }
.product360-modal-dl { display: grid; grid-template-columns: 82px minmax(0, 1fr) 82px minmax(0, 1fr); gap: 12px 16px; margin: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.product360-modal-dl dt { color: var(--soft); font-size: 0.82rem; }
.product360-modal-dl dd { margin: 0; color: var(--ink); font-size: 0.9rem; font-weight: 600; overflow-wrap: anywhere; }
.product360-modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.product360-override-editor { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.product360-override-editor h3 { margin: 0 0 4px; font-size: 0.95rem; }
.product360-override-editor p { margin: 0; color: var(--soft); font-size: 0.78rem; line-height: 1.5; }
.product360-override-field { display: grid; gap: 7px; color: var(--ink); font-size: 0.8rem; font-weight: 600; }
.product360-override-field input { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; text-transform: uppercase; }
.product360-override-drop { min-height: 150px; padding: 12px; border: 1px dashed #aeb9c9; border-radius: var(--radius-md); background: var(--surface-soft); display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.product360-override-drop:hover, .product360-override-drop.is-dragging { border-color: var(--primary); background: #eef6ff; }
.product360-override-drop img { width: 108px; height: 132px; object-fit: contain; background: #fff; border-radius: var(--radius-sm); }
.product360-override-drop span { color: var(--soft); font-size: 0.82rem; }
.product360-override-message { min-height: 18px; }
.product360-override-message.is-error { color: #b42318; }
.product360-override-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 560px) {
  .product360-override-drop { grid-template-columns: 88px 1fr; }
  .product360-override-drop img { width: 88px; height: 108px; }
}
.product360-toast { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.product360-toast-item {
  padding: 10px 16px; border-radius: var(--radius-md); background: var(--ink); color: var(--surface);
  font-size: 0.86rem; box-shadow: var(--shadow-2); opacity: 1; transition: opacity 0.3s ease, transform 0.3s ease;
}
.product360-toast-item.is-success { background: var(--green); }
.product360-toast-item.is-error { background: var(--red); }
.product360-toast-item.is-leaving { opacity: 0; transform: translateY(8px); }

/* 상품360 — 모달 사이즈 차트 섹션 */
.product360-sizechart { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 22px; }
.product360-sizechart-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.product360-sizechart-meta { font-weight: 400; color: var(--soft); margin-left: 8px; }
.product360-sizechart-scroll { max-width: 100%; overflow: visible; }
.product360-sizechart-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
.product360-sizechart-table th, .product360-sizechart-table td { min-width: 0; padding: 9px 7px; border: 1px solid var(--line); white-space: normal; text-align: center; overflow-wrap: anywhere; }
.product360-sizechart-table th:first-child, .product360-sizechart-table td:first-child { min-width: 52px; }
.product360-sizechart-table thead { background: var(--surface-soft); }
.product360-sizechart-table th { font-size: 0.75rem; font-weight: 500; color: var(--soft); }
.product360-sizechart-table td { font-family: var(--mono); font-size: 0.82rem; font-weight: 400; color: var(--ink); }
.product360-sizechart-table td:first-child { font-family: var(--sans); font-weight: 600; }
.product360-sizechart-tip { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin: 16px 0 0; }
.product360-sizechart-empty {
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}
.product360-sizechart-empty-body { display: block; margin-top: 8px; }

@media (max-width: 820px) {
  .product360-modal { width: calc(100vw - 24px); max-height: calc(100vh - 24px); padding: 20px; }
  .product360-modal-hero { grid-template-columns: 1fr; gap: 18px; }
  .product360-modal-img { height: auto; max-height: 520px; }
  .product360-modal-img-empty { min-height: 320px; }
  .product360-modal-summary { padding: 0; }
  .product360-modal-title { font-size: 24px; }
  .product360-modal-code { margin-bottom: 18px; }
  .product360-modal-dl { grid-template-columns: 82px minmax(0, 1fr); }
  .product360-sizechart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .product360-sizechart-table { width: max-content; min-width: 100%; table-layout: auto; }
  .product360-sizechart-table th, .product360-sizechart-table td { min-width: 64px; padding: 7px 9px; white-space: nowrap; text-align: left; }
}

.public-manual-detail {
  height: auto;
  overflow: visible;
}

.public-manual-detail > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--line);
}

.public-manual-detail #productDetailGalleryTarget { padding-bottom: 28px; }

.public-manual-detail .p360-gallery-scroll {
  max-height: none;
  overflow: visible;
}

.public-manual-detail .manual-detail-gallery {
  width: min(100%, 760px);
  padding: 20px;
}

.public-manual-detail .manual-detail-gallery img {
  max-height: calc(100vh - 250px);
  object-fit: contain;
}

.public-manual-detail .product360-sizechart {
  width: min(calc(100% - 40px), 760px);
  margin: 24px auto 0;
  padding: 24px 0 0;
}

.public-manual-detail .product360-sizechart-title {
  margin-bottom: 14px;
  font-size: 1rem;
  text-align: center;
}

.public-manual-detail .product360-sizechart-scroll { width: 100%; }
.public-manual-detail .product360-sizechart-table { margin: 0 auto; }

.public-manual-detail .product360-sizechart-table th,
.public-manual-detail .product360-sizechart-table td {
  min-width: 82px;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.9rem;
}

.public-manual-detail .product360-sizechart-table th:first-child,
.public-manual-detail .product360-sizechart-table td:first-child { min-width: 64px; }

.public-manual-detail .product360-sizechart-tip,
.public-manual-detail .product360-sizechart-empty { text-align: center; }

/* 연동 상태 배지 (INTEGRATIONS) — 디자인 토큰 준수 */
.int-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.int-row {
  display: grid;
  grid-template-columns: 14px minmax(140px, 1.2fr) auto 2fr;
  align-items: center;
  gap: 10px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.int-dot { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--line-strong); }
.int-ok .int-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.15); }
.int-warn .int-dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(183, 121, 31, 0.15); }
.int-off .int-dot { background: var(--soft); }
.int-name { font-weight: 600; color: var(--ink); }
.int-state { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.int-ok .int-state { color: var(--green); }
.int-warn .int-state { color: var(--amber); }
.int-hint { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.int-error { color: var(--red); }
@media (max-width: 640px) {
  .int-row { grid-template-columns: 14px 1fr auto; }
  .int-hint { grid-column: 2 / -1; }
}

/* 상품360 피커: 이미 캠페인에 담긴 항목 표시 */
.product-card.is-picked { border-color: var(--accent); background: var(--accent-soft); }

/* 시딩 상태(응답/발주완료/업로드) 드롭다운 — 표 안에 들어가므로 기본 select보다 조밀하게 */
.seeding-status-cell,
.seeding-count-cell {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.seeding-status-select {
  min-height: 30px;
  min-width: 96px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.shipping-status-select {
  min-height: 30px;
  min-width: 104px;
  padding: 0 28px 0 9px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.shipping-status-select:disabled {
  opacity: 0.6;
  cursor: progress;
}

.seeding-status-select:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* 변경 시각·방식(자동/수동)은 보조 정보라 약하게 */
.status-meta {
  color: var(--muted);
  font-size: 10px;
}

/* ERP 내보내기 이력 — 중복 발주 주의 신호라 상태 메타보다 눈에 띄게 */
.export-meta {
  color: var(--amber, #9a6a00);
  font-size: 10px;
  font-weight: 600;
}

/* 구글 시트 동기화 결과 — '매칭 확인 필요'가 있으면 눈에 띄어야 한다 */
.sheet-sync-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.sheet-sync-status.is-error {
  color: var(--red);
}

/* 게시물 URL 칸: 등록된 게시물은 '바로가기'로 열고, 입력란은 URL 추가용으로 비워 둔다 */
.url-cell {
  vertical-align: middle;
  text-align: center;
}

.post-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
}

.url-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.url-input-row input {
  min-height: 32px;
  font-size: 12px;
}

.url-error {
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
}
