:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #172033;
  --muted: #667085;
  --border: #dfe4ea;
  --primary: #f06423;
  --primary-dark: #d94f13;
  --success: #16865c;
  --danger: #c43d4b;
  --sidebar: #18212f;
  --brand: #f06423;
}

/* 관리자 화면 공통 톤: 본문 14px · 표 13px · 카드 제목 16px · 페이지 제목 20px, 강조색은 보라.
   고객용 정산서·로그인 화면은 :root 값(주황)을 그대로 쓴다. */
.app-shell {
  --bg: #f5f6fa;
  --surface-muted: #f7f8fb;
  --text: #111827;
  --muted: #6b7280;
  --border: #e6e8ef;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef0ff;
  --sidebar: #0f172a;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  font-size: 15px;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #121a26;
}
.auth-card {
  width: min(420px, 100%);
  padding: 38px;
  border-radius: 16px;
  background: var(--surface);
}
.brand { font-size: 28px; font-weight: 800; color: var(--brand); }
.brand-sub { margin-top: 5px; color: var(--muted); font-size: 14px; }

.field { display: grid; gap: 7px; margin-top: 18px; }
.field label { color: var(--muted); font-size: 13px; font-weight: 700; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(240, 100, 35, .12);
}
.app-shell .input:focus, .app-shell .select:focus, .app-shell .textarea:focus { box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.app-shell input[type="checkbox"], .app-shell input[type="radio"] { accent-color: var(--primary); }
.textarea { min-height: 90px; resize: vertical; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.button:hover { background: var(--primary-dark); }
.button:disabled { cursor: wait; opacity: .65; }
.button.secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button.secondary:hover { background: var(--surface-muted); }
.button.danger { background: var(--danger); }
.button.block { width: 100%; margin-top: 22px; }
.app-shell .input, .app-shell .select { min-height: 40px; border-radius: 8px; font-size: 14px; }
.app-shell .button { min-height: 38px; padding: 7px 14px; font-size: 13px; }

.alert {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 8px;
  background: #fff0f1;
  color: var(--danger);
  font-size: 13px;
}
.alert.success { background: #eaf8f2; color: var(--success); }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 12px;
  background: var(--sidebar);
  color: #e8edf4;
}
.sidebar .brand { padding: 2px 6px 8px; }
.sidebar .brand-logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
}
.sidebar .brand-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 4px 2px;
  color: #fff;
  text-decoration: none;
}
.sidebar .brand-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff7a3d 0%, #e84d16 55%, #c9370c 100%);
  box-shadow: 0 6px 14px rgba(232, 77, 22, .28);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}
.sidebar .brand-text {
  display: block;
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  white-space: nowrap;
}
.sidebar .brand-text b {
  color: #fff;
  font-weight: 900;
}
.sidebar .brand-text em {
  font-style: normal;
  font-weight: 800;
  color: #cbd5e1;
}
.auth-page .brand { display: flex; justify-content: center; }
.auth-page .brand-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: 220px;
  object-fit: contain;
  border-radius: 12px;
}
.sidebar .role-chip { margin-left: 10px; }
.role-chip { display: inline-flex; margin-top: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(240,100,35,.16); color: #ffb38c; font-size: 11px; font-weight: 800; }
.sidebar-nav { display: grid; gap: 2px; margin-top: 28px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.sidebar-nav svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sidebar-nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.sidebar-nav a.active { color: #fff; background: #1e293b; font-weight: 700; }
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-footer { position: absolute; left: 12px; right: 12px; bottom: 18px; }
.sidebar-user { margin: 0 0 8px 10px; color: #94a3b8; font-size: 13px; }
.sidebar-footer .button { min-height: 36px; margin-top: 0; border-color: #334155; background: transparent; color: #cbd5e1; }
.sidebar-footer .button:hover { background: #1e293b; color: #fff; }

/* 공지·이용기간 배너가 마크업에서 먼저 나와도 제목 막대가 맨 위에 오도록 order 로 올린다 */
.main { min-width: 0; display: flex; flex-direction: column; padding: 0 28px 48px; }
.page-header {
  order: -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  margin: 0 -28px 20px;
  padding: 12px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.page-description { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.card-title { margin: 0; font-size: 16px; font-weight: 800; }
.card-title small { margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.toolbar .input { min-height: 40px; max-width: 260px; }
.app-shell .toolbar > strong { font-size: 16px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px; border-top: 1px solid var(--border); }
.excel-choice-list { display: grid; gap: 8px; max-height: 48vh; margin: 14px 0; overflow: auto; }
.excel-choice { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 9px; padding: 11px; cursor: pointer; }
.excel-choice:hover { background: var(--surface-muted); }
.data-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.data-table th, .data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.data-table th { background: var(--surface-muted); color: var(--muted); font-size: 12px; font-weight: 700; }
.app-shell .data-table { font-size: 13px; }
.data-table tbody tr:hover { background: #fffaf7; }
.app-shell .data-table tbody tr:hover { background: #fafbff; }
.data-table .num { text-align: right; }
.empty { padding: 48px 20px; color: var(--muted); text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf1f5;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.badge.live { background: #e7f8f0; color: var(--success); }
.badge.ended { background: #eef0f3; color: #4b5565; }
.badge.blocked { background: #fff0f1; color: var(--danger); }
.badge.warning { background: #fff7e6; color: #a15c00; }
.table-actions { display: flex; gap: 6px; white-space: nowrap; }
.cell-sub { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.multiline-cell { white-space: pre-line; line-height: 1.55; }
.unmatched-row { background: #fffaf0; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 26, 38, .58);
  z-index: 50;
}
.modal {
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
  background: var(--surface);
  padding: 24px;
}
.modal-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.modal-title { margin: 0; font-size: 18px; }
.modal-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-wide { width: min(980px, 100%); }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-card { padding: 20px; min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.settings-card h2 { margin: 0; font-size: 16px; }
.settings-card > p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.check-row > input { flex: none; margin-top: 2px; }
.check-row > span { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; word-break: keep-all; }
.template-list { display: grid; gap: 10px; margin-top: 12px; min-width: 0; }
.template-list > div { min-width: 0; }
.template-list .section-help { margin: 0; }
.template-list .multiline-cell { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 400; overflow-wrap: anywhere; word-break: keep-all; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.customer-table { min-width: 1120px; }
.customer-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 22px; margin-top: 16px; }
.detail-panel { border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.detail-panel + .detail-panel { margin-top: 12px; }
.detail-panel h3 { margin: 0 0 10px; font-size: 15px; }
.detail-list { color: var(--muted); font-size: 13px; }
.detail-row { padding: 9px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: 0; }
.detail-row strong, .detail-row span { display: block; }
.detail-row span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.inline-form { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 7px; margin-top: 12px; }
.inline-form .input, .inline-form .select { min-height: 40px; }
.profile-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-detail-row span { margin: 0; color: var(--text); }
.profile-detail-row .button { min-height: 32px; padding: 5px 9px; font-size: 12px; }

.settlement-page { background: #eef1f5; }
.settlement-shell { width: min(560px, 100%); margin: 0 auto; padding: 22px 14px 60px; }
.settlement-header { padding: 12px 4px 18px; }
.settlement-header h1 { margin: 10px 0 5px; font-size: 25px; }
.settlement-header p { margin: 0; color: var(--muted); }
.settlement-card { margin-bottom: 12px; padding: 20px; }
.settlement-card h2 { margin: 0 0 15px; font-size: 18px; }
.settlement-item { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.settlement-item img { width: 58px; height: 58px; border-radius: 9px; object-fit: cover; background: var(--surface-muted); }
.settlement-item p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.settlement-item b { white-space: nowrap; }
.amount-summary { display: grid; gap: 10px; padding-top: 16px; }
.amount-summary > div { display: flex; justify-content: space-between; gap: 14px; }
.amount-summary .total { padding-top: 12px; border-top: 1px solid var(--border); color: var(--primary-dark); font-size: 18px; }
.bank-card > strong { display: block; font-size: 20px; }
.bank-card > p { color: var(--muted); }
.notice-box { margin-top: 12px; padding: 13px; border-radius: 9px; background: var(--surface-muted); color: var(--muted); font-size: 13px; line-height: 1.65; }
.section-help { margin: -8px 0 8px; color: var(--muted); font-size: 13px; }
.policy-preview { margin-left: 8px; font-size: 12px; font-weight: 500; }

.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.summary-card { padding: 16px; }
.summary-card span { display: block; color: var(--muted); font-size: 12px; }
.summary-card b { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.order-management-toolbar { display: flex; justify-content: space-between; margin-bottom: 12px; }
.tab-buttons { display: flex; gap: 7px; }
.tab-button.active { background: var(--sidebar); }
.managed-order-list { display: grid; gap: 14px; }
.managed-order-card { padding: 18px; }
.managed-order-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.managed-order-head h2 { margin: 0; font-size: 16px; }
.managed-order-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.member-state { padding: 6px 9px; border-radius: 999px; background: var(--surface-muted); color: var(--muted); font-size: 12px; font-weight: 700; }
.managed-items { display: grid; gap: 7px; padding: 13px 0; }
.managed-item { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, .7fr) 80px 100px auto auto; gap: 7px; align-items: center; }
.managed-item .input { min-height: 38px; }
.managed-order-form { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 9px; padding-top: 13px; border-top: 1px solid var(--border); }
.managed-order-form label { color: var(--muted); font-size: 12px; }
.managed-order-form .input, .managed-order-form .select { margin-top: 5px; min-height: 40px; }
.managed-order-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 15px; }
.managed-order-actions > strong { margin-right: auto; font-size: 19px; }
.search-results { display: grid; gap: 7px; margin-top: 14px; max-height: 400px; overflow: auto; }
.search-result-row { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); padding: 12px; text-align: left; cursor: pointer; }
.search-result-row:hover { border-color: var(--primary); background: #fffaf7; }

.live-board-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.product-entry, .product-list-panel { padding: 20px; }
.product-entry h2, .product-list-panel h2 { margin: 0; font-size: 16px; }
.image-drop-zone { display: grid; place-items: center; gap: 7px; min-height: 170px; margin-top: 16px; border: 2px dashed var(--border); border-radius: 12px; background: var(--surface-muted); padding: 14px; text-align: center; }
.image-drop-zone.uploading { opacity: .6; }
.image-drop-zone.ready { border-color: var(--success); }
.image-drop-zone > span { color: var(--muted); font-size: 12px; }
.image-drop-zone img { width: 100%; max-height: 190px; border-radius: 9px; object-fit: contain; }
.product-search-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 0; }
.product-search-row .input { max-width: 320px; }
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.product-list { display: grid; gap: 10px; padding-top: 14px; }
.product-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 120px 110px 100px auto;
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-muted);
}
.product-row.closed { opacity: .68; }
.product-thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 9px; overflow: hidden; background: #e8edf3; color: var(--muted); font-size: 9px; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-row .input { min-height: 40px; }
.product-actions { display: flex; gap: 6px; }
.impact-note { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.order-summary-heading {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.order-summary-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.order-list { display: grid; gap: 9px; margin-top: 14px; }
.order-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 120px auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.order-customer { font-weight: 800; }
.order-items { color: var(--muted); font-size: 13px; line-height: 1.55; }
.board-order-item { display: grid; grid-template-columns: minmax(150px, 1fr) 34px 28px 34px auto auto; gap: 5px; align-items: center; padding: 4px 0; }
.board-order-item .button { min-height: 30px; padding: 4px 7px; font-size: 11px; }
.board-order-item b { text-align: center; color: var(--text); }
.order-total { text-align: right; font-weight: 800; }

.service-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid #f5d49a; border-radius: 10px; background: #fff8eb; color: #7a4a00; font-size: 13px; line-height: 1.5; }
.service-banner.danger { border-color: #f1b8be; background: #fff0f1; color: var(--danger); }
.service-banner .button { flex: none; min-height: 34px; }
.notice-strip { margin-bottom: 10px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13px; }
.notice-strip summary { cursor: pointer; font-weight: 700; }
.notice-strip summary small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.notice-strip > div { margin-top: 10px; color: var(--muted); font-size: 13px; }
.legal-footer { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.6; }
.legal-footer nav { display: flex; gap: 14px; margin-bottom: 6px; }
.legal-footer a { text-decoration: none; }
.legal-footer p { margin: 0; }
.auth-card .legal-footer { margin-top: 24px; }
.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-links a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.auth-card.wide { width: min(560px, 100%); }
.agree-box { margin-top: 18px; padding: 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-muted); font-size: 13px; }
.agree-box label { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.agree-box a { color: var(--primary-dark); }
.card-pad { padding: 20px; }
.card-pad h2 { margin: 0 0 6px; font-size: 16px; }
.card-pad > p { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.stack { display: grid; gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.big-number { font-size: 24px; font-weight: 800; color: var(--primary-dark); }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.checklist .mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #edf1f5; color: var(--muted); font-weight: 800; }
.checklist li.done .mark { background: #e7f8f0; color: var(--success); }
.checklist p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.tracking-row-bad { background: #fff0f1 !important; }
.tracking-row-bad td { color: var(--danger); }
.paste-area { min-height: 180px; font-family: Consolas, monospace; font-size: 13px; }
.bar { height: 8px; border-radius: 99px; background: #edf1f5; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--primary); }
.legal-doc { width: min(860px, 100%); margin: 0 auto; padding: 34px 20px 70px; line-height: 1.75; }
.legal-doc h1 { font-size: 26px; }
.legal-doc h2 { margin-top: 28px; font-size: 18px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-doc th, .legal-doc td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; }
  .service-banner { flex-direction: column; align-items: stretch; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .sidebar-nav { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
  .sidebar-footer { position: static; margin-top: 18px; }
  .main { padding: 20px 16px 50px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar .input { max-width: none; }
  .live-board-grid { grid-template-columns: 1fr; }
  .product-row { grid-template-columns: 1fr; }
  .impact-note { grid-column: auto; }
  .order-row { grid-template-columns: 1fr; }
  .order-total { text-align: left; }
  .settings-grid, .form-row, .customer-detail-grid, .inline-form { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .managed-item, .managed-order-form { grid-template-columns: 1fr; }
  .managed-order-actions { align-items: stretch; flex-direction: column; }
  .managed-order-actions > strong { margin: 0 0 5px; }
}

/* 주문폼·알림톡 설정, 알림톡 발송, 고객 동의 */
.tab-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.tab-nav button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 14px; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.tab-nav button.active { border-bottom-color: var(--primary); color: var(--text); }
.tab-nav button.dirty::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #f59e0b; vertical-align: 2px; }

/* 저장 상태: 카드별 저장, 하단 고정 저장 막대, 토스트 */
.settings-card { transition: box-shadow .15s, border-color .15s; }
.settings-card .card-save { display: none; }
.settings-card.dirty { border-color: #fcd34d; box-shadow: 0 0 0 3px #fef3c7; }
.settings-card.dirty .card-save { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #fcd34d; }
.card-save span { color: #b45309; font-size: 12px; font-weight: 700; }
.save-bar { position: sticky; bottom: 16px; z-index: 30; display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px 14px 12px 18px; border-radius: 12px; background: #111827; color: #e5e7eb; font-size: 13px; box-shadow: 0 10px 30px rgba(15, 23, 42, .28); }
.save-bar > span { flex: 1; min-width: 0; }
.save-bar b { color: #fcd34d; }
.save-bar .button.secondary { background: transparent; border-color: #4b5563; color: #e5e7eb; }
.lite-toast { position: fixed; left: 50%; bottom: 96px; z-index: 1000; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: #065f46; color: #fff; font-size: 14px; font-weight: 700; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; }
.lite-toast.error { background: #b91c1c; }
.lite-toast.show { opacity: 1; transform: translate(-50%, 0); }
.inline-actions { display: flex; gap: 6px; align-items: center; }
.biz-mode-row { flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.biz-mode-row .check-row { margin-top: 0; color: var(--text); font-weight: 700; }
.button.small { min-height: 30px; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.inline-actions .input { flex: 1; }
.wide-card { grid-column: 1 / -1; }
.textarea.tall { min-height: 180px; }
.sub-title { margin: 20px 0 8px; font-size: 14px; }
.check-row small { color: var(--muted); }
.message-preview { white-space: pre-wrap; border: 1px solid var(--border); border-radius: 10px; background: #fafbfc; padding: 12px; font-size: 13px; line-height: 1.6; max-height: 220px; overflow: auto; }
.message-targets { max-height: 260px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; }
.message-targets table { width: 100%; border-collapse: collapse; font-size: 12px; }
.message-targets th, .message-targets td { padding: 7px 9px; border-bottom: 1px solid var(--border); text-align: left; }
.message-targets tr.skip td { color: var(--muted); }
.consent-yes { color: #15803d; font-weight: 700; }
.consent-no { color: var(--muted); }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* 주문폼 꾸미기 */
.page-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.page-editor-side { display: grid; gap: 16px; position: sticky; top: 16px; }
.slug-row { display: flex; align-items: center; gap: 8px; }
.slug-row span { flex: none; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.input.mono { font-family: Consolas, Menlo, monospace; }
.banner-preview { display: flex; align-items: center; justify-content: center; min-height: 110px; margin: 14px 0 12px; overflow: hidden; border-radius: 10px; background: var(--surface-muted); border: 1px dashed var(--border); color: var(--muted); font-size: 13px; }
.banner-preview img { display: block; width: 100%; max-height: 220px; object-fit: cover; }
.side-actions { display: grid; gap: 8px; }
.side-actions .button { text-align: center; }
.side-actions .sub-text { word-break: break-all; }
@media (max-width: 1000px) { .page-editor { grid-template-columns: 1fr; } .page-editor-side { position: static; } }
.sub-text { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ===== 방송관리 전용 레이아웃 (다른 페이지 영향 없음) ===== */
.app-shell .bc-top-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px;
}
.app-shell .bc-top-stat {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 14px 16px;
}
.app-shell .bc-top-stat small {
  display: block; color: #6B7280; font-size: 12px !important; font-weight: 500; letter-spacing: .01em;
}
.app-shell .bc-top-stat strong {
  display: block; margin-top: 6px; font-size: 22px !important; font-weight: 650 !important;
  letter-spacing: -.4px; color: #111827; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.app-shell .bc-top-stat.pending strong { color: #D97706; }
.app-shell .bc-top-stat.paid strong { color: #059669; }

.app-shell section.card.bc-page {
  border: 1px solid #E5E7EB; border-radius: 12px; background: #fff;
  padding: 14px 16px 16px; box-shadow: none;
}
.app-shell .bc-page .bc-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px;
}
.app-shell .bc-page .bc-toolbar #statusFilter { width: 140px; flex: none; }
.app-shell .bc-page .bc-toolbar #platformFilter { width: 140px; flex: none; }
.app-shell .bc-page .bc-toolbar #dateFilter { width: 170px; flex: none; }
.app-shell .bc-page .bc-toolbar #queryInput { flex: 1 1 200px; min-width: 160px; }
.app-shell .bc-page .bc-toolbar #searchButton { width: 72px; flex: none; }

.app-shell .bc-list,
.app-shell .bc-page .bc-list {
  display: grid; gap: 12px; font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
.app-shell .bc-card {
  width: 100%; min-width: 0; box-sizing: border-box;
  padding: 20px; background: #ffffff;
  border: 1px solid #e4e7ec; border-radius: 10px;
}

/* 헤더 */
.app-shell .bc-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 16px; border-bottom: 1px solid #e4e7ec; margin-bottom: 16px;
}
.app-shell .bc-head-main { min-width: 0; flex: 1; }
.app-shell .bc-title {
  margin: 0; color: #101828; font-size: 22px !important; font-weight: 700 !important;
  letter-spacing: -.3px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-shell .bc-meta {
  margin: 6px 0 0; color: #667085; font-size: 13px !important; font-weight: 500; line-height: 1.4;
}
.app-shell .bc-live {
  display: block; margin-top: 4px; color: #B45309; font-size: 12px; font-weight: 600;
}

/* 더보기 */
.app-shell .bc-more { position: relative; flex-shrink: 0; }
.app-shell .bc-list .bc-more > .button {
  width: 32px; min-width: 32px; height: 32px; min-height: 32px !important;
  padding: 0 !important; border-radius: 8px !important;
  border: 1px solid transparent !important; background: transparent !important;
  color: #667085 !important; font-size: 18px !important; font-weight: 700 !important;
  letter-spacing: 1px; line-height: 1;
}
.app-shell .bc-list .bc-more > .button:hover {
  background: #f9fafb !important; border-color: #e4e7ec !important; color: #101828 !important;
}
.app-shell .bc-more-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 40;
  min-width: 180px; padding: 6px; border: 1px solid #e4e7ec; border-radius: 10px;
  background: #fff; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
}
.app-shell .bc-more.open .bc-more-menu { display: grid; gap: 2px; }
.app-shell .bc-more-menu .label {
  padding: 6px 10px 4px; color: #98a2b3; font-size: 11px; font-weight: 600;
}
.app-shell .bc-more-menu .select {
  width: 100%; margin: 0 0 4px; min-height: 34px; border-radius: 8px;
  border: 1px solid #e4e7ec; background: #fff; font-size: 13px;
}
.app-shell .bc-more-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent;
  padding: 9px 10px; border-radius: 7px; color: #101828; font-size: 13px; font-weight: 500; cursor: pointer;
}
.app-shell .bc-more-menu button:hover { background: #f2f4f7; }
.app-shell .bc-more-menu button.danger { color: #d92d20; }
.app-shell .bc-more-menu button.danger:hover { background: #fef3f2; }

/* 본문: 반드시 가로 3열 */
.app-shell .bc-body {
  display: grid !important;
  grid-template-columns: minmax(0, 40fr) minmax(0, 35fr) minmax(0, 25fr) !important;
  gap: 20px; align-items: start;
}
.app-shell .bc-body > * { min-width: 0; box-sizing: border-box; }

/* 좌측 40%: 핵심 작업 */
.app-shell .bc-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px; align-items: stretch;
}
.app-shell .bc-primary > * { min-width: 0; height: 46px; }
.app-shell .bc-list .bc-primary > .button,
.app-shell .bc-list .bc-primary > a.button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 46px; min-height: 46px !important;
  padding: 0 10px !important; border-radius: 8px !important;
  font-size: 14px !important; font-weight: 600 !important;
  text-decoration: none; white-space: nowrap; box-sizing: border-box;
}
.app-shell .bc-list .bc-primary > .bc-enter,
.app-shell .bc-list .bc-primary > a.bc-enter {
  background: #4f46e5 !important; border: 1px solid #4f46e5 !important; color: #fff !important;
}
.app-shell .bc-list .bc-primary > .bc-enter:hover,
.app-shell .bc-list .bc-primary > a.bc-enter:hover {
  background: #4338ca !important; border-color: #4338ca !important;
}
.app-shell .bc-list .bc-primary > a.button.secondary {
  background: #fff !important; border: 1px solid #d0d5dd !important; color: #101828 !important;
}
.app-shell .bc-list .bc-primary > a.button.secondary:hover { background: #f9fafb !important; }
.app-shell .bc-split {
  display: grid; grid-template-columns: 1fr 42px; width: 100%; height: 46px;
  border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; background: #fff;
}
.app-shell .bc-split a,
.app-shell .bc-split button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; border: 0; background: #fff; color: #101828;
  font-size: 14px !important; font-weight: 600 !important; text-decoration: none; cursor: pointer; padding: 0;
}
.app-shell .bc-split a { border-right: 1px solid #d0d5dd; }
.app-shell .bc-split button { width: 42px; min-width: 42px; color: #667085; font-size: 16px !important; }
.app-shell .bc-split a:hover, .app-shell .bc-split button:hover { background: #f9fafb; }
.app-shell .bc-actions {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; height: 100%;
}
.app-shell .bc-secondary {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-rows: auto auto;
  gap: 8px;
  margin-top: 2px;
}
.app-shell .bc-secondary > *:nth-child(4) { grid-column: 1 / 2; }
.app-shell .bc-secondary > *:nth-child(5) { grid-column: 2 / 4; }
.app-shell .bc-list .bc-secondary > .button,
.app-shell .bc-list .bc-secondary > a.button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 36px; min-height: 36px !important;
  padding: 0 8px !important; border-radius: 8px !important;
  border: 1px solid #d0d5dd !important; background: #fff !important; color: #344054 !important;
  font-size: 13px !important; font-weight: 500 !important;
  text-decoration: none; white-space: nowrap; box-sizing: border-box;
}
.app-shell .bc-list .bc-secondary > .button:hover,
.app-shell .bc-list .bc-secondary > a.button:hover { background: #f9fafb !important; }
.app-shell .bc-list .bc-secondary > .bc-del { color: #667085 !important; }
.app-shell .bc-list .bc-secondary > .bc-del:hover {
  color: #d92d20 !important; border-color: #fecdca !important; background: #fef3f2 !important;
}
.app-shell .bc-list .bc-secondary > .bc-status-select {
  width: 100%; height: 36px; min-height: 36px; padding: 0 8px;
  border-radius: 8px; border: 1px solid #d0d5dd; background: #fff;
  color: #344054; font-size: 13px; font-weight: 500; box-sizing: border-box;
}

/* 중앙 35%: 방송 실적 */
.app-shell .bc-perf {
  border-left: 1px solid #e4e7ec; padding-left: 20px; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.app-shell .bc-perf-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
.app-shell .bc-perf-metric { min-width: 0; }
.app-shell .bc-perf-metric small {
  display: block; color: #98a2b3; font-size: 12px !important; font-weight: 500; margin-bottom: 4px;
}
.app-shell .bc-perf-val {
  display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums;
}
.app-shell .bc-perf-val b {
  font-size: 22px !important; font-weight: 700 !important; color: #101828;
  letter-spacing: -.3px; line-height: 1.15;
}
.app-shell .bc-perf-val span { color: #98a2b3; font-size: 12px !important; font-weight: 500; }
.app-shell .bc-perf-money {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px;
  padding-top: 12px; border-top: 1px solid #e4e7ec;
  font-variant-numeric: tabular-nums;
}
.app-shell .bc-perf-money-item { min-width: 0; }
.app-shell .bc-perf-money-item small {
  display: block; font-size: 12px !important; font-weight: 500; margin-bottom: 4px; color: #98a2b3;
}
.app-shell .bc-perf-money-item b {
  display: block; font-size: 22px !important; font-weight: 700 !important;
  letter-spacing: -.3px; line-height: 1.15;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-shell .bc-perf-money-item.pending b { color: #C77C30; }
.app-shell .bc-perf-money-item.paid b { color: #008D70; }
.app-shell .bc-perf-bar {
  display: flex; width: 100%; max-width: 100%; height: 5px; min-height: 5px; max-height: 5px;
  border-radius: 999px; overflow: hidden; box-sizing: border-box;
  background: #f2f4f7; margin-top: 2px; padding: 0;
}
/* 전역 .empty(패딩 48px)와 충돌하지 않도록 is-zero 사용 */
.app-shell .bc-perf-bar.is-zero { background: #e4e7ec; padding: 0; }
.app-shell .bc-perf-bar > i { display: block; height: 100%; margin: 0; padding: 0; font-style: normal; }
.app-shell .bc-perf-bar > i.paid { background: #34D399; }
.app-shell .bc-perf-bar > i.pending { background: #F6C28B; }

/* 우측 25%: 고객 메시지 */
.app-shell .bc-msg {
  border-left: 1px solid #e4e7ec; padding-left: 20px; min-width: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.app-shell .bc-msg-actions {
  display: grid; gap: 8px;
}
.app-shell .bc-list .bc-msg-actions .button {
  width: 100%; height: 34px; min-height: 34px !important; padding: 0 10px !important;
  border-radius: 8px !important; border: 1px solid #d0d5dd !important;
  background: #fff !important; color: #344054 !important;
  font-size: 13px !important; font-weight: 500 !important; white-space: nowrap;
  justify-content: center;
}
.app-shell .bc-list .bc-msg-actions .button:hover { background: #f9fafb !important; }
.app-shell .bc-msg-status {
  color: #667085; font-size: 12px !important; font-weight: 500; line-height: 1.45;
}
.app-shell .bc-msg-status .mute { color: #98a2b3; }
.app-shell .bc-msg-status .ok { color: #008D70; }
.app-shell .bc-msg-status .fail { color: #d92d20; }
.app-shell .bc-msg-status .wait { color: #C77C30; }

/* 좁은 화면에서만 스택 (사이드바 제외 콘텐츠 ~1000px 미만 ≈ 뷰포트 1240 이하) */
@media (max-width: 1240px) {
  .app-shell .bc-body {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .app-shell .bc-perf,
  .app-shell .bc-msg {
    border-left: 0; padding-left: 0; border-top: 1px solid #e4e7ec; padding-top: 14px;
  }
}
@media (max-width: 900px) {
  .app-shell .bc-top-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell .bc-primary { grid-template-columns: 1fr; }
  .app-shell .bc-primary > * { height: 42px; }
  .app-shell .bc-list .bc-primary > .button,
  .app-shell .bc-list .bc-primary > a.button,
  .app-shell .bc-split,
  .app-shell .bc-split a,
  .app-shell .bc-split button { height: 42px; min-height: 42px !important; }
}

/* 회원관리 */
.member-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.member-tabs button { padding: 7px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; }
.member-tabs button.on { border-color: #c7cbff; background: var(--primary-soft); color: var(--primary); }
.member-tabs button b { margin-left: 4px; color: var(--danger); }
.member-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.member-stat { padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.member-stat small { display: block; color: var(--muted); font-size: 12px; }
.member-stat strong { display: block; margin: 6px 0 2px; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.member-stat span { color: var(--primary); font-size: 12px; font-weight: 700; }
.member-filter { margin-bottom: 14px; }
.member-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 4px; }
.member-card-head h2 { margin: 0; font-size: 16px; }
.member-card-head span { color: var(--muted); font-size: 12px; }
.member-filter-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px 16px; }
.member-filter-row .input { flex: 1 1 220px; }
.member-filter-row .select { width: auto; padding: 6px 10px; }
.app-shell .member-table { min-width: 1280px; width: max-content; font-size: 13px; border-collapse: separate; border-spacing: 0; }
.member-table th, .member-table td {
  height: 52px; padding: 0 8px; white-space: nowrap;
  vertical-align: middle; border-bottom: 1px solid var(--border);
}
.member-table th { font-size: 12px; font-weight: 700; background: var(--surface-muted); }
.member-table th.sortable { cursor: pointer; user-select: none; }
.member-table th.sortable:hover { color: var(--primary); }
.member-table .c-left { text-align: left; }
.member-table .c-center { text-align: center; }
.member-table .c-right { text-align: right; }
.member-table .c-id { min-width: 64px; width: 64px; }
.member-table .c-path { min-width: 76px; width: 76px; }
.member-table .c-channel { min-width: 150px; max-width: 200px; }
.member-table .c-name { min-width: 110px; max-width: 160px; }
.member-table .c-kakao { min-width: 88px; max-width: 120px; }
.member-table .c-phone { min-width: 118px; width: 118px; }
.member-table .c-zip { min-width: 72px; width: 72px; }
.member-table .c-addr { min-width: 160px; max-width: 220px; }
.member-table .c-ship { min-width: 84px; width: 84px; }
.member-table .c-agree { min-width: 72px; width: 72px; padding-left: 4px; padding-right: 4px; }
.member-table .c-hist { min-width: 84px; width: 84px; }
.member-table .c-date { min-width: 96px; width: 96px; }
.member-table .c-orders { min-width: 72px; width: 72px; }
.member-table .c-paid { min-width: 88px; width: 88px; }
.member-table .c-orderlink { min-width: 84px; width: 84px; }
.member-table .address-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.member-table .strong-cell { font-weight: 800; }
.member-table .muted { color: var(--muted); }
.member-table .blocked-row { background: #fff7f7; }
.member-table .name-cell { display: flex; align-items: center; justify-content: flex-start; gap: 6px; }
.member-table .name-text { overflow: hidden; text-overflow: ellipsis; }
.member-table .manage-actions { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.member-table .manage-actions .btn-mini.danger { margin-left: 0; }
.member-table th.col-manage,
.member-table td.col-manage {
  position: sticky; right: 0; z-index: 2; min-width: 108px; width: 108px;
  background: #fff; box-shadow: -6px 0 10px rgba(15, 23, 42, .06);
}
.member-table th.col-manage { z-index: 3; background: var(--surface-muted); }
.app-shell .member-table tbody tr:hover td.col-manage { background: #fafbff; }
.member-table .blocked-row td.col-manage { background: #fff7f7; }
.member-table .blocked-row:hover td.col-manage { background: #fff0f0; }
.member-table .pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 48px; height: 26px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 800; box-sizing: border-box;
}
.member-table .btn-outline,
.member-table .btn-mini,
.member-table .chip-add,
.member-table .chip-channel {
  height: 28px; min-height: 28px; padding: 0 8px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pill-yes { background: #e3f6ea; color: #15803d; }
.pill-no { background: #eef0f3; color: #6b7280; }
.pill-block { min-width: 0; background: #fff0f1; color: var(--danger); }
.pill-warn { min-width: 0; background: #fff7e6; color: #a15c00; }
.btn-outline { padding: 4px 10px; border: 1px solid var(--primary); border-radius: 7px; background: #fff; color: var(--primary); font-size: 12px; font-weight: 800; cursor: pointer; }
.btn-outline:hover { background: var(--primary-soft); }
.btn-mini { padding: 3px 8px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; cursor: pointer; }
.chip-channel { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 0; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 800; cursor: pointer; }
.chip-add {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 7px;
  background: #fff; color: var(--text); font-size: 12px; font-weight: 700;
  line-height: 1.2; white-space: nowrap; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.chip-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.chip-remove { padding: 0 0 0 4px; border: 0; background: transparent; color: var(--danger); font-size: 11px; font-weight: 800; cursor: pointer; }
.page-size { width: auto; min-height: 36px; padding: 4px 10px; font-size: 13px; }
.app-shell .page-size { min-height: 36px; font-size: 13px; }
.button.blue { background: #2563eb; }
.button.blue:hover { background: #1d4ed8; }
.app-shell .button.blue { background: var(--primary); }
.app-shell .button.blue:hover { background: var(--primary-dark); }
.soft-modal { border-radius: 18px; padding: 22px 24px; }
.soft-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.soft-head h2 { margin: 0; font-size: 16px; }
.soft-x { border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; }
.soft-banner { margin-bottom: 14px; padding: 11px 14px; border-radius: 10px; background: #f1f3f8; font-size: 13px; font-weight: 700; }
.soft-table { overflow-x: auto; }
.soft-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.soft-table th { padding: 10px 8px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
.soft-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.soft-table .empty-cell { padding: 30px 8px; color: var(--muted); text-align: center; white-space: normal; }
.soft-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.channel-linked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.channel-linked small { width: 100%; color: var(--muted); font-size: 12px; }
/* 채널 닉네임 연결 모달: 안내문구가 입력창 위로 겹치지 않게 */
/* 회원 직접 등록 컴팩트 모달 */
.create-customer-modal { width: min(700px, 100%); padding: 24px; }
.create-customer-sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; font-weight: 500; }
.create-customer-form { margin-top: 4px; }
.create-customer-form .field { margin-top: 12px; gap: 5px; }
.create-customer-form .form-row { gap: 12px; margin-top: 12px; }
.create-customer-form .form-row .field { margin-top: 0; }
.create-customer-form .form-row:first-child { margin-top: 0; }
.create-customer-form .input,
.create-customer-form .select {
  min-height: 38px; height: 38px; padding: 0 10px; font-size: 13px; border-radius: 8px;
}
.create-customer-form .inline-row { display: flex; gap: 8px; align-items: center; }
.create-customer-form .inline-row .input { flex: 1; min-width: 0; }
.create-customer-form .create-postcode-btn {
  flex: none; min-height: 38px; height: 38px; padding: 0 12px; margin: 0; white-space: nowrap; font-size: 13px;
}
.create-customer-form .soft-actions { margin-top: 16px; }
.create-customer-form .alert { margin: 8px 0 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 720px) {
  .create-customer-form .form-row { grid-template-columns: 1fr; }
}

.channel-form { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.channel-form .form-row { margin: 0; align-items: start; }
.channel-form .field { margin-top: 0; }
.channel-form .section-help,
.soft-modal > .section-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.soft-modal .form-row .field { margin-top: 0; }
@media (max-width: 1100px) { .member-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.link-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13px; }

/* 셀러 홈 꾸미기 (디자인관리) */
.page-title small { color: var(--muted); font-size: 13px; font-weight: 600; }
.design-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.settings-grid.one-col { grid-template-columns: minmax(0, 1fr); }
.design-preview { position: sticky; top: 16px; }
.preview-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.segmented { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.segmented button { flex: 1; border: 0; background: none; padding: 9px 6px; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.segmented button.active { background: var(--primary); color: #fff; }
.phone-frame { overflow: hidden; width: 390px; max-width: 100%; height: 760px; border: 10px solid #111827; border-radius: 34px; background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .15); }
.phone-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.theme-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
.theme-card { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid var(--border); border-radius: 12px; background: #fff; padding: 10px; cursor: pointer; }
.theme-card.active { border-color: var(--primary); }
.theme-swatch { position: relative; display: block; width: 100%; height: 44px; border-radius: 8px; }
.theme-swatch i { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 14px; border-radius: 7px; }
.color-input { width: 44px; height: 38px; border: 1px solid var(--border); border-radius: 8px; padding: 2px; background: #fff; }
.upload-slot { max-width: 140px; }
.slot-box { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; overflow: hidden; border: 2px dashed var(--border); border-radius: 12px; background: #f8fafc; padding: 0; cursor: pointer; }
.slot-box.filled { border-style: solid; }
.slot-box img { display: block; width: 100%; height: 100%; object-fit: cover; }
.slot-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.slot-empty b { font-size: 22px; line-height: 1; }
.slot-change { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .55); padding: 4px; color: #fff; font-size: 11px; font-weight: 700; opacity: 0; transition: opacity .15s; }
.slot-box:hover .slot-change { opacity: 1; }
.slot-guide { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.link-button { border: 0; background: none; padding: 2px 4px; color: var(--primary); font-size: 12px; font-weight: 700; cursor: pointer; }
.link-button:disabled { color: #c3c8d0; cursor: default; }
.link-button.danger { color: #d92d20; }
.item-list { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.item-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #fff; }
.item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.item-tools { display: flex; gap: 2px; }
.item-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; }
.item-fields .field:first-child { margin-top: 0; }
.item-fields .check-row { margin-top: 10px; }
.section-order { list-style: none; margin: 14px 0 0; padding: 0; }
.section-order li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; padding: 10px 12px; background: #fff; }
.section-order li b { flex: 1; }
.section-order li.fixed { background: #f8fafc; color: var(--muted); }
.order-no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #f1f3f6; font-size: 12px; font-weight: 800; }
.switch { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
.product-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.pick-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: #fff; cursor: pointer; }
.pick-item img, .pick-ph { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #f1f3f6; display: flex; align-items: center; justify-content: center; }
.pick-item b { display: block; font-size: 13px; }
.pick-item small { color: var(--muted); font-size: 12px; }
@media (max-width: 1280px) { .design-layout { grid-template-columns: minmax(0, 1fr); } .design-preview { position: static; } }
@media (max-width: 640px) { .item-body { grid-template-columns: minmax(0, 1fr); } .theme-cards { grid-template-columns: 1fr; } }

/* 회원관리: 차단유저·노쇼 */
.block-card { margin-bottom: 16px; }
.block-card .table-wrap { padding: 0 16px 12px; }
.block-criteria, .block-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; font-weight: 700; }
.block-criteria .input { width: 76px; text-align: right; }
.block-toolbar .input { width: 240px; }
.block-toolbar .spacer { flex: 1; }
.block-scope { margin: 0; padding: 4px 16px 16px 32px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.reason-row { display: flex; gap: 16px; padding: 6px 0; }
.reason-row label { display: flex; align-items: center; gap: 6px; font-weight: 700; cursor: pointer; }
.danger-cell { color: var(--danger); font-weight: 800; }
.btn-mini.danger { border-color: #fecaca; color: var(--danger); margin-left: 4px; }
.order-items-row > td { background: #f8fafc; padding: 8px 12px !important; }
.order-items { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-items th, .order-items td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.order-items th { color: var(--muted); font-weight: 700; }

/* 매출통계 */
.card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.text-link { border: 0; background: none; padding: 0; color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.text-link:hover { text-decoration: underline; }
.stats-summary { margin-bottom: 16px; padding: 18px 20px 20px; }
.stats-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 16px; }
.stats-kpis > div { padding: 2px 24px; border-left: 1px solid var(--border); }
.stats-kpis > div:first-child { padding-left: 8px; border-left: 0; }
.stats-kpis span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.stats-kpis b { display: block; margin-top: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.4px; white-space: nowrap; }
.stats-row { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 16px; margin-bottom: 16px; }
.stats-chart-card { padding: 18px 20px 16px; }
.bar-chart { position: relative; height: 250px; margin-top: 14px; }
.bar-chart-grid { position: absolute; inset: 0 0 26px 0; display: flex; flex-direction: column; justify-content: space-between; }
.bar-chart-grid > div { position: relative; height: 0; border-top: 1px solid #eef0f4; }
.bar-chart-grid > div:last-child { border-top-color: #cfd4dd; }
.bar-chart-grid span { position: absolute; left: 0; top: -8px; width: 74px; color: var(--muted); font-size: 11px; text-align: right; }
.bar-chart-bars { position: absolute; inset: 0 0 0 86px; display: flex; gap: 14px; }
.bar-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bar-slot { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill { position: relative; width: min(72px, 70%); min-height: 3px; border-radius: 4px 4px 0 0; background: #c7c9f7; }
.bar-col.selected .bar-fill { background: var(--primary); }
.bar-fill b { position: absolute; left: 50%; bottom: 100%; margin-bottom: 6px; transform: translateX(-50%); font-size: 12px; font-weight: 800; white-space: nowrap; }
.bar-tip { position: absolute; left: 50%; bottom: 100%; margin-bottom: 28px; transform: translateX(-50%); padding: 4px 9px; border: 1px solid #c7cbff; border-radius: 7px; background: #fff; color: var(--primary); font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px rgba(79, 70, 229, .12); opacity: 0; transition: opacity .12s; pointer-events: none; }
.bar-col:hover .bar-tip { opacity: 1; }
.bar-label { height: 26px; padding-top: 7px; color: var(--muted); font-size: 12px; text-align: center; }
.bar-col.selected .bar-label { color: var(--text); font-weight: 800; }
.stats-top-card { display: flex; flex-direction: column; }
.rank-list { margin: 0; padding: 0 20px; list-style: none; }
.rank-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f1f5; font-size: 14px; }
.rank-list i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--surface-muted); color: var(--text); font-size: 12px; font-style: normal; font-weight: 800; }
.rank-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list b { font-weight: 800; white-space: nowrap; }
.repeat-row { display: flex; align-items: center; justify-content: space-between; margin: auto 20px 16px; padding: 16px 0 4px; border: 0; border-top: 1px solid var(--border); background: none; color: var(--text); font-size: 14px; font-weight: 800; cursor: pointer; }
.repeat-row b { color: var(--primary); font-size: 16px; }
.stats-table { min-width: 0; }
.stats-table th, .stats-table td { padding: 11px 20px; }
@media (max-width: 1100px) {
  .stats-row { grid-template-columns: 1fr; }
  .stats-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .stats-kpis > div:nth-child(4) { padding-left: 8px; border-left: 0; }
}

/* SaaS: 메뉴 잠금·배지, 결제 레이어, 대시보드, 단계별 가입 */
.sidebar-nav a span { flex: 1; min-width: 0; }
.menu-lock { flex: none; padding: 2px 6px; border-radius: 999px; background: rgba(148,163,184,.18); color: #94a3b8; font-size: 10px; font-style: normal; font-weight: 800; }
.menu-count { flex: none; min-width: 20px; padding: 2px 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-style: normal; font-weight: 800; text-align: center; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.preset-grid .button { min-height: 36px; padding: 6px 8px; font-size: 13px; }

/* 포인트 충전 레이어 */
.charge-modal { width: min(920px, 100%); }
.charge-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .9fr); gap: 20px; align-items: start; }
.charge-h { margin: 18px 0 8px; font-size: 15px; font-weight: 800; }
.charge-h:first-child { margin-top: 0; }
.charge-presets { display: grid; gap: 8px; margin: 10px 0 4px; }
.charge-preset {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff;
}
.charge-preset.on { border-color: #a5b4fc; background: var(--primary-soft); }
.charge-preset span { flex: 1; font-weight: 700; }
.charge-preset b { color: var(--muted); font-weight: 600; }
.charge-tabs, .charge-receipt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.charge-tabs .button.on, .charge-receipt-tabs .button.on { background: #111827; color: #fff; border-color: #111827; }
.charge-bank {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 10px;
  background: #eef4ff; color: #1e3a8a; font-size: 13px; line-height: 1.55;
}
.charge-bank b { display: block; margin-bottom: 4px; font-size: 14px; color: #0f172a; }
.charge-depositor { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; }
.charge-depositor label { font-weight: 800; color: #92400e; }
.charge-depositor .input { margin-top: 6px; background: #fff; }
.charge-depositor .section-help { margin: 8px 0 0; }
.sidebar-user.muted { color: #b45309; font-weight: 700; }
.charge-upload {
  display: grid; place-items: center; min-height: 110px; border: 1px dashed var(--border);
  border-radius: 12px; background: #fafbff; color: var(--muted); cursor: pointer; font-weight: 700;
}
.charge-side {
  position: sticky; top: 0; border: 1px solid var(--border); border-radius: 14px;
  background: #fff; padding: 16px; display: grid; gap: 10px;
}
.charge-total { font-size: 28px; font-weight: 800; letter-spacing: -.4px; }
.charge-units { padding: 10px 12px; border-radius: 10px; background: var(--surface-muted); font-size: 12px; color: var(--muted); line-height: 1.6; }
.charge-units b { color: var(--text); }
.charge-side .button { width: 100%; }
@media (max-width: 820px) {
  .charge-layout { grid-template-columns: 1fr; }
  .charge-side { position: static; }
}
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.status-card { padding: 16px; }
.status-card span { display: block; color: var(--muted); font-size: 12px; }
.status-card b { display: block; margin-top: 6px; font-size: 18px; font-weight: 800; }
.status-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.status-card .button { margin-top: 10px; min-height: 32px; padding: 5px 10px; font-size: 12px; }
.todo-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.todo-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.todo-list li .todo-mark { flex: none; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-muted); color: var(--muted); font-size: 12px; font-weight: 800; }
.todo-list li.done .todo-mark { background: #e7f8f0; color: var(--success); }
.todo-list li.now { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft, #eef0ff); }
.todo-list li .todo-text { flex: 1; min-width: 0; }
.todo-list li .todo-text b { display: block; font-size: 14px; }
.todo-list li .todo-text small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.todo-list li .button { flex: none; min-height: 32px; padding: 5px 12px; font-size: 12px; }
.stepper { display: flex; gap: 4px; margin: 18px 0 6px; }
.stepper span { flex: 1; height: 4px; border-radius: 4px; background: var(--border); }
.stepper span.on { background: var(--primary); }
.step-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.choice-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.choice-row .button { min-height: 48px; }
.kakao-button { background: #fee500; border-color: #fee500; color: #191919; }
.kakao-button:hover { background: #f5dc00; }
.agree-box { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; padding: 4px 14px; }
.agree-box .check-row { margin: 10px 0; justify-content: space-between; }
.agree-box .check-row label { display: flex; align-items: center; gap: 9px; color: var(--text); }
.agree-box .agree-all { border-bottom: 1px solid var(--border); padding-bottom: 10px; font-weight: 800; }
.detail-h { margin: 18px 0 8px; font-size: 14px; }
.signup-step h2 { margin: 14px 0 4px; font-size: 17px; }
.choice-row label.button { gap: 8px; cursor: pointer; }
.inline-field { display: flex; gap: 8px; }
.inline-field .input { flex: 1; min-width: 0; }
.inline-field .button { flex: none; }
@media (max-width: 900px) {
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 방송 알림톡 상태 */
.msg-badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.msg-badge.none { background:#eef1f5; color:#64748b; }
.msg-badge.sending { background:#fff7ed; color:#c2410c; }
.msg-badge.done { background:#ecfdf5; color:#047857; }
.msg-badge.partial { background:#fff7ed; color:#b45309; }
.msg-badge.failed { background:#fef2f2; color:#b91c1c; }
.msg-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:4px 0 14px; }
.msg-summary .cell { background:#f8fafc; border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
.msg-summary .cell small { display:block; color:var(--muted); font-size:12px; font-weight:600; }
.msg-summary .cell b { display:block; font-size:22px; margin-top:6px; letter-spacing:-.3px; }
.msg-summary .cell .ok { color:#047857; }
.msg-summary .cell .fail { color:#b91c1c; }
.msg-summary .cell .tone { color:#2563eb; }
.msg-summary .rate-wrap { grid-column:1/-1; margin-top:2px; }
.msg-summary .rate-wrap .rate-label { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin-bottom:6px; font-weight:600; }
.msg-summary .rate { height:8px; background:#e2e8f0; border-radius:999px; overflow:hidden; }
.msg-summary .rate > i { display:block; height:100%; background:#10b981; }
#historyTabs { gap:8px; flex-wrap:wrap; }
#historyTabs .button.active { background:#0f172a; color:#fff; border-color:#0f172a; }
@media (max-width: 720px) {
  .msg-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* 방송 알림톡 발송 모달(4단계) */
.msg-send-modal { max-height: calc(100vh - 48px); overflow: auto; }
.msg-step { display: flex; gap: 14px; margin: 0 0 18px; }
.msg-step-num {
  flex: none; width: 28px; height: 28px; border-radius: 999px;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}
.msg-step-body { flex: 1; min-width: 0; }
.msg-step-body h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.msg-step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.msg-step-head h3 { margin: 0; }
.msg-count { color: var(--primary); font-size: 13px; font-weight: 800; }
.msg-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.msg-choice {
  text-align: left; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; padding: 12px 14px; cursor: pointer;
}
.msg-choice b { display: block; font-size: 14px; margin-bottom: 4px; }
.msg-choice span { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.msg-choice.on { border-color: #a5b4fc; background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(79,70,229,.12); }
.msg-choice:disabled { opacity: .45; cursor: not-allowed; }
.msg-quote { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.msg-quote a { color: var(--primary); font-weight: 700; text-decoration: underline; }
.msg-tip {
  margin: 4px 0 14px; padding: 12px 14px; border-radius: 10px;
  background: #f8fafc; border: 1px solid var(--border); color: var(--muted); font-size: 12px; line-height: 1.55;
}
.message-targets td.ok { color: #047857; font-weight: 700; }
.message-targets td.warn { color: #b45309; font-weight: 700; }
.message-targets tr.skip { opacity: .72; }
@media (max-width: 720px) {
  .msg-choice-grid { grid-template-columns: 1fr; }
  .msg-step { gap: 10px; }
}
