.workflow-reference-scope {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --panel: #fbfcfd;
  --line: #e3e7eb;
  --line-strong: #cfd7df;
  --text: #18201f;
  --muted: #66737a;
  --muted-2: #94a1aa;
  --brand: #4f625f;
  --brand-dark: #3c4c49;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --violet: #7c3aed;
  /* Customer-facing text roles for future LuxiaiTalk theme controls. */
  --customer-color-product: #000;
  --customer-color-label: #374151;
  --customer-color-meta: #66736f;
  --customer-color-option: #64748b;
  --customer-color-schedule: #8b1e1e;
  --customer-font-weight-regular: 400;
  --customer-font-weight-product: 500;
  --customer-font-weight-note: 760;
  --customer-font-weight-list-title: 820;
  --customer-font-weight-emphasis: 850;
  --customer-font-weight-label: 900;
  --customer-font-weight-section-label: 1000;
  --customer-font-size-meta: 11px;
  --customer-font-size-section-label: 12px;
  --customer-line-height-meta: 1.25;
  --customer-line-height-section-label: 1.25;
  --customer-font-size-product: 12px;
  --customer-line-height-product: 1.35;
  --customer-underline-thickness: 1px;
  --customer-underline-offset: 3px;
  --shadow: 0 18px 42px rgba(25, 36, 42, 0.09);
  --radius: 8px;
  color: var(--text);
  font-family:
    "Pretendard Variable",
    Pretendard,
    "Noto Sans KR",
    "Segoe UI",
    system-ui,
    sans-serif;
  width: 100%;
  height: 100%;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f8fafc 0%, #f2f5f6 100%);
}

.dark .workflow-reference-scope {
  --bg: #0f1419;
  --surface: #171e24;
  --surface-alt: #1c252d;
  --panel: #141b21;
  --line: #2d3943;
  --line-strong: #43515d;
  --text: #e8eef2;
  --muted: #a8b4bd;
  --muted-2: #84929d;
  --brand: #5f877f;
  --brand-dark: #b5d2cb;
  --blue: #6ea8fe;
  --green: #58c77a;
  --red: #fb7185;
  --amber: #fbbf24;
  --violet: #a78bfa;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
  background: linear-gradient(180deg, #111820 0%, #0c1116 100%);
}

.workflow-reference-scope,
.workflow-reference-scope * {
  box-sizing: border-box;
}

.workflow-reference-scope button,
.workflow-reference-scope input,
.workflow-reference-scope textarea,
.workflow-reference-scope select {
  font: inherit;
}

.workflow-reference-scope button {
  cursor: pointer;
}

.workflow-reference-scope button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.workflow-reference-scope input,
.workflow-reference-scope textarea,
.workflow-reference-scope select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  outline: none;
}

.workflow-reference-scope input,
.workflow-reference-scope select {
  height: 36px;
  padding: 0 10px;
}

.workflow-reference-scope textarea {
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.45;
}

.workflow-reference-scope textarea.auto-grow-textarea {
  min-height: 112px;
  overflow-y: hidden;
  resize: none;
}

.workflow-reference-scope input:focus,
.workflow-reference-scope textarea:focus,
.workflow-reference-scope select:focus {
  border-color: #9aa8b4;
  box-shadow: 0 0 0 3px rgba(79, 98, 95, 0.15);
}

.workflow-reference-scope.loading-screen,
.workflow-reference-scope .loading-screen {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 9px;
  color: var(--brand);
  text-align: center;
}

.workflow-reference-scope.loading-screen strong,
.workflow-reference-scope .loading-screen strong {
  color: var(--text);
  font-size: 16px;
}

.workflow-reference-scope.loading-screen span,
.workflow-reference-scope .loading-screen span {
  color: var(--muted);
  font-size: 12px;
}

.workflow-reference-scope.app-shell,
.workflow-reference-scope .app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
}

.field-label,
.section-label {
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hint,
.microcopy {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.handoff-copy {
  white-space: pre-line;
}

.handoff-exit-copy {
  color: var(--customer-color-meta);
}

.action-result-message {
  white-space: pre-line;
}

.two-buttons {
  grid-template-columns: 1fr 1fr;
}

.primary-button,
.ghost-button,
.danger-outline,
.small-danger,
.icon-button,
.add-node-grid button,
.topbar-actions button,
.composer button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.topbar-actions button.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.primary-button.danger {
  border-color: #b91c1c;
  background: #b91c1c;
}

.ghost-button {
  background: #fff;
}

.danger-outline,
.small-danger {
  border-color: #fecaca;
  background: #fff5f5;
  color: #b91c1c;
}

.danger-outline.is-locked {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.wide {
  width: 100%;
}

.icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 0;
  background: #fff;
}

.add-node-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.add-node-grid button {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--node-color) 22%, white);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--node-color) 7%, white);
  padding: 0 8px;
  color: color-mix(in srgb, var(--node-color) 82%, #111 18%);
  font-size: 11px;
  font-weight: 850;
}

.add-node-grid {
  overflow: visible;
}

.main-shell {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
}

.workflow-home-shell {
  display: block;
  min-height: 100vh;
  overflow: auto;
  background: #f6f7f9;
}

.workflow-home {
  min-height: 100vh;
  color: #111827;
}

.workflow-home-topbar {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.92);
  padding: 20px 24px;
  backdrop-filter: blur(14px);
}

.workflow-home-topbar h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

.workflow-home-topbar p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 12px;
}

.workflow-home-actions,
.workflow-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workflow-home-primary,
.workflow-home-secondary,
.workflow-home-danger {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #fff;
  padding: 0 13px;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.workflow-home-primary {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.workflow-home-danger {
  border-color: #fecaca;
  color: #dc2626;
}

.workflow-home-list {
  display: grid;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 32px 24px 72px;
  gap: 12px;
}

.workflow-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #dfe5eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.workflow-list-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.workflow-list-card.active {
  border-color: #c9d8d3;
}

.workflow-list-main {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.workflow-list-main strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-list-main small,
.workflow-list-kicker {
  overflow: hidden;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-list-kicker {
  color: #6b7280;
  font-weight: 800;
}

.workflow-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.workflow-list-meta em,
.workflow-home-footer span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  padding: 0 8px;
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.workflow-list-meta em.published,
.workflow-home-footer span.dirty {
  background: #ecfdf3;
  color: #15803d;
}

.workflow-home-footer {
  position: fixed;
  right: 18px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
}

.workflow-empty-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #9ca3af;
  text-align: center;
}

.workflow-empty-state.compact {
  min-height: 180px;
}

.workflow-empty-state strong {
  color: #4b5563;
  font-size: 14px;
}

.workflow-empty-state span {
  font-size: 12px;
}

.workflow-modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.18);
}

.workflow-scheduling-drawer {
  display: flex;
  width: min(440px, 100%);
  height: 100%;
  flex-direction: column;
  border-left: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: -24px 0 48px rgba(15, 23, 42, 0.12);
}

.workflow-scheduling-drawer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f7;
  padding: 18px;
}

.workflow-scheduling-drawer h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 850;
}

.workflow-scheduling-drawer p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.schedule-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.schedule-list section {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 13px;
}

.schedule-list section > svg {
  color: var(--brand);
}

.schedule-list strong,
.schedule-list span,
.schedule-list small {
  display: block;
  min-width: 0;
}

.schedule-list strong {
  font-size: 13px;
  font-weight: 850;
}

.schedule-list span {
  margin-top: 4px;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.45;
}

.schedule-list small {
  margin-top: 7px;
  color: #6b7280;
  font-size: 11px;
}

.topbar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px 14px;
  backdrop-filter: blur(14px);
}

.topbar h1 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.topbar-title {
  min-width: 0;
  flex: 1 1 220px;
}

.topbar-name-row,
.topbar-name-editor {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.topbar-name-row h1 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-name-edit,
.topbar-name-confirm,
.topbar-name-cancel {
  display: inline-flex;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
}

.topbar-name-edit:hover,
.topbar-name-cancel:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.topbar-name-confirm {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.topbar-name-editor input {
  width: min(420px, 100%);
  min-width: 160px;
  height: 32px;
  border: 1px solid var(--brand);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.topbar-actions {
  display: flex;
  flex: 1 1 460px;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.save-state,
.config-pill {
  display: inline-flex;
  flex: 0 1 auto;
  max-width: 260px;
  min-height: 28px;
  align-items: center;
  border: 1px solid #d5eadc;
  border-radius: 6px;
  background: #f3fbf5;
  padding: 0 9px;
  color: #15803d;
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions button {
  min-width: 0;
  border-radius: 8px;
  margin-left: 0;
  background: #fff;
  white-space: nowrap;
}

.topbar-actions .icon-only {
  width: 31px;
  min-height: 31px;
  padding: 0;
  color: #6b7280;
}

.save-state.dirty {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.save-state.failed {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.config-pill {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.config-pill.publication-pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.config-pill.publication-live {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.config-pill.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.topbar-actions .dark-action,
.topbar-actions .publish-action {
  border-color: #111827;
  background: #111827;
  color: #fff;
}

.topbar-actions .subtle-action {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.mobile-tabs {
  display: none;
}

.workbench {
  --graph-panel-min-w: 420px;
  --editor-panel-min-w: 360px;
  --editor-panel-max-w: 460px;
  --preview-panel-min-w: 500px;
  --preview-panel-max-w: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(var(--editor-panel-min-w), var(--editor-panel-max-w));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  flex: 1;
  padding: 12px;
  overflow: hidden;
}

.workbench.preview-open {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(var(--preview-panel-min-w), var(--preview-panel-max-w))
    minmax(var(--editor-panel-min-w), var(--editor-panel-max-w));
  overflow: hidden;
}

.graph-panel,
.editor-panel,
.widget-panel,
.tool-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.graph-panel {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
}

.widget-panel {
  position: relative;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  align-items: stretch;
  justify-content: center;
  background:
    linear-gradient(180deg, #f1f5f9 0%, #e9eef1 100%);
  padding: 12px;
  z-index: 1;
}

.device-preview-lab {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
}

.device-preview-toolbar {
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  border: 1px solid rgba(79, 98, 95, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 9px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.device-preview-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.device-preview-title strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.device-preview-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-preview-presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
}

.draft-preview-title {
  flex-wrap: wrap;
}

.draft-preview-title > strong {
  flex-shrink: 0;
}

.draft-preview-title > span {
  order: 3;
  flex-basis: 100%;
  white-space: normal;
  font-size: 11px;
  line-height: 1.5;
}

/* Editor preview: edits made during a preview conversation apply to the next one. */
.draft-preview-stale {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--amber) 10%, var(--surface));
  padding: 6px 8px;
}

.draft-preview-stale span {
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

.draft-preview-stale button {
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 9px;
  cursor: pointer;
}

.draft-preview-stale button:hover {
  border-color: var(--amber);
}

.draft-preview-stale button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.device-preview-presets button {
  display: grid;
  min-width: 0;
  min-height: 42px;
  gap: 3px;
  border: 1px solid #dbe3e1;
  border-radius: 10px;
  background: #fff;
  padding: 7px 8px;
  color: var(--text);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.device-preview-presets button:hover {
  border-color: rgba(79, 98, 95, 0.38);
  background: #f8fbfa;
  transform: translateY(-1px);
}

.device-preview-presets button.active {
  border-color: rgba(79, 98, 95, 0.56);
  background: #eef5f3;
  box-shadow: inset 0 0 0 1px rgba(79, 98, 95, 0.18);
}

.device-preview-presets strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-preview-presets span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-preview-stage {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  place-items: start center;
  overflow: auto;
  padding: 8px 0 18px;
  scrollbar-gutter: stable both-edges;
}

.device-frame-slot {
  position: relative;
  width: var(--device-slot-w);
  height: var(--device-slot-h);
  flex: 0 0 auto;
}

.device-frame-shell {
  position: relative;
  width: var(--device-frame-w);
  height: var(--device-frame-h);
  transform: scale(var(--device-frame-scale));
  transform-origin: top left;
}

.device-screen-window {
  position: absolute;
  z-index: 1;
  top: var(--device-screen-y);
  left: var(--device-screen-x);
  width: var(--device-screen-w);
  height: var(--device-screen-h);
  overflow: hidden;
  border-radius: var(--device-screen-radius);
  background: var(--device-system-surface, #f7f7f8);
  box-shadow: inset 0 0 0 2px var(--device-system-surface, #f7f7f8);
}

.device-frame-asset {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.device-status-bar {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: var(--device-status-h);
  overflow: hidden;
  background: var(--device-system-surface, #f7f7f8);
  pointer-events: none;
  user-select: none;
}

.device-frame-slot.android .device-status-bar {
  box-shadow: 0 2px 0 var(--device-system-surface, #f7f7f8);
}

.device-system-ui-asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.device-widget-viewport {
  position: absolute;
  z-index: 2;
  inset: var(--device-status-h) 0 0 0;
  overflow: hidden;
  background: #f6f8f6;
}

.device-widget-scale-shell {
  width: var(--device-viewport-w);
  height: var(--device-content-h);
  transform: scale(var(--device-screen-scale));
  transform-origin: top left;
}

.device-widget-viewport .widget-phone {
  width: 100%;
  max-width: none;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.device-widget-viewport .widget-header,
.device-widget-viewport .widget-tabs {
  border-radius: 0;
}

.device-system-navigation {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--device-home-h);
  pointer-events: none;
  user-select: none;
}

.device-navigation-ui-asset {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 0.82;
}

.device-system-navigation.android .device-navigation-ui-asset {
  opacity: 0.58;
}

.web-preview-stage {
  place-items: start center;
  overflow: hidden;
  scrollbar-gutter: auto;
}

.device-web-slot {
  width: min(100%, var(--device-slot-w));
  height: calc(var(--device-slot-h) + 92px);
  min-height: 0;
}

.device-web-window {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 92%, rgba(79, 98, 95, 0.13), transparent 32%),
    linear-gradient(180deg, #f9fbfa 0%, #eef3f1 100%);
}

.device-web-window .widget-phone {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: var(--device-slot-h);
  border-radius: 24px;
}

.device-web-window .widget-phone-minimized {
  display: none;
}

.workflow-reference-runtime-only {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
}

.workflow-reference-runtime-shell {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 0;
}

.workflow-reference-runtime-shell .widget-phone {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.workflow-reference-runtime-shell .web-widget-launcher {
  display: none;
}

.web-widget-launcher {
  position: absolute;
  right: 20px;
  bottom: 16px;
  z-index: 10;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 0;
  border-radius: 24px;
  background: var(--widget-floating-button-bg, var(--widget-action-bg, var(--brand)));
  color: var(--widget-floating-button-fg, var(--widget-action-fg, #fff));
  box-shadow: 0 20px 44px rgba(31, 41, 38, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 280ms cubic-bezier(0.2, 0.85, 0.2, 1), box-shadow 180ms ease, opacity 160ms ease;
}

.web-widget-launcher:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 52px rgba(31, 41, 38, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.web-widget-launcher:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.web-widget-launcher:disabled {
  cursor: default;
}

.web-widget-launcher svg {
  width: 32px;
  height: 32px;
}

.editor-panel {
  position: relative;
  display: flex;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  font-size: 12px;
  overflow: hidden;
  scrollbar-gutter: stable;
  z-index: 2;
}

.preview-open .editor-panel {
  grid-column: 3;
}

.preview-open .widget-panel {
  grid-column: 2;
}

.version-history-panel {
  background: #fff;
}

.version-history-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.version-history-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.version-history-row.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.version-badge {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
}

.version-history-row.active .version-badge {
  background: #2563eb;
  color: #fff;
}

.version-history-row strong,
.version-history-row span,
.version-history-row small {
  display: block;
  min-width: 0;
}

.version-history-row strong {
  font-size: 12px;
  font-weight: 850;
}

.version-history-row span,
.version-history-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-history-row em {
  border-radius: 999px;
  background: #dbeafe;
  padding: 4px 8px;
  color: #1d4ed8;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.editor-tabs {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px 9px;
  overflow: visible;
}

.editor-tabs button {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  margin-left: -1px;
  margin-top: -1px;
  background: #fff;
  padding: 0 7px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
  word-break: keep-all;
}

.editor-tabs button svg {
  flex: 0 0 auto;
}

.editor-tabs button:nth-child(4n + 1) {
  margin-left: 0;
}

.editor-tabs button:nth-child(-n + 4) {
  margin-top: 0;
}

.editor-tabs button:nth-child(1) {
  border-radius: 7px 0 0 0;
}

.editor-tabs button:nth-child(4) {
  border-radius: 0 7px 0 0;
}

.editor-tabs button:nth-child(4n + 1):nth-last-child(-n + 4) {
  border-radius: 0 0 0 7px;
}

.editor-tabs button:last-child {
  border-radius: 0 0 7px 0;
}

.editor-tabs button.active {
  position: relative;
  z-index: 1;
  border-color: color-mix(in srgb, var(--brand) 38%, white);
  background: #eef4f2;
  color: var(--brand-dark);
}

.editor-tabs button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.editor-tab-body {
  display: grid;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px;
  scrollbar-gutter: stable;
}

/* 노드 탭은 칸마다 내용 높이 그대로 두고 탭 전체를 스크롤한다.
   기본 그리드는 칸들이 남은 높이를 똑같이 나눠 갖고 넘친 부분을 잘라서,
   긴 '안내 메뉴 내용'(크리스마스 안내)이 약 200px만 보이고 아래 칸에 닿을 수 없었다. */
.editor-tab-body.node-tab-body {
  grid-auto-rows: max-content;
  overflow-x: hidden;
  overflow-y: auto;
}

.editor-tab-body.copy-tab-body,
.editor-tab-body.card-tab-body {
  display: flex;
  flex-direction: column;
  align-content: stretch;
  overflow: hidden;
}

.editor-tab-body > .tab-panel-section {
  min-height: 0;
  overflow: hidden;
}

.tab-panel-section {
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.tab-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
  padding: 9px 10px;
}

.tab-panel-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tab-panel-head strong,
.product-guide-head strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.tab-panel-head span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.tab-panel-head.action-head {
  grid-template-columns: minmax(0, 1fr) 34px;
}

.settings-editor-stack,
.product-guide-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.master-collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.master-collection-grid span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.master-collection-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-library-panel .details-body {
  gap: 9px;
}

.workflow-library-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.workflow-select-field select {
  width: 100%;
}

.workflow-library-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.workflow-library-actions .ghost-button {
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.compact-button {
  min-height: 28px;
  padding-inline: 8px;
  font-size: 10.5px;
}

.widget-theme-editor .details-body {
  gap: 8px;
}

.theme-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.theme-preset-grid button {
  display: inline-flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0 7px;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.1;
  white-space: nowrap;
}

.theme-preset-grid button span {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
}

.theme-preset-grid button.active {
  border-color: color-mix(in srgb, var(--brand) 38%, white);
  background: #eef4f2;
  color: var(--brand-dark);
}

.theme-main-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: end;
}

.theme-main-field,
.theme-field {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.theme-main-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.theme-link-button {
  min-height: 32px;
  padding-inline: 9px;
  font-size: 10.5px;
  white-space: nowrap;
}

.theme-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.theme-field {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 7px;
}

.theme-field > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.theme-field strong {
  overflow: hidden;
  color: var(--text);
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-field em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-color-control {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.theme-color-control input[type="color"] {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.theme-color-control input[type="text"] {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 7px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10.5px;
}

.theme-preview-strip {
  display: grid;
  justify-self: center;
  width: min(100%, 300px);
  overflow: hidden;
  border: 1px solid var(--widget-border);
  border-radius: 14px;
  background: var(--widget-surface);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.theme-preview-header {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--widget-header-bg);
  color: var(--widget-header-fg);
  padding: 8px 10px;
}

.theme-preview-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.theme-preview-brand span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--widget-header-fg) 22%, transparent);
  border-radius: 8px;
  color: var(--widget-header-fg);
}

.theme-preview-header strong {
  font-size: 12px;
  font-weight: 900;
}

.theme-preview-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-bottom: 1px solid var(--widget-border);
  background: color-mix(in srgb, var(--widget-surface) 86%, white);
  padding: 6px 8px;
}

.theme-preview-tabs span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--widget-muted);
  font-size: 10px;
  font-weight: 850;
}

.theme-preview-tabs span.active {
  border-color: var(--widget-border);
  background: var(--widget-surface);
  color: var(--widget-brand-dark);
}

.theme-preview-body {
  display: grid;
  gap: 6px;
  background: var(--widget-surface);
  padding: 8px;
}

.theme-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--widget-brand-dark);
  font-size: 9.5px;
  font-weight: 850;
}

.theme-preview-status i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--widget-online-dot);
}

.theme-preview-body p,
.theme-preview-body span {
  margin: 0;
  border: 1px solid var(--widget-border);
  border-radius: 9px;
  padding: 6px 8px;
  font-size: 10.5px;
  line-height: 1.25;
}

.theme-preview-body p {
  justify-self: start;
  max-width: 78%;
  background: var(--widget-agent-bubble-bg);
  color: var(--widget-agent-bubble-fg);
}

.theme-preview-body span {
  justify-self: end;
  max-width: 76%;
  background: var(--widget-customer-bubble-bg);
  color: var(--widget-customer-bubble-fg);
}

.theme-preview-body button {
  min-height: 28px;
  border: 1px solid var(--widget-action-bg);
  border-radius: 9px;
  background: var(--widget-action-bg);
  color: var(--widget-action-fg);
  font-size: 10.5px;
  font-weight: 900;
}

/* 위젯 버튼 장식: 쇼핑몰 화면 모서리에 실제 크기(62px) 런처와 장식을 보여 준다. */
.launcher-decoration-editor .details-body {
  gap: 8px;
}

.theme-preset-grid.launcher-decoration-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.launcher-option-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.launcher-option-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.launcher-style-swatch.white {
  background: #fff;
}

.launcher-preview-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.launcher-decoration-swatch.none {
  background: #fff;
}

.launcher-decoration-swatch.christmas-hat {
  border-color: #fff !important;
  background: #e5484d;
  box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.45);
}

.launcher-decoration-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.launcher-decoration-stage {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
}

.launcher-decoration-page {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 56%;
  gap: 6px;
}

.launcher-decoration-page i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #e9ecf0;
}

.launcher-decoration-page i:nth-child(2) {
  width: 78%;
}

.launcher-decoration-page i:nth-child(3) {
  width: 52%;
}

.launcher-decoration-button {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: var(--launcher-preview-bg);
  color: var(--launcher-preview-fg);
  box-shadow:
    0 14px 30px -12px color-mix(in srgb, var(--launcher-preview-bg) 62%, transparent),
    0 4px 10px rgba(17, 24, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.launcher-decoration-period {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.launcher-decoration-period label {
  display: grid;
  gap: 3px;
}

.launcher-decoration-period label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.launcher-decoration-period input[type="date"] {
  width: 100%;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 7px;
  color: var(--text);
  font-size: 10.5px;
}

.launcher-decoration-period input[type="date"]:disabled {
  opacity: 0.55;
}

.launcher-decoration-status {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
}

.launcher-decoration-status.on {
  color: var(--green);
}

.launcher-decoration-status.warn {
  color: var(--red);
}

.launcher-decoration-hint {
  color: var(--muted);
  font-size: 9.5px;
  font-style: normal;
  line-height: 1.35;
}

.launcher-decoration-period .launcher-decoration-clear {
  justify-self: start;
  min-height: 26px;
  padding-inline: 9px;
  font-size: 10.5px;
}

.dark .workflow-reference-scope .launcher-decoration-page i {
  background: color-mix(in srgb, var(--text) 16%, transparent);
}

.dark .workflow-reference-scope .launcher-decoration-period input[type="date"] {
  color-scheme: dark;
}

.workflow-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.workflow-meta-grid span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.workflow-meta-grid strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-version-list {
  display: grid;
  gap: 6px;
}

.workflow-version-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 7px 8px;
  color: var(--text);
  text-align: left;
}

.workflow-version-item span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.workflow-version-item strong {
  font-size: 11px;
  line-height: 1.2;
}

.workflow-version-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-version-item em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--surface-alt);
  padding: 3px 7px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.workflow-version-item:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background: color-mix(in srgb, var(--brand) 5%, white);
}

.workflow-version-item.active {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, white);
}

.workflow-version-item.active em {
  background: color-mix(in srgb, var(--brand) 12%, white);
  color: var(--brand-dark);
}

.spin-icon {
  animation: spin-icon 850ms linear infinite;
}

@keyframes spin-icon {
  to {
    transform: rotate(360deg);
  }
}

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

.status-grid span {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 7px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.status-grid strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.product-guide-editor {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 9px;
}

.product-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.faq-editor-list {
  display: grid;
  gap: 9px;
}

.faq-editor-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
}

.faq-editor-empty strong {
  color: var(--text);
  font-size: 12px;
}

.faq-editor-empty span {
  font-size: 10px;
  line-height: 1.45;
}

.faq-editor-item .field-control small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.faq-order-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.faq-order-actions .icon-button,
.faq-order-actions .small-danger {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
}

.faq-order-actions button:disabled {
  cursor: default;
  opacity: 0.35;
}

.faq-rich-field {
  gap: 0;
}

.faq-format-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface-alt);
  padding: 4px;
}

.faq-format-toolbar button {
  display: grid;
  width: 28px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.faq-format-toolbar button:hover,
.faq-format-toolbar button:focus-visible {
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.faq-format-toolbar button[aria-pressed='true'] {
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand);
}

.faq-format-toolbar button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.faq-format-toolbar button:disabled:hover {
  background: transparent;
  color: var(--muted);
}

.faq-format-help {
  min-width: 180px;
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.faq-rich-editor {
  min-height: 104px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: var(--surface);
  padding: 9px 10px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.faq-rich-editor:focus {
  border-color: var(--brand);
  outline: 2px solid color-mix(in srgb, var(--brand) 13%, transparent);
}

.faq-rich-editor:empty::before {
  color: var(--muted);
  content: attr(data-placeholder);
  pointer-events: none;
}

.faq-rich-editor strong,
.faq-rich-editor b,
.widget-faq-answer strong,
.widget-faq-answer b {
  font-weight: 800;
}

.faq-rich-editor u,
.widget-faq-answer u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.faq-rich-editor em,
.faq-rich-editor i,
.widget-faq-answer em,
.widget-faq-answer i {
  font-style: italic;
}

.faq-link-editor {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.faq-link-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.faq-link-editor-head strong {
  color: var(--text);
  font-size: 10px;
}

.faq-link-editor-head .ghost-button {
  min-height: 28px;
  padding-inline: 8px;
  font-size: 10px;
}

.faq-link-row {
  display: grid;
  grid-template-columns: minmax(80px, 0.8fr) minmax(120px, 1.2fr) 30px;
  gap: 5px;
}

.faq-link-row input {
  min-width: 0;
}

.panel-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.panel-heading p {
  max-width: 680px;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.panel-heading {
  display: flex;
  flex: 0 0 auto;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}

.panel-heading.compact {
  padding: 10px 12px 9px;
}

.panel-heading > div:first-child {
  min-width: 0;
  flex: 1 1 260px;
}

.legend {
  display: flex;
  min-width: 0;
  flex: 1 1 300px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.small-toolbar-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  border: 1px solid #d4dce4;
  border-radius: 999px;
  background: #fff;
  padding: 0 9px;
  color: #334155;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.small-toolbar-button:hover {
  border-color: var(--brand);
  background: #f5f8f7;
  color: var(--brand);
}

.legend span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.active {
  background: var(--blue);
}

.legend-dot.connected {
  background: var(--brand);
}

.legend-dot.selected {
  background: #b45309;
}

.flow-canvas {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  background: #f8fafc;
}

.flow-canvas .react-flow {
  position: relative;
  z-index: 3 !important;
  background: transparent !important;
}

.flow-canvas .react-flow__pane {
  cursor: grab;
}

.flow-canvas .react-flow__pane.dragging {
  cursor: grabbing;
}

.flow-canvas .react-flow__node {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.flow-canvas .react-flow__node.selected {
  box-shadow: none;
}

.flow-canvas .react-flow__node-workflowNode {
  z-index: 8;
}

.flow-canvas .react-flow__node.dragging,
.flow-canvas .react-flow__node:has(.workflow-node.dragging) {
  z-index: 90 !important;
}

.workflow-flow-edge {
  cursor: pointer;
}

.workflow-flow-edge .react-flow__edge-path {
  transition:
    opacity 140ms ease,
    stroke 140ms ease,
    stroke-width 140ms ease;
}

.workflow-flow-edge:not(.selected):not(.connected):not(.active) .react-flow__edge-path {
  opacity: 0.54;
}

.workflow-flow-edge.connected .react-flow__edge-path {
  filter: drop-shadow(0 4px 9px rgba(79, 98, 95, 0.22));
}

.workflow-flow-edge.selected .react-flow__edge-path {
  filter: drop-shadow(0 5px 10px rgba(180, 83, 9, 0.28));
}

.workflow-flow-edge.route-selected .react-flow__edge-path {
  filter: drop-shadow(0 5px 10px rgba(15, 118, 110, 0.26));
}

.workflow-flow-edge.router-candidate-edge .react-flow__edge-path {
  stroke-dasharray: 6 5;
}

.workflow-flow-edge.customer-input-output-edge.connected .react-flow__edge-path,
.workflow-flow-edge.customer-input-output-edge.active .react-flow__edge-path {
  filter: drop-shadow(0 4px 10px rgba(15, 118, 110, 0.18));
}

.flow-canvas .react-flow__edge-text,
.flow-canvas .react-flow__edge-textbg {
  cursor: pointer;
}

.flow-minimap {
  width: 148px;
  height: 106px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.workflow-node {
  --route-row-bg: color-mix(in srgb, var(--node-color) 4%, #fff);
  --route-row-bg-hover: color-mix(in srgb, var(--node-color) 7%, #fff);
  --route-row-border: color-mix(in srgb, var(--node-color) 24%, var(--line));
  --route-row-border-strong: color-mix(in srgb, var(--node-color) 46%, var(--line-strong));
  --route-row-text: color-mix(in srgb, var(--node-color) 70%, #1f2937 30%);
  --route-handle-ring: color-mix(in srgb, var(--node-color) 30%, #fff);
  position: relative;
  display: block;
  width: 228px;
  min-height: 104px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0;
  color: var(--text);
  text-align: left;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.07);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.workflow-node:hover,
.workflow-node.selected {
  border-color: var(--node-color);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--node-color) 18%, transparent);
  transform: translateY(-1px);
}

.workflow-node.dragging {
  border-color: var(--node-color);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--node-color) 16%, transparent),
    0 22px 42px rgba(15, 23, 42, 0.2);
  cursor: grabbing;
  opacity: 0.94;
  transform: none;
}

.workflow-lane-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 228px;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform;
}

.workflow-node.lane-preview-node {
  position: relative;
  border: 1.5px dashed color-mix(in srgb, var(--node-color) 34%, #d8dee6);
  border-style: dashed;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(248, 250, 252, 0.42)),
    color-mix(in srgb, var(--node-color) 4%, #fff);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--node-color) 7%, transparent),
    0 12px 24px rgba(15, 23, 42, 0.08);
  opacity: 0.58;
  pointer-events: none;
  transform: none;
}

.workflow-node.lane-preview-node::before {
  content: "스냅 위치";
  position: absolute;
  top: -25px;
  left: 0;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--node-color) 42%, #cbd5e1);
  border-radius: 999px;
  background: color-mix(in srgb, var(--node-color) 88%, #111827);
  color: #fff;
  padding: 3px 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

.workflow-lane-preview-overlay .workflow-node.lane-preview-node::before {
  content: none;
  display: none;
}

.workflow-node.lane-preview-node.adjusted-y {
  opacity: 0.96;
  border-style: solid;
}

.workflow-node.lane-preview-node .node-head {
  background: color-mix(in srgb, var(--node-color) 10%, rgba(255, 255, 255, 0.35));
}

.workflow-node.lane-preview-node strong,
.workflow-node.lane-preview-node p,
.workflow-node.lane-preview-node .node-head span {
  color: color-mix(in srgb, var(--node-color) 82%, #111827);
  opacity: 0.46;
}

.lane-preview-node-ports {
  opacity: 0.58;
}

.lane-preview-route {
  border-color: var(--route-row-border);
  background: var(--route-row-bg);
}

.lane-preview-handle {
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 0 1px var(--route-handle-ring);
  transform: translateY(-50%);
}

.lane-preview-handle.right {
  right: -7px;
  left: auto;
}

.lane-preview-handle.muted {
  background: #94a3b8;
}

.workflow-node.active {
  border-color: var(--node-color);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--node-color) 12%, transparent),
    0 18px 34px rgba(31, 41, 55, 0.14);
}

.node-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--node-color) 22%, white);
  border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--node-color) 9%, white);
  padding: 6px 9px;
}

.node-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: color-mix(in srgb, var(--node-color) 78%, #111 22%);
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
}

.workflow-node strong {
  display: block;
  padding: 9px 10px 0;
  font-size: 11.5px;
  line-height: 1.25;
}

.workflow-node p {
  display: -webkit-box;
  min-height: 28px;
  margin: 4px 0 0;
  overflow: hidden;
  padding: 0 10px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.node-ports {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 7px 9px 9px;
}

.node-routes {
  display: grid;
  gap: 4px;
}

.node-hidden-route-handles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.node-hidden-route-handles .hidden-route-handle {
  width: 1px;
  height: 1px;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0 !important;
  pointer-events: none;
}

.node-hidden-route-handles .route-target {
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
}

.node-hidden-route-handles .route-source {
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
}

.node-route-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid var(--route-row-border);
  border-radius: 6px;
  background: var(--route-row-bg);
  padding: 4px 8px;
  box-shadow: none;
}

.node-route-row.clickable {
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.node-route-row.clickable:hover {
  border-color: var(--route-row-border-strong);
  background: var(--route-row-bg-hover);
}

.node-route-row.clickable:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--node-color) 58%, #2563eb);
  outline-offset: 2px;
}

.node-route-row.route-selected {
  border-color: var(--route-row-border-strong);
  background: var(--route-row-bg-hover);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--node-color) 20%, transparent);
}

.node-route-row.route-selected .node-route-label {
  color: color-mix(in srgb, var(--node-color) 82%, #0f172a);
}

.node-route-row.route-selected .flow-handle {
  opacity: 1;
  box-shadow: 0 0 0 1px var(--route-handle-ring);
}

.node-route-row.has-left-handle {
  padding-left: 21px;
}

.node-route-row.has-right-handle {
  padding-right: 21px;
}

.node-route-row.paired-route {
  border-color: var(--route-row-border);
  background: var(--route-row-bg);
}

.node-route-row.customer-input-output {
  border-color: var(--route-row-border);
  background: var(--route-row-bg);
}

.node-route-row.customer-input-output.virtual-port {
  border-style: solid;
}

.node-route-row.router-candidate {
  border-style: solid;
  background: var(--route-row-bg);
}

.node-route-row.incoming {
  background: var(--route-row-bg);
}

.workflow-node.terminal-node .node-routes {
  gap: 3px;
}

.workflow-node.terminal-node .node-route-row {
  min-height: 22px;
  padding-top: 3px;
  padding-bottom: 3px;
}

.workflow-node.terminal-node .node-route-row.has-left-handle {
  padding-left: 19px;
}

.workflow-node.terminal-node .node-route-label {
  font-size: 9px;
  line-height: 1.16;
}

.node-route-label {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--route-row-text);
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.node-route-row.muted {
  border-style: dashed;
  background: var(--route-row-bg);
}

.node-route-row.new {
  border-style: dashed;
  background: #fff;
}

.node-route-row.new.clickable:hover {
  border-color: var(--route-row-border-strong);
  background: var(--route-row-bg-hover);
}

.node-route-row.new .node-route-label {
  color: var(--muted);
}

.flow-handle {
  width: 10px;
  height: 10px;
  border: 1.5px solid #fff;
  background: var(--node-color);
  box-shadow: 0 0 0 1px var(--route-handle-ring);
  opacity: 0.9;
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    border-color 120ms ease;
}

.workflow-node:hover .flow-handle,
.workflow-node.selected .flow-handle {
  opacity: 1;
}

.flow-handle:hover {
  transform: scale(1.18);
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--route-handle-ring);
}

.node-route-row .route-source {
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.node-route-row .route-target {
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.node-route-row .flow-handle:hover {
  transform: translateY(-50%) scale(1.18);
}

.node-route-row .new-route {
  background: #64748b;
}

.node-route-row .new-target {
  background: #64748b;
}

.editor-section {
  display: grid;
  flex: 0 0 auto;
  gap: 7px;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
}

.inspector-summary-section {
  flex: 0 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.inspector-details {
  display: block;
  padding: 0;
}

.inspector-details > summary {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 8px 10px;
  cursor: pointer;
  user-select: none;
}

.inspector-details > summary::-webkit-details-marker {
  display: none;
}

.inspector-details > summary span {
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.inspector-details > summary small {
  border-radius: 999px;
  background: #eef4f2;
  padding: 2px 6px;
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.inspector-details[open] > summary {
  border-bottom: 1px solid var(--line);
}

.details-body {
  display: grid;
  gap: 7px;
  padding: 8px 10px 10px;
}

.node-content-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.node-content-body .field-control,
.node-content-body .protected-node-warning,
.node-content-body .node-readonly-note,
.node-content-body .editor-actions {
  grid-column: 1 / -1;
}

.details-note,
.section-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.details-note.warning {
  color: #b45309;
}

.section-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.node-summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--node-color) 24%, white);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--node-color) 8%, white);
  padding: 7px;
}

.summary-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--radius);
  background: #fff;
  color: var(--node-color);
}

.node-summary span,
.node-summary strong {
  display: block;
}

.node-summary span {
  color: var(--node-color);
  font-size: 9px;
  font-weight: 850;
}

.node-summary strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-row h3,
.section-row p {
  margin: 0;
}

.section-row h3 {
  font-size: 12px;
}

.section-row p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.quick-editor-list {
  display: grid;
  gap: 6px;
}

.quick-editor {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 7px;
}

.quick-editor label,
.form-stack label,
.edge-editor-card label,
.field-control {
  display: grid;
  gap: 4px;
}

.quick-editor span,
.form-stack label > span,
.edge-editor-card span,
.field-control > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.readonly-field-value {
  min-height: 30px;
  border: 1px solid #d7e0df;
  border-radius: 8px;
  background: #f8faf9;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.readonly-field-value.multiline {
  min-height: 58px;
  white-space: pre-wrap;
}

.node-readonly-note {
  border: 1px solid #dce8e4;
  border-radius: 8px;
  background: #f8fbfa;
  padding: 8px 10px;
}

.small-danger {
  justify-self: end;
  min-height: 30px;
}

.small-danger.icon-only {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}

.message-template-section .details-body {
  gap: 9px;
}

.node-copy-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
  padding: 9px 10px;
}

.node-copy-context div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.node-copy-context strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-copy-context span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.node-copy-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf3ef;
  padding: 3px 8px;
  color: var(--brand-dark) !important;
  font-size: 9px !important;
  font-weight: 850;
}

.editor-tab-body.copy-tab-body .message-template-section,
.editor-tab-body.card-tab-body .card-template-section {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.editor-tab-body.copy-tab-body .message-template-section .details-body,
.editor-tab-body.card-tab-body .card-template-section .details-body {
  min-height: 0;
  overflow: hidden;
  padding-right: 10px;
}

.sidebar-picker-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.sidebar-picker-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.single-template-editor,
.single-card-template-stack {
  min-height: 0;
}

.single-card-template-layout {
  min-height: 0;
}

.message-template-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 9px;
}

.message-template-group {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 8px;
}

.node-direct-copy-group {
  background: #f8fbfa;
}

.message-template-group-head {
  display: grid;
  gap: 2px;
}

.message-template-group-head strong {
  font-size: 11px;
}

.message-template-group-head span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.message-template-field {
  position: relative;
  border-top: 1px solid #edf1f4;
  padding-top: 7px;
}

.message-template-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.message-template-field small {
  min-width: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  text-align: right;
}

.message-template-field code {
  overflow: hidden;
  max-width: 128px;
  border-radius: 999px;
  background: #eef4f2;
  padding: 2px 6px;
  color: var(--brand-dark);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tiny-reset-button {
  justify-self: end;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 9px;
}

.message-template-empty {
  display: grid;
  gap: 4px;
  border: 1px dashed #cad7d3;
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 12px;
}

.message-template-empty strong {
  color: var(--ink);
  font-size: 11px;
}

.message-template-empty span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.card-template-section .details-body {
  display: grid;
  gap: 10px;
}

.card-template-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  overflow: visible;
  padding-bottom: 2px;
}

.card-template-subtabs button {
  flex: 1 1 112px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0;
  margin-left: -1px;
  margin-top: -1px;
  background: #fff;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  white-space: normal;
  text-align: center;
}

.card-template-subtabs button:first-child {
  margin-left: 0;
  border-radius: 6px 0 0 6px;
}

.card-template-subtabs button:last-child {
  border-radius: 0 6px 6px 0;
}

.card-template-subtabs button.active {
  border-color: color-mix(in srgb, var(--brand) 36%, white);
  background: #eef4f2;
  color: var(--brand-dark);
}

.card-template-stack {
  display: grid;
  gap: 12px;
}

.card-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.card-template-preview-pane,
.card-template-fields {
  display: grid;
  min-width: 0;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 9px;
}

.card-template-pane-head {
  display: grid;
  gap: 2px;
}

.card-template-pane-head strong {
  color: var(--ink);
  font-size: 11px;
}

.card-template-pane-head span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
}

.card-template-preview-surface {
  display: grid;
  min-height: 168px;
  align-items: start;
  justify-items: start;
  border: 1px solid #edf1f4;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(79, 98, 95, 0.06), rgba(255, 255, 255, 0.78)),
    #fff;
  padding: 12px;
}

.card-template-preview-surface .runtime-card {
  width: min(100%, 370px);
  max-width: 100%;
  justify-self: start;
  border-radius: 16px;
  border-top-right-radius: 8px;
  box-shadow: 0 12px 24px rgba(31, 41, 38, 0.09);
}

.card-template-preview-surface .runtime-card-head strong {
  font-size: 12px;
}

.card-template-preview-surface .microcopy,
.card-template-preview-surface .success-note {
  font-size: 10.5px;
}

.template-preview-text {
  white-space: normal;
}

.card-confirm-preview {
  display: grid;
  width: min(100%, 320px);
  gap: 10px;
  border-radius: 22px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 14px 28px rgba(31, 41, 38, 0.12);
}

.card-confirm-preview-head {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 9px;
  align-items: start;
}

.card-confirm-preview-head > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #eef4f2;
  color: var(--brand);
}

.card-confirm-preview-head strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.card-confirm-preview-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.55;
}

.card-confirm-preview-summary {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfd;
  padding: 10px;
  color: var(--ink);
  font-size: 10.5px;
  line-height: 1.45;
}

.card-confirm-preview-summary strong {
  font-size: 10px;
}

.card-confirm-preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-confirm-preview-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.card-confirm-preview-actions button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.card-template-empty {
  min-height: 160px;
}

@media (max-width: 1180px) {
  .card-template-layout {
    grid-template-columns: 1fr;
  }
}

.edge-editor-section {
  max-height: none;
}

.edge-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 34px;
  gap: 5px;
  align-items: center;
}

.edge-add-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.edge-list {
  display: grid;
  gap: 5px;
}

.edge-list-row {
  display: grid;
  width: 100%;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 6px 7px;
  color: var(--text);
  text-align: left;
}

.edge-list-row:hover,
.edge-list-row.active {
  border-color: #f59e0b;
  background: #fffaf2;
}

.edge-route,
.edge-list-row em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.edge-list-row strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-active-editor {
  display: grid;
  gap: 6px;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  background: #fffaf2;
  padding: 7px;
}

.subnode-details-body {
  gap: 8px;
}

.subnode-save-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 7px 8px;
}

.subnode-save-strip.dirty {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.subnode-save-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
}

.subnode-save-strip.dirty span {
  color: #1d4ed8;
}

.subnode-save-strip .ghost-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10.5px;
}

.subnode-save-strip .ghost-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.subnode-picker-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.subnode-add-actions {
  display: flex;
  min-width: 0;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.subnode-add-actions .ghost-button {
  min-height: 31px;
  padding: 0 9px;
  font-size: 10.5px;
  white-space: nowrap;
}

.subnode-add-actions .ghost-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.empty-add-actions {
  justify-content: stretch;
}

.empty-add-actions .ghost-button {
  flex: 1 1 0;
}

.subnode-list {
  display: grid;
  gap: 7px;
}

.subnode-item {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.subnode-item.virtual {
  border-style: dashed;
  background: #f8fafc;
}

.subnode-item-head {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.subnode-item-head > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.subnode-item-head strong {
  overflow: hidden;
  color: var(--text);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subnode-muted {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compact-field textarea {
  min-height: 46px;
}

.manual-route-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
  border: 1px solid #dbe7e4;
  border-radius: var(--radius);
  background: #f8fbfa;
  padding: 7px;
}

.manual-route-connect .ghost-button {
  min-height: 31px;
  padding: 0 9px;
  font-size: 10.5px;
  white-space: nowrap;
}

.manual-route-connect .ghost-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.manual-route-connect .subnode-muted {
  grid-column: 1 / -1;
}

.subnode-edge-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: flex-end;
}

.subnode-route-remove {
  min-height: 26px;
  padding: 0 8px;
  font-size: 9.5px;
}

.empty-edge-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 10px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.edge-editor-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 7px;
}

.edge-editor-card.active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

.edge-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
}

.edge-title-row strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Admin workflow surfaces follow the dashboard theme. Widget previews below keep
   their own customer-facing theme variables and are deliberately excluded. */
.dark .workflow-reference-scope :where(input, textarea, select):not(.widget-phone *) {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.dark .workflow-reference-scope :where(input, textarea):not(.widget-phone *)::placeholder {
  color: var(--muted-2);
}

.dark .workflow-reference-scope :where(
  .ghost-button,
  .icon-button,
  .workflow-home-secondary,
  .workflow-home-danger,
  .workflow-list-card,
  .workflow-scheduling-drawer,
  .topbar,
  .topbar-actions button:not(.dark-action):not(.publish-action),
  .device-preview-toolbar,
  .device-preview-presets button,
  .version-history-panel,
  .version-history-row,
  .editor-tabs,
  .editor-tabs button,
  .tab-panel-section,
  .theme-preset-grid button,
  .theme-color-control input,
  .launcher-decoration-period input,
  .workflow-version-item,
  .panel-heading,
  .small-toolbar-button,
  .workflow-node,
  .node-route-row.new,
  .summary-icon,
  .card-template-subtabs button,
  .card-confirm-preview,
  .card-confirm-preview-actions button,
  .edge-list-row,
  .subnode-item,
  .edge-editor-card,
  .segmented-control button,
  .pill-grid button
):not(.widget-phone *) {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.dark .workflow-reference-scope :where(
  .tab-panel-head,
  .master-collection-grid span,
  .theme-field,
  .launcher-decoration-stage,
  .workflow-meta-grid span,
  .product-guide-editor,
  .message-template-group,
  .message-template-empty,
  .card-template-fields,
  .card-confirm-preview-summary,
  .subnode-save-strip,
  .status-grid span
):not(.widget-phone *) {
  border-color: var(--line);
  background: var(--surface-alt);
}

.dark .workflow-reference-scope :where(
  .editor-tabs button.active,
  .theme-preset-grid button.active,
  .card-template-subtabs button.active,
  .segmented-control button.active,
  .pill-grid button.selected,
  .workflow-version-item.active
):not(.widget-phone *) {
  border-color: color-mix(in srgb, var(--brand-dark) 52%, var(--line));
  background: color-mix(in srgb, var(--brand) 22%, var(--surface));
  color: var(--brand-dark);
}

.dark .workflow-reference-scope :where(
  .workflow-version-item:not(:disabled):hover,
  .device-preview-presets button:hover,
  .small-toolbar-button:hover,
  .ghost-button:hover
):not(.widget-phone *) {
  border-color: color-mix(in srgb, var(--brand-dark) 44%, var(--line));
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--text);
}

.dark .workflow-reference-scope :where(
  .save-state.dirty,
  .config-pill.publication-pending,
  .edge-list-row.active,
  .edge-active-editor
):not(.widget-phone *) {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(146, 64, 14, 0.24);
  color: #fcd34d;
}

.dark .workflow-reference-scope .config-pill.publication-live {
  border-color: rgba(88, 199, 122, 0.38);
  background: rgba(20, 83, 45, 0.28);
  color: #86efac;
}

.dark .workflow-reference-scope .topbar-name-confirm {
  border-color: rgba(88, 199, 122, 0.38);
  background: rgba(20, 83, 45, 0.28);
  color: #86efac;
}

.dark .workflow-reference-scope :where(
  .save-state.failed,
  .config-pill.danger,
  .danger-outline,
  .small-danger
):not(.widget-phone *) {
  border-color: rgba(251, 113, 133, 0.38);
  background: rgba(159, 18, 57, 0.22);
  color: #fda4af;
}

.dark .workflow-reference-scope .workflow-home-shell,
.dark .workflow-reference-scope .flow-canvas {
  background: var(--bg);
}

.dark .workflow-reference-scope .workflow-home {
  color: var(--text);
}

.dark .workflow-reference-scope .workflow-home-topbar {
  border-color: var(--line);
  background: rgba(23, 30, 36, 0.94);
}

.dark .workflow-reference-scope :where(
  .workflow-home-topbar p,
  .workflow-list-main small,
  .workflow-list-kicker,
  .workflow-scheduling-drawer p,
  .schedule-list small
) {
  color: var(--muted);
}

.dark .workflow-reference-scope :where(.workflow-list-meta em, .workflow-home-footer span) {
  background: var(--surface-alt);
  color: var(--muted);
}

.dark .workflow-reference-scope .schedule-list section,
.dark .workflow-reference-scope .workflow-scheduling-drawer header {
  border-color: var(--line);
}

.dark .workflow-reference-scope .schedule-list span,
.dark .workflow-reference-scope .workflow-empty-state strong {
  color: var(--text);
}

.dark .workflow-reference-scope .workflow-modal-backdrop {
  background: rgba(0, 0, 0, 0.58);
}

.dark .workflow-reference-scope .widget-panel {
  background: linear-gradient(180deg, #151d24 0%, #10161c 100%);
}

.dark .workflow-reference-scope .device-preview-toolbar {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.dark .workflow-reference-scope .flow-minimap {
  border-color: var(--line);
  background: rgba(23, 30, 36, 0.92);
}

.dark .workflow-reference-scope .inspector-summary-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-alt) 100%);
}

.dark .workflow-reference-scope .node-summary {
  border-color: color-mix(in srgb, var(--node-color) 42%, var(--line));
  background: color-mix(in srgb, var(--node-color) 18%, var(--surface));
}

.dark .workflow-reference-scope .workflow-node {
  --route-row-bg: color-mix(in srgb, var(--node-color) 12%, var(--surface));
  --route-row-bg-hover: color-mix(in srgb, var(--node-color) 18%, var(--surface));
  --route-row-border: color-mix(in srgb, var(--node-color) 35%, var(--line));
  --route-row-border-strong: color-mix(in srgb, var(--node-color) 58%, var(--line-strong));
  --route-row-text: color-mix(in srgb, var(--node-color) 48%, var(--text));
  --route-handle-ring: color-mix(in srgb, var(--node-color) 28%, var(--surface));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.dark .workflow-reference-scope .workflow-node.lane-preview-node {
  background:
    linear-gradient(180deg, rgba(23, 30, 36, 0.72), rgba(15, 20, 25, 0.58)),
    color-mix(in srgb, var(--node-color) 10%, var(--surface));
}

.dark .workflow-reference-scope .primary-button:hover,
.dark .workflow-reference-scope .topbar-actions button.active:hover {
  background: #42665f;
}

.dark .workflow-reference-scope .editor-tab-body {
  scrollbar-color: var(--line-strong) transparent;
}

.widget-phone {
  display: flex;
  width: 100%;
  max-width: 440px;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 24px;
  background: #fff;
  color: #18201f;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  box-shadow: 0 28px 76px rgba(21, 31, 28, 0.22);
  transform-origin: right bottom;
  will-change: transform, opacity;
}

.widget-phone-closing {
  pointer-events: none;
  animation: widget-panel-close 260ms cubic-bezier(0.3, 0, 1, 1) both;
}

.widget-phone-opening {
  animation: widget-panel-open 320ms cubic-bezier(0.2, 0, 0, 1) both;
}

@keyframes widget-panel-close {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.92);
  }
}

@keyframes widget-panel-open {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.92);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.widget-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  background: var(--widget-header-bg, var(--brand));
  color: var(--widget-header-fg, #fff);
  padding: 16px 16px 12px;
}

.widget-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
}

.widget-avatar svg {
  width: 24px;
  height: 24px;
}

.widget-title {
  flex: 1 1 auto;
  min-width: 0;
}

.widget-header strong,
.widget-header span {
  display: block;
}

.widget-header strong {
  font-size: 15px;
  line-height: 1.2;
}

.widget-header span {
  margin-top: 3px;
  color: var(--widget-header-fg, #fff);
  opacity: 0.78;
  font-size: 11px;
  font-weight: 700;
}

.widget-header-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.widget-header-icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--widget-header-fg, #fff);
  padding: 0;
  opacity: 0.94;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.widget-header-icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--widget-header-fg, #fff);
  opacity: 1;
  transform: translateY(-1px);
}

.widget-header-icon-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.widget-header-close-button {
  color: var(--widget-header-fg, #fff);
}

.widget-tabs {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  flex-shrink: 0;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8faf9;
  padding: 10px;
}

.widget-tabs > button,
.business-hours-control > button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #65716f;
  font-size: 12px;
  font-weight: 850;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.widget-tabs > button:hover,
.business-hours-control > button:hover {
  background: rgba(0, 0, 0, 0.04);
}

.widget-tabs > button.active {
  border-color: rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--widget-brand, var(--brand));
  box-shadow: 0 10px 24px rgba(24, 32, 31, 0.08);
}

.business-hours-control {
  position: relative;
  min-height: 40px;
}

.business-hours-control > button {
  width: 100%;
  height: 100%;
  padding: 0;
}

.business-hours-control svg {
  width: 18px;
  height: 18px;
}

.business-hours-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  width: 198px;
  gap: 2px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  text-align: left;
  box-shadow: 0 12px 30px rgba(24, 32, 31, 0.14);
}

.business-hours-popover p,
.business-hours-popover span {
  margin: 0;
}

.business-hours-popover p {
  color: #18201f;
  font-size: 10px;
  font-weight: 900;
}

.business-hours-popover span {
  color: #65716f;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.45;
}

.widget-status {
  display: flex;
  flex-shrink: 0;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  color: #15803d;
  font-size: 11px;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.widget-status[data-availability-status="busy"] {
  color: #a16207;
}

.widget-status[data-availability-status="busy"] .status-dot {
  background: #eab308;
}

.widget-status[data-availability-status="overloaded"] {
  color: #b45309;
}

.widget-status[data-availability-status="overloaded"] .status-dot {
  background: #f97316;
}

.widget-status[data-availability-status="offline"] {
  color: #64748b;
}

.widget-status[data-availability-status="offline"] .status-dot {
  background: #94a3b8;
}

.widget-main {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.widget-chat-area {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
}

.chat-feed {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 12px 16px 16px;
  background: #fff;
}

.message-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.message-row.bot {
  align-items: flex-start;
}

.message-row.user {
  align-items: flex-end;
}

.message-row.system {
  align-items: center;
  padding: 2px 0;
}

.system-message {
  max-width: 92%;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.1);
  padding: 5px 10px;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
}

.sender-label {
  margin-left: 8px;
  color: #65716f;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.bubble {
  max-width: 82%;
  overflow-wrap: anywhere;
  word-break: keep-all;
  border-radius: 18px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.58;
  box-shadow: 0 10px 26px rgba(31, 41, 38, 0.07);
}

.message-row.bot .bubble {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top-left-radius: 6px;
  background: #f7f8f8;
  color: #37403e;
}

.message-row.user .bubble {
  border-top-right-radius: 6px;
  background: #e8ecec;
  color: #18201f;
}

.bubble.attachment-message-bubble {
  width: min(280px, 82%);
  max-width: 82%;
  padding: 7px;
}

.message-attachment {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.message-attachment-preview,
.message-attachment video {
  display: block;
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
}

.message-attachment img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.message-attachment video {
  object-fit: contain;
}

.message-attachment-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  padding: 3px 5px 2px;
  color: inherit;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.message-attachment-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-text-line {
  display: block;
}

.rich-text-space {
  display: block;
  height: 8px;
}

.rich-text-list {
  display: grid;
  gap: 4px;
  margin: 4px 0;
  padding-left: 18px;
}

.rich-text-link {
  color: #2563eb;
  font-weight: 650;
  text-decoration-line: underline;
  text-underline-offset: 2px;
}

.rich-text-link.right {
  color: #f8fafc;
}

.rich-text-bold {
  font-weight: 700;
}

.rich-text-italic {
  font-style: italic;
}

.rich-text-underline {
  text-decoration-line: underline;
  text-underline-offset: 2px;
}

.message-row.bot .bubble + .quick-buttons-strip {
  margin-top: 4px;
}

.message-row.has-lookup-summary {
  align-items: flex-start;
}

.lookup-summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.lookup-summary-list > div {
  display: grid;
  gap: 5px;
}

.lookup-summary-list dt,
.lookup-summary-list dd {
  margin: 0;
  min-width: 0;
  line-height: 1.35;
}

.lookup-summary-list dt {
  color: #1f2d29;
  font-size: 12px;
  font-weight: 850;
}

.lookup-summary-list dd {
  color: #64716d;
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.handoff-submitted-info-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  margin: 0;
  color: #1f2d29;
  font-size: 13px;
  line-height: 1.45;
}

.handoff-submitted-info-line strong {
  font-weight: 850;
}

.handoff-submitted-info-line span:last-child {
  color: #64716d;
  font-weight: 850;
}

.message-time {
  color: #a0a8ad;
  font-size: 10px;
  font-weight: 700;
}

.runtime-card {
  display: grid;
  width: 370px;
  max-width: calc(100% - 18px);
  min-width: 0;
  gap: 10px;
  justify-self: start;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 18px;
  border-top-right-radius: 7px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(31, 41, 38, 0.1);
}

.runtime-ui-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  justify-items: start;
}

.runtime-ui-stage > .quick-buttons-strip {
  justify-self: start;
}

.runtime-ui-stage.staged-reveal {
  transform-origin: top left;
  animation: stagedRuntimeUiIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.runtime-ui-stage.staged-reveal > .runtime-card {
  animation: stagedCardFocus 520ms 120ms ease-out both;
}

.message-row.bot.has-staged-card .bubble {
  position: relative;
}

.message-row.bot.has-staged-card .bubble::after {
  position: absolute;
  bottom: -7px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f8f8;
  content: '';
  transform: rotate(45deg);
}

@keyframes stagedRuntimeUiIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stagedCardFocus {
  0% {
    box-shadow: 0 16px 36px rgba(31, 41, 38, 0.08);
  }
  55% {
    box-shadow: 0 18px 40px rgba(31, 41, 38, 0.13), 0 0 0 3px rgba(79, 98, 95, 0.08);
  }
  100% {
    box-shadow: 0 16px 36px rgba(31, 41, 38, 0.1);
  }
}

.user-action {
  align-self: flex-end;
}

.quick-buttons-strip {
  display: flex;
  width: min(82%, 360px);
  align-self: flex-start;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  overflow: visible;
}

.quick-buttons-strip button {
  flex: 0 1 calc(50% - 4px);
  width: calc(50% - 4px);
  max-width: 100%;
  min-width: 104px;
  min-height: 40px;
  border: 1px solid rgba(79, 98, 95, 0.24);
  border-radius: 14px;
  background: #fff;
  padding: 8px 12px;
  color: #18201f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 24px rgba(31, 41, 38, 0.06);
}

.quick-buttons-strip button:hover {
  border-color: rgba(79, 98, 95, 0.45);
  background: #f6faf8;
  transform: translateY(-1px);
}

.runtime-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
}

.runtime-card-head span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #eef4f2;
}

.runtime-card-head strong {
  font-size: 13px;
}

.runtime-card-head-meta {
  margin-left: auto;
  color: var(--red);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  text-align: right;
}

.stacked-buttons,
.order-list,
.form-stack,
.item-list {
  display: grid;
  gap: 8px;
}

.stacked-buttons button,
.order-list button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(79, 98, 95, 0.2);
  border-radius: 14px;
  background: #fff;
  padding: 9px 11px;
  color: #18201f;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
}

.stacked-buttons button:hover,
.order-list button:hover {
  border-color: rgba(79, 98, 95, 0.45);
  background: #f6faf8;
}

.order-list button {
  display: grid;
  gap: 3px;
}

.order-list strong,
.order-list span,
.order-list em {
  display: block;
}

.order-list strong {
  font-size: 13px;
}

.order-list span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.order-list em {
  justify-self: start;
  border-radius: 999px;
  background: #eff6ff;
  padding: 3px 7px;
  color: #1d4ed8;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.order-select-row {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.order-select-card-list {
  display: grid;
  gap: 10px;
}

.order-select-delivery-card {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 9px;
  border: 1px solid rgba(79, 98, 95, 0.18);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  color: #18201f;
  text-align: left;
  box-shadow: 0 8px 20px rgba(31, 41, 38, 0.035);
}

.workflow-reference-scope button.order-select-delivery-card {
  cursor: pointer;
}

.workflow-reference-scope button.order-select-delivery-card:hover:not(:disabled) {
  border-color: rgba(79, 98, 95, 0.42);
  background: #fbfdfc;
}

.workflow-reference-scope button.order-select-delivery-card:focus-visible {
  outline: 2px solid rgba(79, 98, 95, 0.42);
  outline-offset: 2px;
}

.order-select-delivery-card .delivery-status-summary,
.order-select-delivery-card .delivery-product-panel {
  pointer-events: none;
}

.order-select-delivery-card .delivery-item-main {
  grid-template-columns: minmax(0, 1fr);
}

.order-select-delivery-card .delivery-product-panel {
  padding: 9px;
}

.order-select-delivery-card .delivery-group-card {
  padding: 9px;
}

.order-select-compact-summary {
  display: grid;
  min-width: 0;
  gap: 8px;
  pointer-events: none;
}

.order-select-identity-list {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.order-select-identity-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  align-items: start;
  gap: 10px;
}

.order-select-compact-number {
  min-width: 0;
  color: #111827;
  font-size: 13px;
  font-weight: var(--customer-font-weight-label);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.order-select-compact-channel {
  min-width: 0;
  color: var(--customer-color-meta);
  font-size: 11.5px;
  font-weight: var(--customer-font-weight-regular);
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.order-select-compact-product {
  min-width: 0;
  color: var(--customer-color-product);
  font-size: 12.5px;
  font-weight: var(--customer-font-weight-product);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.order-select-compact-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.order-select-guidance {
  margin: -2px 0 9px;
  color: var(--widget-danger-ink, #b42318);
  font-size: 11.5px;
  font-weight: var(--customer-font-weight-regular, 400);
  line-height: 1.45;
}

/* 대형 트리 취소 제한 안내는 문구의 줄바꿈을 그대로 보여 준다. */
.large-tree-cancel-message {
  white-space: pre-line;
}

.order-select-delivery-card.readonly-order-row {
  cursor: default;
}

.order-select-row:disabled {
  opacity: 1;
}

.order-select-row-disabled {
  border-color: #e5e7eb;
  background: #f8faf9;
  box-shadow: none;
  cursor: not-allowed;
}

.order-select-delivery-card.order-select-row-disabled {
  background: #f8faf9;
}

.order-select-delivery-card.order-select-row-expired {
  cursor: pointer;
}

.order-select-row-disabled .order-select-number,
.order-select-row-disabled .order-select-product,
.order-select-row-disabled .order-select-compact-number,
.order-select-row-disabled .order-select-compact-product {
  color: #4b5563;
}

.order-list .order-select-number {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
}

.order-list .order-select-product {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--customer-color-label);
  font-size: 12px;
  font-weight: var(--customer-font-weight-note);
  line-height: 1.3;
}

.order-list .order-select-meta {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  color: var(--customer-color-meta);
  font-size: var(--customer-font-size-meta);
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-meta);
}

.order-list .order-select-meta > span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-select-badge,
.order-list .order-select-badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 2px 7px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.order-select-badge.option-unavailable,
.order-list .order-select-badge.option-unavailable {
  border-color: #dce5e2;
  background: #f2f6f4;
  color: #4f625f;
}

.order-select-row-expired .order-select-badge.option-unavailable,
.order-list .order-select-row-expired .order-select-badge.option-unavailable {
  border-color: #fecaca;
  background: #fff1f2;
  color: #b42318;
}

.order-select-badge.package-combined,
.order-list .order-select-badge.package-combined {
  border-color: rgba(79, 98, 95, 0.22);
  background: #eef4f1;
  color: #4f625f;
}

.order-hierarchy-list {
  gap: 10px;
}

.order-hierarchy-order,
.order-hierarchy-package {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.order-hierarchy-head,
.order-hierarchy-subhead,
.order-list .order-select-unit {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-hierarchy-head {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.order-hierarchy-subhead {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-hierarchy-subhead,
.order-list .order-select-unit {
  color: var(--customer-color-meta);
  font-size: 10px;
  font-weight: var(--customer-font-weight-label);
}

.order-combined-numbers {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 1px 0 2px;
}

.order-combined-numbers .order-select-number {
  line-height: 1.2;
}

.order-list .order-select-product-stack {
  display: grid;
  gap: 3px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.order-select-product-line {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.product-title-line {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
}

.delivery-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.delivery-pill.preparing {
  border-color: #fecaca;
  background: #fee2e2;
  color: #b91c1c;
}

.delivery-pill.in_transit,
.delivery-pill.delivered {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
}

.delivery-pill.canceled {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
}

.delivery-ship-date-text {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--customer-color-meta, #65716f);
  font-size: 10px;
  font-style: normal;
  font-weight: var(--customer-font-weight-note, 700);
  line-height: 1.35;
  white-space: nowrap;
}

.delivery-group-status-meta,
.claim-item-delivery-meta {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.product-option-block {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-option-block .product-title-line {
  min-width: 0;
  color: inherit;
  font-weight: var(--customer-font-weight-product);
  line-height: var(--customer-line-height-product);
  overflow-wrap: anywhere;
}

.product-title-text {
  min-width: 0;
  flex: 0 1 auto;
  overflow-wrap: anywhere;
}

.product-option-inline {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0 4px;
  max-width: 100%;
  margin-left: 0;
  min-width: 0;
  text-align: left;
}

.product-option-inline .product-option-text {
  color: var(--customer-color-option);
  font-size: 11px;
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-product);
  overflow-wrap: anywhere;
  text-align: left;
}

.product-option-line,
.product-quantity-line {
  display: block;
  min-width: 0;
  color: var(--customer-color-option);
  font-size: 11px;
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-product);
  overflow-wrap: anywhere;
}

.product-option-line-with-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  align-items: baseline;
  width: 100%;
}

.product-option-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-option-meta {
  justify-self: start;
  color: var(--customer-color-schedule);
  font-size: 11px;
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-product);
  text-align: left;
  white-space: normal;
}

.form-error {
  margin: 0;
  color: var(--red);
  font-size: 11px;
  font-weight: 750;
}

.lookup-field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.lookup-field-label .lookup-required-star {
  color: var(--text);
}

.lookup-field-label .lookup-required-text {
  color: var(--red);
}

.handoff-info-form {
  gap: 12px;
}

.handoff-inquiry-input {
  min-height: 120px;
  line-height: 1.5;
  resize: vertical;
}

.handoff-info-notices {
  display: grid;
  gap: 10px;
  padding: 2px 0;
}

.handoff-info-notice {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #4e5a57;
  font-size: 12px;
  line-height: 1.55;
}

.handoff-info-notice svg {
  margin-top: 1px;
  color: #6b7280;
}

.handoff-info-notice-strong {
  color: #7f1d1d;
}

.handoff-info-notice-strong svg {
  color: #65716f;
}

.debug-code {
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: #fff7ed;
  padding: 8px 10px;
  color: #9a3412;
  font-size: 12px;
  font-weight: 760;
}

.debug-code strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.order-summary,
.result-block,
.item-row {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf9;
  padding: 10px;
}

.delivery-status-summary {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(79, 98, 95, 0.16);
  border-radius: 13px;
  background: #fbfdfc;
  padding: 10px 11px;
}

.delivery-status-summary .order-select-number {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-order-numbers {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.delivery-status-summary .order-select-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--customer-color-meta);
  font-size: var(--customer-font-size-meta);
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-meta);
}

.delivery-status-summary .order-select-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-group-list {
  display: grid;
  gap: 8px;
}

.delivery-product-panel {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(79, 98, 95, 0.14);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.delivery-group-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(79, 98, 95, 0.16);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.delivery-group-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.delivery-group-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.delivery-group-head strong {
  min-width: 0;
  overflow: hidden;
  color: #18201f;
  font-size: 12px;
  font-weight: var(--customer-font-weight-emphasis);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-item-list {
  display: grid;
  gap: 5px;
}

.delivery-item {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(79, 98, 95, 0.12);
  border-radius: 10px;
  background: #fbfdfc;
  padding: 7px 8px;
}

.delivery-item-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.delivery-item-main .product-title-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 8px;
  min-width: 0;
  color: var(--customer-color-product);
  font-size: var(--customer-font-size-product);
  font-weight: var(--customer-font-weight-product);
  line-height: var(--customer-line-height-product);
  overflow-wrap: anywhere;
}

.delivery-item-main .product-option-block {
  grid-column: 1 / -1;
  width: 100%;
}

.delivery-item-main .product-option-meta {
  display: block;
  margin-top: 2px;
}

.delivery-option-chip {
  max-width: 116px;
  overflow: hidden;
  border: 1px solid rgba(79, 98, 95, 0.12);
  border-radius: 999px;
  background: #eef4f1;
  padding: 3px 6px;
  color: #4f625f;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.delivery-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  min-width: 0;
}

.delivery-item-meta span,
.delivery-item-meta small,
.delivery-empty {
  margin: 0;
  color: var(--customer-color-meta);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.delivery-item.delayed small,
.delivery-item.delayed .product-option-meta,
.stock-inbound-date {
  color: var(--customer-color-schedule);
}

.delivery-item .product-option-line {
  color: var(--customer-color-option);
}

.delivery-section {
  display: grid;
  gap: 6px;
}

.delivery-section h4 {
  margin: 0;
  color: var(--customer-color-label);
  font-size: var(--customer-font-size-section-label);
  font-weight: var(--customer-font-weight-section-label);
  line-height: var(--customer-line-height-section-label);
}

.delivery-delay-notice {
  display: grid;
  gap: 4px;
  border: 1px solid #d5ddd9;
  border-radius: 12px;
  background: #f4f6f5;
  padding: 8px 10px;
}

.delivery-delay-notice p {
  margin: 0;
  color: var(--customer-color-meta);
  font-size: var(--customer-font-size-meta);
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-meta);
  overflow-wrap: anywhere;
}

.delivery-delay-notice.embedded {
  margin-top: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.delivery-delay-notice u {
  text-decoration-thickness: var(--customer-underline-thickness);
  text-underline-offset: var(--customer-underline-offset);
}

.shipment-list {
  display: grid;
  gap: 7px;
}

.shipment-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(79, 98, 95, 0.12);
  padding-top: 8px;
}

.shipment-line span {
  min-width: 0;
  color: var(--customer-color-label);
  font-size: 11px;
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-product);
  overflow-wrap: anywhere;
}

.tracking-button {
  display: inline-flex;
  justify-self: end;
  width: max-content;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(79, 98, 95, 0.24);
  border-radius: 8px;
  background: #f6faf8;
  padding: 5px 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.order-summary strong,
.result-block strong,
.item-row strong {
  font-size: 12px;
}

.order-summary span,
.result-block span,
.item-row span {
  color: var(--customer-color-meta);
  font-size: 11px;
  line-height: 1.4;
}

.order-summary .order-summary-delivery-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.order-summary .order-summary-delivery-meta > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-row em {
  justify-self: start;
  border-radius: 999px;
  background: #f1f5f9;
  padding: 3px 7px;
  color: #475569;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.item-row small {
  color: var(--customer-color-option);
  font-size: 11px;
  line-height: var(--customer-line-height-product);
}

.card-actions-shell {
  display: grid;
  gap: 8px;
  scroll-margin-bottom: 78px;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.card-actions.with-inquiry {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-actions button {
  min-width: 0;
  gap: 5px;
  padding-right: 10px;
  padding-left: 10px;
}

.card-actions.with-inquiry button {
  min-height: 42px;
}

.delivery-inquiry-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid rgba(79, 98, 95, 0.14);
  border-radius: 12px;
  background: #f8faf9;
  padding: 8px;
}

.delivery-inquiry-options button {
  min-width: 0;
  min-height: 36px;
  border: 1px solid rgba(79, 98, 95, 0.16);
  border-radius: 9px;
  background: #fff;
  padding: 0 8px;
  color: #18201f;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.delivery-inquiry-options button:hover:not(:disabled) {
  border-color: rgba(79, 98, 95, 0.28);
  background: #eef4f1;
  color: var(--brand);
  transform: translateY(-1px);
}

.delivery-inquiry-options button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.danger-note,
.success-note,
.info-note,
.inline-warning {
  margin: 0;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.45;
}

.danger-note {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #991b1b;
}

.success-note {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.info-note {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.info-note strong,
.info-note span {
  display: block;
}

.info-note strong {
  margin-bottom: 3px;
  font-size: 11px;
}

.address-change-notice {
  line-height: 1.7;
}

.exchange-option-notice .notice-gap {
  height: 8px;
}

.current-address-block {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(79, 98, 95, 0.18);
  padding: 2px 0 10px;
}

.current-address-block strong,
.current-address-block span {
  display: block;
}

.current-address-block strong {
  color: #18201f;
  font-size: 12px;
  font-weight: 850;
}

.current-address-block span {
  color: #18201f;
  font-size: 12px;
  font-weight: var(--customer-font-weight-regular);
  line-height: 1.55;
}

.inline-warning {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: var(--customer-color-schedule);
}

.unavailable-order-list {
  display: grid;
  gap: 10px;
}

.unavailable-order-section {
  display: grid;
  gap: 7px;
}

.unavailable-order-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--customer-color-label);
}

.unavailable-order-section-head strong {
  font-size: 11px;
  font-weight: var(--customer-font-weight-label);
}

.unavailable-order-section-head span {
  border-radius: 999px;
  background: #eef4f2;
  padding: 3px 7px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
}

.order-list .readonly-order-row {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(79, 98, 95, 0.16);
  border-radius: 14px;
  background: #f8faf9;
  padding: 9px 11px;
  color: #18201f;
  text-align: left;
  cursor: default;
}

.order-list .readonly-order-row .order-select-number,
.order-list .readonly-order-row .order-select-product,
.order-list .readonly-order-row .order-select-meta {
  opacity: 0.88;
}

.choice-section,
.policy-list,
.request-summary {
  display: grid;
  gap: 7px;
}

.claim-step-shell,
.claim-step-body {
  display: grid;
  gap: 10px;
}

.two-column-fields {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.wrong-item-no-order-flow .field-control,
.wrong-item-no-order-flow label {
  min-width: 0;
}

.wrong-item-no-order-flow textarea {
  resize: vertical;
}

.claim-progress {
  display: grid;
  gap: 6px;
}

.claim-progress span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
}

.claim-progress strong {
  font-size: 14px;
  line-height: 1.25;
}

.claim-progress-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e6eceb;
}

.claim-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 160ms ease;
}

.claim-question {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.claim-order-context {
  display: grid;
  gap: 2px;
  border: 1px solid #dfe8e4;
  border-radius: var(--radius);
  background: #f8fbfa;
  padding: 8px 10px;
}

.claim-order-context strong {
  color: var(--text);
  font-size: 12px;
}

.claim-order-context span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.claim-step-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.claim-step-actions .ghost-button {
  min-width: 0;
  padding: 0 7px;
}

.evidence-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.evidence-choice-grid button {
  display: grid;
  min-height: 92px;
  align-content: start;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  color: var(--text);
  text-align: left;
}

.evidence-choice-grid button svg {
  color: var(--brand);
}

.evidence-choice-grid button.warning svg {
  color: var(--amber);
}

.evidence-choice-grid button strong,
.evidence-choice-grid button span {
  display: block;
}

.evidence-choice-grid button strong {
  font-size: 12px;
  line-height: 1.25;
}

.evidence-choice-grid button span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.evidence-choice-grid button.selected,
.order-list button.selected,
.resolution-list button.selected {
  border-color: var(--brand);
  background: #eef4f2;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(79, 98, 95, 0.28);
}

.evidence-choice-grid button.selected.warning {
  border-color: #fdba74;
  background: #fff7ed;
  color: #9a3412;
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.22);
}

.file-summary-list,
.claim-review {
  display: grid;
  gap: 6px;
}

.file-summary-list > span,
.claim-review > span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-summary-list .file-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.file-summary-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.file-summary-row > button {
  display: inline-grid;
  flex: none;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.file-summary-row > button:hover {
  border-color: #ef4444;
  color: #b91c1c;
}

.claim-review strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 10px;
}

.claim-review-product {
  display: grid !important;
  gap: 4px;
}

.claim-review-product .product-option-block .product-title-line {
  margin: 0;
  font-size: 12px;
}

.claim-review-product .product-option-line {
  font-size: 11px;
}

.choice-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

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

.pill-grid button,
.segmented-control button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 8px;
  color: var(--text);
  font-size: 11px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.pill-grid button.selected,
.segmented-control button.active {
  border-color: var(--brand);
  background: #eef4f2;
  color: var(--brand-dark);
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.file-drop {
  position: relative;
  display: grid !important;
  min-height: 92px;
  place-items: center;
  gap: 4px !important;
  border: 1px dashed #b6c3cc;
  border-radius: 14px;
  background: #f8fafc;
  padding: 12px;
  color: var(--brand);
  text-align: center;
}

.file-drop input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-drop span {
  color: var(--text) !important;
  font-size: 12px !important;
  line-height: 1.45;
  white-space: pre-line;
}

.file-drop em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.exchange-return-flow,
.exchange-return-card-preview {
  display: grid;
  gap: 12px;
}

.exchange-return-product-list {
  display: grid;
  gap: 8px;
}

.exchange-return-item-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  color: var(--text);
}

.exchange-return-item-row.has-quantity-select {
  grid-template-columns: auto minmax(0, 1fr) 52px;
}

.exchange-return-item-row.selected {
  border-color: var(--brand);
  background: #eef4f2;
  box-shadow: inset 0 0 0 1px rgba(79, 98, 95, 0.22);
}

.exchange-return-item-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.exchange-return-item-row select,
.exchange-return-reason-grid select {
  min-width: 0;
  height: 32px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 400;
}

.exchange-return-item-row select {
  width: 52px;
  height: 28px;
  min-height: 28px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 10px;
}

.exchange-return-item-body {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.exchange-return-item-body .product-title-line,
.exchange-return-reason-product .product-title-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px 5px;
  font-weight: 600;
  text-align: left;
}

.exchange-return-item-body .product-option-inline,
.exchange-return-reason-product .product-option-inline {
  justify-content: flex-start;
  text-align: left;
}

.exchange-return-item-body .product-option-block .product-title-line,
.exchange-return-reason-product .product-option-block .product-title-line {
  font-size: 11px;
  line-height: 1.36;
}

.exchange-return-item-body strong,
.exchange-return-reason-product strong,
.exchange-return-selected-summary strong,
.exchange-return-attachment-title {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.exchange-return-item-body small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.exchange-return-selected-summary {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
  padding: 9px 10px;
}

.exchange-return-selected-summary span {
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.exchange-return-selected-product .product-title-line {
  font-weight: 600;
  text-align: left;
}

.exchange-return-reason-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.exchange-return-reason-product {
  display: grid;
  gap: 4px;
  text-align: left;
}

.exchange-return-reason-product > span {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.exchange-return-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.exchange-return-reason-grid label,
.exchange-return-detail-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.exchange-return-reason-grid label > span,
.exchange-return-detail-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.exchange-return-detail-field textarea {
  min-height: 120px;
  font-size: 12px;
  line-height: 1.38;
  resize: vertical;
}

.exchange-return-detail-field textarea::placeholder {
  font-size: 14px !important;
  line-height: 1.45;
}

.exchange-return-defect-recovery {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
  padding: 9px;
}

.exchange-return-defect-recovery strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.exchange-return-defect-recovery p {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.exchange-return-defect-options {
  display: grid;
  gap: 6px;
}

.exchange-return-defect-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  color: var(--text);
  font-size: 11px;
  line-height: 1.35;
}

.exchange-return-defect-options label.selected {
  border-color: var(--brand);
  background: #eef4f2;
  box-shadow: inset 0 0 0 1px rgba(79, 98, 95, 0.18);
}

.exchange-return-defect-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brand);
}

.exchange-return-warning {
  color: #315f98;
  font-weight: 750;
}

.exchange-return-reason-grid .field-invalid,
.exchange-return-detail-field .field-invalid,
.exchange-return-defect-recovery.field-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.exchange-return-validation-error {
  margin: 0;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  padding: 8px 10px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.request-claim-item-line {
  display: grid !important;
  gap: 4px;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.request-claim-item-line em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.simple-return-flow .order-list button {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.simple-return-fee {
  border-radius: 999px;
  background: #eef4f2;
  padding: 4px 7px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.return-fee-summary {
  display: grid;
  gap: 6px;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  background: #f8fbfa;
  padding: 9px 10px;
}

.return-fee-summary span {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.return-fee-summary strong {
  color: var(--text);
  font-size: 10px;
}

.return-reason-field {
  gap: 5px !important;
}

.deposit-proof-drop {
  min-height: 84px;
}

.policy-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8faf9;
  padding: 9px 10px;
}

.policy-list span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.policy-list span::before {
  content: "• ";
  color: var(--brand);
  font-weight: 900;
}

.request-summary {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8faf9;
  padding: 10px;
}

.request-summary > strong,
.request-summary > span {
  display: block;
}

.request-summary > strong,
.request-summary > span > strong {
  font-size: 12px;
}

.request-summary > span {
  color: var(--customer-color-meta);
  font-size: 11px;
  line-height: 1.4;
}

.request-summary > span > strong {
  display: block;
  margin-bottom: 2px;
  color: var(--customer-color-label);
  font-size: 10px;
}

.request-summary-product {
  display: grid !important;
  gap: 4px;
}

.postcode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.postcode-row .ghost-button {
  height: 36px;
  white-space: nowrap;
}

.address-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.address-search-row .ghost-button {
  height: 36px;
  white-space: nowrap;
}

.address-main-label input[readonly] {
  cursor: default;
}

.address-main-label .address-input-completed {
  border-color: rgba(79, 98, 95, 0.18);
  background: #f3f5f4;
  color: #18201f;
}

.postcode-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.postcode-layer {
  height: 360px;
}

.eligibility-box {
  display: grid;
  gap: 5px;
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
}

.eligibility-box strong {
  font-size: 12px;
}

.eligibility-box p,
.eligibility-box em {
  margin: 0;
}

.eligibility-box em {
  color: var(--muted);
  font-style: normal;
}

.eligibility-box.ok {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.eligibility-box.blocked {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: var(--customer-color-schedule);
}

.partial-shipment-summary {
  display: grid;
  gap: 5px;
  border-radius: 12px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
}

.partial-shipment-summary strong {
  font-size: 12px;
}

.partial-shipment-summary p {
  margin: 0;
}

.partial-shipment-summary span {
  justify-self: start;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 3px 7px;
  font-size: 10px;
  font-weight: var(--customer-font-weight-label);
}

.partial-shipment-summary.ok {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.partial-shipment-summary.blocked {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: var(--customer-color-schedule);
}

.cancel-item-panel {
  display: grid;
  gap: 8px;
}

.cancel-select-all-row,
.cancel-item-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.cancel-select-all-row {
  align-items: center;
  border-radius: 12px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: var(--customer-font-weight-label);
}

.cancel-select-all-row em {
  color: var(--customer-color-meta);
  font-size: 10px;
  font-style: normal;
  font-weight: var(--customer-font-weight-emphasis);
}

.cancel-item-list {
  display: grid;
  gap: 7px;
}

.cancel-item-row {
  min-height: 58px;
  border-color: #fed7aa;
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.cancel-management-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cancel-management-sections {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cancel-management-sections .delivery-item {
  padding: 8px;
}

.cancel-item-row.selected {
  border-color: #fdba74;
  background: #fffaf3;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.28);
}

.cancel-item-row.disabled {
  background: #f8faf9;
  color: var(--muted);
  cursor: default;
}

.cancel-item-row.disabled input {
  opacity: 0.55;
}

.partial-shipment-row .product-option-block {
  min-width: 0;
}

.partial-row-note {
  color: var(--customer-color-meta);
  font-size: 10.5px;
  font-weight: var(--customer-font-weight-note);
  line-height: 1.35;
}

.partial-row-note.unavailable {
  color: #74685d;
}

.cancel-select-all-row input,
.cancel-item-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.cancel-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.cancel-action-row .primary-button,
.cancel-action-row .ghost-button {
  min-width: 0;
}

.exchange-choice-section {
  display: grid;
  gap: 7px;
}

.exchange-choice-list {
  display: grid;
  gap: 7px;
}

.exchange-choice-list button,
.exchange-selected-item {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  color: var(--text);
  text-align: left;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.35;
}

.exchange-choice-list button:hover,
.exchange-choice-list button.selected {
  border-color: var(--brand);
  background: #eef4f2;
  box-shadow: inset 0 0 0 1px rgba(79, 98, 95, 0.24);
}

.exchange-choice-list button:disabled,
.exchange-choice-list button.disabled {
  border-color: #e2e7e5;
  background: #f3f5f4;
  color: #8d9793;
  box-shadow: none;
  cursor: not-allowed;
}

.exchange-choice-list button:disabled .product-option-line,
.exchange-choice-list button:disabled .product-quantity-line,
.exchange-choice-list button.disabled .product-option-line,
.exchange-choice-list button.disabled .product-quantity-line {
  color: #9aa39f;
}

.exchange-choice-list button:disabled .product-option-meta,
.exchange-choice-list button.disabled .product-option-meta {
  color: #7f8985;
}

.exchange-choice-index,
.exchange-selected-item > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.exchange-selected-item {
  border-color: #d9e6e2;
  background: #f8faf9;
}

.exchange-item-row {
  border-color: var(--line);
}

.exchange-item-row.selected {
  border-color: var(--brand);
  background: #eef4f2;
  box-shadow: inset 0 0 0 1px rgba(79, 98, 95, 0.22);
}

.exchange-option-panel {
  display: grid;
  gap: 8px;
}

.exchange-option-group {
  display: grid;
  gap: 8px;
}

.exchange-option-item-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 11px 10px;
}

.exchange-unit-list {
  display: grid;
  gap: 8px;
}

.exchange-unit-row {
  display: grid;
  gap: 6px;
}

.option-change-noop-popover {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid #f0c36a;
  border-radius: 12px;
  background: #fff9e8;
  box-shadow: 0 8px 20px rgba(120, 78, 15, 0.14);
  padding: 9px 10px;
  color: #8a4b08;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.option-change-noop-popover svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.exchange-unit-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.exchange-unit-label em {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.partial-item-list {
  display: grid;
  gap: 7px;
}

.partial-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 9px 10px;
  color: var(--text);
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.partial-item-row.available {
  border-color: #bbf7d0;
  background: #f7fef9;
}

.partial-item-row.unavailable {
  border-color: #fed7aa;
  background: #fffaf3;
}

.partial-item-row.selected {
  border-color: var(--brand);
  background: #eef4f2;
  box-shadow: inset 0 0 0 1px rgba(79, 98, 95, 0.28);
}

.partial-item-row[aria-disabled="true"] {
  cursor: default;
}

.partial-item-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.partial-item-status {
  justify-self: start;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.partial-item-status.available {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #166534;
}

.partial-item-status.unavailable {
  border-color: #fed7aa;
  background: #ffedd5;
  color: var(--customer-color-schedule);
}

.partial-item-row small {
  color: var(--customer-color-option);
  font-size: 10px;
  font-weight: var(--customer-font-weight-note);
  line-height: var(--customer-line-height-product);
}

.inline-error {
  align-self: center;
  max-width: 82%;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff5f5;
  padding: 8px 10px;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 750;
}

.typing-bubble {
  display: inline-flex;
  gap: 5px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: #f7f8f8;
  padding: 13px 15px;
}

.typing-bubble i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #98a2b3;
  animation: typingPulse 900ms infinite ease-in-out;
}

.typing-bubble i:nth-child(2) {
  animation-delay: 120ms;
}

.typing-bubble i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes typingPulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.composer {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 50px;
  flex-shrink: 0;
  gap: 10px;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 12px 16px;
}

.composer.locked {
  background: rgba(247, 248, 247, 0.96);
}

.composer-file-input {
  display: none;
}

.composer input {
  min-width: 0;
  height: 54px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  padding: 0 16px;
  color: #18201f;
  font-size: 16px;
  line-height: 20px;
  outline: none;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

.composer input:focus {
  border-color: var(--widget-border-strong, rgba(79, 98, 95, 0.5));
  box-shadow: 0 0 0 3px var(--widget-border, rgba(79, 98, 95, 0.16));
}

.composer input:disabled {
  cursor: not-allowed;
  background: rgba(244, 246, 245, 0.92);
  color: #7b8582;
}

.composer button {
  display: grid;
  width: 50px;
  height: 50px;
  min-height: 50px;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  padding: 0;
  background: rgba(0, 0, 0, 0.04);
  color: #65716f;
  transition:
    background 150ms ease,
    color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.composer button:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.composer button:last-child {
  border-color: var(--widget-action-bg, var(--brand));
  background: var(--widget-action-bg, var(--brand));
  color: var(--widget-action-fg, #fff);
  box-shadow: 0 12px 24px rgba(31, 41, 38, 0.12);
}

.composer button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  transform: none;
}

.end-session-float {
  flex: 0 0 auto;
  z-index: 20;
  display: flex;
  justify-content: center;
  border-top: 0;
  background: transparent;
  padding: 8px 0 10px;
  pointer-events: auto;
}

.end-session-float button {
  display: inline-flex;
  height: 32px;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--widget-action-bg, var(--brand));
  padding: 0 16px;
  color: var(--widget-action-fg, #fff);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(31, 41, 38, 0.14);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.end-session-float button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 41, 38, 0.18);
}

.widget-faq-panel {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  gap: 10px;
  background: var(--widget-surface, #fff);
  padding: 14px;
}

.widget-faq-list {
  display: grid;
  min-height: 0;
  flex: 1;
  align-content: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.widget-faq-list button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--widget-border, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  background: var(--widget-panel, #fff);
  padding: 9px 12px 9px 9px;
  color: var(--widget-ink, #18201f);
  text-align: left;
  box-shadow: 0 10px 24px rgba(31, 41, 38, 0.05);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.widget-faq-list button:hover {
  border-color: var(--widget-border-strong, rgba(79, 98, 95, 0.36));
  background: var(--widget-brand-soft, #f8faf9);
  transform: translateY(-1px);
}

.widget-faq-list button span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 12px;
  background: var(--widget-brand-soft, #eef4f2);
  color: var(--widget-brand, var(--brand));
}

.widget-faq-list button strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-faq-primary,
.closed-widget-state button {
  min-height: 44px;
  border: 1px solid var(--widget-action-bg, var(--brand));
  border-radius: 16px;
  background: var(--widget-action-bg, var(--brand));
  color: var(--widget-action-fg, #fff);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(31, 41, 38, 0.12);
}

.widget-faq-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 3px 2px;
  color: var(--widget-muted, #65716f);
  font-size: 12px;
  font-weight: 800;
}

.widget-faq-detail > article {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--widget-border, rgba(0, 0, 0, 0.08));
  border-radius: 18px;
  background: var(--widget-panel, #fff);
  padding: 18px;
  color: var(--widget-ink, #18201f);
  box-shadow: 0 10px 24px rgba(31, 41, 38, 0.05);
}

.widget-faq-detail-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: var(--widget-brand-soft, #eef4f2);
  color: var(--widget-brand, var(--brand));
}

.widget-faq-detail h2 {
  margin: 13px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.widget-faq-answer {
  margin: 13px 0 0;
  color: var(--widget-ink, #18201f);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.widget-faq-detail img {
  display: block;
  width: 100%;
  max-height: 220px;
  margin-top: 14px;
  border-radius: 14px;
  object-fit: contain;
}

.widget-faq-links {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.widget-faq-links a {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--widget-border, rgba(0, 0, 0, 0.08));
  border-radius: 13px;
  background: var(--widget-brand-soft, #eef4f2);
  padding: 8px 11px;
  color: var(--widget-brand, var(--brand));
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.widget-empty-state,
.closed-widget-state {
  display: grid;
  height: 100%;
  place-items: center;
  color: #65716f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.closed-widget-state {
  padding: 22px;
}

.closed-widget-state > div {
  display: grid;
  max-width: 280px;
  justify-items: center;
  gap: 10px;
}

.closed-widget-state button {
  width: min(100%, 220px);
  padding-inline: 24px;
}

.closed-widget-state .closed-widget-csat {
  display: grid;
  width: min(100%, 250px);
  gap: 9px;
}

.closed-widget-state .closed-widget-csat-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.closed-widget-state .closed-widget-csat-button {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--widget-panel, #fff);
  font-size: 12px;
  box-shadow: none;
}

.closed-widget-state .closed-widget-csat-button.good {
  border-color: #b7e4ca;
  color: #15803d;
}

.closed-widget-state .closed-widget-csat-button.bad {
  border-color: var(--widget-border, #d9dfdd);
  color: var(--widget-muted, #65716f);
}

.closed-widget-state .closed-widget-csat-button:hover:not(:disabled) {
  background: var(--widget-brand-soft, #eef4f2);
}

.closed-widget-state .closed-widget-csat-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.closed-widget-state .closed-widget-csat-reason {
  display: grid;
  gap: 8px;
  width: 100%;
}

.closed-widget-state .closed-widget-csat-reason label {
  color: var(--widget-muted, #65716f);
  font-size: 11px;
  font-weight: 750;
}

.closed-widget-state .closed-widget-csat-reason textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid var(--widget-border, #d9dfdd);
  border-radius: 12px;
  padding: 9px 10px;
  background: var(--widget-panel, #fff);
  color: #18201f;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.closed-widget-state .closed-widget-csat-reason textarea:focus {
  border-color: var(--widget-brand, var(--brand));
  outline: 2px solid var(--widget-brand-soft, #eef4f2);
}

.closed-widget-state .closed-widget-csat-reason-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.closed-widget-state .closed-widget-csat-reason-actions button {
  width: 100%;
  min-height: 38px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
}

.closed-widget-state .closed-widget-csat-reason-actions button:first-child {
  border-color: var(--widget-brand, var(--brand));
  background: var(--widget-brand, var(--brand));
  color: #fff;
}

.closed-widget-state .closed-widget-csat-thanks {
  color: #15803d;
  font-weight: 800;
}

.closed-widget-state .closed-widget-csat-error {
  color: #dc2626;
  font-weight: 750;
}

.closed-widget-state .closed-widget-new-chat {
  margin-top: 2px;
}

.closed-widget-state span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 22px;
  background: var(--widget-brand-soft, #eef4f2);
  color: var(--widget-brand, var(--brand));
}

.closed-widget-state h2,
.closed-widget-state p {
  margin: 0;
}

.closed-widget-state h2 {
  color: #18201f;
  font-size: 16px;
  font-weight: 900;
}

.closed-widget-state p {
  color: #65716f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.widget-phone-minimized {
  justify-content: center;
  background: #f8faf9;
}

.widget-minimized-state {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  color: #65716f;
  text-align: center;
}

.widget-minimized-state-web {
  display: block;
  padding: 0;
  animation: widget-launcher-in 220ms cubic-bezier(0.2, 0, 0, 1) both;
}

.widget-phone-mobile-web-preview.widget-phone-minimized {
  justify-content: stretch;
  background:
    radial-gradient(circle at 84% 90%, rgba(79, 98, 95, 0.16), transparent 34%),
    linear-gradient(180deg, #fbfcfc 0%, #eef4f2 100%);
}

.widget-minimized-state-mobile-web {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  animation: widget-launcher-in 220ms cubic-bezier(0.2, 0, 0, 1) both;
}

.widget-minimized-button {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 0;
  border-radius: 34px;
  background: var(--widget-floating-button-bg, var(--widget-action-bg, var(--brand)));
  color: var(--widget-floating-button-fg, var(--widget-action-fg, #fff));
  box-shadow: 0 24px 44px rgba(25, 38, 67, 0.26);
  transition: transform 160ms cubic-bezier(0.2, 0, 0, 1), box-shadow 160ms ease;
}

.widget-minimized-state-web .widget-minimized-button {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--widget-floating-button-bg, var(--widget-action-bg, var(--brand)));
  box-shadow: 0 20px 44px rgba(31, 41, 38, 0.26);
}

.widget-minimized-state-mobile-web .widget-minimized-button {
  position: absolute;
  right: 16px;
  bottom: calc(18px + var(--device-home-css-h, 0px));
  width: 60px;
  height: 60px;
  border-radius: 22px;
  background: var(--widget-floating-button-bg, var(--widget-action-bg, var(--brand)));
  box-shadow: 0 20px 44px rgba(31, 41, 38, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.widget-minimized-state-web .widget-minimized-button svg {
  width: 30px;
  height: 30px;
}

.widget-minimized-state-mobile-web .widget-minimized-button svg {
  width: 30px;
  height: 30px;
}

.widget-minimized-state-web .widget-minimized-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(31, 41, 38, 0.3);
}

.widget-minimized-state-mobile-web .widget-minimized-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(31, 41, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

@keyframes widget-launcher-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.86);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.widget-minimized-state strong,
.widget-minimized-state p {
  display: block;
  margin: 0;
}

.widget-minimized-state strong {
  color: #18201f;
  font-size: 16px;
  font-weight: 900;
}

.widget-minimized-state p {
  max-width: 250px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.widget-minimized-restore {
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: 16px;
  background: var(--brand);
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(31, 41, 38, 0.12);
}

.session-end-confirm {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.35);
  padding: 16px;
  backdrop-filter: blur(12px);
}

.session-end-confirm > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 360px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  padding: 16px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

.session-end-confirm > div > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 16px;
  background: rgba(79, 98, 95, 0.1);
  color: var(--brand);
}

.session-end-confirm section {
  min-width: 0;
}

.session-end-confirm strong,
.session-end-confirm p {
  display: block;
  margin: 0;
}

.session-end-confirm strong {
  color: #18201f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.session-end-confirm p {
  margin-top: 6px;
  color: #65716f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

.session-end-confirm footer {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.exchange-return-expired-confirm footer {
  grid-template-columns: 1fr;
}

.exchange-return-selection-confirm footer {
  grid-template-columns: 1fr;
}

.session-end-confirm footer button {
  min-height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: #fff;
  color: #65716f;
  font-size: 13px;
  font-weight: 850;
  transition: background 150ms ease, transform 150ms ease;
}

.session-end-confirm footer button:hover {
  background: rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

.session-end-confirm footer button:last-child {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 41, 38, 0.16);
}

.address-change-confirm > div {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  max-width: 368px;
}

.option-change-confirm > div {
  max-width: 390px;
}

.address-change-confirm > div > span {
  width: 34px;
  height: 34px;
  margin-left: -2px;
  border-radius: 14px;
}

.address-change-confirm .address-confirm-summary {
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 284px);
  margin: 0 auto;
  border: 1px solid rgba(79, 98, 95, 0.14);
  border-radius: 14px;
  background: #f8faf9;
  padding: 10px;
}

.address-change-confirm .address-confirm-summary div {
  display: grid;
  gap: 2px;
}

.address-change-confirm .address-confirm-summary dt,
.address-change-confirm .address-confirm-summary dd {
  margin: 0;
}

.address-change-confirm .address-confirm-summary dt {
  color: #65716f;
  font-size: 10px;
  font-weight: 850;
}

.address-change-confirm .address-confirm-summary dd {
  color: #18201f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.option-change-confirm .option-confirm-summary {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 306px);
  margin: 0 auto;
  border: 1px solid rgba(79, 98, 95, 0.14);
  border-radius: 14px;
  background: #f8faf9;
  padding: 14px 16px;
}

.option-change-confirm .option-confirm-summary strong {
  color: #18201f;
  font-size: 12px;
  font-weight: 850;
}

.option-change-confirm .option-confirm-summary div {
  display: grid;
  gap: 6px;
}

.option-change-confirm .option-confirm-summary span {
  color: #18201f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.tool-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

.tool-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.tool-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}

.tool-card strong,
.tool-card span,
.tool-card p,
.tool-card em {
  display: block;
}

.tool-card strong {
  font-size: 12px;
}

.tool-card span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.tool-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.tool-card em {
  justify-self: start;
  margin-top: 5px;
  border-radius: 999px;
  background: #fff7ed;
  padding: 3px 6px;
  color: #c2410c;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.audit-box {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
  padding: 10px;
}

.queue-box {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.queue-head strong,
.queue-box p {
  margin: 0;
  font-size: 11px;
}

.queue-head span {
  border-radius: 999px;
  background: #eef4f2;
  padding: 3px 7px;
  color: var(--brand-dark);
  font-size: 10px;
  font-weight: 850;
}

.queue-box p {
  color: var(--muted);
}

.queue-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-alt);
  padding: 8px;
}

.queue-item strong,
.queue-item span,
.queue-item em {
  display: block;
}

.queue-item strong {
  font-size: 11px;
}

.queue-item span,
.queue-item em {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.queue-item em {
  font-style: normal;
}

.audit-box strong {
  font-size: 11px;
}

.audit-box span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
}

/* Customer widget polish: keep runtime card states tied to the Luxiai widget theme. */
.widget-phone {
  --widget-ink: #1f2d29;
  --widget-muted: #66736f;
  --widget-soft-muted: #8b9692;
  --widget-brand: #4f625f;
  --widget-brand-dark: #3d514c;
  --widget-brand-soft: #eef4f2;
  --widget-header-bg: #4f625f;
  --widget-header-fg: #ffffff;
  --widget-action-bg: #4f625f;
  --widget-action-fg: #ffffff;
  --widget-surface: #ffffff;
  --widget-panel: #ffffff;
  --widget-border: rgba(79, 98, 95, 0.17);
  --widget-border-strong: rgba(79, 98, 95, 0.28);
  --widget-shadow: rgba(31, 41, 38, 0.1);
  --widget-agent-bubble-bg: #f4f7f6;
  --widget-agent-bubble-fg: #1f2d29;
  --widget-customer-bubble-bg: #e7eeeb;
  --widget-customer-bubble-fg: #1f2d29;
  --widget-info-ink: #496973;
  --widget-info-bg: #edf5f6;
  --widget-info-border: #cfe0e3;
  --widget-success-ink: #3f6c55;
  --widget-success-bg: #edf6f1;
  --widget-success-border: #c9dfd3;
  --widget-warning-ink: #84633d;
  --widget-warning-bg: #f8f2ea;
  --widget-warning-border: #eadbc5;
  --widget-danger-ink: #7d5350;
  --widget-danger-bg: #f8f2f0;
  --widget-danger-border: #e6d8d4;
  --widget-neutral-bg: #f4f7f6;
  --widget-neutral-border: #dce5e1;
  /* Customer-facing text roles: edit these when LuxiaiTalk exposes theme controls. */
  --customer-color-product: var(--widget-ink);
  --customer-color-label: var(--widget-ink);
  --customer-color-meta: var(--widget-muted);
  --customer-color-option: var(--widget-muted);
  --customer-color-schedule: #8b1e1e;
  --customer-font-weight-regular: 400;
  --customer-font-weight-product: 500;
  --customer-font-weight-note: 760;
  --customer-font-weight-list-title: 820;
  --customer-font-weight-emphasis: 850;
  --customer-font-weight-label: 900;
  --customer-font-weight-section-label: 1000;
  border-color: var(--widget-border-strong);
  background: var(--widget-surface);
  color: var(--widget-ink);
  box-shadow: 0 28px 76px var(--widget-shadow);
  font-family:
    "Pretendard Variable",
    Pretendard,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    system-ui,
    sans-serif;
}

.widget-phone .chat-feed {
  background:
    linear-gradient(180deg, var(--widget-surface) 0%, color-mix(in srgb, var(--widget-surface) 86%, var(--widget-brand-soft)) 100%);
}

.widget-phone .widget-status {
  color: var(--widget-success-ink);
}

.widget-phone .status-dot {
  background: var(--widget-online-dot);
}

.widget-phone .widget-status[data-availability-status="busy"] {
  color: var(--widget-warning-ink);
}

.widget-phone .widget-status[data-availability-status="busy"] .status-dot {
  background: #d59b32;
}

.widget-phone .widget-status[data-availability-status="overloaded"] {
  color: var(--widget-danger-ink);
}

.widget-phone .widget-status[data-availability-status="overloaded"] .status-dot {
  background: #c56b57;
}

.widget-phone .widget-status[data-availability-status="offline"] {
  color: var(--widget-muted);
}

.widget-phone .widget-status[data-availability-status="offline"] .status-dot {
  background: #94a3b8;
}

.widget-phone .runtime-card {
  border-color: var(--widget-border);
  border-radius: 16px;
  border-top-right-radius: 7px;
  background: var(--widget-panel);
  box-shadow: 0 14px 32px var(--widget-shadow);
}

.widget-phone .runtime-card-head {
  color: var(--widget-brand-dark);
}

.widget-phone .runtime-card-head span {
  width: 28px;
  height: 28px;
  border: 1px solid var(--widget-border);
  border-radius: 9px;
  background: var(--widget-brand-soft);
}

.widget-phone .runtime-card-head strong {
  color: var(--widget-ink);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.widget-phone .runtime-card-head-meta {
  max-width: 210px;
  color: var(--widget-danger-ink);
  font-size: 11px;
}

.widget-phone .bubble {
  color: var(--widget-ink);
  font-size: 13px;
  letter-spacing: 0;
}

.widget-phone .message-row.bot .bubble {
  border-color: var(--widget-border);
  background: var(--widget-agent-bubble-bg);
  color: var(--widget-agent-bubble-fg);
}

.widget-phone .message-row.bot.has-staged-card .bubble::after {
  border-color: var(--widget-border);
  background: var(--widget-agent-bubble-bg);
}

.widget-phone .message-row.user .bubble {
  background: var(--widget-customer-bubble-bg);
  color: var(--widget-customer-bubble-fg);
}

.widget-phone .lookup-summary-list dt {
  color: var(--widget-ink);
}

.widget-phone .lookup-summary-list dd {
  color: var(--widget-muted);
  font-size: 14px;
  font-weight: 900;
}

.handoff-submitted-info-list dd {
  white-space: pre-wrap;
}

.widget-phone .handoff-submitted-info-line {
  color: var(--widget-ink);
}

.widget-phone .handoff-submitted-info-line span:last-child {
  color: var(--widget-muted);
  font-size: 14px;
  font-weight: 900;
}

.widget-phone input,
.widget-phone textarea,
.widget-phone select {
  border-color: var(--widget-neutral-border);
  background: var(--widget-panel);
  color: var(--widget-ink);
  caret-color: var(--widget-brand);
}

.widget-phone input:focus,
.widget-phone textarea:focus,
.widget-phone select:focus {
  border-color: var(--widget-border-strong);
  box-shadow: 0 0 0 3px var(--widget-focus-ring);
}

.widget-phone .form-stack label > span,
.widget-phone .choice-label {
  color: var(--widget-muted);
  font-size: 10.5px;
  font-weight: 900;
}

.widget-phone .lookup-field-label .lookup-required-star {
  color: var(--widget-ink);
}

.widget-phone .lookup-field-label .lookup-required-text {
  color: var(--widget-danger-ink);
}

.widget-phone .primary-button,
.widget-phone .ghost-button,
.widget-phone .tracking-button {
  min-height: 38px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: 0;
}

.widget-phone .primary-button {
  border-color: var(--widget-action-bg);
  background: var(--widget-action-bg);
  color: var(--widget-action-fg);
  box-shadow: 0 10px 22px rgba(31, 41, 38, 0.12);
}

.widget-phone .primary-button:hover {
  background: var(--widget-brand-dark);
}

.widget-phone .primary-button.danger {
  border-color: var(--widget-action-bg);
  background: var(--widget-action-bg);
  color: var(--widget-action-fg);
}

.widget-phone .ghost-button {
  border-color: var(--widget-border);
  background: var(--widget-panel);
  color: var(--widget-ink);
}

.widget-phone .ghost-button:hover:not(:disabled),
.widget-phone .tracking-button:hover {
  border-color: var(--widget-border-strong);
  background: var(--widget-panel);
}

.widget-phone .quick-buttons-strip button,
.widget-phone .stacked-buttons button,
.widget-phone .order-list button,
.widget-phone .order-select-delivery-card,
.widget-phone .evidence-choice-grid button,
.widget-phone .pill-grid button,
.widget-phone .segmented-control button {
  border-color: var(--widget-border);
  border-radius: 12px;
  background: var(--widget-panel);
  color: var(--widget-ink);
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(31, 41, 38, 0.04);
}

.widget-phone .quick-buttons-strip button:hover,
.widget-phone .stacked-buttons button:hover,
.widget-phone .order-list button:hover,
.widget-phone button.order-select-delivery-card:hover:not(:disabled),
.widget-phone .evidence-choice-grid button:hover,
.widget-phone .pill-grid button:hover,
.widget-phone .segmented-control button:hover {
  border-color: var(--widget-border-strong);
  background: var(--widget-panel);
}

.widget-phone .evidence-choice-grid button.selected,
.widget-phone .order-list button.selected,
.widget-phone .resolution-list button.selected,
.widget-phone .pill-grid button.selected,
.widget-phone .segmented-control button.active,
.widget-phone .exchange-choice-list button:hover,
.widget-phone .exchange-choice-list button.selected,
.widget-phone .exchange-item-row.selected,
.widget-phone .exchange-return-item-row.selected,
.widget-phone .partial-item-row.selected,
.widget-phone .cancel-item-row.selected {
  border-color: var(--widget-brand);
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
  box-shadow: inset 0 0 0 1px var(--widget-focus-ring);
}

.widget-phone .order-list .order-select-number,
.widget-phone .delivery-status-summary .order-select-number {
  color: var(--widget-ink);
  font-size: 13.5px;
  font-weight: var(--customer-font-weight-label);
}

.widget-phone .order-list .order-select-product {
  color: var(--customer-color-label);
  font-size: 12.5px;
  font-weight: var(--customer-font-weight-list-title);
}

.widget-phone .order-list .order-select-meta,
.widget-phone .delivery-status-summary .order-select-meta,
.widget-phone .order-summary span,
.widget-phone .result-block span,
.widget-phone .item-row span,
.widget-phone .delivery-empty,
.widget-phone .microcopy,
.widget-phone .claim-question {
  color: var(--customer-color-meta);
}

.widget-phone .order-list .order-select-badge,
.widget-phone .order-list em,
.widget-phone .item-row em,
.widget-phone .tool-card em {
  border: 1px solid var(--widget-warning-border);
  background: var(--widget-warning-bg);
  color: var(--widget-warning-ink);
}

.widget-phone .order-select-badge.package-combined {
  border-color: rgba(79, 98, 95, 0.2);
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
}

.widget-phone .order-list .order-select-badge.option-unavailable,
.widget-phone .order-select-badge.option-unavailable {
  border-color: var(--widget-border);
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
}

.widget-phone .delivery-pill {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
  letter-spacing: 0;
}

.widget-phone .delivery-pill.preparing {
  border-color: var(--widget-danger-border);
  background: var(--widget-danger-bg);
  color: var(--widget-danger-ink);
}

.widget-phone .delivery-pill.in_transit,
.widget-phone .delivery-pill.delivered {
  border-color: var(--widget-info-border);
  background: var(--widget-info-bg);
  color: var(--widget-info-ink);
}

.widget-phone .delivery-pill.canceled {
  border-color: var(--widget-border);
  background: rgba(101, 113, 111, 0.08);
  color: var(--widget-muted);
}

.widget-phone .delivery-ship-date-text,
.widget-phone .order-list .delivery-ship-date-text {
  color: var(--customer-color-meta);
  font-size: 9.5px;
  font-weight: var(--customer-font-weight-note, 700);
}

.widget-phone .file-summary-row > button {
  border-color: var(--widget-border);
  background: var(--widget-panel);
  color: var(--widget-muted);
}

.widget-phone .exchange-return-reason-grid .field-invalid,
.widget-phone .exchange-return-detail-field .field-invalid,
.widget-phone .exchange-return-defect-recovery.field-invalid {
  border-color: var(--widget-danger-ink);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--widget-danger-ink) 12%, transparent);
}

.widget-phone .exchange-return-validation-error {
  border-color: var(--widget-danger-border);
  background: var(--widget-danger-bg);
  color: var(--widget-danger-ink);
}

.widget-phone .delivery-status-summary,
.widget-phone .delivery-product-panel,
.widget-phone .order-select-delivery-card,
.widget-phone .order-summary,
.widget-phone .result-block,
.widget-phone .item-row,
.widget-phone .claim-order-context,
.widget-phone .return-fee-summary,
.widget-phone .policy-list,
.widget-phone .request-summary,
.widget-phone .exchange-return-selected-summary,
.widget-phone .exchange-return-defect-recovery,
.widget-phone .exchange-return-reason-card,
.widget-phone .exchange-selected-item {
  border-color: var(--widget-border);
  background: var(--widget-panel);
}

.widget-phone .delivery-product-panel,
.widget-phone .order-select-delivery-card {
  border-radius: 12px;
}

.widget-phone .delivery-product-panel {
  gap: 8px;
  padding: 10px 11px;
}
.widget-phone .delivery-group-list {
  gap: 12px;
}
.widget-phone .delivery-group-card {
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.widget-phone .delivery-group-card + .delivery-group-card {
  border-top: 0;
  padding-top: 0;
}
.widget-phone .delivery-group-card:last-child {
  padding-bottom: 0;
}

.widget-phone .delivery-group-head {
  min-height: 24px;
}
.widget-phone .delivery-item {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 7px 0;
  box-shadow: none;
}
.widget-phone .delivery-item + .delivery-item {
  border-top: 0;
}

.widget-phone .delivery-item.delayed small,
.widget-phone .delivery-item.delayed .product-option-meta {
  color: var(--customer-color-schedule);
}

.widget-phone .delivery-section h4,
.widget-phone .delivery-group-head strong {
  color: var(--customer-color-label);
  letter-spacing: 0;
}

.widget-phone .delivery-item-main .product-title-line,
.widget-phone .product-option-block .product-title-line {
  color: var(--customer-color-product);
  font-weight: var(--customer-font-weight-product);
  letter-spacing: 0;
}

.widget-phone .exchange-return-item-body .product-title-line,
.widget-phone .exchange-return-reason-product .product-title-line,
.widget-phone .exchange-return-selected-product .product-title-line {
  justify-content: flex-start;
  font-weight: 600;
  text-align: left;
}

.widget-phone .delivery-product-panel .product-title-line {
  font-weight: var(--customer-font-weight-product);
}

.widget-phone .delivery-option-chip,
.widget-phone .simple-return-fee,
.widget-phone .queue-head span {
  border-color: var(--widget-border);
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
}
.widget-phone .shipment-line {
  border-top: 0;
  padding-top: 0;
}

.widget-phone .shipment-line span {
  color: var(--customer-color-label);
  font-weight: var(--customer-font-weight-regular);
}

.widget-phone .tracking-button {
  border-color: var(--widget-border);
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
  min-height: 28px;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
}

.widget-phone .order-select-delivery-card {
  gap: 8px;
}

.widget-phone .order-select-compact-summary{
  gap: 8px;
}

.widget-phone .order-select-identity-row{
  grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
  gap: 10px;
}

.widget-phone .order-select-compact-number{
  color: var(--widget-ink);
  font-size: 13.5px;
  font-weight: var(--customer-font-weight-label);
}

.widget-phone .order-select-compact-channel{
  color: var(--customer-color-meta);
  font-size: var(--customer-font-size-meta);
  font-weight: var(--customer-font-weight-regular);
}

.widget-phone .order-select-compact-product{
  color: var(--customer-color-product);
  font-size: 12.5px;
  font-weight: var(--customer-font-weight-product);
}
.widget-phone .order-select-delivery-card .delivery-product-panel {
  border: 0;
  border-radius: 0;
  background: transparent;
  margin-top: 0;
  padding: 4px 0 0;
}

.widget-phone .order-select-delivery-card .delivery-status-summary {
  border: 0;
  background: transparent;
  padding: 0;
}

.widget-phone .order-select-delivery-card .delivery-group-card {
  padding: 0 0 9px;
}
.widget-phone .order-select-delivery-card .delivery-group-card + .delivery-group-card {
  padding-top: 9px;
}

.widget-phone .order-select-delivery-card .delivery-item {
  background: transparent;
}

.widget-phone .danger-note,
.widget-phone .success-note,
.widget-phone .info-note,
.widget-phone .inline-warning,
.widget-phone .delivery-delay-notice,
.widget-phone .eligibility-box,
.widget-phone .partial-shipment-summary,
.widget-phone .inline-error {
  border-radius: 12px;
  letter-spacing: 0;
}

.widget-phone .danger-note,
.widget-phone .inline-error {
  border: 1px solid var(--widget-danger-border);
  background: var(--widget-danger-bg);
  color: var(--widget-danger-ink);
}

.widget-phone .success-note,
.widget-phone .eligibility-box.ok,
.widget-phone .partial-shipment-summary.ok {
  border: 1px solid var(--widget-success-border);
  background: var(--widget-success-bg);
  color: var(--widget-success-ink);
}

.widget-phone .info-note {
  border: 1px solid var(--widget-info-border);
  background: var(--widget-info-bg);
  color: var(--widget-info-ink);
}

.widget-phone .inline-warning,
.widget-phone .eligibility-box.blocked,
.widget-phone .partial-shipment-summary.blocked {
  border: 1px solid var(--widget-warning-border);
  background: var(--widget-warning-bg);
  color: var(--customer-color-schedule);
}

.widget-phone .delivery-delay-notice {
  border: 1px solid var(--widget-neutral-border);
  background: var(--widget-neutral-bg);
  color: var(--customer-color-label);
}

.widget-phone .delivery-delay-notice p {
  color: var(--customer-color-meta);
  font-size: var(--customer-font-size-meta);
  font-weight: var(--customer-font-weight-regular);
  line-height: var(--customer-line-height-meta);
}
.widget-phone .delivery-delay-notice.embedded {
  margin-top: 12px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--customer-color-option);
}

.widget-phone .evidence-choice-grid button.warning svg,
.widget-phone .evidence-choice-grid button.selected.warning {
  color: var(--widget-warning-ink);
}

.widget-phone .evidence-choice-grid button.selected.warning {
  border-color: var(--widget-warning-border);
  background: var(--widget-warning-bg);
  box-shadow: inset 0 0 0 1px rgba(132, 99, 61, 0.18);
}

.widget-phone .file-drop {
  border-color: var(--widget-neutral-border);
  background: var(--widget-panel);
}

.widget-phone .cancel-select-all-row,
.widget-phone .cancel-item-row,
.widget-phone .exchange-choice-list button,
.widget-phone .exchange-option-item-card,
.widget-phone .exchange-return-item-row,
.widget-phone .exchange-return-defect-options label,
.widget-phone .exchange-return-reason-grid select,
.widget-phone .exchange-return-item-row select,
.widget-phone .partial-item-row {
  border-color: var(--widget-border);
  background: var(--widget-panel);
  color: var(--widget-ink);
}

.widget-phone .exchange-return-defect-options label.selected {
  border-color: var(--widget-brand);
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
}

.widget-phone .exchange-return-warning{
  color: var(--widget-info-ink);
}

.widget-phone .option-change-noop-popover {
  border-color: color-mix(in srgb, var(--widget-brand) 32%, #f0c36a);
  background: color-mix(in srgb, var(--widget-brand-soft) 54%, #fff9e8);
  color: var(--widget-brand-dark);
}

@media (max-width: 420px) {
  .exchange-return-reason-grid {
    grid-template-columns: 1fr;
  }

  .exchange-return-item-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .exchange-return-item-row.has-quantity-select {
    grid-template-columns: auto minmax(0, 1fr) 52px;
  }
}

.widget-phone .cancel-item-row {
  min-height: 56px;
}

.widget-phone .cancel-item-row.disabled {
  border-color: var(--widget-border);
  background: var(--widget-panel);
  color: var(--widget-muted);
  box-shadow: none;
}

.widget-phone .exchange-unit-label em {
  background: var(--widget-brand);
}

.widget-phone .partial-row-note{
  color: var(--customer-color-meta);
}

.widget-phone .partial-row-note.unavailable{
  color: var(--widget-warning-ink);
}

.widget-phone .cancel-management-sections {
  gap: 7px;
}

.widget-phone .cancel-management-sections .delivery-section {
  gap: 5px;
}
.widget-phone .cancel-management-sections .delivery-item {
  border: 0;
  box-shadow: none;
}

.widget-phone .partial-item-row.available {
  border-color: var(--widget-success-border);
  background: var(--widget-success-bg);
}

.widget-phone .partial-item-row.unavailable {
  border-color: var(--widget-warning-border);
  background: var(--widget-warning-bg);
}

.widget-phone .partial-item-status.available {
  border-color: var(--widget-success-border);
  background: var(--widget-success-bg);
  color: var(--widget-success-ink);
}

.widget-phone .partial-item-status.unavailable {
  border-color: var(--widget-warning-border);
  background: var(--widget-warning-bg);
  color: var(--widget-warning-ink);
}

.widget-phone .unavailable-order-section-head span {
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
}

.widget-phone .order-select-row-disabled {
  border-color: var(--widget-neutral-border);
  background: var(--widget-neutral-bg);
}

.widget-phone .form-error {
  color: var(--widget-danger-ink);
}

.widget-phone .typing-bubble {
  border-color: var(--widget-border);
  background: var(--widget-neutral-bg);
}

.widget-phone .typing-bubble i {
  background: var(--widget-soft-muted);
}

/* Complete theme coverage for the live widget chrome, transient popups, and
   legacy runtime controls. Every non-semantic surface/text role follows the
   workflow's configured surface, panel, text, muted, and button colors. */
.widget-phone .widget-tabs {
  border-bottom-color: var(--widget-border);
  background: color-mix(in srgb, var(--widget-surface) 88%, var(--widget-brand-soft));
}

.widget-phone .widget-tabs > button,
.widget-phone .business-hours-control > button {
  color: var(--widget-muted);
}

.widget-phone .widget-tabs > button:hover,
.widget-phone .business-hours-control > button:hover {
  background: var(--widget-hover-bg);
}

.widget-phone .widget-tabs > button.active {
  border-color: var(--widget-border-strong);
  background: var(--widget-panel);
  color: var(--widget-brand-dark);
  box-shadow: 0 10px 24px var(--widget-shadow);
}

.widget-phone .business-hours-popover {
  border-color: var(--widget-border);
  background: var(--widget-panel);
  box-shadow: 0 12px 30px var(--widget-shadow);
}

.widget-phone .business-hours-popover p {
  color: var(--widget-ink);
}

.widget-phone .business-hours-popover span,
.widget-phone .sender-label,
.widget-phone .message-time {
  color: var(--widget-muted);
}

.widget-phone .rich-text-link {
  color: var(--widget-brand-dark);
}

.widget-phone .rich-text-link.right {
  color: var(--widget-customer-bubble-fg);
}

.widget-phone .runtime-card-head-meta {
  color: var(--widget-danger-ink);
}

.widget-phone input::placeholder,
.widget-phone textarea::placeholder {
  color: var(--widget-muted);
  opacity: 0.72;
}

.widget-phone .composer {
  border-top-color: var(--widget-border);
  background: color-mix(in srgb, var(--widget-surface) 94%, var(--widget-brand-soft));
}

.widget-phone .composer.locked {
  background: var(--widget-neutral-bg);
}

.widget-phone .composer input {
  border-color: var(--widget-border);
  background: var(--widget-panel);
  color: var(--widget-ink);
}

.widget-phone .composer input:disabled {
  background: var(--widget-neutral-bg);
  color: var(--widget-muted);
}

.widget-phone .composer button {
  border-color: var(--widget-border);
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
}

.widget-phone .composer button:hover:not(:disabled) {
  background: var(--widget-hover-bg);
}

.widget-phone .composer button:last-child {
  border-color: var(--widget-action-bg);
  background: var(--widget-action-bg);
  color: var(--widget-action-fg);
}

.widget-phone .widget-empty-state,
.widget-phone .closed-widget-state,
.widget-phone .widget-minimized-state {
  color: var(--widget-muted);
}

.widget-phone .closed-widget-state h2,
.widget-phone .widget-minimized-state strong {
  color: var(--widget-ink);
}

.widget-phone.widget-phone-minimized {
  background: color-mix(in srgb, var(--widget-surface) 90%, var(--widget-brand-soft));
}

.widget-phone .widget-minimized-restore {
  border-color: var(--widget-action-bg);
  background: var(--widget-action-bg);
  color: var(--widget-action-fg);
}

.widget-phone .session-end-confirm {
  background: var(--widget-overlay);
}

.widget-phone .session-end-confirm > div {
  border-color: var(--widget-border-strong);
  background: var(--widget-panel);
  color: var(--widget-ink);
  box-shadow: 0 24px 70px var(--widget-shadow);
}

.widget-phone .session-end-confirm > div > span {
  background: var(--widget-brand-soft);
  color: var(--widget-brand-dark);
}

.widget-phone .session-end-confirm strong,
.widget-phone .address-change-confirm .address-confirm-summary dd,
.widget-phone .option-change-confirm .option-confirm-summary strong,
.widget-phone .option-change-confirm .option-confirm-summary span {
  color: var(--widget-ink);
}

.widget-phone .session-end-confirm p,
.widget-phone .address-change-confirm .address-confirm-summary dt {
  color: var(--widget-muted);
}

.widget-phone .session-end-confirm footer button {
  border-color: var(--widget-border);
  background: var(--widget-panel);
  color: var(--widget-ink);
}

.widget-phone .session-end-confirm footer button:hover {
  background: var(--widget-hover-bg);
}

.widget-phone .session-end-confirm footer button:last-child {
  border-color: var(--widget-action-bg);
  background: var(--widget-action-bg);
  color: var(--widget-action-fg);
  box-shadow: 0 12px 24px var(--widget-shadow);
}

.widget-phone .address-change-confirm .address-confirm-summary,
.widget-phone .option-change-confirm .option-confirm-summary {
  border-color: var(--widget-border);
  background: var(--widget-brand-soft);
}

.widget-phone .order-hierarchy-head,
.widget-phone .current-address-block strong,
.widget-phone .current-address-block span {
  color: var(--widget-ink);
}

.widget-phone .order-select-row-disabled .order-select-number,
.widget-phone .order-select-row-disabled .order-select-product,
.widget-phone .order-select-row-disabled .order-select-compact-number,
.widget-phone .order-select-row-disabled .order-select-compact-product {
  color: var(--widget-muted);
}

.widget-phone .current-address-block {
  border-bottom-color: var(--widget-border);
}

.widget-phone .handoff-info-notice {
  color: var(--widget-muted);
}

.widget-phone .handoff-info-notice svg {
  color: var(--widget-brand-dark);
}

.widget-phone .handoff-info-notice-strong,
.widget-phone .handoff-info-notice-strong svg {
  color: var(--widget-danger-ink);
}

.widget-phone .debug-code {
  border-color: var(--widget-warning-border);
  background: var(--widget-warning-bg);
  color: var(--widget-warning-ink);
}

.widget-phone .address-main-label .address-input-completed,
.widget-phone .exchange-choice-list button:disabled,
.widget-phone .exchange-choice-list button.disabled {
  border-color: var(--widget-neutral-border);
  background: var(--widget-neutral-bg);
  color: var(--widget-muted);
}

.widget-phone .exchange-choice-list button:disabled .product-option-line,
.widget-phone .exchange-choice-list button:disabled .product-quantity-line,
.widget-phone .exchange-choice-list button.disabled .product-option-line,
.widget-phone .exchange-choice-list button.disabled .product-quantity-line,
.widget-phone .exchange-choice-list button:disabled .product-option-meta,
.widget-phone .exchange-choice-list button.disabled .product-option-meta {
  color: var(--widget-muted);
}

.widget-phone .postcode-panel {
  border-color: var(--widget-border);
  background: var(--widget-panel);
}

@media (max-width: 1120px) {
  .workbench {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 430px;
  }

  .graph-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .widget-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .editor-panel {
    grid-column: 1;
    grid-row: 2;
  }

  .workbench.preview-open {
    grid-template-columns: minmax(0, 1fr) minmax(var(--preview-panel-min-w), var(--preview-panel-max-w));
    grid-template-rows: minmax(0, 1fr) 430px;
  }

  .preview-open .graph-panel {
    grid-column: 1;
    grid-row: 1;
  }

  .preview-open .widget-panel {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .preview-open .editor-panel {
    grid-column: 1;
    grid-row: 2;
  }
}

@media (max-width: 980px) {
  .app-shell {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
  }

  .topbar {
    width: 100%;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
  }

  .topbar-title,
  .topbar-actions {
    width: 100%;
    flex: 0 1 auto;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .mobile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 8px 10px;
    overflow: visible;
  }

  .mobile-tabs button {
    min-height: 34px;
    flex: 1 1 86px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 0;
    margin-left: -1px;
    margin-top: -1px;
    background: #fff;
    padding: 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
  }

  .mobile-tabs button:first-child {
    margin-left: 0;
    border-radius: 6px 0 0 6px;
  }

  .mobile-tabs button:last-child {
    border-radius: 0 6px 6px 0;
  }

  .mobile-tabs button.active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
  }

  .workbench {
    display: block;
    padding: 10px;
  }

  .mobile-pane {
    display: none;
    height: calc(100vh - 178px);
  }

  .mobile-pane.mobile-show {
    display: flex;
  }

  .editor-panel.mobile-show,
  .tool-panel.mobile-show,
.widget-panel.mobile-show {
    align-items: center;
  }

  .graph-panel.mobile-show {
    flex-direction: column;
  }

  .flow-minimap {
    display: none;
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 10px;
  }

  .topbar h1 {
    font-size: 15px;
  }

  .topbar p {
    font-size: 11px;
  }

  .mobile-pane {
    height: calc(100vh - 214px);
  }

  .widget-panel {
    padding: 6px;
  }

  .widget-phone {
    border-radius: 18px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .node-content-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .two-buttons {
    grid-template-columns: 1fr;
  }
}

/* The real LuxiaTalk iframe uses the same reference widget without editor-only
   mobile pane sizing or device-preview padding. */
.widget-panel.workflow-reference-runtime-only.mobile-pane {
  display: flex;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}




































































@media (max-width: 520px) {


}

@media (prefers-reduced-motion: reduce) {
  .workflow-reference-scope,
  .workflow-reference-scope *,
  .workflow-reference-scope *::before,
  .workflow-reference-scope *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ═════════════════════════════════════════════════════════════════════════
   2026-10 고객 위젯 개편 (사용자 승인 v4 시안, 2026-10-07)
   화면 모양만 바꾼다. 문구·카드 순서·서버 요청은 기존 그대로다.
   색은 운영 테마 변수(widgetThemeCssVariables)에서 오며, 편집기 테마 값이 그대로 반영된다.
   ═════════════════════════════════════════════════════════════════════════ */
.widget-v4 {
  --wv-brand: var(--widget-brand, #34466f);
  --wv-brand-ink: var(--widget-action-fg, #ffffff);
  --wv-brand-strong: var(--widget-brand-dark, #2a3859);
  --wv-brand-50: var(--widget-brand-50, #f5f6f8);
  --wv-brand-100: var(--widget-brand-100, #e9ebf0);
  --wv-brand-200: var(--widget-brand-200, #d3d7e1);
  --wv-ring: var(--widget-brand-ring, rgba(52, 70, 111, 0.16));
  --wv-panel: var(--widget-panel, #ffffff);
  --wv-bg: var(--widget-surface, #ffffff);
  --wv-ink: var(--widget-ink, #16181d);
  --wv-muted: var(--widget-muted, #6b7280);
  --wv-text-2: #474c57;
  --wv-surface: #f6f7f9;
  --wv-surface-2: #eef0f3;
  --wv-line: #eaecf0;
  --wv-line-strong: #dcdfe5;
  --wv-success: #0f7b55;
  --wv-success-bg: #e8f6ef;
  --wv-warning: #a85a06;
  --wv-warning-bg: #fff4e3;
  --wv-danger: #cf3328;
  --wv-danger-bg: #fdefee;
  --wv-danger-line: #f6cdca;
  --wv-info: #2160d8;
  --wv-info-bg: #ecf2fe;
  --wv-info-ink: #24427e;
  --wv-r-card: 20px;
  --wv-r-bubble: 18px;
  --wv-r-field: 13px;
  --wv-r-btn: 14px;
  --wv-shadow-card: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 26px -18px rgba(17, 24, 39, 0.22);
  --wv-shadow-pop: 0 18px 40px -12px rgba(17, 24, 39, 0.28), 0 0 0 1px var(--wv-line);
  --wv-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wv-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.widget-phone.widget-v4 {
  background: var(--wv-bg);
  color: var(--wv-ink);
}

/* ───────────── 머리글: 가운데 로고·이름, 운영 상태 알약, ☰ 메뉴 ───────────── */
.widget-v4 .widget-header {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 4px;
  min-height: 0;
  padding: 14px 10px 10px;
  background: var(--widget-header-bg, var(--wv-panel));
  color: var(--widget-header-fg, var(--wv-ink));
}

.widget-v4 .widget-header::after {
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 14px;
  background: linear-gradient(var(--widget-header-bg, var(--wv-panel)), rgba(255, 255, 255, 0));
  content: '';
  pointer-events: none;
}

.widget-v4 .widget-header span {
  display: inline;
  margin-top: 0;
  opacity: 1;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.widget-v4 .widget-header-side {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.widget-v4 .widget-header-icon-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 12px;
  color: inherit;
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s var(--wv-spring);
}

.widget-v4 .widget-header-icon-button:hover {
  background: var(--widget-header-hover, var(--wv-surface));
  color: inherit;
  transform: none;
}

.widget-v4 .widget-header-icon-button:active {
  transform: scale(0.92);
}

.widget-v4 .widget-header-icon-button:focus-visible {
  outline: 2px solid var(--wv-brand);
  outline-offset: 1px;
}

.widget-v4 .widget-header-icon-button svg {
  width: 22px;
  height: 22px;
}

.widget-v4 .widget-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.widget-v4 .widget-title-row {
  display: flex;
  min-width: 0;
  max-width: 100%;
  align-items: center;
  gap: 8px;
}

.widget-v4 .widget-header .widget-title-row strong {
  display: block;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-v4 .widget-avatar {
  position: relative;
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--wv-line-strong);
  color: var(--wv-brand);
}

.widget-v4 .widget-avatar img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.widget-v4 .widget-avatar svg {
  width: 62%;
  height: 62%;
}

.widget-v4 .widget-avatar.widget-avatar-large {
  width: 64px;
  height: 64px;
  box-shadow: inset 0 0 0 1px var(--wv-line), 0 10px 24px -14px rgba(17, 24, 39, 0.35);
}

.widget-v4 .widget-header .widget-status {
  position: relative;
  display: inline-flex;
  min-height: 0;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 2px 8px;
  color: var(--widget-header-muted, var(--wv-muted));
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.widget-v4 .widget-header .widget-status::after {
  position: absolute;
  inset: -9px -6px;
  content: '';
}

.widget-v4 .widget-header .widget-status:hover {
  background: var(--widget-header-hover, var(--wv-surface));
}

.widget-v4 .widget-header .widget-status .status-dot {
  position: relative;
  display: block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a3a9b4;
}

.widget-v4 .widget-header .widget-status .widget-status-label {
  white-space: nowrap;
}

.widget-v4 .widget-header .widget-status svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.widget-v4 .widget-header .widget-status[data-availability-status="available"] {
  color: var(--widget-header-available, var(--wv-success));
}

.widget-v4 .widget-header .widget-status[data-availability-status="available"] .status-dot {
  background: #18b277;
}

.widget-v4 .widget-header .widget-status[data-availability-status="available"] .status-dot::after {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #18b277;
  content: '';
  opacity: 0.35;
  animation: widget-v4-pulse 2.2s var(--wv-ease) 3;
}

.widget-v4 .widget-header .widget-status[data-availability-status="busy"] {
  color: var(--widget-header-busy, var(--wv-warning));
}

.widget-v4 .widget-header .widget-status[data-availability-status="busy"] .status-dot {
  background: #f0a92e;
}

.widget-v4 .widget-header .widget-status[data-availability-status="overloaded"] {
  color: var(--widget-header-overloaded, var(--wv-danger));
}

.widget-v4 .widget-header .widget-status[data-availability-status="overloaded"] .status-dot {
  background: #ea6a4f;
}

.widget-v4 .widget-header-menu {
  position: absolute;
  top: 58px;
  right: 10px;
  z-index: 30;
  display: grid;
  min-width: 216px;
  border-radius: 16px;
  background: var(--wv-panel);
  padding: 6px;
  color: var(--wv-ink);
  box-shadow: var(--wv-shadow-pop);
  transform-origin: top right;
  animation: widget-v4-pop-in 0.26s var(--wv-ease) both;
}

.widget-v4 .widget-header-menu button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  padding: 0 12px;
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.widget-v4 .widget-header-menu button:hover,
.widget-v4 .widget-header-menu button:focus-visible {
  background: var(--wv-surface);
  outline: none;
}

.widget-v4 .widget-header-menu button svg {
  flex: none;
  color: var(--wv-muted);
}

.widget-v4 .widget-header-menu .widget-header-menu-danger,
.widget-v4 .widget-header-menu .widget-header-menu-danger svg {
  color: var(--wv-danger);
}

.widget-v4 .widget-header-menu hr {
  height: 1px;
  margin: 4px 6px;
  border: 0;
  background: var(--wv-line);
}

.widget-v4 .business-hours-popover {
  position: absolute;
  top: 72px;
  right: auto;
  left: 50%;
  z-index: 30;
  display: grid;
  width: 268px;
  max-width: calc(100% - 24px);
  gap: 0;
  border: 0;
  border-radius: 16px;
  background: var(--widget-panel, #ffffff);
  padding: 16px 18px;
  color: var(--wv-ink);
  text-align: left;
  box-shadow: var(--wv-shadow-pop);
  transform: translateX(-50%);
  transform-origin: top center;
  animation: widget-v4-pop-center 0.26s var(--wv-ease) both;
}

.widget-v4 .business-hours-popover p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--widget-ink, var(--wv-ink));
  font-size: 14px;
  font-weight: 700;
}

.widget-v4 .business-hours-popover p svg {
  color: var(--wv-brand);
}

.widget-v4 .business-hours-popover .business-hours-state {
  justify-self: start;
  display: inline-flex;
  margin: 0 0 12px;
  border-radius: 999px;
  background: #f1f2f4;
  padding: 5px 10px;
  color: var(--wv-text-2);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.widget-v4 .business-hours-popover .business-hours-state[data-availability-status="available"] {
  background: var(--wv-success-bg);
  color: var(--wv-success);
}

.widget-v4 .business-hours-popover .business-hours-state[data-availability-status="busy"] {
  background: var(--wv-warning-bg);
  color: var(--wv-warning);
}

.widget-v4 .business-hours-popover .business-hours-state[data-availability-status="overloaded"] {
  background: var(--wv-danger-bg);
  color: var(--wv-danger);
}

.widget-v4 .business-hours-popover span {
  margin: 0;
  opacity: 1;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.widget-v4 .business-hours-popover .business-hours-lines {
  display: grid;
  gap: 6px;
  color: var(--widget-muted, var(--wv-muted));
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
}

.widget-v4 .business-hours-popover .business-hours-line {
  display: block;
  text-align: justify;
  text-align-last: justify;
}

.widget-v4 .business-hours-popover .business-hours-line > * {
  display: inline-block;
  text-align-last: auto;
}

.widget-v4 .business-hours-popover .business-hours-line b {
  color: var(--wv-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.widget-v4 .business-hours-popover .business-hours-note {
  display: block;
  margin-top: 12px;
  border-radius: 11px;
  background: var(--wv-brand-50);
  padding: 10px 12px;
  color: var(--wv-text-2);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-line;
}

/* 편집기 카드 미리보기도 고객 위젯과 같은 폭·모양으로 보인다. */
.card-template-preview-surface.widget-v4 {
  grid-template-columns: minmax(0, 368px);
  color: var(--wv-ink);
}

/* ───────────── 대화 영역 ───────────── */
.widget-v4 .widget-main {
  background: var(--wv-bg);
}

.widget-v4 .chat-feed {
  gap: 0;
  padding: 14px 16px 18px;
  scrollbar-gutter: stable both-edges;
  background: var(--wv-bg);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d6d9df transparent;
}

.widget-v4 .widget-welcome {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 18px;
  text-align: center;
  animation: widget-v4-rise 0.7s var(--wv-ease) both;
}

.widget-v4 .widget-welcome .widget-avatar {
  margin-bottom: 12px;
}

.widget-v4 .widget-welcome strong {
  color: var(--wv-ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.widget-v4 .widget-welcome > span {
  margin-top: 6px;
  color: var(--wv-muted);
  font-size: 13px;
}

.widget-v4 .widget-day-divider {
  flex: none;
  align-self: center;
  margin: 4px 0 14px;
  border-radius: 999px;
  background: var(--wv-surface);
  padding: 4px 12px;
  color: var(--wv-muted);
  font-size: 11.5px;
  font-weight: 600;
}

.widget-v4 .message-row {
  flex: none;
  gap: 6px;
  margin-top: 14px;
}

.widget-v4 .message-row.is-continued,
.widget-v4 .message-row.user + .message-row.user {
  margin-top: 6px;
}

.widget-v4 .widget-day-divider + .message-row,
.widget-v4 .widget-welcome + .message-row {
  margin-top: 0;
}

.widget-v4 .message-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.widget-v4 .message-sender-avatar {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--wv-line-strong);
  color: var(--wv-brand);
}

.widget-v4 .message-sender-avatar img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.widget-v4 .message-sender-avatar svg {
  width: 60%;
  height: 60%;
}

.widget-v4 .message-sender-avatar.is-agent {
  background: var(--wv-brand);
  box-shadow: none;
  color: var(--wv-brand-ink);
}

.widget-v4 .message-sender-avatar.is-agent svg {
  width: 15px;
  height: 15px;
}

.widget-v4 .sender-label {
  margin-left: 0;
  color: var(--wv-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.widget-v4 .message-time {
  color: var(--wv-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.widget-v4 .bubble {
  max-width: 86%;
  border-radius: var(--wv-r-bubble);
  padding: 11px 15px;
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  box-shadow: none;
  animation: widget-v4-msg-in 0.5s var(--wv-ease) both;
}

.widget-v4 .message-row.bot .bubble {
  border: 1px solid var(--wv-brand-100);
  border-top-left-radius: var(--wv-r-bubble);
  background: var(--widget-agent-bubble-bg, var(--wv-brand-50));
  color: var(--widget-agent-bubble-fg, var(--wv-ink));
}

.widget-v4 .message-row.bot[data-widget-agent-message="true"] .bubble {
  border-color: var(--wv-line-strong);
  background: var(--wv-panel);
}

.widget-v4 .message-row.user .bubble {
  border-top-right-radius: var(--wv-r-bubble);
  background: var(--widget-customer-bubble-bg, var(--wv-surface-2));
  color: var(--widget-customer-bubble-fg, var(--wv-ink));
  animation-name: widget-v4-msg-in-right;
}

.widget-v4 .message-row.bot.has-staged-card .bubble::after {
  display: none;
}

.widget-v4 .rich-text-space {
  height: 0.55em;
}

.widget-v4 .rich-text-link {
  color: var(--wv-brand);
}

.widget-v4 .message-row.user .rich-text-link.right {
  color: inherit;
}

.widget-v4 .bubble.attachment-message-bubble {
  overflow: hidden;
  width: min(280px, 76%);
  border: 1px solid var(--wv-line);
  background: var(--wv-panel);
  padding: 0;
}

.widget-v4 .message-attachment {
  gap: 0;
}

.widget-v4 .message-attachment-preview,
.widget-v4 .message-attachment video {
  border-radius: 0;
  background: var(--wv-surface);
}

.widget-v4 .message-attachment-name {
  gap: 8px;
  padding: 10px 12px;
  color: var(--wv-text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.widget-v4 .message-meta {
  margin-top: -2px;
}

.widget-v4 .message-row.system {
  margin-top: 16px;
  padding: 0;
}

.widget-v4 .system-message {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--wv-success-bg);
  padding: 6px 12px;
  color: var(--wv-success);
  font-size: 12px;
  font-weight: 600;
  animation: widget-v4-pop 0.5s var(--wv-spring) both;
}

.widget-v4 .typing-bubble {
  gap: 5px;
  border: 1px solid var(--wv-brand-100);
  border-radius: var(--wv-r-bubble);
  background: var(--wv-brand-50);
  padding: 14px 16px;
}

.widget-v4 .typing-bubble i {
  width: 7px;
  height: 7px;
  background: var(--wv-brand);
  opacity: 0.35;
  animation: widget-v4-typing 1.2s infinite ease-in-out;
}

.widget-v4 .typing-bubble i:nth-child(2) {
  animation-delay: 0.15s;
}

.widget-v4 .typing-bubble i:nth-child(3) {
  animation-delay: 0.3s;
}

.widget-v4 .inline-error {
  align-self: stretch;
  margin-top: 12px;
}

/* ───────────── 문의 유형: 2열 타일 ───────────── */
.widget-v4 .quick-buttons-strip {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.widget-v4 .message-row.bot .bubble + .quick-buttons-strip {
  margin-top: 4px;
}

.widget-v4 .quick-buttons-strip button {
  position: relative;
  display: flex;
  width: auto;
  min-width: 0;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
  background: var(--widget-panel, #ffffff);
  padding: 10px 12px;
  color: var(--widget-ink, var(--wv-ink));
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
  cursor: pointer;
  animation: widget-v4-rise 0.5s var(--wv-ease) both;
  transition: border-color 0.2s, box-shadow 0.25s var(--wv-ease), transform 0.25s var(--wv-spring), background-color 0.2s;
}

.widget-v4 .quick-buttons-strip button:nth-child(2) { animation-delay: 45ms; }
.widget-v4 .quick-buttons-strip button:nth-child(3) { animation-delay: 90ms; }
.widget-v4 .quick-buttons-strip button:nth-child(4) { animation-delay: 135ms; }
.widget-v4 .quick-buttons-strip button:nth-child(5) { animation-delay: 180ms; }
.widget-v4 .quick-buttons-strip button:nth-child(6) { animation-delay: 225ms; }
.widget-v4 .quick-buttons-strip button:nth-child(n + 7) { animation-delay: 270ms; }

.widget-v4 .quick-buttons-strip.has-odd-count button:last-child {
  grid-column: 1 / -1;
}

.widget-v4 .quick-buttons-strip button:hover:not(:disabled) {
  border-color: var(--wv-brand-200);
  background: var(--widget-panel, #ffffff);
  box-shadow: 0 10px 22px -16px color-mix(in srgb, var(--wv-brand) 60%, transparent);
  transform: translateY(-1px);
}

.widget-v4 .quick-buttons-strip button:active:not(:disabled) {
  transform: scale(0.97);
}

.widget-v4 .quick-buttons-strip button:focus-visible {
  outline: 2px solid var(--wv-brand);
  outline-offset: 2px;
}

/* The rise animation fills forwards and keeps `opacity: 1` above any opacity
   set here, so a tile that cannot be pressed yet is dimmed with a filter. */
.widget-v4 .quick-buttons-strip button:disabled {
  cursor: default;
  box-shadow: none;
  filter: grayscale(0.4) opacity(0.5);
}

.widget-v4 .widget-boot-error {
  display: flex;
  max-width: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
}

.widget-v4 .widget-boot-error button {
  flex: none;
  min-height: 34px;
  border: 1px solid var(--wv-brand-200, currentColor);
  border-radius: 999px;
  background: var(--widget-panel, #ffffff);
  padding: 0 14px;
  color: var(--wv-brand, currentColor);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.widget-v4 .widget-boot-error button:hover {
  border-color: var(--wv-brand, currentColor);
}

.widget-v4 .widget-boot-error button:focus-visible {
  outline: 2px solid var(--wv-brand);
  outline-offset: 2px;
}

.widget-v4 .quick-button-icon {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--wv-brand-50);
  color: var(--wv-brand);
  transition: background-color 0.2s, color 0.2s;
}

.widget-v4 .quick-buttons-strip button:hover:not(:disabled) .quick-button-icon {
  background: var(--wv-brand);
  color: var(--wv-brand-ink);
}

/* 안내 메뉴 첫 화면 버튼의 '아이콘 색'(2026-11-10): 고른 색으로 칸을 채우고 아이콘은 흰색.
   마우스를 올려도 테마 색으로 바뀌지 않고 고른 색 그대로다. 색 값은 workflow-guide.ts 한 곳에 있다. */
.widget-v4 .quick-button-icon.has-fill,
.widget-v4 .quick-buttons-strip button:hover:not(:disabled) .quick-button-icon.has-fill {
  background: var(--guide-icon-fill);
  color: #ffffff;
}

.widget-v4 .quick-button-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.widget-v4 .quick-faq-chip {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  border: 1px dashed var(--wv-line-strong);
  border-radius: 999px;
  background: transparent;
  padding: 8px 12px;
  color: var(--wv-text-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  animation: widget-v4-rise 0.5s var(--wv-ease) 0.3s both;
}

.widget-v4 .quick-faq-chip:hover {
  border-style: solid;
  border-color: var(--wv-brand-200);
  color: var(--wv-brand);
}

/* 고객이 넣은 값(주문 정보·입력 정보): 오른쪽 요약 */
.widget-v4 .message-row.has-lookup-summary {
  align-items: flex-end;
}

.widget-v4 .message-row.has-lookup-summary .runtime-card {
  width: auto;
  min-width: 210px;
  max-width: 82%;
  gap: 8px;
  border: 0;
  border-radius: 18px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 6px;
  background: var(--widget-customer-bubble-bg, var(--wv-surface-2));
  padding: 12px 14px;
  box-shadow: none;
  animation: widget-v4-msg-in-right 0.5s var(--wv-ease) both;
}

.widget-v4 .message-row.has-lookup-summary .runtime-card-head {
  gap: 6px;
  color: var(--wv-muted);
}

.widget-v4 .message-row.has-lookup-summary .runtime-card-head span {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  color: var(--wv-muted);
}

.widget-v4 .message-row.has-lookup-summary .runtime-card-head span svg {
  width: 13px;
  height: 13px;
}

.widget-v4 .message-row.has-lookup-summary .runtime-card-head strong {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 700;
}

.widget-v4 .lookup-summary-list {
  gap: 5px;
}

.widget-v4 .lookup-summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.widget-v4 .lookup-summary-list dt {
  flex: none;
  color: var(--wv-text-2);
  font-size: 13.5px;
  font-weight: 500;
}

.widget-v4 .lookup-summary-list dd {
  color: var(--widget-customer-bubble-fg, var(--wv-ink));
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  white-space: pre-line;
  word-break: keep-all;
}

.widget-v4 .handoff-submitted-info-list > div {
  display: grid;
  gap: 3px;
}

.widget-v4 .handoff-submitted-info-list dd {
  font-weight: 600;
  line-height: 1.55;
  text-align: left;
}

/* ───────────── 카드 공통 ───────────── */
.widget-v4 .runtime-ui-stage {
  margin-top: 10px;
}

.widget-v4 .runtime-card {
  width: 100%;
  max-width: 100%;
  gap: 0;
  overflow: visible;
  border: 1px solid var(--wv-line);
  border-radius: var(--wv-r-card);
  border-top-right-radius: var(--wv-r-card);
  background: var(--widget-panel, #ffffff);
  padding: 16px;
  box-shadow: var(--wv-shadow-card);
}

.widget-v4 .runtime-ui-stage.staged-reveal > .runtime-card {
  animation: widget-v4-card-in 0.6s var(--wv-ease) both;
}

.widget-v4 .runtime-card > * + * {
  margin-top: 12px;
}

.widget-v4 .runtime-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wv-brand);
}

.widget-v4 .runtime-card-head span {
  display: grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: var(--wv-brand-50);
  color: var(--wv-brand);
}

.widget-v4 .runtime-card-head span:empty {
  display: none;
}

.widget-v4 .runtime-card-head span svg {
  width: 18px;
  height: 18px;
}

.widget-v4 .runtime-card-head strong {
  flex: 1;
  min-width: 0;
  color: var(--wv-ink);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.widget-v4 .runtime-card-head .runtime-card-head-meta {
  flex-basis: 100%;
  order: 3;
  max-width: none;
  margin: 2px 0 0 44px;
  color: var(--wv-danger);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
}

.widget-v4 .runtime-card-head:has(.runtime-card-head-meta) {
  flex-wrap: wrap;
}

.widget-v4 .microcopy {
  color: var(--wv-text-2);
  font-size: 13px;
  line-height: 1.55;
}

.widget-v4 .info-note,
.widget-v4 .danger-note,
.widget-v4 .success-note,
.widget-v4 .order-select-guidance {
  display: block;
  margin: 0;
  border: 0;
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 12.8px;
  font-weight: 500;
  line-height: 1.6;
  white-space: pre-line;
}

.widget-v4 .info-note {
  background: var(--wv-info-bg);
  color: var(--wv-info-ink);
}

.widget-v4 .danger-note {
  background: var(--wv-danger-bg);
  color: #8a1f17;
}

.widget-v4 .order-select-guidance {
  background: var(--wv-warning-bg);
  color: #6f3d07;
}

.widget-v4 .success-note,
.widget-v4 .action-result-message {
  background: var(--wv-surface);
  color: var(--wv-text-2);
  font-size: 13.6px;
  line-height: 1.7;
}

.widget-v4 .form-error,
.widget-v4 .exchange-return-validation-error {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--wv-danger-bg);
  padding: 10px 12px;
  color: var(--wv-danger);
  font-size: 12.5px;
  font-weight: 600;
  animation: widget-v4-rise 0.3s var(--wv-ease) both;
}

/* 입력 칸 */
.widget-v4 .form-stack {
  gap: 14px;
}

.widget-v4 .form-stack label {
  display: grid;
  gap: 7px;
}

.widget-v4 .form-stack label > span,
.widget-v4 .choice-label,
.widget-v4 .exchange-return-choice-field > span,
.widget-v4 .exchange-return-detail-field > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.widget-v4 .lookup-field-label .lookup-required-star:has(+ .lookup-required-text) {
  display: none;
}

.widget-v4 .lookup-field-label .lookup-required-text {
  border-radius: 6px;
  background: var(--wv-brand-50);
  padding: 1px 6px;
  color: var(--wv-brand);
  font-size: 11px;
  font-weight: 700;
}

.widget-v4 input:where(:not([type="checkbox"], [type="radio"], [type="file"])),
.widget-v4 textarea,
.widget-v4 select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid transparent;
  border-radius: var(--wv-r-field);
  background: var(--wv-surface);
  padding: 12px 14px;
  color: var(--wv-ink);
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.widget-v4 textarea {
  min-height: 96px;
  resize: none;
  line-height: 1.55;
}

.widget-v4 select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  padding-right: 40px;
  cursor: pointer;
}

.widget-v4 input:where(:not([type="checkbox"], [type="radio"], [type="file"])):hover,
.widget-v4 textarea:hover,
.widget-v4 select:hover {
  background-color: var(--wv-surface-2);
}

.widget-v4 input:where(:not([type="checkbox"], [type="radio"], [type="file"])):focus,
.widget-v4 textarea:focus,
.widget-v4 select:focus {
  border-color: var(--wv-brand);
  background-color: var(--widget-panel, #ffffff);
  box-shadow: 0 0 0 4px var(--wv-ring);
}

.widget-v4 input[readonly] {
  color: var(--wv-text-2);
}

.widget-v4 input::placeholder,
.widget-v4 textarea::placeholder {
  color: #a6abb5;
  opacity: 1;
}

.widget-v4 .field-invalid,
.widget-v4 input.field-invalid,
.widget-v4 textarea.field-invalid {
  border-color: var(--wv-danger) !important;
  background-color: var(--widget-panel, #ffffff) !important;
}

/* 버튼 */
.widget-v4 .primary-button,
.widget-v4 .ghost-button,
.widget-v4 .tracking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  letter-spacing: -0.015em;
  transition: transform 0.2s var(--wv-spring), background-color 0.2s, box-shadow 0.2s, opacity 0.2s, color 0.2s;
}

.widget-v4 .primary-button {
  min-height: 50px;
  border: 0;
  border-radius: var(--wv-r-btn);
  background: var(--widget-action-bg, var(--wv-brand));
  padding: 0 18px;
  color: var(--widget-action-fg, #ffffff);
  font-size: 15px;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--wv-brand) 80%, transparent);
}

.widget-v4 .primary-button:hover:not(:disabled) {
  background: var(--wv-brand-strong);
}

.widget-v4 .primary-button:active:not(:disabled),
.widget-v4 .ghost-button:active:not(:disabled) {
  transform: scale(0.975);
}

.widget-v4 .primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.widget-v4 .ghost-button {
  min-height: 46px;
  border: 0;
  border-radius: var(--wv-r-btn);
  background: var(--wv-surface);
  padding: 0 16px;
  color: var(--wv-ink);
  font-size: 14px;
}

.widget-v4 .ghost-button:hover:not(:disabled) {
  background: var(--wv-surface-2);
}

.widget-v4 .primary-button.wide,
.widget-v4 .ghost-button.wide {
  width: 100%;
}

/* 카드 아래 이동 버튼(이전·처음으로·상담원 연결)은 가운데 한 줄 글자 버튼으로 */
.widget-v4 .form-stack > button.ghost-button.wide,
.widget-v4 .exchange-return-flow > button.ghost-button.wide,
.widget-v4 .runtime-card > button.ghost-button.wide,
.widget-v4 .claim-step-actions .ghost-button,
.widget-v4 .card-actions .ghost-button,
.widget-v4 .card-actions .primary-button {
  width: auto;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0 11px;
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.widget-v4 .form-stack > button.ghost-button.wide:hover:not(:disabled),
.widget-v4 .exchange-return-flow > button.ghost-button.wide:hover:not(:disabled),
.widget-v4 .runtime-card > button.ghost-button.wide:hover:not(:disabled),
.widget-v4 .claim-step-actions .ghost-button:hover:not(:disabled),
.widget-v4 .card-actions .ghost-button:hover:not(:disabled),
.widget-v4 .card-actions .primary-button:hover:not(:disabled) {
  background: var(--wv-surface);
  color: var(--wv-ink);
}

.widget-v4 .form-stack > button.ghost-button.wide,
.widget-v4 .exchange-return-flow > button.ghost-button.wide,
.widget-v4 .runtime-card > button.ghost-button.wide {
  justify-self: center;
}

.widget-v4 .form-stack > .primary-button + .ghost-button.wide,
.widget-v4 .exchange-return-flow > .primary-button + .ghost-button.wide {
  margin-top: -6px;
}

.widget-v4 .form-stack > button.ghost-button.wide + .ghost-button.wide {
  margin-top: -14px;
}

.widget-v4 .claim-step-actions,
.widget-v4 .card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  padding: 0;
}

.widget-v4 .claim-step-actions > * + *::before,
.widget-v4 .card-actions > button + button::before {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--wv-line-strong);
  content: '';
}

.widget-v4 .claim-step-actions > * + *::before,
.widget-v4 .card-actions > button + button::before {
  position: relative;
  left: -6px;
  margin-right: 0;
}

.widget-v4 .card-actions-shell {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.widget-v4 .result-card .card-actions .primary-button,
.widget-v4 .bank-transfer-notice-actions .card-actions .primary-button {
  width: 100%;
  min-height: 50px;
  border-radius: var(--wv-r-btn);
  background: var(--widget-action-bg, var(--wv-brand));
  padding: 0 18px;
  color: var(--widget-action-fg, #ffffff);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--wv-brand) 80%, transparent);
}

.widget-v4 .result-card .card-actions .primary-button:hover:not(:disabled) {
  background: var(--wv-brand-strong);
  color: var(--widget-action-fg, #ffffff);
}

.widget-v4 .bank-transfer-notice-actions .card-actions .primary-button {
  width: auto;
  min-height: 40px;
  background: transparent;
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

/* ───────────── 주문 선택 줄 ───────────── */
.widget-v4 .order-select-card-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
}

.widget-v4 .order-hierarchy-order + .order-hierarchy-order,
.widget-v4 .order-select-card-list > .order-select-row + .order-select-row,
.widget-v4 .order-select-card-list > .readonly-order-row + .readonly-order-row {
  border-top: 1px solid var(--wv-line);
}

.widget-v4 .order-select-row.order-select-delivery-card {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: var(--widget-panel, #ffffff);
  padding: 13px 14px;
  color: var(--wv-ink);
  text-align: left;
  box-shadow: none;
  transition: background-color 0.2s;
}

.widget-v4 button.order-select-row.order-select-delivery-card:hover:not(:disabled) {
  border: 0;
  background: var(--wv-brand-50);
}

.widget-v4 .order-select-row.order-select-row-disabled {
  opacity: 1;
}

.widget-v4 .order-select-row.order-select-row-disabled > .order-select-tile,
.widget-v4 .order-select-row.order-select-row-disabled .order-select-compact-summary {
  opacity: 0.55;
}

.widget-v4 .order-select-tile {
  display: grid;
  flex: none;
  width: 36px;
  height: 36px;
  margin-top: 1px;
  place-items: center;
  border-radius: 11px;
}

.widget-v4 .order-select-tile.tone-preparing {
  background: var(--wv-warning-bg);
  color: var(--wv-warning);
}

.widget-v4 .order-select-tile.tone-in_transit,
.widget-v4 .order-select-tile.tone-delivered {
  background: var(--wv-info-bg);
  color: var(--wv-info);
}

.widget-v4 .order-select-tile.tone-canceled {
  background: #f1f2f4;
  color: var(--wv-muted);
}

.widget-v4 .order-select-row-expired > .order-select-tile {
  background: var(--wv-danger-bg);
  color: var(--wv-danger);
}

.widget-v4 .order-select-chevron {
  display: grid;
  flex: none;
  align-self: center;
  color: var(--wv-muted);
}

.widget-v4 .order-select-row-disabled .order-select-chevron,
.widget-v4 .readonly-order-row .order-select-chevron {
  display: none;
}

.widget-v4 .order-select-compact-summary {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 3px;
}

.widget-v4 .order-select-identity-list {
  display: grid;
  gap: 2px;
}

.widget-v4 .order-select-identity-row {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.widget-v4 .order-select-compact-number {
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.widget-v4 .order-select-compact-channel {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 500;
}

.widget-v4 .order-select-compact-product {
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.widget-v4 .order-select-compact-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 3px;
}

.widget-v4 .delivery-pill {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.widget-v4 .delivery-pill.preparing {
  border: 0;
  background: var(--wv-warning-bg);
  color: var(--wv-warning);
}

.widget-v4 .delivery-pill.in_transit,
.widget-v4 .delivery-pill.delivered {
  border: 0;
  background: var(--wv-info-bg);
  color: var(--wv-info);
}

.widget-v4 .delivery-pill.canceled {
  border: 0;
  background: #f1f2f4;
  color: var(--wv-muted);
}

.widget-v4 .delivery-ship-date-text,
.widget-v4 .order-list .delivery-ship-date-text {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 500;
}

.widget-v4 .order-select-badge,
.widget-v4 .order-list em,
.widget-v4 .order-select-badge.option-unavailable,
.widget-v4 .order-list .order-select-badge.option-unavailable {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--wv-brand-50);
  padding: 3px 9px;
  color: var(--wv-brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.widget-v4 .order-select-row-expired .order-select-badge.option-unavailable {
  background: var(--wv-danger-bg);
  color: var(--wv-danger);
}

.widget-v4 .order-select-badge.package-combined {
  background: var(--wv-brand-50);
  color: var(--wv-brand);
}

/* 선택할 수 있는 주문이 없음 */
.widget-v4 .unavailable-order-list {
  display: grid;
  gap: 14px;
}

.widget-v4 .unavailable-order-section {
  display: grid;
  gap: 8px;
}

.widget-v4 .unavailable-order-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--wv-text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.widget-v4 .unavailable-order-section-head strong {
  color: var(--wv-text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.widget-v4 .unavailable-order-section-head span {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ───────────── 배송 현황 ───────────── */
.widget-v4 .delivery-status-summary {
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 12px 14px;
}

.widget-v4 .delivery-order-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.widget-v4 .delivery-status-summary .order-select-number {
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.widget-v4 .delivery-status-summary .order-select-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--wv-muted);
  font-size: 12px;
}

.widget-v4 .delivery-product-panel {
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 0;
}

.widget-v4 .delivery-group-list {
  display: grid;
  gap: 10px;
}

.widget-v4 .delivery-group-card {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--wv-line-strong);
  border-radius: 14px;
  background: transparent;
  padding: 12px;
}

.widget-v4 .delivery-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}

.widget-v4 .delivery-group-head strong {
  color: var(--wv-ink);
  font-size: 13px;
  font-weight: 700;
}

.widget-v4 .delivery-group-title,
.widget-v4 .delivery-group-status-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.widget-v4 .delivery-section {
  display: grid;
  gap: 8px;
}

.widget-v4 .delivery-section h4 {
  margin: 0;
  color: var(--wv-success);
  font-size: 12.5px;
  font-weight: 700;
}

.widget-v4 .delivery-section.delayed h4 {
  color: var(--wv-danger);
}

.widget-v4 .delivery-item-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--wv-line);
  border-radius: 14px;
}

.widget-v4 .delivery-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  background: var(--widget-panel, #ffffff);
  padding: 12px 14px;
}

.widget-v4 .delivery-item + .delivery-item {
  border-top: 1px solid var(--wv-line);
}

.widget-v4 .delivery-item-meta span {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  border-radius: 8px;
  background: var(--wv-surface);
  padding: 3px 8px;
  color: var(--wv-text-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.widget-v4 .shipment-list {
  display: grid;
  gap: 8px;
}

.widget-v4 .shipment-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  border-radius: 12px;
  background: var(--wv-surface);
  padding: 10px 12px;
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 500;
}

.widget-v4 .tracking-button {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--widget-panel, #ffffff);
  padding: 0 10px;
  color: var(--wv-brand);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--wv-line-strong);
}

.widget-v4 .delivery-delay-notice,
.widget-v4 .delivery-delay-notice.embedded {
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 12px;
  background: var(--wv-warning-bg);
  padding: 10px 12px;
  color: #6f3d07;
  font-size: 12.5px;
  line-height: 1.55;
}

.widget-v4 .delivery-delay-notice p {
  margin: 0;
}

.widget-v4 .delivery-inquiry-options {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.widget-v4 .delivery-inquiry-options button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--wv-line-strong);
  border-radius: 999px;
  background: var(--widget-panel, #ffffff);
  padding: 0 13px;
  color: var(--wv-ink);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--wv-spring);
}

.widget-v4 .delivery-inquiry-options button svg {
  color: var(--wv-brand);
}

.widget-v4 .delivery-inquiry-options button:hover:not(:disabled) {
  border-color: var(--wv-brand-200);
  background: var(--wv-brand-50);
}

.widget-v4 .delivery-empty {
  color: var(--wv-muted);
  font-size: 13px;
}

/* ───────────── 상품 표시 ───────────── */
.widget-v4 .product-title-line {
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.widget-v4 .product-option-inline {
  color: var(--wv-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.widget-v4 .product-option-meta {
  color: var(--wv-danger);
  font-size: 12px;
  font-weight: 600;
}

/* ───────────── 체크 행(취소·부분 출고·옵션·교환/반품) ───────────── */
.widget-v4 .cancel-item-panel {
  display: grid;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
}

.widget-v4 .cancel-item-list,
.widget-v4 .exchange-return-product-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
}

.widget-v4 .cancel-select-all-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--wv-line);
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 12px 14px;
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 700;
}

.widget-v4 .cancel-select-all-row em {
  margin-left: auto;
  color: var(--wv-muted);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
}

.widget-v4 .cancel-item-row,
.widget-v4 .exchange-return-item-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: var(--widget-panel, #ffffff);
  padding: 13px 14px;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.widget-v4 .cancel-item-row + .cancel-item-row,
.widget-v4 .exchange-return-item-row + .exchange-return-item-row,
.widget-v4 .cancel-item-list > * + .cancel-item-row {
  border-top: 1px solid var(--wv-line);
}

.widget-v4 .cancel-item-row.selected,
.widget-v4 .exchange-item-row.selected,
.widget-v4 .partial-shipment-row.selected,
.widget-v4 .exchange-return-item-row.selected {
  border-color: var(--wv-line);
  background: var(--wv-brand-50);
  color: var(--wv-ink);
  box-shadow: none;
}

.widget-v4 .cancel-item-row.disabled {
  cursor: default;
  opacity: 0.62;
}

.widget-v4 .cancel-management-content,
.widget-v4 .exchange-return-item-body {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 4px;
}

.widget-v4 .cancel-item-row input[type="checkbox"],
.widget-v4 .cancel-select-all-row input[type="checkbox"],
.widget-v4 .exchange-return-item-row input[type="checkbox"] {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid var(--wv-line-strong);
  border-radius: 7px;
  background: var(--widget-panel, #ffffff);
  cursor: pointer;
  appearance: none;
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--wv-spring);
}

.widget-v4 .cancel-item-row input[type="checkbox"]:checked,
.widget-v4 .cancel-select-all-row input[type="checkbox"]:checked,
.widget-v4 .exchange-return-item-row input[type="checkbox"]:checked {
  border-color: var(--wv-brand);
  background: var(--wv-brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.widget-v4 .cancel-item-row input[type="checkbox"]:focus-visible,
.widget-v4 .cancel-select-all-row input[type="checkbox"]:focus-visible,
.widget-v4 .exchange-return-item-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--wv-brand);
  outline-offset: 2px;
}

.widget-v4 .cancel-item-row input[type="checkbox"]:disabled,
.widget-v4 .cancel-select-all-row input[type="checkbox"]:disabled {
  cursor: default;
  opacity: 0.5;
}

.widget-v4 .partial-row-note {
  color: var(--wv-success);
  font-size: 12px;
  font-weight: 600;
}

.widget-v4 .partial-row-note.unavailable {
  color: var(--wv-danger);
}

.widget-v4 .exchange-choice-index {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 600;
}

.widget-v4 .cancel-action-row {
  display: flex;
  gap: 8px;
}

.widget-v4 .cancel-action-row > .ghost-button,
.widget-v4 .cancel-action-row > .primary-button {
  flex: 1;
  min-width: 0;
  width: auto;
  min-height: 50px;
}

/* 선택 칩 (수량·사유·처리 방법·교환 옵션) */
.widget-v4 .widget-choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-radius: 12px;
}

.widget-v4 .widget-choice-chips.field-invalid {
  border: 0 !important;
  box-shadow: 0 0 0 1.5px var(--wv-danger), 0 0 0 5px var(--wv-danger-bg);
}

.widget-v4 .widget-choice-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  border: 1.5px solid var(--wv-line-strong);
  border-radius: 999px;
  background: var(--widget-panel, #ffffff);
  padding: 0 14px;
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s var(--wv-spring);
}

.widget-v4 .widget-choice-chip:not(.selected):hover:not(:disabled) {
  border-color: var(--wv-brand-200);
  background: var(--wv-brand-50);
}

.widget-v4 .widget-choice-chip:active:not(:disabled) {
  transform: scale(0.96);
}

.widget-v4 .widget-choice-chip.selected {
  border-color: var(--wv-brand);
  background: var(--wv-brand);
  color: var(--wv-brand-ink);
}

.widget-v4 .widget-choice-chip:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.widget-v4 .widget-choice-chip-tag {
  border-radius: 5px;
  background: rgba(17, 24, 39, 0.07);
  padding: 1px 5px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}

.widget-v4 .widget-choice-chip.selected .widget-choice-chip-tag {
  background: rgba(255, 255, 255, 0.22);
}

.widget-v4 .exchange-return-quantity {
  margin-top: 6px;
}

.widget-v4 .exchange-return-quantity select {
  width: auto;
  min-width: 112px;
}

.widget-v4 .exchange-return-flow {
  display: grid;
  gap: 14px;
}

.widget-v4 .exchange-return-selected-summary {
  display: grid;
  gap: 6px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 12px 14px;
}

.widget-v4 .exchange-return-selected-summary > strong {
  color: var(--wv-text-2);
  font-size: 12.5px;
  font-weight: 700;
}

.widget-v4 .exchange-return-reason-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
  background: var(--widget-panel, #ffffff);
  padding: 14px;
}

.widget-v4 .exchange-return-reason-product {
  border-bottom: 1px dashed var(--wv-line-strong);
  padding-bottom: 12px;
}

.widget-v4 .exchange-return-reason-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.widget-v4 .exchange-return-choice-field {
  display: grid;
  gap: 8px;
}

.widget-v4 .exchange-return-detail-field {
  display: grid;
  gap: 7px;
}

.widget-v4 .exchange-return-defect-recovery {
  display: grid;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 12px 14px;
}

.widget-v4 .exchange-return-defect-recovery strong {
  color: var(--wv-ink);
  font-size: 13px;
  font-weight: 700;
}

.widget-v4 .exchange-return-defect-recovery p {
  margin: 0;
  color: var(--wv-text-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.widget-v4 .exchange-return-defect-options {
  display: grid;
  gap: 6px;
}

.widget-v4 .exchange-return-defect-options label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--wv-line);
  border-radius: 12px;
  background: var(--widget-panel, #ffffff);
  padding: 0 12px;
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.widget-v4 .exchange-return-defect-options label.selected {
  border-color: var(--wv-brand);
  background: var(--wv-brand-50);
}

.widget-v4 .exchange-return-defect-options input[type="radio"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--wv-line-strong);
  border-radius: 50%;
  appearance: none;
  background: var(--widget-panel, #ffffff);
}

.widget-v4 .exchange-return-defect-options input[type="radio"]:checked {
  border: 6px solid var(--wv-brand);
}

.widget-v4 .exchange-return-attachment-title {
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 700;
}

.widget-v4 .file-drop,
.widget-v4 .bank-transfer-upload {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed var(--wv-line-strong);
  border-radius: 16px;
  background: var(--wv-surface);
  padding: 12px 14px;
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.widget-v4 .file-drop:hover,
.widget-v4 .bank-transfer-upload:hover {
  border-color: var(--wv-brand-200);
  background: var(--wv-brand-50);
}

.widget-v4 .file-drop svg,
.widget-v4 .bank-transfer-upload svg {
  flex: none;
  color: var(--wv-brand);
}

.widget-v4 .file-drop em {
  color: var(--wv-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.widget-v4 .file-summary-list {
  display: grid;
  gap: 6px;
}

.widget-v4 .file-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 12px;
  background: var(--wv-surface);
  padding: 6px 6px 6px 12px;
  color: var(--wv-text-2);
  font-size: 12.5px;
}

.widget-v4 .file-summary-row > button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: var(--widget-panel, #ffffff);
  color: var(--wv-muted);
}

.widget-v4 .exchange-return-warning {
  color: var(--wv-muted);
  font-size: 12px;
}

/* 옵션 변경 */
.widget-v4 .exchange-option-panel {
  display: grid;
  gap: 10px;
}

.widget-v4 .exchange-option-group,
.widget-v4 .exchange-unit-list {
  display: grid;
  gap: 10px;
}

.widget-v4 .exchange-option-item-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
  background: var(--widget-panel, #ffffff);
  padding: 12px 14px;
}

.widget-v4 .exchange-unit-row {
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--wv-line-strong);
  padding-top: 10px;
}

.widget-v4 .exchange-unit-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 600;
}

.widget-v4 .exchange-unit-label em {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--wv-surface-2);
  color: var(--wv-text-2);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 700;
}

.widget-v4 .option-change-noop-popover {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-warning-bg);
  padding: 12px 13px;
  color: #6f3d07;
  font-size: 12.8px;
  line-height: 1.55;
  box-shadow: none;
}

/* 배송지 변경 */
.widget-v4 .current-address-block {
  display: grid;
  gap: 4px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 12px 14px;
}

.widget-v4 .current-address-block strong {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 700;
}

.widget-v4 .current-address-block span {
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.widget-v4 .address-search-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.widget-v4 .address-search-row .address-main-label {
  flex: 1;
  min-width: 0;
}

.widget-v4 .address-search-row .ghost-button {
  flex: none;
  min-height: 48px;
  border: 0;
  background: var(--widget-panel, #ffffff);
  box-shadow: inset 0 0 0 1px var(--wv-line-strong);
  color: var(--wv-ink);
  font-size: 13.5px;
}

.widget-v4 .postcode-panel {
  overflow: hidden;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
}

/* 결과 카드 */
.widget-v4 .result-card > .runtime-card-head {
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 6px 0 2px;
  text-align: center;
}

.widget-v4 .result-card > .runtime-card-head span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--wv-success-bg);
  color: var(--wv-success);
  animation: widget-v4-pop 0.6s var(--wv-spring) both;
}

.widget-v4 .result-card > .runtime-card-head span svg {
  width: 26px;
  height: 26px;
}

.widget-v4 .result-card > .runtime-card-head strong {
  flex: none;
  font-size: 17px;
}

/* 상담원 연결 대기 카드 */
.widget-v4 .handoff-card > .runtime-card-head span {
  position: relative;
  width: 44px;
  height: 44px;
  overflow: visible;
  border-radius: 50%;
}

.widget-v4 .handoff-card > .runtime-card-head span::before,
.widget-v4 .handoff-card > .runtime-card-head span::after {
  position: absolute;
  inset: 0;
  border: 2px solid var(--wv-brand);
  border-radius: 50%;
  content: '';
  opacity: 0;
  animation: widget-v4-ripple 2.4s var(--wv-ease) 3;
}

.widget-v4 .handoff-card > .runtime-card-head span::after {
  animation-delay: 1.2s;
}

.widget-v4 .handoff-card .handoff-copy {
  margin-top: 10px;
  color: var(--wv-text-2);
  font-size: 13.2px;
  line-height: 1.65;
  white-space: pre-line;
}

.widget-v4 .handoff-card .handoff-exit-copy {
  border-radius: 12px;
  background: var(--wv-surface);
  padding: 10px 12px;
  color: var(--wv-muted);
  font-size: 12px;
  line-height: 1.55;
}

.widget-v4 .handoff-card .handoff-end-button {
  display: inline-flex;
  justify-self: center;
  min-height: 40px;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0 11px;
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.widget-v4 .handoff-card .handoff-end-button:hover {
  background: var(--wv-surface);
  color: var(--wv-ink);
}

/* 무통장입금 */
.widget-v4 .bank-transfer-guide {
  border-color: color-mix(in srgb, var(--wv-warning) 18%, var(--wv-line));
}

.widget-v4 .bank-transfer-guide-intro {
  display: grid;
  gap: 6px;
  border-radius: 14px;
  background: var(--wv-warning-bg);
  padding: 14px;
}

.widget-v4 .bank-transfer-guide-intro strong {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--wv-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.widget-v4 .bank-transfer-guide-intro p {
  margin: 0;
  color: #6f3d07;
  font-size: 12.8px;
  line-height: 1.55;
}

.widget-v4 .bank-transfer-guide-megaphone {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--wv-warning);
}

.widget-v4 .bank-transfer-guide-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget-v4 .bank-transfer-guide-list li {
  display: flex;
  gap: 10px;
  font-size: 13.2px;
  line-height: 1.6;
}

.widget-v4 .bank-transfer-guide-number {
  display: grid;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  background: var(--wv-brand);
  color: var(--wv-brand-ink);
  font-size: 12px;
  font-weight: 700;
}

.widget-v4 .bank-transfer-guide-list strong {
  color: var(--wv-ink);
  font-weight: 700;
}

.widget-v4 .bank-transfer-guide-list p {
  display: inline;
  margin: 0;
  color: var(--wv-text-2);
}

.widget-v4 .bank-transfer-guide-warnings {
  display: grid;
  gap: 8px;
  border-top: 1px dashed var(--wv-line-strong);
  padding-top: 12px;
}

.widget-v4 .bank-transfer-guide-warnings > div {
  display: flex;
  gap: 8px;
  color: var(--wv-danger);
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.55;
}

.widget-v4 .bank-transfer-guide-warnings > div > span {
  display: grid;
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  place-items: center;
  border-radius: 50%;
  background: var(--wv-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.widget-v4 .bank-transfer-guide-warnings p {
  margin: 0;
}

.widget-v4 .bank-transfer-guide-footer {
  margin: 0;
  color: var(--wv-muted);
  font-size: 12px;
  text-align: center;
}

.widget-v4 .bank-transfer-notice-actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.widget-v4 .stacked-buttons {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
}

.widget-v4 .stacked-buttons button {
  display: flex;
  width: 100%;
  min-height: 54px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  border: 0;
  border-radius: 0;
  background: var(--widget-panel, #ffffff);
  padding: 12px 40px 12px 14px;
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
}

.widget-v4 .stacked-buttons button + button {
  border-top: 1px solid var(--wv-line);
}

.widget-v4 .stacked-buttons button:hover:not(:disabled) {
  background-color: var(--wv-brand-50);
}

.widget-v4 .stacked-buttons button small {
  color: var(--wv-muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
}

.widget-v4 .request-summary {
  display: grid;
  gap: 0;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 4px 14px;
}

.widget-v4 .request-summary > span {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.widget-v4 .request-summary > span + span {
  border-top: 1px dashed var(--wv-line-strong);
}

.widget-v4 .request-summary > span > strong {
  color: var(--wv-muted);
  font-weight: 500;
}

/* 주문 요약(카드 머리 아래) */
.widget-v4 .order-summary {
  display: grid;
  gap: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 0 0 44px;
  margin-top: -6px;
}

.widget-v4 .order-summary strong {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.widget-v4 .order-summary > span {
  color: var(--wv-muted);
  font-size: 12px;
}

.widget-v4 .order-summary .order-summary-delivery-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

/* ───────────── 확인 창: 아래에서 올라오는 시트 ───────────── */
.widget-v4 .session-end-confirm {
  align-items: end;
  justify-items: stretch;
  padding: 0;
  background: rgba(17, 24, 39, 0.32);
  backdrop-filter: blur(2px);
  animation: widget-v4-fade-in 0.28s ease both;
}

.widget-v4 .session-end-confirm > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  gap: 0;
  border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--widget-panel, #ffffff);
  padding: 26px 20px 20px;
  box-shadow: 0 -20px 60px -20px rgba(17, 24, 39, 0.35);
  text-align: left;
  animation: widget-v4-sheet-in 0.42s var(--wv-ease) both;
}

.widget-v4 .session-end-confirm > div::before {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 4px;
  background: var(--wv-line-strong);
  content: '';
}

.widget-v4 .session-end-confirm > div > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 16px;
  background: var(--wv-brand-50);
  color: var(--wv-brand);
}

.widget-v4 .session-end-confirm:not(.address-change-confirm):not(.exchange-return-expired-confirm):not(.exchange-return-selection-confirm) > div > span {
  background: var(--wv-danger-bg);
  color: var(--wv-danger);
}

.widget-v4 .session-end-confirm section {
  display: grid;
  gap: 8px;
}

.widget-v4 .session-end-confirm strong {
  color: var(--widget-ink, var(--wv-ink));
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.widget-v4 .session-end-confirm p {
  margin: 0;
  color: var(--widget-muted, var(--wv-muted));
  font-size: 14px;
  line-height: 1.65;
}

.widget-v4 .session-end-confirm footer {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.widget-v4 .session-end-confirm footer button {
  display: inline-flex;
  min-height: 50px;
  flex: 1;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--wv-r-btn);
  background: var(--widget-panel, #ffffff);
  color: var(--widget-ink, var(--wv-ink));
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--wv-line-strong);
}

.widget-v4 .session-end-confirm footer button:last-child {
  background: var(--widget-action-bg, var(--wv-brand));
  color: var(--widget-action-fg, #ffffff);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--wv-brand) 80%, transparent);
}

.widget-v4 .address-change-confirm .address-confirm-summary,
.widget-v4 .option-change-confirm .option-confirm-summary {
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 4px 14px;
}

/* ───────────── 입력창 ───────────── */
.widget-v4 .composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "input input input"
    "attach . send";
  gap: 6px 8px;
  margin: 0 12px 12px;
  border: 1.5px solid var(--wv-line-strong);
  border-radius: 22px;
  background: var(--widget-panel, #ffffff);
  padding: 8px 8px 8px 12px;
  box-shadow: 0 6px 18px -12px rgba(17, 24, 39, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.widget-v4 .composer:focus-within {
  border-color: var(--wv-brand);
  box-shadow: 0 0 0 4px var(--wv-ring);
}

.widget-v4 .composer .composer-input {
  grid-area: input;
  height: auto;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 6px 4px;
  color: var(--wv-ink);
  font-size: 16px;
  box-shadow: none;
}

.widget-v4 .composer .composer-input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.widget-v4 .composer .composer-attach {
  grid-area: attach;
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 12px;
  background: var(--wv-surface);
  color: var(--wv-text-2);
  box-shadow: none;
}

.widget-v4 .composer .composer-send {
  grid-area: send;
  display: inline-flex;
  width: auto;
  height: 36px;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--widget-action-bg, var(--wv-brand));
  padding: 0 14px;
  color: var(--widget-action-fg, #ffffff);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: none;
}

.widget-v4 .composer button:disabled {
  opacity: 0.4;
}

.widget-v4 .composer button:hover:not(:disabled) {
  transform: none;
}

.widget-v4 .composer.locked {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "lock input";
  align-items: center;
  gap: 6px;
  border-color: transparent;
  border-radius: 16px;
  background: var(--wv-surface);
  padding: 10px 14px;
  box-shadow: none;
}

.widget-v4 .composer.locked .composer-attach,
.widget-v4 .composer.locked .composer-send {
  display: none;
}

.widget-v4 .composer .composer-lock {
  grid-area: lock;
  display: grid;
  place-items: center;
  color: var(--wv-muted);
}

.widget-v4 .composer.locked .composer-input,
.widget-v4 .composer.locked .composer-input:disabled {
  min-height: 24px;
  padding: 0;
  background: transparent;
  color: var(--wv-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: default;
}

.widget-v4 .composer.locked .composer-input::placeholder {
  color: var(--wv-muted);
}

/* ───────────── 아래로 이동 ───────────── */
.widget-v4 .widget-jump-latest {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 5;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--widget-panel, #ffffff);
  color: var(--wv-ink);
  box-shadow: 0 8px 20px -8px rgba(17, 24, 39, 0.35), 0 0 0 1px var(--wv-line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.85);
  transition: opacity 0.2s, transform 0.3s var(--wv-spring);
}

.widget-v4 .widget-jump-latest.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* ───────────── FAQ ───────────── */
.widget-v4 .widget-faq-panel {
  gap: 0;
  background: var(--wv-bg);
  padding: 8px 16px 16px;
  overflow-y: auto;
  animation: widget-v4-view-in 0.38s var(--wv-ease) both;
}

.widget-v4 .widget-faq-hero {
  padding: 6px 4px 16px;
}

.widget-v4 .widget-faq-hero h3 {
  margin: 0;
  color: var(--wv-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.widget-v4 .widget-faq-list {
  display: grid;
  gap: 8px;
}

.widget-v4 .widget-faq-list button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--wv-line);
  border-radius: 16px;
  background: var(--widget-panel, #ffffff);
  padding: 12px 14px;
  color: var(--wv-ink);
  text-align: left;
  box-shadow: none;
  animation: widget-v4-rise 0.5s var(--wv-ease) both;
  transition: border-color 0.2s, background-color 0.2s;
}

.widget-v4 .widget-faq-list button:hover {
  border-color: var(--wv-brand-200);
  background: var(--wv-brand-50);
}

.widget-v4 .widget-faq-list button > span {
  display: grid;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--wv-brand-50);
  color: var(--wv-brand);
}

.widget-v4 .widget-faq-list button strong {
  flex: 1;
  min-width: 0;
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.widget-v4 .widget-faq-primary {
  min-height: 48px;
  margin-top: 16px;
  border: 0;
  border-radius: var(--wv-r-btn);
  background: var(--wv-surface);
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}

.widget-v4 .widget-faq-primary:hover {
  background: var(--wv-surface-2);
}

.widget-v4 .widget-faq-back {
  justify-self: start;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 4px 0;
  color: var(--wv-brand);
  font-size: 12.5px;
  font-weight: 600;
}

.widget-v4 .widget-faq-detail > article {
  display: grid;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 8px 0 0;
  box-shadow: none;
}

.widget-v4 .widget-faq-detail-icon {
  display: none;
}

.widget-v4 .widget-faq-detail h2 {
  margin: 0;
  color: var(--wv-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.widget-v4 .widget-faq-answer {
  color: var(--wv-text-2);
  font-size: 14px;
  line-height: 1.75;
}

.widget-v4 .widget-faq-detail img {
  width: 100%;
  border-radius: 16px;
}

.widget-v4 .widget-faq-links {
  display: grid;
  gap: 8px;
}

.widget-v4 .widget-faq-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 0 14px;
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.widget-v4 .widget-empty-state {
  border-radius: 16px;
  background: var(--wv-surface);
  padding: 28px 16px;
  color: var(--wv-muted);
  font-size: 13.5px;
  text-align: center;
}

/* ───────────── 종료 화면 ───────────── */
.widget-v4 .closed-widget-state {
  background: var(--wv-bg);
  animation: widget-v4-view-in 0.38s var(--wv-ease) both;
}

.widget-v4 .closed-widget-state > div {
  display: flex;
  max-width: 340px;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0 auto;
  padding: 24px 20px;
  text-align: center;
}

.widget-v4 .closed-widget-state .closed-widget-illustration {
  display: block;
  width: 168px;
  height: 126px;
  margin-bottom: 10px;
  border-radius: 0;
  background: transparent;
  animation: widget-v4-pop 0.7s var(--wv-spring) both;
}

.widget-v4 .closed-widget-state .closed-widget-illustration svg {
  display: block;
  width: 168px;
  height: 126px;
}

.widget-v4 .closed-illu-halo {
  fill: var(--wv-brand-50);
}

.widget-v4 .closed-illu-dot {
  fill: var(--wv-brand-100);
}

.widget-v4 .closed-illu-bubble {
  fill: #ffffff;
  stroke: var(--wv-brand-200);
}

.widget-v4 .closed-illu-check {
  fill: var(--wv-brand);
}

.widget-v4 .closed-widget-state h2 {
  margin: 0;
  color: var(--widget-ink, var(--wv-ink));
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.widget-v4 .closed-widget-state p {
  margin: 8px 0 0;
  color: var(--wv-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.widget-v4 .closed-widget-state .closed-widget-csat {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: 22px;
  border-radius: 20px;
  background: var(--wv-surface);
  padding: 18px 16px;
}

.widget-v4 .closed-widget-state .closed-widget-csat > p {
  margin: 0;
  color: var(--wv-ink);
  font-size: 15px;
  font-weight: 700;
}

.widget-v4 .closed-widget-state .closed-widget-csat-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.widget-v4 .closed-widget-state .closed-widget-csat-button {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: var(--widget-panel, #ffffff);
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.widget-v4 .closed-widget-state .closed-widget-csat-button.good:hover:not(:disabled),
.widget-v4 .closed-widget-state .closed-widget-csat-button.bad:hover:not(:disabled) {
  border-color: var(--wv-brand);
  background: var(--wv-brand-50);
}

.widget-v4 .closed-widget-state .closed-widget-csat-reason {
  display: grid;
  gap: 8px;
  text-align: left;
}

.widget-v4 .closed-widget-state .closed-widget-csat-reason label {
  color: var(--wv-text-2);
  font-size: 13px;
  font-weight: 700;
}

.widget-v4 .closed-widget-state .closed-widget-csat-reason-actions {
  display: flex;
  flex-direction: row-reverse;
  gap: 8px;
}

.widget-v4 .closed-widget-state .closed-widget-csat-reason-actions button {
  flex: 1;
  min-height: 46px;
  border-radius: var(--wv-r-btn);
  font-size: 14px;
  font-weight: 700;
}

.widget-v4 .closed-widget-state .closed-widget-csat-reason-actions button:first-child {
  border: 0;
  background: var(--widget-action-bg, var(--wv-brand));
  color: var(--widget-action-fg, #ffffff);
}

.widget-v4 .closed-widget-state .closed-widget-csat-reason-actions button:last-child {
  border: 0;
  background: var(--widget-panel, #ffffff);
  color: var(--wv-ink);
  box-shadow: inset 0 0 0 1px var(--wv-line-strong);
}

.widget-v4 .closed-widget-state .closed-widget-csat-thanks {
  margin-top: 22px;
  border-radius: 16px;
  background: var(--wv-success-bg);
  padding: 14px;
  color: var(--wv-success);
  font-size: 14px;
  font-weight: 700;
}

.widget-v4 .closed-widget-state .closed-widget-new-chat {
  width: 100%;
  min-height: 50px;
  margin-top: 26px;
  border: 0;
  border-radius: var(--wv-r-btn);
  background: var(--widget-action-bg, var(--wv-brand));
  color: var(--widget-action-fg, #ffffff);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--wv-brand) 80%, transparent);
}

/* ───────────── 승인 시안 다듬기 2차·6차 값 (build6 01c-polish·01d-fixes) ───────────── */
.widget-v4 .runtime-card {
  border-radius: 22px;
  border-top-right-radius: 22px;
  padding: 18px 16px 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 14px 34px -24px rgba(17, 24, 39, 0.3);
}

.widget-v4 .runtime-card-head {
  align-items: flex-start;
  gap: 11px;
}

.widget-v4 .runtime-card-head span {
  width: 32px;
  height: 32px;
  margin-top: 1px;
  border-radius: 10px;
}

.widget-v4 .runtime-card-head span svg {
  width: 17px;
  height: 17px;
}

.widget-v4 .runtime-card-head strong {
  padding-top: 5px;
  line-height: 1.4;
}

.widget-v4 .runtime-card-head .runtime-card-head-meta {
  margin-left: 43px;
}

.widget-v4 .runtime-card > .runtime-card-head + * {
  margin-top: 16px;
}

.widget-v4 .runtime-card > .runtime-card-head + .order-summary {
  margin-top: -6px;
  padding-left: 43px;
}

.widget-v4 .result-card > .runtime-card-head span {
  width: 56px;
  height: 56px;
  margin-top: 0;
  border-radius: 50%;
}

.widget-v4 .result-card > .runtime-card-head span svg {
  width: 28px;
  height: 28px;
}

.widget-v4 .result-card > .runtime-card-head strong {
  padding-top: 0;
}

.widget-v4 .primary-button,
.widget-v4 .ghost-button,
.widget-v4 .cancel-action-row > .ghost-button,
.widget-v4 .cancel-action-row > .primary-button,
.widget-v4 .session-end-confirm footer button,
.widget-v4 .result-card .card-actions .primary-button,
.widget-v4 .closed-widget-state .closed-widget-new-chat {
  min-height: 48px;
}

.widget-v4 .primary-button:disabled,
.widget-v4 .cancel-action-row > .primary-button:disabled {
  background: var(--wv-surface-2);
  color: #a3a8b2;
  opacity: 1;
  box-shadow: none;
}

.widget-v4 .card-actions .primary-button:disabled,
.widget-v4 .card-actions .ghost-button:disabled {
  background: transparent;
  color: var(--wv-text-2);
  opacity: 0.4;
}

.widget-v4 .message-row.has-lookup-summary .runtime-card > * + * {
  margin-top: 8px;
}

.widget-v4 .choice-label,
.widget-v4 .exchange-return-choice-field > span {
  font-size: 12.5px;
}

/* 묶음 목록: 전체 선택 줄을 목록 머리로 붙인다 */
.widget-v4 .cancel-item-panel > .cancel-select-all-row {
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  padding: 11px 14px;
}

.widget-v4 .cancel-item-panel > .cancel-select-all-row + .cancel-item-list {
  margin-top: -8px;
  border-radius: 0 0 16px 16px;
}

.widget-v4 .delivery-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 13px 14px;
  color: var(--wv-text-2);
  font-size: 13px;
  line-height: 1.5;
}

.widget-v4 .cancel-item-list > .delivery-empty,
.widget-v4 .exchange-return-product-list > .delivery-empty {
  border-radius: 0;
  background: transparent;
}

.widget-v4 .cancel-item-list > * + .delivery-empty,
.widget-v4 .exchange-return-product-list > * + .delivery-empty {
  border-top: 1px solid var(--wv-line);
}

/* 주문 행: 배송 상태 타일 */
.widget-v4 .order-select-tile {
  width: 40px;
  height: 40px;
  margin-top: 0;
  border-radius: 12px;
}

.widget-v4 .order-select-tile svg {
  width: 19px;
  height: 19px;
}

.widget-v4 .order-select-row.order-select-row-disabled > .order-select-tile,
.widget-v4 .order-select-row.order-select-row-disabled .order-select-compact-summary {
  opacity: 0.48;
}

/* 배송 현황: 묶음 사이를 점선으로만 나눈다 */
.widget-v4 .delivery-status-summary {
  border-radius: 16px;
  padding: 14px;
}

.widget-v4 .delivery-group-card {
  border: 0;
  border-radius: 0;
  padding: 0;
}

.widget-v4 .delivery-group-card + .delivery-group-card {
  margin-top: 8px;
  border-top: 1px dashed var(--wv-line-strong);
  padding-top: 16px;
}

.widget-v4 .delivery-group-head {
  padding: 0 2px;
}

.widget-v4 .delivery-section.delayed h4 {
  color: #a4312a;
}

/* 아바타 */
.widget-v4 .widget-avatar.widget-avatar-large {
  width: 60px;
  height: 60px;
  box-shadow: inset 0 0 0 1px var(--wv-line), 0 12px 26px -16px rgba(17, 24, 39, 0.35);
}

.widget-v4 .message-sender-avatar.is-agent {
  background: var(--wv-surface-2);
  color: var(--wv-ink);
  box-shadow: inset 0 0 0 1px var(--wv-line);
}

/* 고객 입력 요약(오른쪽): 회색 바탕 위 작은 제목은 진한 보조색 */
.widget-v4 .message-row.has-lookup-summary .runtime-card-head span,
.widget-v4 .message-row.has-lookup-summary .runtime-card-head strong {
  width: auto;
  height: auto;
  margin-top: 0;
  padding-top: 0;
  color: var(--wv-text-2);
}

/* 입력창: 진행 중엔 얇은 잠금 줄, 상담원 연결 뒤 펼쳐진 상자 */
.widget-v4 .composer {
  position: relative;
  margin: 0 14px 14px;
  border: 1.5px solid var(--wv-line);
  border-radius: 20px;
  padding: 10px 10px 8px 14px;
  box-shadow: 0 2px 8px -4px rgba(17, 24, 39, 0.08);
}

.widget-v4 .composer::before {
  position: absolute;
  right: -16px;
  bottom: calc(100% + 1.5px);
  left: -16px;
  height: 18px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--wv-bg));
  content: '';
  pointer-events: none;
}

.widget-v4 .composer .composer-attach {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 1px solid var(--wv-line);
  border-radius: 10px;
  background: var(--widget-panel, #ffffff);
  color: var(--wv-brand);
}

.widget-v4 .composer .composer-attach:hover:not(:disabled) {
  background: var(--wv-brand-50);
}

.widget-v4 .composer .composer-send {
  height: 36px;
  min-height: 36px;
  border-radius: 11px;
  padding: 0 13px 0 11px;
}

.widget-v4 .composer .composer-send:disabled {
  background: var(--wv-surface-2);
  color: #a6abb5;
  opacity: 1;
}

.widget-v4 .composer.locked {
  display: flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 15px;
  background: var(--wv-surface);
  padding: 0 14px;
  box-shadow: none;
}

.widget-v4 .composer.locked .composer-lock svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.widget-v4 .composer.locked .composer-input,
.widget-v4 .composer.locked .composer-input:disabled {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  field-sizing: content;
  font-size: 13px;
}

.widget-v4 .widget-jump-latest {
  width: 38px;
  height: 38px;
}

/* 선택 칩 */
.widget-v4 .widget-choice-chip {
  min-height: 36px;
  border-color: var(--wv-line);
  padding: 0 13px;
  color: var(--wv-text-2);
  font-size: 13px;
}

.widget-v4 .widget-choice-chip:not(.selected):hover:not(:disabled) {
  background: var(--widget-panel, #ffffff);
}

.widget-v4 .widget-choice-chip:disabled {
  opacity: 0.45;
}

.widget-v4 .exchange-return-quantity .widget-choice-chip {
  min-height: 32px;
}

.widget-v4 .widget-choice-chips.field-invalid {
  margin: -6px;
  border-radius: 13px;
  padding: 6px;
  box-shadow: inset 0 0 0 1.5px var(--wv-danger);
  animation: widget-v4-shake 0.4s;
}

.widget-v4 .exchange-return-quantity select,
.widget-v4 .exchange-return-item-row select {
  flex: none;
  width: auto;
  min-width: 96px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--wv-line-strong);
  border-radius: 11px;
  background-color: var(--widget-panel, #ffffff);
  padding: 0 34px 0 12px;
}

/* 옵션 변경 단위 번호 */
.widget-v4 .exchange-unit-label em {
  border-radius: 7px;
  background: var(--wv-brand-50);
  color: var(--wv-brand);
  font-size: 12px;
  font-weight: 800;
}

/* 교환/반품 사유 */
.widget-v4 .exchange-return-reason-card {
  border-radius: 18px;
}

.widget-v4 .exchange-return-reason-product {
  border-bottom: 1px solid var(--wv-line);
}

.widget-v4 .exchange-return-defect-recovery {
  background: var(--wv-warning-bg);
  padding: 12px;
}

.widget-v4 .exchange-return-defect-recovery p {
  color: #6f3d07;
}

.widget-v4 .exchange-return-defect-options {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--wv-line);
  border-radius: 14px;
  background: var(--widget-panel, #ffffff);
}

.widget-v4 .exchange-return-defect-options label {
  min-height: 46px;
  border: 0;
  border-radius: 0;
  padding: 11px 12px;
  box-shadow: none;
}

.widget-v4 .exchange-return-defect-options label + label {
  border-top: 1px solid var(--wv-line);
}

.widget-v4 .exchange-return-defect-options label.selected {
  border-color: var(--wv-line);
  background: var(--wv-brand-50);
  box-shadow: none;
}

.widget-v4 .exchange-return-defect-options input[type="radio"] {
  box-sizing: border-box;
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  border: 1.5px solid var(--wv-line-strong);
  padding: 0;
}

.widget-v4 .exchange-return-defect-options input[type="radio"]:checked {
  border: 1.5px solid var(--wv-brand);
  background: radial-gradient(circle, #ffffff 0 3.5px, var(--wv-brand) 4px);
}

.widget-v4 .cancel-item-row input[type="checkbox"],
.widget-v4 .cancel-select-all-row input[type="checkbox"],
.widget-v4 .exchange-return-item-row input[type="checkbox"] {
  box-sizing: border-box;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
}

/* 배송지 변경: 기존 주소 */
.widget-v4 .current-address-block span {
  color: var(--wv-text-2);
}

/* 상담원 연결 대기: 종료 버튼은 왼쪽 */
.widget-v4 .handoff-card .handoff-end-button {
  justify-self: start;
  margin-left: -10px;
}

/* 확인 창(아래에서 올라오는 시트) */
.widget-v4 .session-end-confirm {
  background: rgba(17, 20, 28, 0.42);
  backdrop-filter: none;
}

.widget-v4 .session-end-confirm > div {
  padding: 30px 20px 20px;
}

.widget-v4 .session-end-confirm > div::before {
  top: 10px;
  width: 38px;
  margin-left: -19px;
}

.widget-v4 .session-end-confirm > div > span {
  border-radius: 15px;
}

/* 종료 화면 */
.widget-v4 .closed-widget-state .closed-widget-illustration,
.widget-v4 .closed-widget-state .closed-widget-illustration svg {
  width: 150px;
  height: 112px;
}

.widget-v4 .closed-widget-state h2 {
  font-size: 20px;
}

/* 무통장입금 안내(승인 시안: 주황 안내 상자·번호 목록·빨간 경고 줄). bank-transfer.css 보다 먼저 적용되도록 범위를 하나 더 붙인다. */
.workflow-reference-scope .widget-v4 .bank-transfer-notice-stage {
  width: 100%;
  max-width: 100%;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide {
  border: 1px solid var(--wv-line);
  border-radius: 22px;
  background: var(--widget-panel, #ffffff);
  padding: 18px 16px 16px;
  color: var(--wv-ink);
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 14px 34px -24px rgba(17, 24, 39, 0.3);
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-intro {
  display: grid;
  gap: 4px;
  border-radius: 16px;
  background: var(--wv-warning-bg);
  padding: 14px;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-intro > strong {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--wv-ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-megaphone {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--wv-warning);
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-intro p {
  margin: 0 0 0 32px;
  color: #6f3d07;
  font-size: 14px;
  line-height: 1.55;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0 2px;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-list li {
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-list li + li {
  border-top: 0;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-number {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: var(--wv-brand);
  color: var(--wv-brand-ink);
  font-size: 12px;
  font-weight: 800;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-list strong {
  color: var(--wv-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-list p {
  margin: 2px 0 0;
  color: var(--wv-text-2);
  font-size: 14px;
  line-height: 1.6;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-warnings {
  gap: 8px;
  margin: 16px 0 0;
  border-top: 1px dashed var(--wv-line-strong);
  border-radius: 0;
  background: none;
  padding: 14px 2px 0;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-warnings > div {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-warnings > div > span {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--wv-danger);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-warnings p {
  color: var(--wv-danger);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide .bank-transfer-guide-footer {
  padding: 14px 0 0;
  color: var(--wv-muted);
  font-size: 13px;
}

.workflow-reference-scope .widget-v4 .bank-transfer-guide-plain {
  padding: 14px 2px 0;
}

.workflow-reference-scope .widget-v4 .bank-transfer-files li {
  border-radius: 12px;
  background: var(--wv-surface);
  padding: 6px 6px 6px 8px;
  color: var(--wv-text-2);
}

.workflow-reference-scope .widget-v4 .bank-transfer-files img {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--widget-panel, #ffffff);
}

.workflow-reference-scope .widget-v4 .bank-transfer-files button {
  display: grid;
  width: 36px;
  min-height: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border-radius: 10px;
  background: var(--widget-panel, #ffffff);
  padding: 0;
  color: var(--wv-muted);
}

.widget-v4 .result-card > .runtime-card-head {
  align-items: center;
}

/* 편집기의 확인 창 미리보기도 고객 화면의 아래 시트와 같은 모양 */
.card-template-preview-surface.widget-v4 .card-confirm-preview {
  position: relative;
  display: grid;
  width: 100%;
  gap: 0;
  border: 1px solid var(--wv-line);
  border-radius: 26px;
  background: var(--widget-panel, #ffffff);
  padding: 30px 20px 20px;
  color: var(--wv-ink);
  box-shadow: 0 -12px 40px -24px rgba(17, 24, 39, 0.35);
}

.card-template-preview-surface.widget-v4 .card-confirm-preview::before {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 38px;
  height: 4px;
  margin-left: -19px;
  border-radius: 4px;
  background: var(--wv-line-strong);
  content: '';
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  border: 0;
  border-radius: 15px;
  background: var(--wv-brand-50);
  color: var(--wv-brand);
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-head > span svg {
  width: 22px;
  height: 22px;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-head strong {
  color: var(--wv-ink);
  font-size: 18.5px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-head p {
  margin: 8px 0 0;
  color: var(--wv-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-summary {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--wv-surface);
  padding: 12px 14px;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-summary strong {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 700;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-summary span {
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-actions button {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--widget-panel, #ffffff);
  color: var(--wv-ink);
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--wv-line-strong);
}

.card-template-preview-surface.widget-v4 .card-confirm-preview-actions button.primary {
  background: var(--widget-action-bg, var(--wv-brand));
  color: var(--widget-action-fg, #ffffff);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--wv-brand) 80%, transparent);
}

/* 취소 줄 안의 묶음 상품은 테두리 없이 점선으로만 나눈다 */
.widget-v4 .cancel-management-content .delivery-item-list {
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.widget-v4 .cancel-management-content .delivery-item {
  background: transparent;
  padding: 0;
}

.widget-v4 .cancel-management-content .delivery-item + .delivery-item {
  margin-top: 8px;
  border-top: 1px dashed var(--wv-line-strong);
  padding-top: 8px;
}

/* 교환/반품 상품 글자도 다른 카드와 같은 크기 */
.widget-v4 .exchange-return-item-body .product-option-block .product-title-line,
.widget-v4 .exchange-return-reason-product .product-option-block .product-title-line,
.widget-v4 .exchange-return-item-body .product-title-line,
.widget-v4 .exchange-return-reason-product .product-title-line {
  color: var(--wv-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.widget-v4 .exchange-return-selected-summary .exchange-return-selected-product .product-title-line {
  color: var(--wv-ink);
  font-size: 13.5px;
  font-weight: 600;
}

.widget-v4 .exchange-return-item-body .product-option-inline,
.widget-v4 .exchange-return-reason-product .product-option-inline,
.widget-v4 .exchange-return-selected-summary .product-option-inline {
  color: var(--wv-muted);
  font-size: 12.5px;
  font-weight: 500;
}

.widget-v4 .exchange-return-item-body small {
  color: var(--wv-muted);
  font-size: 12px;
  font-weight: 500;
}

.widget-v4 .exchange-return-selected-summary > span {
  color: var(--wv-text-2);
  font-size: 13px;
}

/* 주문을 찾는 동안 카드 자리에 회색 자리표시(글자 없음) */
.widget-v4 .widget-card-skeleton {
  display: grid;
  flex: none;
  gap: 10px;
  margin-top: 14px;
  border: 1px solid var(--wv-line);
  border-radius: 22px;
  background: var(--widget-panel, #ffffff);
  padding: 18px 16px 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 14px 34px -24px rgba(17, 24, 39, 0.3);
}

.widget-v4 .widget-card-skeleton i {
  position: relative;
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--wv-surface);
}

.widget-v4 .widget-card-skeleton i:first-child {
  width: 46%;
  height: 16px;
}

.widget-v4 .widget-card-skeleton i:nth-child(2) {
  width: 72%;
}

.widget-v4 .widget-card-skeleton i.is-block {
  height: 64px;
  border-radius: 14px;
}

.widget-v4 .widget-card-skeleton i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.05) 50%, rgba(17, 24, 39, 0));
  content: '';
  transform: translateX(-100%);
  animation: widget-v4-shimmer 1.3s linear infinite;
}

/* 첨부를 올리는 동안: 이름·용량·흐르는 막대 */
.widget-v4 .message-attachment.is-uploading {
  min-width: 200px;
}

.widget-v4 .message-attachment.is-uploading .message-attachment-name em {
  margin-left: auto;
  color: var(--wv-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.widget-v4 .message-attachment-progress {
  display: block;
  height: 3px;
  overflow: hidden;
  background: var(--wv-surface-2);
}

.widget-v4 .message-attachment-progress i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--wv-brand);
  animation: widget-v4-upload 1.1s ease-in-out infinite;
}

/* 첨부 사진 크게 보기 */
.widget-v4 .widget-image-preview {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(10, 12, 16, 0.9);
  padding: 24px;
  animation: widget-v4-fade-in 0.25s ease both;
}

.widget-v4 .widget-image-preview img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.widget-v4 .widget-image-preview button {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
}

/* 여러 줄 입력창: 내용만큼 늘어나고 120px 부터 안에서 스크롤 */
.widget-v4 .composer textarea.composer-input {
  display: block;
  width: 100%;
  max-height: 120px;
  overflow-y: auto;
  resize: none;
  field-sizing: content;
  line-height: 1.55;
}

/* 운영 누름 영역 기준(40px) */
.widget-v4 .widget-choice-chip,
.widget-v4 .exchange-return-quantity .widget-choice-chip {
  min-height: 40px;
}

/* 편집기 웹 미리보기의 패널·런처도 고객 사이트와 같은 모양 */
.device-web-window .widget-phone.widget-v4 {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 30px 80px -20px rgba(17, 24, 39, 0.28), 0 12px 28px -12px rgba(17, 24, 39, 0.16), 0 0 0 1px rgba(17, 24, 39, 0.06);
}

.web-widget-launcher {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--widget-floating-button-bg, #34466f) 62%, transparent), 0 4px 10px rgba(17, 24, 39, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, opacity 0.16s ease;
}

.web-widget-launcher:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px -10px color-mix(in srgb, var(--widget-floating-button-bg, #34466f) 70%, transparent), 0 4px 10px rgba(17, 24, 39, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.web-widget-launcher:active:not(:disabled) {
  transform: scale(0.94);
}

.web-widget-launcher svg {
  width: 28px;
  height: 28px;
}

.web-widget-launcher.open svg {
  width: 24px;
  height: 24px;
}

/* ───────────── 움직임 ───────────── */
@keyframes widget-v4-pulse {
  0% { opacity: 0.45; transform: scale(0.8); }
  80%, 100% { opacity: 0; transform: scale(1.7); }
}

@keyframes widget-v4-pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes widget-v4-pop-center {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%); }
}

@keyframes widget-v4-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes widget-v4-msg-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); transform-origin: left bottom; }
  to { opacity: 1; transform: none; }
}

@keyframes widget-v4-msg-in-right {
  from { opacity: 0; transform: translateY(8px) scale(0.98); transform-origin: right bottom; }
  to { opacity: 1; transform: none; }
}

@keyframes widget-v4-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

@keyframes widget-v4-pop {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: none; }
}

@keyframes widget-v4-typing {
  0%, 60%, 100% { opacity: 0.35; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

@keyframes widget-v4-ripple {
  0% { opacity: 0.45; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.38); }
}

@keyframes widget-v4-sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@keyframes widget-v4-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@keyframes widget-v4-shimmer {
  to { transform: translateX(100%); }
}

@keyframes widget-v4-upload {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

@keyframes widget-v4-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes widget-v4-view-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .widget-v4 *,
  .widget-v4 *::before,
  .widget-v4 *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ───────────── 안내 메뉴(크리스마스 버튼, 2026-11-06) ─────────────
   위젯: 승인 시안(luxiaitalk-xmas-guide-menu/template.html)의 xm- 규칙을 guide- 이름으로 옮김.
   색은 위젯 테마 변수(--wv-*)만 써서 테마를 그대로 따른다. */
.widget-v4 .guide-menu-stage {
  display: grid;
  width: 100%;
  min-width: 0;
}

.widget-v4 .guide-menu-stage .card-actions-shell {
  margin-top: 8px;
}

/* 누를 카드도 버튼도 없을 때 붙는 '처음으로'(2026-11-11, 끝난 접수 뒤): 안내 메뉴 첫 화면의 '처음으로' 줄과 같은 자리·간격. */
.widget-v4 .widget-next-step-actions {
  display: grid;
  width: 100%;
  min-width: 0;
}

.widget-v4 .widget-next-step-actions .card-actions-shell {
  margin-top: 8px;
}

/* 카드·하위 메뉴 아래 '← 이전 · ↺ 크리스마스 · ⌂ 처음으로'(상담팀 2026-11-10 "순서대로 정렬"): 360px 폰(갤럭시 S21)에서도
   한 줄. 기본 여백(11px·7px)이면 세 버튼이 274px라 360px 폭의 자리(273.7px)를 넘어 '처음으로'가 다음 줄로 갔다.
   여기만 좁혀 240px로 둔다. 다른 카드의 '이전 · 처음으로'는 그대로다. */
.widget-v4 .guide-card .card-actions .ghost-button,
.widget-v4 .guide-card .card-actions .primary-button,
.widget-v4 .guide-menu-stage .card-actions .ghost-button,
.widget-v4 .guide-menu-stage .card-actions .primary-button {
  gap: 5px;
  padding: 0 7px;
}

/* 아이콘 '없음'인 안내 메뉴 버튼: 하위 메뉴와 첫 화면 '문의 선택' 버튼 모두 글자만 가운데(첫 화면은 2026-11-09). */
.widget-v4 .quick-buttons-strip button.guide-button-text {
  justify-content: center;
  text-align: center;
}

/* 버튼 배치 '한 줄에 4개까지'(인플루언서 PICK!) */
.widget-v4 .quick-buttons-strip.guide-buttons.is-row {
  grid-template-columns: repeat(var(--guide-row-count, 4), minmax(0, 1fr));
  gap: 6px;
}

.widget-v4 .quick-buttons-strip.guide-buttons.is-row button {
  min-height: 46px;
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 13.5px;
}

.widget-v4 .runtime-card > .guide-card-subtitle {
  margin: 3px 0 0 44px;
  color: var(--wv-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  word-break: keep-all;
}

.widget-v4 .guide-card-text {
  display: flex;
  flex-direction: column;
  color: var(--wv-ink);
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.widget-v4 .guide-card-text .rich-text-line.guide-note {
  margin-top: 6px;
  color: var(--wv-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.widget-v4 .guide-card-text .rich-text-line.guide-note + .rich-text-line.guide-note {
  margin-top: 2px;
}

.widget-v4 .guide-card-image {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--wv-line);
  border-radius: 12px;
  background: #ffffff;
  padding: 0;
  cursor: zoom-in;
}

.widget-v4 .guide-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.widget-v4 .guide-card-image .guide-zoom-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 24, 29, 0.66);
  color: #ffffff;
}

.widget-v4 .guide-card-image:hover .guide-zoom-badge {
  background: rgba(22, 24, 29, 0.82);
}

.widget-v4 .guide-card-list {
  display: grid;
  gap: 7px;
  margin-bottom: 0;
  border-top: 1px solid var(--wv-line);
  border-bottom: 1px solid var(--wv-line);
  padding: 13px 0;
  color: var(--wv-ink);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  list-style: none;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.widget-v4 .guide-card-list li {
  margin: 0;
  padding: 0;
}

.widget-v4 a.primary-button.guide-card-link {
  text-decoration: none;
}

/* 지나간 카드: 버튼만 빠지고 대화에 남음(시안과 같음) */
.widget-v4 .message-row > .runtime-card.guide-card {
  margin-top: 2px;
}

/* 크게 보기: 바깥 틀(닫기·안내)은 그대로 두고 안쪽만 스크롤 → 확대해도 닫기 버튼이 그림 위에 남음 */
.widget-v4 .widget-image-preview.guide-image-preview {
  padding: 0;
}

.widget-v4 .guide-preview-scroll {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}

.widget-v4 .guide-preview-scroll img {
  background: #ffffff;
  cursor: zoom-in;
}

.widget-v4 .guide-image-preview.is-zoomed .guide-preview-scroll {
  place-items: start;
}

.widget-v4 .guide-image-preview.is-zoomed .guide-preview-scroll img {
  width: 1180px;
  max-width: none;
  max-height: none;
}

/* 확대한 그림은 끌어서 옮긴다(2026-11-10): 마우스는 잡는 손 모양, 손가락은 원래 스크롤(관성 그대로).
   끄는 동안 글자·그림이 선택되지 않게 한다. 끌지 않고 누르면 지금처럼 원래 크기로 돌아온다. */
.widget-v4 .guide-image-preview {
  -webkit-user-select: none;
  user-select: none;
}

.widget-v4 .guide-image-preview.is-zoomed .guide-preview-scroll,
.widget-v4 .guide-image-preview.is-zoomed .guide-preview-scroll img {
  cursor: grab;
}

.widget-v4 .guide-image-preview.is-dragging .guide-preview-scroll,
.widget-v4 .guide-image-preview.is-dragging .guide-preview-scroll img {
  cursor: grabbing;
}

.widget-v4 .widget-image-preview.guide-image-preview button {
  z-index: 2;
}

.widget-v4 .widget-image-preview.guide-image-preview.is-zoomed button {
  background: rgba(22, 24, 29, 0.78);
}

.widget-v4 .guide-image-preview .guide-preview-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 2;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.78);
  padding: 6px 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
}

/* 편집기: 안내 메뉴 내용 */
.guide-editor-body {
  display: grid;
  gap: 12px;
}

.guide-editor-block {
  display: grid;
  min-width: 0;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}

.guide-editor-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}

.guide-editor-block-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.guide-editor-block-head > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.guide-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.guide-editor .field-control > span small {
  margin-left: 4px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 700;
}

.guide-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.guide-icon-picker button {
  display: inline-grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0 7px;
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.guide-icon-picker button.active {
  border-color: var(--brand);
  background: #eef4f2;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px var(--brand);
}

/* 아이콘 색(2026-11-10): 색 네모로 고른다. 아이콘이 '없음'이면 칠할 칸이 없어 고를 수 없다. */
.guide-icon-color-dot {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 5px;
}

.guide-icon-picker button:disabled {
  cursor: default;
  opacity: 0.45;
}

.guide-editor-crumbs {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  color: var(--muted-2);
}

.guide-editor-crumbs button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 3px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.guide-editor-crumbs button.active {
  background: #eef4f2;
  color: var(--brand-dark);
}

.guide-editor-items {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-editor-items li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 3px 4px 3px 0;
}

.guide-editor-items li.is-selected {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.guide-editor-item-open {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
}

.guide-editor-item-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: #eef4f2;
  color: var(--brand-dark);
}

.guide-editor-item-icon:empty {
  background: transparent;
}

.guide-editor-item-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-editor-item-actions {
  display: flex;
  flex: none;
  gap: 3px;
}

.guide-editor .ghost-button.icon-only,
.guide-editor .small-danger.icon-only {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
}

.guide-editor .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.guide-status-chip {
  flex: none;
  border-radius: 999px;
  background: #f1f4f6;
  padding: 2px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.guide-status-chip.ok {
  background: #e8f5ec;
  color: #1f6b3a;
}

.guide-status-chip.warn {
  background: #fdf2e3;
  color: #9a5b10;
}

.guide-editor-add,
.guide-image-actions,
.guide-utm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guide-editor .inline-warning {
  border: 1px solid #f5dcb5;
  background: #fff8ec;
  color: #8a5310;
}

.guide-route-missing {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.guide-field-error {
  color: #b42318;
}

.guide-image-field {
  display: grid;
  gap: 6px;
}

.guide-image-thumb {
  max-width: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.guide-image-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.guide-link-field {
  display: grid;
  gap: 6px;
}

.guide-utm-link {
  display: grid;
  gap: 6px;
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 10px;
}

.guide-utm-link > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.guide-utm-link code {
  display: block;
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.guide-editor-preview {
  justify-items: stretch;
}

.guide-editor-preview-menu {
  display: grid;
  width: 100%;
  gap: 6px;
}

.guide-editor-preview .message-row {
  margin-top: 0;
}

.guide-link-rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-link-rows li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}

.guide-link-rows li:last-child {
  border-bottom: 0;
}

.guide-link-row-open {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.guide-link-row-open strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-link-row-open small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-link-row-spacer {
  width: 30px;
  flex: none;
}

/* 워크플로우 캔버스 편집기(2026-11-07): 본체는 shadow root 안(canvas-editor.css)이고,
   여기서는 틀과 slot으로 들어가는 실제 위젯만 꾸민다. */
.workflow-reference-scope.workflow-canvas-shell {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.workflow-canvas-root {
  display: block;
  height: 100%;
  min-height: 0;
}

.wf-canvas-slot-widget {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* slot으로 들어간 부품은 shadow 안(편집기) 글자를 물려받으므로 위젯 기본 글자를 다시 정한다 */
.workflow-canvas-root > .wf-canvas-slot {
  color: #18201f;
  font-family:
    "Pretendard Variable",
    Pretendard,
    "Noto Sans KR",
    "Segoe UI",
    system-ui,
    sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
}

/* 미리보기 카드·안내 메뉴: 카드 탭 미리보기와 같은 부품, 틀(테두리·바탕)만 뺀다 */
.card-template-preview-surface.wf-canvas-part {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

.card-template-preview-surface.wf-canvas-part .runtime-card {
  width: 100%;
}

.wf-canvas-part .wfe-focus {
  border-radius: 6px;
  box-shadow: 0 0 0 2px #3b5bdb, 0 0 0 5px rgba(59, 91, 219, 0.16);
}

.wf-canvas-slot-widget > .widget-panel {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 8px;
  overflow: auto;
}

/* 기기 틀 칸이 남은 높이를 다 쓰게(그래야 편집기 호스트가 칸 높이에 맞춰 틀을 줄일 수 있다) */
.wf-canvas-slot-widget > .widget-panel > .device-preview-lab {
  flex: 1 1 auto;
}

.wf-canvas-slot-widget > .widget-panel {
  display: flex;
  flex-direction: column;
}

.wf-canvas-slot-widget .device-preview-presets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wf-canvas-slot-widget .device-preview-presets button {
  min-width: 0;
}

.wf-canvas-slot-widget .device-preview-presets button > * {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-height: 900px) {
  /* 낮은 화면: 기기 버튼은 이름만(크기 글은 고른 기기 이름 옆 설명에 있음) */
  .wf-canvas-slot-widget .device-preview-presets button > span {
    display: none;
  }
}
