:root {
  --wc-primary: #3b5ccc;
  --wc-primary-hover: #304bad;
  --wc-primary-pressed: #293f98;
  --wc-primary-soft: #eef2ff;
  --wc-accent: #15aabf;
  --wc-canvas: #f5f7fc;
  --wc-surface: #ffffff;
  --wc-surface-muted: #f8faff;
  --wc-text: #182230;
  --wc-muted: #667085;
  --wc-border: #e5eaf2;
  --wc-success: #16a36a;
  --wc-warning: #d97706;
  --wc-danger: #dc4c64;
  --wc-shadow: 0 12px 36px rgba(29, 45, 82, 0.08);
  --wc-shadow-lg: 0 24px 70px rgba(25, 39, 78, 0.14);
}

html[data-wc-theme="fresh"] {
  --wc-primary: #3478f6;
  --wc-primary-hover: #2567dd;
  --wc-primary-pressed: #1f57bc;
  --wc-primary-soft: #eaf3ff;
  --wc-accent: #14b8a6;
  --wc-canvas: #f7f9fd;
  --wc-surface: #ffffff;
  --wc-surface-muted: #f8fbff;
  --wc-text: #101828;
  --wc-muted: #64748b;
  --wc-border: #e1e8f2;
  --wc-shadow: 0 8px 24px rgba(43, 69, 112, 0.06);
  --wc-shadow-lg: 0 20px 54px rgba(43, 69, 112, 0.12);
}

html[data-wc-theme="aurora"] {
  --wc-primary: #7057d9;
  --wc-primary-hover: #6046c5;
  --wc-primary-pressed: #5038aa;
  --wc-primary-soft: #f1edff;
  --wc-accent: #0ea5a8;
  --wc-canvas: #f7f5ff;
  --wc-surface: #ffffff;
  --wc-surface-muted: #faf8ff;
  --wc-text: #201a35;
  --wc-muted: #716b85;
  --wc-border: #e8e2f4;
  --wc-shadow: 0 12px 34px rgba(85, 63, 146, 0.09);
  --wc-shadow-lg: 0 26px 72px rgba(76, 57, 134, 0.15);
}

html.dark {
  --wc-canvas: #0c1220;
  --wc-surface: #121a2a;
  --wc-surface-muted: #0f1726;
  --wc-text: #edf2ff;
  --wc-muted: #94a3b8;
  --wc-border: #253047;
  --wc-primary-soft: rgba(91, 118, 255, 0.14);
  --wc-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  --wc-shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.34);
}

html,
body,
#app {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--wc-text);
  background: var(--wc-canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-wc-theme="aurora"] body {
  background:
    radial-gradient(circle at 88% 5%, rgba(112, 87, 217, 0.1), transparent 28rem),
    radial-gradient(circle at 8% 88%, rgba(14, 165, 168, 0.08), transparent 30rem),
    var(--wc-canvas);
  background-attachment: fixed;
}

.n-statistic,
.n-progress,
[class*="amount"],
[class*="traffic"] {
  font-variant-numeric: tabular-nums;
}

/* Authentication pages */
html[data-wc-auth="true"] #app > .n-config-provider,
html[data-wc-auth="true"] #app .wh-full.flex.items-center.justify-center {
  min-height: 100dvh;
}

html[data-wc-auth="true"] #app .wh-full.flex.items-center.justify-center {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  padding: 28px;
  background:
    radial-gradient(circle at 14% 18%, rgba(59, 92, 204, 0.18), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(21, 170, 191, 0.14), transparent 34%),
    linear-gradient(145deg, #fbfcff 0%, #f2f5fb 100%) !important;
}

html[data-wc-auth="true"] #app .wh-full.flex.items-center.justify-center::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(59, 92, 204, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 92, 204, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 82%);
}

html.dark[data-wc-auth="true"] #app .wh-full.flex.items-center.justify-center {
  background:
    radial-gradient(circle at 14% 18%, rgba(79, 106, 220, 0.22), transparent 35%),
    radial-gradient(circle at 86% 82%, rgba(21, 170, 191, 0.12), transparent 35%),
    var(--wc-canvas) !important;
}

html[data-wc-auth="true"] #app .n-card.max-w-md {
  width: min(430px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: var(--wc-shadow-lg) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html.dark[data-wc-auth="true"] #app .n-card.max-w-md {
  border-color: var(--wc-border) !important;
  background: rgba(18, 26, 42, 0.92) !important;
}

html[data-wc-auth="true"] #app .n-card.max-w-md .n-card__content {
  padding: 0 !important;
}

html[data-wc-auth="true"] #app .n-card.max-w-md .p-6 {
  padding: 32px 32px 28px !important;
}

html[data-wc-auth="true"] #app .n-card.max-w-md h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--wc-text) !important;
  font-size: 32px !important;
  font-weight: 720 !important;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

html[data-wc-auth="true"] #app .n-card.max-w-md h1::before {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 17px;
  content: "";
  background-color: var(--wc-primary);
  background-image: url("/custom/wenchen-favicon.svg?v=20260716");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(59, 92, 204, 0.28);
}

html[data-wc-auth="true"] #app .n-card.max-w-md h5 {
  margin: 10px 0 0;
  color: var(--wc-muted) !important;
  font-size: 14px;
  font-weight: 400;
}

html[data-wc-auth="true"] #app .n-card.max-w-md h5:empty {
  display: none;
}

html[data-wc-auth="true"][data-wc-description="false"] #app .n-card.max-w-md h5 {
  display: none;
}

html[data-wc-auth="true"] #app .n-card.max-w-md .mt-5 {
  margin-top: 20px !important;
}

html[data-wc-auth="true"] #app .n-card.max-w-md .n-input,
html[data-wc-auth="true"] #app .n-card.max-w-md .n-base-selection {
  min-height: 46px;
  --n-height: 46px !important;
  --n-border-radius: 12px !important;
  --n-border: 1px solid var(--wc-border) !important;
  --n-border-hover: 1px solid var(--wc-primary) !important;
  --n-border-focus: 1px solid var(--wc-primary) !important;
  --n-box-shadow-focus: 0 0 0 3px rgba(59, 92, 204, 0.14) !important;
  --n-color: rgba(248, 250, 255, 0.88) !important;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

html.dark[data-wc-auth="true"] #app .n-card.max-w-md .n-input,
html.dark[data-wc-auth="true"] #app .n-card.max-w-md .n-base-selection {
  --n-color: rgba(12, 18, 32, 0.54) !important;
}

html[data-wc-auth="true"] #app .n-card.max-w-md button.n-button.h-9.w-full {
  min-height: 46px;
  border-radius: 12px !important;
  --n-height: 46px !important;
  --n-border-radius: 12px !important;
  --n-color: var(--wc-primary) !important;
  --n-color-hover: var(--wc-primary-hover) !important;
  --n-color-pressed: var(--wc-primary-pressed) !important;
  --n-border: none !important;
  --n-border-hover: none !important;
  --n-border-pressed: none !important;
  --n-ripple-color: rgba(255, 255, 255, 0.3) !important;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 10px 24px rgba(59, 92, 204, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

html[data-wc-auth="true"] #app .n-card.max-w-md button.n-button.h-9.w-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 28px rgba(59, 92, 204, 0.3);
}

html[data-wc-auth="true"] #app .n-card.max-w-md .n-card__content > .flex.justify-between {
  border-top: 1px solid var(--wc-border);
  background: rgba(247, 249, 253, 0.84) !important;
}

html.dark[data-wc-auth="true"] #app .n-card.max-w-md .n-card__content > .flex.justify-between {
  background: rgba(12, 18, 32, 0.55) !important;
}

html[data-wc-auth="true"] #app .n-card.max-w-md .n-card__content > .flex.justify-between a,
html[data-wc-auth="true"] #app .n-card.max-w-md .n-card__content > .flex.justify-between button {
  transition: color 150ms ease;
}

/* User center */
html[data-wc-auth="false"] #app .cus-scroll-y.wh-full {
  padding: 20px !important;
  background: var(--wc-canvas) !important;
}

html[data-wc-auth="false"] #app .n-layout-sider {
  border-color: var(--wc-border) !important;
  background: var(--wc-surface) !important;
}

html[data-wc-auth="false"] #app article > header.flex.items-center {
  z-index: 10;
  border-bottom: 1px solid var(--wc-border);
  background: rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html.dark[data-wc-auth="false"] #app article > header.flex.items-center {
  background: rgba(18, 26, 42, 0.86) !important;
}

html[data-wc-auth="false"] #app .side-menu:not(.n-menu--collapsed) .n-menu-item-content::before {
  right: 10px !important;
  left: 10px !important;
  border-radius: 10px !important;
}

html[data-wc-auth="false"] #app .side-menu .n-menu-item-content--selected::before {
  border-left: 0 !important;
  background: var(--wc-primary-soft) !important;
}

html[data-wc-auth="false"] #app .side-menu .n-menu-item-content--selected {
  color: var(--wc-primary);
  font-weight: 650;
}

html[data-wc-auth="false"] #app .n-card:not(.max-w-md) {
  border: 1px solid var(--wc-border) !important;
  border-radius: 16px !important;
  background: var(--wc-surface) !important;
  box-shadow: var(--wc-shadow) !important;
}

html[data-wc-theme="fresh"][data-wc-auth="false"] #app .n-card:not(.max-w-md) {
  border-radius: 13px !important;
  box-shadow: var(--wc-shadow) !important;
}

html[data-wc-theme="fresh"][data-wc-auth="false"] #app article > header.flex.items-center {
  background: rgba(255, 255, 255, 0.94) !important;
}

html[data-wc-theme="fresh"][data-wc-auth="false"] #app .side-menu .n-menu-item-content--selected::before {
  box-shadow: inset 3px 0 0 var(--wc-primary);
}

html[data-wc-theme="aurora"][data-wc-auth="false"] #app .n-card:not(.max-w-md) {
  border-color: rgba(112, 87, 217, 0.14) !important;
}

html[data-wc-theme="aurora"] #app .n-button--primary-type {
  background-image: linear-gradient(135deg, #7057d9, #5e73df) !important;
  box-shadow: 0 8px 20px rgba(112, 87, 217, 0.22);
}

#app .n-card--hoverable {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

#app .n-button {
  border-radius: 10px !important;
  --n-border-radius: 10px !important;
}

#app .n-button--primary-type {
  --n-color: var(--wc-primary) !important;
  --n-color-hover: var(--wc-primary-hover) !important;
  --n-color-pressed: var(--wc-primary-pressed) !important;
  --n-color-focus: var(--wc-primary-hover) !important;
  --n-text-color: #ffffff !important;
  --n-text-color-hover: #ffffff !important;
  --n-text-color-pressed: #ffffff !important;
  --n-text-color-focus: #ffffff !important;
  --n-border: 1px solid var(--wc-primary) !important;
  --n-border-hover: 1px solid var(--wc-primary-hover) !important;
  --n-border-pressed: 1px solid var(--wc-primary-pressed) !important;
  --n-border-focus: 1px solid var(--wc-primary-hover) !important;
}

#app .n-data-table {
  --n-border-color: var(--wc-border) !important;
  --n-th-color: rgba(244, 247, 252, 0.9) !important;
  --n-td-color-hover: rgba(238, 242, 255, 0.62) !important;
}

html.dark #app .n-data-table {
  --n-th-color: rgba(31, 41, 59, 0.72) !important;
  --n-td-color-hover: rgba(59, 92, 204, 0.1) !important;
}

#app .n-tag {
  border-radius: 999px !important;
}

/* User-selectable skin switcher */
.wc-theme-switcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9999;
  color: var(--wc-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

.wc-theme-trigger {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 15px;
  color: #ffffff;
  background: var(--wc-primary);
  box-shadow: 0 12px 30px rgba(32, 49, 91, 0.2);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wc-theme-trigger:hover,
.wc-theme-trigger:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 16px 34px rgba(32, 49, 91, 0.26);
}

.wc-theme-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 224px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--wc-border);
  border-radius: 17px;
  opacity: 0;
  visibility: hidden;
  background: color-mix(in srgb, var(--wc-surface) 94%, transparent);
  box-shadow: var(--wc-shadow-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(8px) scale(0.98);
  transform-origin: right bottom;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.wc-theme-switcher[data-open="true"] .wc-theme-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.wc-theme-title {
  margin: 2px 4px 9px;
  color: var(--wc-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.wc-theme-option {
  display: flex;
  width: 100%;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--wc-text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.wc-theme-option:hover {
  background: var(--wc-surface-muted);
}

.wc-theme-option[aria-checked="true"] {
  border-color: color-mix(in srgb, var(--wc-primary) 26%, var(--wc-border));
  background: var(--wc-primary-soft);
  color: var(--wc-primary);
  font-weight: 650;
}

.wc-theme-swatch {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 3px solid #ffffff;
  border-radius: 9px;
  box-shadow: 0 0 0 1px rgba(27, 37, 59, 0.1);
}

.wc-theme-swatch--classic {
  background: linear-gradient(135deg, #3b5ccc 0 54%, #15aabf 54%);
}

.wc-theme-swatch--fresh {
  background: linear-gradient(135deg, #3478f6 0 54%, #f7f9fd 54%);
}

.wc-theme-swatch--aurora {
  background: linear-gradient(135deg, #7057d9 0 54%, #0ea5a8 54%);
}

.wc-theme-check {
  margin-left: auto;
  opacity: 0;
  color: var(--wc-primary);
  font-weight: 800;
}

.wc-theme-option[aria-checked="true"] .wc-theme-check {
  opacity: 1;
}

#app .n-dialog,
#app .n-modal .n-card {
  border-radius: 18px !important;
}

.fade-slide-enter-active,
.fade-slide-leave-active {
  transition: opacity 160ms ease, transform 160ms ease !important;
}

.fade-slide-enter-from {
  opacity: 0;
  transform: translateY(6px) !important;
}

.fade-slide-leave-to {
  opacity: 0;
  transform: translateY(-4px) !important;
}

@media (hover: hover) {
  #app .n-card--hoverable:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(29, 45, 82, 0.12) !important;
  }
}

@media (max-width: 767px) {
  html[data-wc-auth="true"] #app .wh-full.flex.items-center.justify-center {
    padding: 16px;
  }

  html[data-wc-auth="true"] #app .n-card.max-w-md {
    border-radius: 18px !important;
  }

  html[data-wc-auth="false"] #app .cus-scroll-y.wh-full {
    padding: 12px !important;
  }

  #app .card-container {
    gap: 14px !important;
  }

  .wc-theme-switcher {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(72px, calc(env(safe-area-inset-bottom) + 12px));
  }

  html[data-wc-auth="true"] .wc-theme-switcher {
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  html[data-wc-auth="true"] #app .n-card.max-w-md .p-6 {
    padding: 24px 20px 22px !important;
  }

  html[data-wc-auth="true"] #app .n-card.max-w-md h1 {
    font-size: 29px !important;
  }

  html[data-wc-auth="true"] #app .n-card.max-w-md h1::before {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Wenchen support center */
.wc-support {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10020;
  color: #172033;
  font-family: inherit;
}

.wc-support-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  padding: 0 19px;
  border: 0;
  border-radius: 27px;
  color: #fff;
  background: linear-gradient(135deg, var(--wc-primary, #3478f6), var(--wc-primary-strong, #2364d8));
  box-shadow: 0 12px 30px rgba(35, 100, 216, 0.3);
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wc-support-trigger > span:first-child { font-size: 22px; }
.wc-support-trigger:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(35, 100, 216, 0.36); }

.wc-support-panel {
  position: absolute;
  left: 0;
  bottom: 68px;
  width: min(390px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(123, 145, 183, 0.18);
  border-radius: 22px;
  background: #f8fafc;
  box-shadow: 0 24px 70px rgba(20, 32, 60, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: left bottom;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.wc-support[data-open="true"] .wc-support-panel { opacity: 1; visibility: visible; transform: none; }
.wc-support[data-open="true"] .wc-support-trigger { box-shadow: 0 9px 24px rgba(35, 100, 216, 0.24); }

.wc-support-head {
  position: relative;
  min-height: 120px;
  padding: 27px 52px 24px 25px;
  color: #fff;
  background: linear-gradient(135deg, var(--wc-primary, #3478f6), var(--wc-accent, #16b8a6));
}

.wc-support-title { font-size: 23px; font-weight: 720; letter-spacing: -0.02em; }
.wc-support-subtitle { margin-top: 7px; font-size: 14px; opacity: 0.92; }
.wc-support-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.16); cursor: pointer; font-size: 25px; line-height: 31px; }
.wc-support-close:hover { background: rgba(255,255,255,.25); }
.wc-support-body { padding: 20px; }

.wc-support-greeting {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(123, 145, 183, 0.14);
  border-radius: 16px;
  background: #fff;
}

.wc-support-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--wc-primary, #3478f6), var(--wc-accent, #16b8a6)); font-weight: 750; }
.wc-support-greeting strong { font-size: 15px; }
.wc-support-greeting p, .wc-support-status-card p { margin: 5px 0 0; color: #6b7890; font-size: 13px; line-height: 1.55; }
.wc-support-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 13px 0; }
.wc-support-quick button { display: flex; justify-content: space-between; align-items: center; min-height: 46px; padding: 0 14px; border: 1px solid rgba(52, 120, 246, .17); border-radius: 13px; color: var(--wc-primary-strong, #2364d8); background: rgba(52, 120, 246, .055); cursor: pointer; font-weight: 600; }
.wc-support-quick button:hover { background: rgba(52, 120, 246, .1); }
.wc-support-quick button span, .wc-support-start span { font-size: 22px; line-height: 1; }

.wc-support-status-card { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 11px; padding: 18px 16px 58px; border: 1px solid rgba(123, 145, 183, 0.18); border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(20, 32, 60, .06); }
.wc-support-status-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.12); }
.wc-support-status-dot[data-online="true"] { background: #12b981; box-shadow: 0 0 0 4px rgba(18,185,129,.12); }
.wc-support-start { position: absolute; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; color: var(--wc-primary, #3478f6); background: transparent; cursor: pointer; font-weight: 700; }
.wc-support-brand { padding: 0 20px 16px; color: #9aa5b6; text-align: center; font-size: 12px; }

.wc-chat-online-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #f6c453; box-shadow: 0 0 0 3px rgba(246,196,83,.18); }
.wc-chat-online-dot[data-online="true"] { background: #75f0c0; box-shadow: 0 0 0 3px rgba(117,240,192,.18); }
.wc-chat-messages { height: 310px; padding: 18px; overflow-y: auto; background: #f7f9fc; scroll-behavior: smooth; }
.wc-chat-loading { padding: 38px 12px; color: #8490a5; text-align: center; font-size: 14px; }
.wc-chat-welcome { display: flex; align-items: flex-end; gap: 9px; }
.wc-chat-row { display: flex; margin: 10px 0; }
.wc-chat-row--me { justify-content: flex-end; }
.wc-chat-row--agent { justify-content: flex-start; }
.wc-chat-bubble { max-width: 82%; padding: 11px 14px; border-radius: 15px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.wc-chat-bubble--agent { color: #263247; background: #fff; border: 1px solid rgba(123,145,183,.18); border-bottom-left-radius: 5px; box-shadow: 0 4px 14px rgba(20,32,60,.05); }
.wc-chat-bubble--me { color: #fff; background: linear-gradient(135deg, var(--wc-primary, #3478f6), var(--wc-primary-strong, #2364d8)); border-bottom-right-radius: 5px; }
.wc-chat-error { display: none; padding: 8px 18px; color: #c64545; background: #fff3f3; font-size: 12px; }
.wc-chat-error[data-show="true"] { display: block; }
.wc-chat-composer { display: flex; gap: 10px; align-items: flex-end; padding: 13px 15px; border-top: 1px solid rgba(123,145,183,.15); background: #fff; }
.wc-chat-input { flex: 1; min-height: 42px; max-height: 96px; resize: vertical; padding: 10px 12px; border: 1px solid rgba(123,145,183,.28); border-radius: 13px; outline: none; color: #263247; background: #f9fbfd; font: inherit; font-size: 14px; line-height: 20px; }
.wc-chat-input:focus { border-color: var(--wc-primary, #3478f6); box-shadow: 0 0 0 3px rgba(52,120,246,.1); }
.wc-chat-send { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, var(--wc-primary, #3478f6), var(--wc-primary-strong, #2364d8)); cursor: pointer; font-size: 20px; }
.wc-chat-send:disabled { cursor: wait; opacity: .55; }

html[data-wc-auth="true"] .wc-support { display: none; }

@media (max-width: 560px) {
  .wc-support { left: max(12px, env(safe-area-inset-left)); bottom: max(72px, calc(env(safe-area-inset-bottom) + 12px)); }
  .wc-support-trigger { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .wc-support-trigger-label { display: none; }
  .wc-support-panel { position: fixed; left: 12px; right: 12px; bottom: max(136px, calc(env(safe-area-inset-bottom) + 76px)); width: auto; max-height: calc(100vh - 160px); overflow-y: auto; transform-origin: left bottom; }
  .wc-support-title { font-size: 20px; }
  .wc-support-quick { grid-template-columns: 1fr; }
}
