/* ============================================================================
   GPT Pay 门户 · 设计系统 v2
   视觉参考：ChatGPT 的克制骨架 + 现代 SaaS 的动效与层次
   —— 浅灰底 / 纯白卡片 / 渐变边框 / 光晕 / 入场动画 / 微交互
   零外部依赖：不加载任何 CDN 字体、图标、框架
   ============================================================================ */

/* ---------------------------------------------------------------- 变量 */
:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --surface-3: #ececee;

  --border: #e6e6e9;
  --border-strong: #d4d4d8;

  --text: #0d0d0d;
  --text-muted: #6b7280;
  --text-subtle: #9ca3af;
  --text-inverse: #ffffff;

  --btn-bg: #0d0d0d;
  --btn-text: #ffffff;
  --btn-hover: #2f2f2f;

  /* 强调色 */
  --accent: #1a73e8;
  --accent-2: #1a73e8;
  --accent-hover: #1765cc;
  --accent-text: #ffffff;
  --accent-soft: #e9f1fe;

  --success: #10a37f;
  --success-bg: #e8f5f1;
  --danger: #ef4146;
  --danger-bg: #fdecec;
  --warn: #b45309;
  --warn-bg: #fef6e7;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow: 0 1px 3px rgb(0 0 0 / 0.05), 0 8px 24px -10px rgb(0 0 0 / 0.10);
  --shadow-hover: 0 4px 12px rgb(0 0 0 / 0.06), 0 24px 48px -16px rgb(0 0 0 / 0.18);
  --shadow-lg: 0 4px 32px rgb(0 0 0 / 0.10);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;

  --nav-h: 62px;
  --maxw: 1120px;
}

html.dark {
  --bg: #121214;
  --surface: #1c1c1f;
  --surface-2: #17171a;
  --surface-3: #26262b;

  --border: #2e2e34;
  --border-strong: #3d3d45;

  --text: #f0f0f2;
  --text-muted: #9b9ba4;
  --text-subtle: #71717a;
  --text-inverse: #0d0d0d;

  --btn-bg: #ffffff;
  --btn-text: #0d0d0d;
  --btn-hover: #e5e5e5;

  --accent: #4c8df6;
  --accent-2: #4c8df6;
  --accent-hover: #6ea6f8;
  --accent-soft: #16233a;

  --success-bg: #14302a;
  --danger-bg: #35191b;
  --warn-bg: #2f2410;

  --shadow-sm: none;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.4);
  --shadow-hover: 0 24px 48px -16px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 8px 32px rgb(0 0 0 / 0.5);
}

/* 商店表面：顶部受光、底部厚度与柔和投影 */
.storefront {
  --bg: #eef1f6;
  --text-muted: #58667c;
  --text-subtle: #68758a;
  --nav-h: 82px;
  font-size: 15px;
  --card-face: linear-gradient(155deg, #fff 0%, #fff 55%, #f4f6fa 100%);
  --card-edge: #d8dfe9;
  --card-highlight: rgb(255 255 255 / .95);
  --card-base: rgb(151 166 189 / .12);
  --card-shadow: 0 2px 4px rgb(29 44 71 / .04),
                 0 10px 18px -10px rgb(29 44 71 / .16),
                 0 24px 36px -24px rgb(29 44 71 / .25);
  --card-shadow-lift: 0 4px 8px -4px rgb(29 44 71 / .12),
                      0 18px 28px -12px rgb(29 44 71 / .24),
                      0 32px 44px -24px rgb(29 44 71 / .34);
  --control-well: inset 0 2px 4px rgb(29 44 71 / .10), 0 1px 0 rgb(255 255 255 / .9);
  --control-raised: inset 0 1px 0 #fff, 0 2px 4px rgb(29 44 71 / .12),
                     0 6px 10px -7px rgb(29 44 71 / .24);
  --cta-face: linear-gradient(180deg, #2474dd, #1766d5 65%, #125bc7);
}
html.dark .storefront {
  --bg: #11141b;
  --text-muted: #b2bbcb;
  --text-subtle: #9faabd;
  --card-face: linear-gradient(155deg, #292e39 0%, #232833 48%, #1c2029 100%);
  --card-edge: #3c4351;
  --card-highlight: rgb(255 255 255 / .10);
  --card-base: rgb(0 0 0 / .28);
  --card-shadow: 0 2px 4px rgb(0 0 0 / .18),
                 0 10px 18px -10px rgb(0 0 0 / .50),
                 0 24px 36px -24px rgb(0 0 0 / .80);
  --card-shadow-lift: 0 4px 8px -4px rgb(0 0 0 / .35),
                      0 18px 28px -12px rgb(0 0 0 / .60),
                      0 32px 44px -24px rgb(0 0 0 / .80);
  --control-well: inset 0 2px 4px rgb(0 0 0 / .32), 0 1px 0 rgb(255 255 255 / .06);
  --control-raised: inset 0 1px 0 rgb(255 255 255 / .12),
                     0 2px 4px rgb(0 0 0 / .28), 0 6px 10px -7px rgb(0 0 0 / .50);
}

/* Grok 使用独立的黑白灰配色，随产品切换，深浅主题仍由用户控制 */
.storefront.product-grok {
  --bg: #f3f3f3;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #ececec;
  --border: #e4e4e4;
  --border-strong: #d4d4d4;
  --text: #111111;
  --text-muted: #595959;
  --text-subtle: #6b6b6b;
  --accent: #111111;
  --accent-2: #111111;
  --accent-hover: #292929;
  --accent-active: #000000;
  --accent-text: #ffffff;
  --accent-soft: #e9e9e9;
  --grok-nav-bg: #e8e8e8;
  --cta-face: #111111;
  --card-face: linear-gradient(155deg, #fff 0%, #fff 55%, #f5f5f5 100%);
  --card-edge: #dadada;
  --card-base: rgb(0 0 0 / .06);
  --card-shadow: 0 2px 4px rgb(0 0 0 / .04),
                 0 10px 18px -10px rgb(0 0 0 / .16),
                 0 24px 36px -24px rgb(0 0 0 / .25);
  --control-raised: inset 0 1px 0 #fff, 0 2px 4px rgb(0 0 0 / .12),
                     0 6px 10px -7px rgb(0 0 0 / .24);
}
html.dark .storefront.product-grok {
  --bg: #101010;
  --surface: #1b1b1b;
  --surface-2: #171717;
  --surface-3: #262626;
  --border: #303030;
  --border-strong: #444444;
  --text: #f5f5f5;
  --text-muted: #b8b8b8;
  --text-subtle: #a3a3a3;
  --accent: #f5f5f5;
  --accent-2: #f5f5f5;
  --accent-hover: #e5e5e5;
  --accent-active: #d4d4d4;
  --accent-text: #111111;
  --accent-soft: #2a2a2a;
  --grok-nav-bg: #343434;
  --cta-face: #f5f5f5;
  --card-face: linear-gradient(155deg, #262626 0%, #202020 48%, #191919 100%);
  --card-edge: #3b3b3b;
  --card-base: rgb(0 0 0 / .28);
  --card-shadow: 0 2px 4px rgb(0 0 0 / .18),
                 0 10px 18px -10px rgb(0 0 0 / .50),
                 0 24px 36px -24px rgb(0 0 0 / .80);
  --control-raised: inset 0 1px 0 rgb(255 255 255 / .12),
                     0 2px 4px rgb(0 0 0 / .28), 0 6px 10px -7px rgb(0 0 0 / .50);
}
.storefront.product-grok .aurora { display: none; }
.storefront.product-grok .pending-icon { background: var(--accent); color: var(--accent-text); }
.storefront.product-grok .nav-links a.active { color: var(--text); }
.storefront.product-grok .btn-accent { background: var(--accent); color: var(--accent-text); }
.storefront.product-grok .btn-accent:not(:disabled):hover { background: var(--accent-hover); }
.storefront.product-grok .btn-accent:not(:disabled):active { background: var(--accent-active); }

/* ---------------------------------------------------------------- 重置 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景光晕：让页面不再是一块死白 */
.aurora {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
  animation: drift 22s var(--ease) infinite alternate;
}
.aurora .a1 { width: 620px; height: 620px; top: -280px; left: -140px;
  background: radial-gradient(circle, rgb(37 99 235 / .22), transparent 68%); }
.aurora .a2 { width: 520px; height: 520px; top: -180px; right: -120px;
  background: radial-gradient(circle, rgb(124 58 237 / .18), transparent 68%);
  animation-delay: -7s; }
.aurora .a3 { width: 460px; height: 460px; top: 380px; left: 42%;
  background: radial-gradient(circle, rgb(16 163 127 / .13), transparent 68%);
  animation-delay: -14s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
html.dark .aurora span { opacity: .32; }

body > * { position: relative; z-index: 1; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: 34px; line-height: 1.22; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a.link { color: var(--accent); }
a.link:hover { text-decoration: underline; }

code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
img, svg { max-width: 100%; vertical-align: middle; }

/* ---------------------------------------------------------------- 布局 */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 24px; }
.container-wide { width: 100%; max-width: 1644px; margin: 0 auto; padding: 0 24px; }

.stack { display: flex; flex-direction: column; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.center { text-align: center; }
.right { text-align: right; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* ---------------------------------------------------------------- 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 40; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-inner {
  height: 100%; display: flex; align-items: center; gap: 30px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-mark { width: 23px; height: 23px; display: grid; place-items: center; color: var(--text); }
.brand-mark .knot { width: 23px; height: 23px; display: block; }
/* 导航项：纯文字，当前页用字重 + 短下划线区分，不用底色块 */
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  position: relative; padding: 3px 0;
  color: var(--text-muted); font-size: 14px;
  transition: color .18s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 500; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--text);
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- 侧栏（管理侧） */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 248px; flex: none; background: var(--surface-2);
  border-right: 1px solid var(--border); padding: 16px 12px;
  display: flex; flex-direction: column; gap: 3px;
}
.side .side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 16px; margin-bottom: 2px;
  font-weight: 600; font-size: 15px; color: var(--text);
  text-decoration: none; border-radius: var(--radius-sm);
  transition: color .18s var(--ease);
}
.side .side-brand:hover { color: var(--accent); text-decoration: none; }
.side-group {
  padding: 14px 10px 6px; font-size: 11.5px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-subtle);
}
.side a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.side a:hover { background: var(--surface-3); color: var(--text); }
.side a.active { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm); }
.main { flex: 1; min-width: 0; padding: 32px 36px 64px; }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 24px; margin-bottom: 6px; }
.page-head p { color: var(--text-muted); font-size: 14px; }

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
}
.card-tight { padding: 16px; }
.card-flat { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 15px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 12.5px; color: var(--text-muted); }
.stat-value { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.stat-value.mono { font-family: var(--font-mono); font-size: 21px; }

/* ---------------------------------------------------------------- 页面标题区 */
.hero { text-align: center; margin-bottom: 34px; }
.hero h1 {
  display: block; font-size: 36px; font-weight: 600;
  color: var(--text); letter-spacing: -0.025em; line-height: 1.25;
}
.hero p { color: var(--text-muted); margin-top: 12px; font-size: 15px; }
.page-title { text-align: center; margin-bottom: 8px; }
.page-sub { text-align: center; color: var(--text-muted); margin-bottom: 28px; }

/* 徽标胶囊：克制，只作状态说明 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px; margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted); font-size: 12.5px;
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); }
  70% { box-shadow: 0 0 0 6px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------------------------------------------------------------- 首页标题与流程 */
.catalogue-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; margin-bottom: 28px;
}
.catalogue-title h1 { font-size: 32px; font-weight: 650; line-height: 1.3; letter-spacing: -.03em; }
.catalogue-title p { margin-top: 10px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }
.catalogue-flow {
  display: flex; align-items: center; flex: none; gap: 22px;
  list-style: none; margin: 0; padding: 0;
}
.catalogue-stage {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 13px; white-space: nowrap;
}
.catalogue-stage:not(:last-child)::after {
  content: ''; width: 6px; height: 6px; margin-left: 14px;
  border-top: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong);
  transform: rotate(45deg);
}
.catalogue-step-index {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border: 1px solid var(--card-edge); border-radius: 50%;
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.catalogue-stage.active { color: var(--accent); font-weight: 600; }
.catalogue-stage.active .catalogue-step-index { border-color: transparent; background: var(--accent); color: #fff; }
.catalogue-pending { min-height: 380px; padding: 56px 24px; text-align: center; }
.pending-icon {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 22px;
  border-radius: 20px; background: var(--accent-soft); color: var(--accent);
}
.catalogue-pending h2 { font-size: 24px; }
.catalogue-pending p { max-width: 360px; margin: 12px auto 0; color: var(--text-muted); font-size: 15px; }
.pending-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------------------------------------------------------------- 地区选择器 */
.region-bar {
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.region-options { display: flex; align-items: center; gap: 18px; }
.region-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-muted); white-space: nowrap; }
.region-label svg { flex: none; }
.region-pills {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.region-pill {
  min-height: 40px; padding: 8px 18px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 14px; line-height: 1.4; cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.region-pill:hover { color: var(--text); background: var(--surface); }
.region-pill.on {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
  border-color: color-mix(in srgb, var(--accent) 24%, transparent);
}
.region-bar .region-pills {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 4px;
  background: color-mix(in srgb, var(--card-edge) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-edge) 65%, transparent); border-radius: 13px;
}
.region-bar .region-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 96px; min-height: 44px; padding: 9px 12px; border-radius: 9px;
  background: transparent; border-color: transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 500;
}
.region-bar .region-pill:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--text); }
.region-bar .region-pill.on {
  background: var(--surface); color: var(--accent); font-weight: 600;
  border-color: color-mix(in srgb, var(--card-edge) 70%, transparent);
  box-shadow: 0 1px 3px rgb(29 44 71 / .10);
}
@supports selector(:has(*)) {
  .region-bar .region-pills { position: relative; isolation: isolate; --region-index: 0; }
  .region-bar .region-pills:has(> .region-pill:nth-child(2).on) { --region-index: 1; }
  .region-bar .region-pills:has(> .region-pill:nth-child(3).on) { --region-index: 2; }
  .region-bar .region-pills:has(> .region-pill:nth-child(4).on) { --region-index: 3; }
  .region-bar .region-pills::before {
    content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px;
    width: calc((100% - 14px) / 4); border-radius: 9px; pointer-events: none;
    background: var(--surface); border: 1px solid color-mix(in srgb, var(--card-edge) 70%, transparent);
    box-shadow: 0 1px 3px rgb(29 44 71 / .10);
    transform: translateX(calc(var(--region-index) * (100% + 2px)));
    transition: transform .28s cubic-bezier(.22, .8, .28, 1);
  }
  .region-bar .region-pill { position: relative; z-index: 1; }
  .region-bar .region-pill.on { background: transparent; border-color: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .region-bar .region-pills::before { transition: none; }
}
.region-flag { display: block; width: 19px; height: 13px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / .07); }

/* ---------------------------------------------------------------- 套餐卡片 */
.plan-scroll { overflow-x: auto; margin: -12px; padding: 12px; }
.business-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 384px; gap: 20px; width: max-content; margin-inline: auto; }
.business-intro { min-height: 190px; display: flex; flex-direction: column; gap: 14px; }
.business-card > .hint, .credit-options .hint { font-size: 12px; line-height: 1.6; color: var(--text-muted); }
.business-requirement { font-size: 13px; line-height: 1.75; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border); }
.credit-options { display: grid; grid-template-columns: 1fr 110px; align-items: center; gap: 8px; font-size: 13px; }
.credit-presets { display: flex; gap: 6px; grid-column: 1 / -1; }
.credit-presets .region-pill { flex: 1; padding: 5px 8px; font-size: 12px; }
.credit-options .hint { grid-column: 1 / -1; }
.business-help { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; margin-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.input.credits-input { width: 110px; text-align: center; }
.business-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.8; }
.business-consent input { flex: none; margin-top: 5px; accent-color: var(--accent); }
@media (max-width: 440px) { .business-grid { grid-auto-columns: calc(100vw - 48px); } }
.plan-grid {
  display: grid; gap: 20px;
  grid-auto-flow: column;
  grid-auto-columns: 384px;
  width: max-content;
  align-items: stretch;
}
.plan-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  animation: cardIn .6s var(--ease) backwards;
}
.plan-card:nth-child(1) { animation-delay: .04s; }
.plan-card:nth-child(2) { animation-delay: .12s; }
.plan-card:nth-child(3) { animation-delay: .20s; }
.plan-card:nth-child(4) { animation-delay: .28s; }
.team-seats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.input.seats-input { width: 86px; text-align: center; }
.team-seats [data-role=team-total] { flex-basis: 100%; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

/* 鼠标跟随光晕 */
.plan-card .cursor-glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  transform: translate(-50%, -50%); opacity: 0;
  transition: opacity .3s; pointer-events: none;
}
.plan-card:hover .cursor-glow { opacity: 1; }

.plan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.plan-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.plan-title { font-size: 23px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 9px; }
.plan-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; min-height: 46px; }
.plan-cta { margin: 20px 0 22px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-amount {
  font-size: 34px; font-weight: 700; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.plan-amount.flip { opacity: 0; transform: translateY(-9px); }
.plan-period { font-size: 14px; color: var(--text-muted); }
.plan-tax { font-size: 12px; color: var(--text-subtle); margin-left: 4px; }
.plan-features { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.plan-features li { display: flex; gap: 11px; font-size: 14px; line-height: 1.5; align-items: flex-start; }
.plan-features li .fi {
  flex: none; display: grid; place-items: center; margin-top: 3px;
  color: var(--accent);
}
.plan-features li .ft { padding-top: 1px; }
.plan-note {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-subtle); line-height: 1.65;
}

/* 规格切换器（Pro 卡片右上角）：分段控件，白底+阴影的选中态 */
.plan-variants {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface-3);
  border-radius: var(--radius-pill); flex: none;
}
.plan-variant {
  padding: 4px 15px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  cursor: pointer; line-height: 1.55;
  transition: color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.plan-variant:hover { color: var(--text); }
.plan-variant.on {
  background: var(--surface); color: var(--text); font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* 切换规格时的内容过渡 */
.plan-title, .plan-desc, .plan-features {
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.plan-card.switching .plan-title,
.plan-card.switching .plan-desc,
.plan-card.switching .plan-features { opacity: .3; transform: translateY(3px); }

/* 未开放的卡片与规格（灰化、不可购买） */
.plan-card.disabled { opacity: .55; filter: grayscale(.5); }
.plan-card.disabled:hover {
  transform: none; box-shadow: none; border-color: var(--border);
}
.plan-card.disabled .cursor-glow { display: none; }

.plan-variant.locked { opacity: .38; cursor: not-allowed; }
.plan-variant.locked:hover { color: var(--text-muted); }

.btn.is-locked {
  background: var(--surface-3); color: var(--text-subtle);
  pointer-events: none; box-shadow: none; cursor: not-allowed;
}

.spec {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--surface-2); border-radius: var(--radius-pill); font-size: 12.5px;
}
.spec span { padding: 3px 12px; border-radius: var(--radius-pill); color: var(--text-muted); }
.spec span.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- 按钮 */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  padding: 11px 22px; font-family: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), opacity .2s;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:not(:disabled):active { transform: scale(.975); }

.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:not(:disabled):hover { background: var(--btn-hover); box-shadow: 0 8px 24px -8px rgb(0 0 0 / .45); }

.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-accent:not(:disabled):hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-outline {
  background: var(--surface); color: var(--text); border-color: var(--border-strong);
}
.btn-outline:not(:disabled):hover {
  border-color: var(--text); transform: translateY(-2px);
  box-shadow: 0 10px 28px -12px rgb(0 0 0 / .28);
}

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border-strong); }
.btn-danger:not(:disabled):hover { background: var(--danger-bg); border-color: var(--danger); }
.btn-muted { background: var(--surface-3); color: var(--text-subtle); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ---------------------------------------------------------------- 表单 */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label { font-size: 13.5px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.field .err { font-size: 12.5px; color: var(--danger); }

.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-family: inherit; font-size: 14.5px; line-height: 1.5;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  outline: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.textarea { font-family: var(--font-mono); font-size: 13px; resize: vertical; min-height: 100px; }
.select {
  appearance: none; cursor: pointer; padding-right: 38px;
  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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.input-mono { font-family: var(--font-mono); font-size: 13.5px; }

.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.choice:hover { border-color: var(--border-strong); transform: translateX(2px); }
.choice input { margin: 0; accent-color: var(--accent); width: 16px; height: 16px; }
.choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.choice-body { flex: 1; min-width: 0; }
.choice-title { font-weight: 500; font-size: 14.5px; }
.choice-sub { font-size: 12.5px; color: var(--text-muted); }
.choice-price { font-family: var(--font-mono); font-weight: 600; }

.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.switch input { display: none; }
.switch-track {
  width: 40px; height: 23px; border-radius: var(--radius-pill);
  background: var(--surface-3); position: relative; transition: background .25s var(--ease); flex: none;
}
.switch-track::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(17px); }

/* ---------------------------------------------------------------- 订单摘要 */
.summary { display: flex; flex-direction: column; }
.summary-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 0; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: 0; }
.summary-row > span { color: var(--text-muted); flex: none; }
.summary-row > b { font-weight: 600; text-align: right; word-break: break-all; }
.summary-total { padding-top: 16px; }
.summary-total > b { font-size: 22px; letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- 结账两栏 */
/* 左：填写区（宽）  右：订单信息 + 提交按钮（窄） */
.checkout {
  display: grid; gap: 20px;
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: stretch;
}
/* 两栏卡片等高：容器用 grid，卡片自动拉伸
   注意：不要用 height:100%，那会让卡片高度与 grid 行高循环依赖，导致内容被挤出容器 */
.checkout-main, .checkout-side { display: grid; }
.checkout-side .card { display: flex; flex-direction: column; }
.checkout-side .card-head { margin-bottom: 18px; }
.checkout-side .card-head h2 { font-size: 15px; }
.checkout-side .summary-row { padding: 16px 0; font-size: 14px; }
.checkout-side .summary-total { padding-top: 18px; }
.checkout-side .summary-total > b { font-size: 24px; }

/* 侧栏里的套餐信息 */
.order-plan { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.order-plan-name { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.order-plan-title { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }

/* 侧栏底部的服务说明：贴底对齐 */
.order-assurance {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-subtle); line-height: 1.8;
}
.order-assurance p { margin: 0; }
.order-assurance p + p { margin-top: 7px; }

/* 跨两栏的底部说明（居中） */
.checkout-note {
  grid-column: 1 / -1;
  justify-content: center; text-align: center;
}

@media (max-width: 920px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout-side .card { height: auto; }
  .order-assurance { margin-top: 18px; }
}

/* ---------------------------------------------------------------- 订单列表 */
.order-list { display: flex; flex-direction: column; }
.order-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 12px; margin: 0 -12px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: background .18s var(--ease);
}
.order-row:first-child { padding-top: 10px; }
.order-row:last-child { border-bottom: 0; padding-bottom: 10px; }
a.order-row:hover { background: var(--surface-2); }
a.order-row:hover .order-row-arrow { opacity: 1; transform: translateX(2px); }
.order-row-main { flex: 1; min-width: 0; }
.order-row-title {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 14px; font-weight: 600; margin-bottom: 5px;
}
.order-row-meta {
  font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
  word-break: break-all;
}
.order-row-action { flex: none; display: flex; gap: 8px; }
.order-row-arrow {
  flex: none; font-size: 13px; color: var(--accent);
  opacity: 0; transition: opacity .18s var(--ease), transform .18s var(--ease);
}

@media (max-width: 720px) {
  .order-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .order-row-action { justify-content: flex-end; }
  .order-row-arrow { opacity: 1; text-align: right; }
}

/* ---------------------------------------------------------------- 查询表单 */
.query-form { display: flex; gap: 10px; }
.query-form .input { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- 时间线 */
.timeline {
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0;
}
.tl-item { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 13.5px; }
.tl-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--surface-3); border: 2px solid var(--border-strong);
  box-sizing: content-box;
}
.tl-item.done .tl-dot { background: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tl-item.failed .tl-dot { background: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.tl-label { color: var(--text-muted); }
.tl-item.done .tl-label { color: var(--text); }
.tl-time { margin-left: auto; font-size: 12.5px; color: var(--text-subtle); font-family: var(--font-mono); }

/* ---------------------------------------------------------------- 凭证 */
.voucher-box {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; margin-bottom: 16px;
  background: var(--surface-2); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}
.voucher-label { font-size: 12.5px; color: var(--text-muted); margin-bottom: 6px; }
.voucher-code {
  display: block; font-family: var(--font-mono); font-size: 16px;
  font-weight: 600; letter-spacing: 0.02em; color: var(--text);
  word-break: break-all;
}
.voucher-state { flex: none; }

@media (max-width: 720px) {
  .voucher-code { font-size: 14px; }
}

/* ---------------------------------------------------------------- 支付二维码 */
.qr-box { display: flex; flex-direction: column; align-items: center; padding: 8px 0 4px; }
.qr-frame {
  padding: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease);
}
.qr-frame:hover { box-shadow: var(--shadow-hover); }
.qr-img { display: block; width: 216px; height: 216px; object-fit: contain; }
.qr-amount {
  margin: 18px 0 0; font-size: 28px; font-weight: 700;
  letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.qr-tip { margin: 8px 0 0; font-size: 14px; color: var(--text-muted); }

/* ---------------------------------------------------------------- 表格 */
.table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
}
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left; font-weight: 500; font-size: 12px; letter-spacing: .03em;
  text-transform: uppercase; color: var(--text-subtle);
  padding: 12px 16px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr { transition: background .18s var(--ease); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl td.right, table.tbl th.right { text-align: right; }

/* ---------------------------------------------------------------- 徽章 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 500; line-height: 1.6;
  background: var(--surface-3); color: var(--text-muted);
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-bad { background: var(--danger-bg); color: var(--danger); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--accent-soft); color: var(--accent); }

/* ---------------------------------------------------------------- 提示 */
.alert {
  display: flex; gap: 11px; padding: 14px 17px;
  border-radius: var(--radius); font-size: 13.5px; line-height: 1.6;
  border: 1px solid var(--border);
}
.alert-ok { background: var(--success-bg); border-color: transparent; color: var(--success); }
.alert-bad { background: var(--danger-bg); border-color: transparent; color: var(--danger); }
.alert-warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); }
.alert-info { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* ---------------------------------------------------------------- 空状态 */
.empty {
  padding: 56px 24px; text-align: center; color: var(--text-muted);
  border: 1px dashed var(--border-strong); border-radius: var(--radius-lg);
}
.empty strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }

/* ---------------------------------------------------------------- 日志 */
.logbox {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-word; color: var(--text-muted);
  max-height: 320px; overflow: auto; margin: 0;
}

/* ---------------------------------------------------------------- 步骤条 */
.steps-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.steps { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; }
.step { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-subtle); }
.step-num {
  width: 29px; height: 29px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
  background: var(--surface-3); color: var(--text-subtle);
  transition: all .3s var(--ease);
}
.step.done .step-num { background: var(--success); color: #fff; }
.step.done { color: var(--text-muted); }
.step.active .step-num { background: var(--accent); color: #fff; }
.step.active { color: var(--text); font-weight: 500; }
.step-line { width: 52px; height: 1px; background: var(--border-strong); margin: 0 16px; }

/* ---------------------------------------------------------------- 分隔 */
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }

/* ---------------------------------------------------------------- 主题切换 */
/* 主题切换：无边框圆形图标按钮 */
.theme-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.theme-btn:hover { color: var(--text); background: var(--surface-3); }
.theme-btn:active { transform: scale(.94); }

/* ---------------------------------------------------------------- 入场 */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------------- 客服浮窗 */
.support-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-text);
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.support-fab:hover { transform: translateY(-3px); }
@media (max-width: 720px) {
  .support-fab { right: 14px; bottom: 14px; padding: 10px 15px; }
}

/* ---------------------------------------------------------------- 商店立体层次 */
.storefront .nav {
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border-bottom-color: color-mix(in srgb, var(--card-edge) 60%, transparent);
  box-shadow: none;
  transition: box-shadow .2s var(--ease), background .2s var(--ease);
}
.storefront .nav.is-scrolled {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 8px 26px -20px rgb(29 44 71 / .32);
}
.storefront .nav-inner {
  max-width: 1644px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px; padding-inline: 32px;
}
.storefront .brand { justify-self: start; gap: 12px; border-radius: 12px; min-width: 0; max-width: 100%; }
.storefront .brand-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.storefront .brand-name { white-space: nowrap; font-size: 17px; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.storefront .brand-caption { color: var(--text-subtle); font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: .04em; white-space: normal; word-break: keep-all; }
.storefront .brand-mark {
  width: 40px; height: 40px; flex: none;
  border: 1px solid color-mix(in srgb, var(--text) 90%, transparent); border-radius: 12px;
  color: var(--surface); background: var(--text);
  box-shadow: 0 4px 10px -6px rgb(15 23 42 / .35);
}
.storefront .brand-mark .knot { width: 24px; height: 24px; }
.storefront .nav-links {
  align-self: center; gap: 2px; padding: 4px; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface-2);
  position: relative; isolation: isolate;
}
.nav-slider { display: none; }
.storefront .nav-links[data-sliding] .nav-slider {
  display: block; position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--nav-width); transform: translateX(var(--nav-x)); border-radius: 10px;
  background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .08); pointer-events: none;
}
.storefront .nav-links[data-sliding="ready"] .nav-slider {
  transition: transform .15s cubic-bezier(.2, .8, .2, 1), width .15s cubic-bezier(.2, .8, .2, 1);
}
.storefront .nav-links[data-sliding] a { z-index: 1; }
.storefront .nav-links[data-sliding] a.active { background: transparent; box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  .storefront .nav-links[data-sliding="ready"] .nav-slider { transition: none; }
}
.storefront .nav-links a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  align-self: center; min-height: 36px; padding: 7px 15px; border-radius: 10px;
  color: var(--text-muted); font-size: 14px; font-weight: 500; line-height: 1.4; white-space: nowrap;
  transition: color .12s;
}
.storefront .nav-links a:hover { color: var(--text); background: transparent; }
.storefront .nav-links a.active {
  color: var(--text); background: var(--surface); font-weight: 600;
  box-shadow: 0 1px 3px rgb(0 0 0 / .08);
}
.storefront .nav-links a.active::after { display: none; }
.storefront .nav-links[data-sliding] a.active { color: var(--text-muted); }
.storefront .nav-links[data-sliding] a.nav-target { color: var(--text); }
.storefront .nav-links :is(.knot, .grok-logo) { width: 18px; height: 18px; flex: none; }
.storefront .nav-right { margin-left: 0; justify-self: end; gap: 14px; }
.storefront .nav-tools {
  display: flex; align-items: center; flex: none; gap: 2px;
}
.storefront .nav-utility {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 10px; border-radius: 10px;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  white-space: nowrap; transition: color .18s, background .18s;
}
.storefront .nav-utility svg { width: 16px; height: 16px; flex: none; }
.storefront .nav-utility:hover { color: var(--text); background: var(--surface-2); }
.storefront .nav-utility.active {
  color: var(--accent); background: var(--accent-soft);
}
.storefront .theme-btn {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--surface-2); box-shadow: none;
}
.storefront .theme-btn:hover { background: var(--surface-3); }
.storefront .brand:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 5px; }
.theme-sun, html.dark .theme-moon { display: none; }
html.dark .theme-sun { display: block; }
.site-footer { padding-bottom: 32px; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px;
}
.footer-inner p { color: var(--text); font-weight: 500; }
.footer-inner p span { color: var(--text-muted); font-weight: 400; }
.footer-inner nav { display: flex; gap: 24px; }
.footer-inner a:hover { color: var(--accent); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.storefront .plan-card { min-height: 655px; padding: 24px 26px; }
.storefront .plan-top { flex: 0 0 34px; min-height: 34px; margin-bottom: 12px; }
.storefront .plan-title { font-size: 23px; line-height: 1.3; min-height: 30px; margin-bottom: 8px; }
.plan-intro { display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 100px; }
.storefront .plan-desc { min-height: 45px; font-size: 15px; line-height: 1.5; }
.storefront .plan-cta { margin: 12px 0 16px; }
.storefront .plan-cta .btn { font-size: 15px; min-height: 42px; }
.storefront .plan-price { min-height: 44px; align-items: baseline; }
.storefront .plan-amount { line-height: 1.25; }
.storefront .plan-tax { font-size: 13px; }
.storefront .plan-features { margin-top: 18px; gap: 9px; }
.storefront .plan-features li { font-size: 15px; line-height: 1.5; }
.storefront .plan-note { font-size: 13px; }
.team-config { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.team-quantity { display: flex; align-items: center; gap: 8px; }
.team-quantity label { color: var(--text-muted); font-size: 14px; white-space: nowrap; }
.team-quantity .seats-input { width: 62px; padding: 8px 5px; border-radius: 10px; font-size: 15px; }
.team-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.team-total-label, .team-total-period { font-size: 13px; color: var(--text-muted); }
.team-total strong { font-size: 28px; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.storefront .team-unit-price { align-items: center; color: var(--text-muted); }
.storefront .team-unit-price .plan-amount { font-size: 18px; font-weight: 600; }
.service-notes {
  margin-top: 32px; padding: 22px 26px; border: 1px solid var(--card-edge);
  border-radius: 20px; background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.service-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.service-notes-head h2 { font-size: 15px; }
.service-notes-head a { color: var(--accent); font-size: 13px; }
.service-notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service-notes-grid > div + div { padding-left: 28px; border-left: 1px solid var(--border); }
.service-notes-grid h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.service-notes-grid h3 svg { color: var(--text-muted); flex: none; }
.service-notes-grid p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.storefront .tiny { font-size: 13px; }
@media (min-width: 1081px) and (max-width: 1200px) {
  .storefront .nav-links { gap: 4px; }
  .storefront .nav-links a { padding-inline: 14px; }
  .storefront .nav-right { gap: 10px; }
}
@media (max-width: 1200px) {
  .storefront .nav { height: auto; }
  .storefront .nav-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 14px 24px 0; }
  .storefront .nav-links { grid-row: 2; grid-column: 1 / -1; justify-self: center; justify-content: center; min-height: 46px; margin-bottom: 10px; }
  .storefront .nav-right { grid-row: 1; grid-column: 2; }
}
@media (max-width: 1100px) {
  .catalogue-head { align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (max-width: 720px) {
  .storefront .nav { height: auto; }
  .storefront .nav-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 12px 16px 0; }
  .storefront .brand { gap: 9px; }
  .storefront .brand-name { font-size: 16px; }
  .storefront .brand-caption { font-size: 10px; }
  .storefront .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .storefront .brand-mark .knot { width: 22px; height: 22px; }
  .storefront .nav-links { display: grid; grid-template-columns: repeat(var(--nav-count, 4), minmax(0, 1fr)); gap: 2px; justify-self: stretch; }
  .storefront .nav-links a { min-width: 0; min-height: 36px; gap: 4px; padding: 8px 2px; font-size: clamp(11px, 3.25vw, 13px); }
  .storefront .nav-links :is(.knot, .grok-logo), .storefront .nav-links svg { width: 16px; height: 16px; }
  .storefront .nav-right { grid-row: 1; grid-column: 2; gap: 4px; }
  .storefront .nav-tools { gap: 0; }
  .storefront .nav-utility { width: 34px; min-height: 34px; padding: 0; }
  .storefront .nav-utility span { display: none; }
  .storefront .theme-btn { width: 36px; height: 36px; }
  .catalogue-head { gap: 22px; margin-bottom: 22px; }
  .catalogue-title h1 { font-size: 28px; }
  .catalogue-title p { font-size: 14px; margin-top: 8px; }
  .catalogue-flow { width: 100%; justify-content: space-between; gap: 8px; }
  .catalogue-stage { flex-direction: column; gap: 7px; font-size: 12px; }
  .catalogue-stage:not(:last-child)::after { display: none; }
  .region-bar { margin-bottom: 20px; }
  .region-options { align-items: center; flex-direction: column; gap: 10px; width: 100%; }
  .region-bar .region-pills { width: 100%; }
  .region-bar .region-pill { min-width: 0; gap: 6px; font-size: 13px; padding: 9px 4px; }
  .region-flag { width: 16px; height: 11px; }
  .storefront .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; }
  .storefront .step { flex-direction: column; gap: 7px; font-size: 13px; white-space: nowrap; }
  .storefront .step-line { display: none; }
  .storefront .plan-card { padding: 24px 20px; }
  .storefront .plan-title { font-size: 22px; }
  .team-quantity { gap: 6px; }
  .team-quantity label { font-size: 13px; }
  .team-quantity .seats-input { width: 52px; }
  .team-total strong { font-size: 24px; }
  .service-notes { padding: 20px; }
  .service-notes-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-notes-grid > div + div { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 420px) {
  .storefront .plan-variant { padding: 4px 10px; font-size: 13px; }
}
@media (max-width: 360px) {
  .storefront .nav-inner { column-gap: 8px; }
  .storefront .brand { gap: 8px; }
  .storefront .brand-name { font-size: 14px; }
  .storefront .brand-mark { width: 32px; height: 32px; }
  .storefront .nav-right { gap: 2px; }
  .region-bar .region-pill { gap: 4px; padding-inline: 2px; }
  .region-flag { width: 14px; height: 10px; }
}
.storefront .card:not(.card-flat), .storefront .plan-card {
  background: var(--card-face);
  border-color: var(--card-edge);
  box-shadow: inset 0 1px 0 var(--card-highlight),
              inset 0 -1px 0 var(--card-base), var(--card-shadow);
}
/* 给阴影留出空间；负外边距抵消留白，卡片位置与尺寸保持一致。 */
.storefront .plan-scroll { margin: -24px -16px -40px; padding: 24px 16px 40px; }
.storefront .plan-card > :not(.cursor-glow) { position: relative; }
.storefront .plan-card:hover { transform: none; border-color: var(--card-edge); }
.storefront .plan-card .cursor-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
}
.storefront .plan-card.disabled { box-shadow: inset 0 1px 0 var(--card-highlight), var(--shadow-sm); }
.storefront .plan-variants {
  box-shadow: var(--control-well);
}
.storefront .plan-variant.on {
  background: var(--card-face);
  box-shadow: var(--control-raised);
}
.storefront .step-num {
  box-shadow: inset 0 1px 0 var(--card-highlight), 0 2px 3px rgb(29 44 71 / .08);
}
.storefront .step.active .step-num {
  background: var(--cta-face);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 4px 9px -3px rgb(26 115 232 / .38);
}
.storefront .btn-accent {
  background: #1a73e8;
  border-color: transparent;
  box-shadow: none;
}
.storefront .btn-accent:not(:disabled):hover {
  background: #1765cc;
  box-shadow: none;
  transform: none;
}
.storefront .btn-accent:not(:disabled):active {
  background: #155bb8;
  transform: none;
  box-shadow: none;
}
.storefront :is(.btn, .region-pill, .plan-variant, .theme-btn, .nav-links a, .nav-utility):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .storefront .plan-card:not(.disabled):hover {
    transform: translateY(-6px);
    box-shadow: inset 0 1px 0 var(--card-highlight),
                inset 0 -1px 0 var(--card-base), var(--card-shadow-lift);
  }
}
@media (prefers-reduced-motion: reduce) {
  .storefront .plan-card:not(.disabled):hover,
  .storefront .btn-accent:not(:disabled):hover,
  .storefront .btn-accent:not(:disabled):active { transform: none; }
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main { padding: 24px 20px 56px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .plan-grid { grid-auto-columns: min(384px, calc(100vw - 48px)); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container-narrow, .container-wide { padding: 0 16px; }
  .shell { flex-direction: column; }
  .side {
    width: 100%; flex-direction: row; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--border); padding: 8px;
  }
  .side-brand, .side-group { display: none; }
  .side a { white-space: nowrap; }
  .nav-inner { gap: 16px; padding: 0 16px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 13.5px; }
  h1 { font-size: 26px; }
  .plan-title { font-size: 20px; }
}

/* ---------------------------------------------------------------- 返回上一步 */
.page-back-row { margin-bottom: 18px; }
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--text-muted);
  text-decoration: none; padding: 5px 2px;
  transition: color .16s ease, transform .16s ease;
}
.page-back svg { flex: none; transition: transform .16s ease; }
.page-back:hover { color: var(--text); text-decoration: none; }
.page-back:hover svg { transform: translateX(-2px); }

/* 首页套餐网格下的免责小字：上句浅绿、下句浅红（比语义色再淡一档） */
.plans-footnote {
  margin: 22px auto 0; text-align: center;
  font-size: 15px; line-height: 1.9;
}
.footnote-good { color: #6bb9a3; }
.footnote-warn { color: #e89699; }

/* ---------------------------------------------------------------- 联系客服 */
.contact-hero { text-align: center; margin-bottom: 26px; }
.contact-logo { display: inline-flex; color: var(--text); margin-bottom: 18px; }
.contact-logo .knot { width: 46px; height: 46px; display: block; }
.contact-hero h1 {
  display: block; font-size: 32px; font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.25;
}
.contact-hero p {
  color: var(--text-muted); margin-top: 10px; font-size: 14.5px;
  line-height: 1.65; max-width: 540px; margin-left: auto; margin-right: auto;
}

/* 客服沿用支付页的主栏与侧栏 */
.contact-main, .contact-side { min-width: 0; }
.contact-form { margin: 0; }
.contact-attachment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.contact-form .dropzone { padding: 20px; }
.contact-chat-head { padding: 20px; border-bottom: 1px solid var(--border); }
.contact-chat-head .chat-head { align-items: center; flex-wrap: wrap; margin-bottom: 0; }
.contact-chat-head h2 { font-size: 15px; }
.contact-chat-head .chat-head-actions { flex-wrap: wrap; }
.contact-chat-head .chat-head-sub { overflow-wrap: anywhere; }
.wecom-contact { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; flex: 1; padding: 16px 0 24px; }
.wecom-contact-copy { text-align: center; }
.wecom-contact-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--success); margin-bottom: 12px; }
.wecom-contact-intro { text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.wecom-contact-code { margin: 0; text-align: center; width: min(220px, 100%); }
.wecom-qr-frame { display: block; padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 3px 12px rgb(0 0 0 / .04); }
.wecom-qr-frame img { display: block; width: 100%; height: auto; }
.wecom-contact-code figcaption { margin-top: 12px; font-size: 12px; color: var(--text-muted); }
@media (max-width: 600px) {
  .contact-chat-head .chat-head { align-items: flex-start; }
}

/* 截图上传 */
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 30px 20px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text-subtle);
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}
.dropzone-input { display: none; }
.dropzone-main { font-size: 14px; font-weight: 500; color: var(--text); }
.dropzone:hover .dropzone-main, .dropzone.drag .dropzone-main { color: inherit; }
.dropzone-sub { font-size: 12.5px; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs:not(:empty) { margin-top: 14px; }
.thumb {
  position: relative; width: 76px; height: 76px;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgb(0 0 0 / .55); color: #fff; font-size: 15px; line-height: 1;
}
.thumb-del:hover { background: rgb(0 0 0 / .78); }

/* ================================================================ 管理侧 */
/* 侧栏在长页面滚动时固定，移动端取消（那时它变成横向条） */
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-logout { margin-top: auto; color: var(--text-subtle); }
.side a svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.side a.active svg { opacity: 1; }
.side-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill);
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 600;
}
.side-footer {
  margin-top: auto; padding: 14px 10px 4px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.side-user {
  font-size: 12.5px; color: var(--text-subtle);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.side-footer a { padding: 4px 6px; font-size: 12.5px; }

/* 定价表 */
.price-table .num { text-align: right; }
.cost-cell { line-height: 1.4; }
.cost-cell b { display: block; font-size: 13px; font-weight: 500; color: var(--text); }
.cost-cell span { display: block; font-size: 11.5px; color: var(--text-subtle); margin-top: 2px; }
.input-price {
  width: 96px; padding: 7px 10px; text-align: right;
  font-family: var(--font-mono); font-size: 13px;
}
.price-table tr.is-manual { background: var(--accent-soft); }
.price-table tr.is-manual:hover { background: var(--accent-soft); }
.price-footer {
  padding: 16px 20px; border-top: 1px solid var(--border);
}
.price-footer p { margin: 0; max-width: 62ch; }

/* 测试模式横幅 */
.test-banner {
  margin: 0 0 20px; padding: 11px 16px;
  border-radius: var(--radius); border: 1px solid #f3d7a0;
  background: #fdf3dd; color: #8a5b16; font-size: 13.5px; line-height: 1.6;
}
html.dark .test-banner { background: #2c2412; border-color: #4a3b17; color: #e0b55c; }

/* 操作反馈 toast（flash 渲染，自动淡出） */
.toast {
  position: fixed; top: 18px; right: 24px; z-index: 100;
  padding: 11px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-hover); font-size: 13.5px;
  animation: toast-in .25s var(--ease), toast-out .4s var(--ease) 3s forwards;
}
.toast-ok { border-left: 3px solid var(--success); }
.toast-err { border-left: 3px solid var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

/* 登录页 */
.admin-login { max-width: 380px; margin: 0 auto; padding: 76px 24px 56px; text-align: center; }
.admin-login-mark { display: inline-flex; color: var(--text); margin-bottom: 18px; }
.admin-login-mark .knot { width: 42px; height: 42px; display: block; }
.admin-login h1 { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.admin-login-sub { color: var(--text-muted); font-size: 14px; margin: 8px 0 24px; }
.admin-login .card { text-align: left; }

/* 待办条目：左边一条颜色杠表示紧急度 */
.todo-list { display: flex; flex-direction: column; gap: 10px; }
.todo-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
}
.todo-item.todo-warn { border-left-color: #d97706; }
.todo-item.todo-bad { border-left-color: var(--danger); }
.todo-item.todo-info { border-left-color: var(--accent); }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-weight: 600; font-size: 14.5px; }
.todo-desc { color: var(--text-muted); font-size: 13px; margin-top: 3px; line-height: 1.55; }

.todo-empty { display: flex; align-items: center; gap: 14px; padding: 4px 0; }
.todo-empty-mark {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 17px;
  background: var(--success-bg); color: var(--success);
}
.todo-empty b { font-size: 14.5px; }
.todo-empty p { margin-top: 3px; }

/* 语义色 */
.text-ok { color: var(--success) !important; }
.text-bad { color: var(--danger) !important; }
.text-warn { color: var(--warn) !important; }

/* 管理侧表格 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; font-weight: 500; color: var(--text-subtle); font-size: 12.5px;
  padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.nowrap { white-space: nowrap; }

/* 看板里的紧凑事件流 */
.event-mini { display: flex; flex-direction: column; }
.event-mini-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.event-mini-row:last-child { border-bottom: 0; }
.event-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--text-subtle); }
.event-dot.event-info { background: var(--accent); }
.event-dot.event-warn { background: #d97706; }
.event-dot.event-error { background: var(--danger); }
.event-mini-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-mini-time {
  color: var(--text-subtle); font-size: 12px;
  font-family: var(--font-mono); flex: none;
}

@media (max-width: 720px) {
  .side { position: static; height: auto; overflow-x: auto; overflow-y: hidden; }
  .side-logout { margin-top: 0; }
  .todo-item { flex-direction: column; align-items: flex-start; gap: 10px; }
  .admin-login { padding: 48px 20px 40px; }
}

/* ---------------------------------------------------------------- 会话（双端共用） */
.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.chat-head h1 { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.chat-head-sub { color: var(--text-muted); font-size: 13.5px; margin-top: 5px; }
.chat-head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.chat-head-actions form { margin: 0; }
@media (max-width: 600px) {
  .chat-head { flex-direction: column; }
  .chat-head-actions { flex-wrap: wrap; }
}

.chat-panel {
  display: flex; flex-direction: column;
  height: min(62vh, 560px); padding: 0; overflow: hidden;
}
.chat-stream {
  flex: 1; overflow-y: auto; padding: 20px 20px 6px;
  display: flex; flex-direction: column; gap: 12px;
}
.chat-row { display: flex; }
.chat-row.me { justify-content: flex-end; }
.chat-bubble {
  max-width: 76%; padding: 10px 14px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 14px; line-height: 1.6; word-break: break-word;
}
.chat-row.me .chat-bubble {
  background: var(--accent); border-color: transparent; color: var(--accent-text);
}
.chat-text { white-space: pre-wrap; }
.chat-time {
  display: block; margin-top: 5px; font-size: 11.5px;
  color: var(--text-subtle); font-family: var(--font-mono);
}
.chat-row.me .chat-bubble .chat-time { color: rgb(255 255 255 / .72); }
.chat-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-file {
  display: block; width: 84px; height: 84px;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
}
.chat-file img { width: 100%; height: 100%; object-fit: cover; display: block; }

.chat-form { border-top: 1px solid var(--border); padding: 12px 16px; }
.chat-form-row { display: flex; align-items: flex-end; gap: 8px; }
.chat-input {
  flex: 1; resize: none; min-height: 40px; max-height: 120px;
  line-height: 1.5; padding: 10px 12px;
}
.chat-attach {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-muted); cursor: pointer;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.chat-attach:hover { color: var(--text); background: var(--surface-2); }

/* 管理侧对话：左消息区 + 右信息栏 */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.chat-side { position: sticky; top: 20px; }
.chat-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.chat-page-actions { display: flex; align-items: center; gap: 8px; }
.chat-page-actions form { margin: 0; }

/* 管理侧会话列表 */
.conv-list { display: flex; flex-direction: column; }
.conv-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 4px; border-bottom: 1px solid var(--border);
  color: inherit; text-decoration: none;
}
.conv-row:last-child { border-bottom: 0; }
.conv-row:hover { background: var(--surface-2); text-decoration: none; }
.conv-main { flex: 1; min-width: 0; }
.conv-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.conv-meta { color: var(--text-subtle); font-size: 12.5px; margin-top: 4px; }
.conv-preview {
  color: var(--text-muted); font-size: 13px; margin-top: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.conv-time { color: var(--text-subtle); font-size: 12px; font-family: var(--font-mono); flex: none; }
.conv-row.has-unread .conv-title { color: var(--accent); }

@media (max-width: 900px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-side { position: static; }
}

/* ---------------------------------------------------------------- 管理侧表单与详情 */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 16px 20px;
}
.filter-bar .input { margin: 0; }

.pager {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px 20px; border-top: 1px solid var(--border);
}

.mini-inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.input-mini {
  width: 56px; padding: 5px 8px !important; text-align: center;
}

/* 订单详情：Session 原样 dump 与人工操作 */
.session-wrap { margin-top: 10px; }
.order-event-list { list-style: none; margin: 0; padding: 0; }
.order-event-list > li { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.order-event-list > li:last-child { border-bottom: 0; }
.order-event-list time { color: var(--text-muted); font-size: 12px; line-height: 24px; }
.order-event-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; }
.order-diagnostic { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .order-event-list > li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
.session-dump {
  margin: 0 0 10px; padding: 12px 14px; max-height: 300px; overflow: auto;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-all;
}
.flag-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border);
}
.flag-row:last-child { border-bottom: 0; }
.flag-row form { margin: 0; }

/* 卡池「完整信息」行内展开 */
.card-details { display: inline-block; vertical-align: middle; }
.card-details summary {
  cursor: pointer; user-select: none; list-style: none;
}
.card-details summary::-webkit-details-marker { display: none; }
.card-details-body {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  padding: 10px 12px; margin: 8px 0 0;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 13px; line-height: 1.6;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 卡池：银行卡式卡片 */
.add-panel { margin-bottom: 20px; }
.add-panel > summary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; cursor: pointer; user-select: none; list-style: none;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-muted); font-size: 13.5px;
  transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.add-panel > summary::-webkit-details-marker { display: none; }
.add-panel > summary:hover { color: var(--text); border-color: var(--border-strong); }
.add-panel[open] > summary {
  color: var(--accent); border-color: var(--accent); background: var(--accent-soft);
}
.add-form {
  margin-top: 14px; padding: 20px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.add-form .btn { margin-top: 4px; }

.vcard-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}
.vcard {
  display: flex; flex-direction: column; gap: 15px;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.vcard:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.vcard.is-off { opacity: .62; }
.vcard.is-off:hover { opacity: 1; }

.vcard-top { display: flex; align-items: center; justify-content: space-between; }
.vcard-badges { display: flex; align-items: center; gap: 8px; }
.vcard-state {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted);
}
.vcard-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-subtle); }
.vcard-state.on i { background: var(--success); }
.vcard-state.off i { background: var(--text-subtle); }
.vcard-region { font-size: 12px; color: var(--text-subtle); letter-spacing: .03em; }

/* 卡分组徽标 */
.grp-badge {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 500;
}
.grp-general { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.grp-plus { background: var(--accent-soft); color: var(--accent); }
.grp-pro { background: #f3e8ff; color: #7c3aed; }
html.dark .grp-pro { background: #2e1a4d; color: #c4b5fd; }

.vcard-number {
  font-family: var(--font-mono); font-size: 18px; font-weight: 500;
  letter-spacing: .08em; color: var(--text);
}
.vcard.revealed .vcard-number { font-size: 16.5px; letter-spacing: .05em; }

/* 卡余额行（本身就是编辑器，改完自动保存） */
.vcard-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.vcard-balance .vcard-label { margin-bottom: 0; }
.input-money {
  width: 96px; text-align: right; font-family: var(--font-mono);
}

.vcard-cols { display: flex; flex-wrap: wrap; gap: 22px; }
.vcard-col { min-width: 0; }
.vcard-label {
  display: block; margin-bottom: 3px;
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-subtle);
}
.vcard-val {
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--text);
}

.vcard-meta { font-size: 12.5px; color: var(--text-subtle); line-height: 1.55; }

.vcard-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
}
.vcard-actions .mini-inline { margin: 0; }
.danger-link { color: var(--text-subtle); }
.danger-link:hover { color: var(--danger); background: var(--danger-bg); }

/* 卡内编辑表单 */
.card-edit-form {
  margin: 0 -22px -20px; padding: 18px 22px 20px;
  background: var(--surface-2); border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.card-edit-actions {
  display: flex; gap: 8px; margin-top: 14px;
}

@media (max-width: 720px) {
  .vcard-grid { grid-template-columns: 1fr; }
}
/* Admin pricing: grouped ledger, editable inputs and derived margins. */
.pricing-workspace { max-width: 1800px; margin: 0 auto; }
.pricing-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pricing-eyebrow { display: block; font-size: 11px; letter-spacing: .14em; color: var(--text-muted); margin-bottom: 8px; }
.pricing-heading h1 { font-size: 28px; letter-spacing: -.04em; line-height: 1.25; margin: 0; }
.pricing-heading p { margin: 9px 0 0; color: var(--text-muted); font-size: 13px; }
.pricing-heading-actions { display: flex; gap: 20px; align-items: center; }
.pricing-heading-actions .btn-accent { box-shadow: none; transform: none; }
.pricing-save-state { color: var(--text-subtle); font-size: 12px; }
.pricing-save-state.is-dirty { color: var(--accent); }
.pricing-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; margin: 0 0 22px; }
.pricing-overview > div { display: flex; align-items: baseline; gap: 8px; }
.pricing-overview span, .pricing-overview small { font-size: 12px; color: var(--text-muted); }
.pricing-overview b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.pricing-overview p { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; font-size: 12px; color: var(--text-muted); }
.pricing-overview .pricing-currency { padding: 3px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 10px; letter-spacing: .04em; }
.pricing-sheet { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: clip; box-shadow: 0 4px 20px #18274005; }
.pricing-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; }
.pricing-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: var(--surface-2); overflow-x: auto; max-width: 100%; }
.pricing-tabs button { appearance: none; background: transparent; border: 0; border-radius: 5px; font: inherit; font-size: 12px; padding: 7px 11px; color: var(--text-muted); white-space: nowrap; cursor: pointer; }
.pricing-tabs button.is-active { color: var(--text); background: var(--surface); font-weight: 600; box-shadow: 0 1px 3px #18274014; }
.pricing-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pricing-filters { display: flex; gap: 8px; }
.pricing-filters .input { min-height: 34px; padding: 7px 10px; font-size: 12px; border-radius: 6px; width: 152px; }
.pricing-filters select.input { width: 105px; }
.pricing-table-hint { display: flex; justify-content: space-between; gap: 12px; padding: 0 20px 14px; font-size: 11px; color: var(--text-muted); }
.pricing-locked-dot { display: inline-block; width: 6px; height: 6px; border-radius: 2px; background: var(--text-subtle); margin: 0 3px 1px 0; }
.pricing-scroll { overflow: auto; max-height: min(70vh, 850px); scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.pricing-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pricing-matrix { width: 100%; min-width: 1240px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
.pricing-plan-col { width: 156px; }
.pricing-region-col { width: 112px; }
.pricing-cost-col { width: auto; }
.pricing-total-col { width: 95px; }
.pricing-value-col { width: 108px; }
.pricing-matrix th, .pricing-matrix td { border: 0; border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: right; vertical-align: middle; }
.pricing-matrix thead th { background: var(--surface-2); font-size: 12px; color: var(--text-muted); font-weight: 500; text-align: center; white-space: nowrap; position: sticky; top: 0; z-index: 4; text-transform: none; letter-spacing: 0; }
.pricing-matrix thead tr:first-child th { height: 42px; border-top: 1px solid var(--border); }
.pricing-matrix thead tr:nth-child(2) th { top: 42px; height: 36px; font-size: 11px; }
.pricing-matrix thead th[rowspan] { height: 78px; }
.pricing-matrix thead th small { display: block; font-size: 10px; font-weight: 400; color: var(--text-subtle); margin-top: 5px; }
.pricing-matrix .pricing-cost-heading { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.pricing-cost-heading span { font-size: 10px; margin-left: 4px; color: var(--text-subtle); }
.pricing-matrix .pricing-frozen-plan { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding-left: 18px; }
.pricing-matrix .pricing-frozen-region { position: sticky; left: 156px; z-index: 2; background: var(--surface); box-shadow: 1px 0 0 var(--border); text-align: left; }
.pricing-matrix thead .pricing-frozen-plan, .pricing-matrix thead .pricing-frozen-region { background: var(--surface-2); z-index: 6; }
.pricing-account { vertical-align: top !important; padding-top: 22px !important; }
.pricing-account b { display: block; font-size: 14px; color: var(--text); line-height: 1.6; font-weight: 600; }
.pricing-account-category { display: block; font-size: 10px; color: var(--text-subtle); margin-bottom: 5px; }
.pricing-unit { display: block; font-size: 11px; color: var(--text-muted); margin-top: 8px; font-weight: 400; }
.pricing-region { font-weight: 400; }
.pricing-region small { display: block; font-size: 10px; color: var(--text-subtle); margin-top: 4px; }
.pricing-matrix tbody tr { height: 65px; }
.pricing-matrix tbody + tbody tr:first-child > * { border-top: 6px solid var(--surface-2); }
.pricing-matrix tbody tr:hover td { background: color-mix(in srgb, var(--accent) 2%, var(--surface)); }
.pricing-matrix tbody tr:hover .pricing-frozen-region { background: var(--surface-2); }
.pricing-matrix td.pricing-total-cell, .pricing-matrix th.pricing-total-heading { background: color-mix(in srgb, var(--surface-2) 65%, var(--surface)); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.pricing-total-cell output { display: block; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.pricing-total-cell small, .pricing-sale-cell small { display: block; font-size: 9px; color: var(--text-subtle); margin-top: 4px; padding-right: 6px; }
.pricing-input { width: 100%; min-width: 0; padding: 7px 5px; border: 1px solid transparent; border-bottom-color: var(--border); border-radius: 4px; text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text); background: transparent; outline: none; transition: border-color .15s, background .15s; }
.pricing-input::placeholder { color: var(--text-subtle); opacity: .8; }
.pricing-input:hover { border-color: var(--border-strong); background: var(--surface); }
.pricing-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 12%, transparent); background: var(--surface); }
.pricing-input.is-invalid { border-color: #dc3f4f; background: #dc3f4f08; }
.pricing-sale-cell .pricing-input { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 4%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 15%, var(--border)); }
.pricing-matrix .pricing-sale-heading { color: var(--accent); }
.pricing-matrix .pricing-discount-cell, .pricing-matrix .pricing-discount-heading { border-left: 1px solid var(--border); }
.pricing-profit { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 12px; color: var(--text-subtle); }
.pricing-profit.is-gain { color: #178268; }
.pricing-profit.is-loss { color: #d04a55; }
.dark .pricing-profit.is-gain { color: #66c7a8; }
.dark .pricing-profit.is-loss { color: #ff8994; }
.pricing-matrix tr.is-edited .pricing-region { box-shadow: inset 3px 0 var(--accent), 1px 0 0 var(--border); }
.pricing-sheet-footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; color: var(--text-subtle); font-size: 11px; border-top: 1px solid var(--border); }
.pricing-empty { padding: 48px; text-align: center; color: var(--text-muted); }
.pricing-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: 24px 4px 0; }
.pricing-formulas h2 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.pricing-formulas p { display: flex; gap: 16px; font-size: 12px; margin: 7px 0; }
.pricing-formulas p b { font-weight: 500; }
.pricing-formulas p span { color: var(--text-muted); }
.pricing-formulas small, .pricing-sale-help { display: block; color: var(--text-subtle); font-size: 11px; line-height: 1.8; margin-top: 12px; }
.pricing-unit-settings label { display: block; font-size: 12px; margin-bottom: 8px; }
.pricing-unit-settings .input { max-width: 240px; padding: 8px 10px; font-size: 12px; }
.pricing-unit-settings .hint { font-size: 11px; line-height: 1.8; color: var(--text-subtle); margin-top: 9px; }
.pricing-errors { padding: 14px 18px; background: #d04a5510; border: 1px solid #d04a5540; border-radius: 10px; margin-bottom: 20px; color: var(--text); font-size: 12px; }
.pricing-errors ul { margin: 8px 0 0; padding-left: 18px; }
.pricing-workspace [hidden] { display: none !important; }
.pricing-matrix .pricing-category-divider tr { height: 46px; }
.pricing-matrix .pricing-category-divider th { text-align: left; padding: 12px 18px; background: var(--surface-2); border-top: 1px solid var(--border); }
.pricing-category-title { position: sticky; left: 18px; width: max-content; display: flex; align-items: center; gap: 12px; }
.pricing-category-title > span { font-size: 12px; font-weight: 600; color: var(--text); }
.pricing-category-title small { color: var(--text-subtle); font-size: 10px; font-weight: 400; }
.pricing-matrix .pricing-category-divider + .pricing-product tr:first-child > * { border-top: 0; }
.product-listing { display: flex; align-items: center; gap: 7px; width: max-content; position: relative; margin-top: 8px; cursor: pointer; }
.product-listing-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.product-listing-track { width: 30px; height: 18px; border-radius: 20px; background: var(--border-strong); transition: background .18s; flex: none; }
.product-listing-track::after { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin: 3px; transition: transform .18s; }
.product-listing-input:checked + .product-listing-track { background: var(--accent); }
.product-listing-input:checked + .product-listing-track::after { transform: translateX(12px); }
.product-listing-input:focus-visible + .product-listing-track { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-listing-label { font-size: 11px; font-weight: 500; color: var(--accent); }
.product-listing-input:not(:checked) ~ .product-listing-label { color: var(--text-muted); }
.pricing-region-info { display: flex; align-items: center; gap: 6px; }
.pricing-region-info small { margin: 0; }
.plan-card[hidden], .plan-variant[hidden], .plan-variants[hidden], .catalogue-empty[hidden], [data-role="unavailable"][hidden] { display: none !important; }
.catalogue-empty { grid-column: 1 / -1; width: 100%; text-align: center; padding: 70px 24px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.catalogue-empty h2 { font-size: 20px; margin: 0 0 12px; color: var(--text); }
.catalogue-empty p { font-size: 14px; margin-bottom: 20px; }
@media (prefers-reduced-motion: reduce) {
  .product-listing-track, .product-listing-track::after { transition: none; }
}
@media (max-width: 900px) {
  .pricing-heading { align-items: flex-start; gap: 12px; }
  .pricing-heading h1 { font-size: 24px; }
  .pricing-heading-actions { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  .pricing-heading-actions .btn { white-space: nowrap; }
  .pricing-overview { gap: 14px 22px; }
  .pricing-overview p { flex-basis: 100%; margin-left: 0; }
  .pricing-toolbar { padding: 14px 12px; }
  .pricing-tabs { width: 100%; }
  .pricing-filters { width: 100%; }
  .pricing-filters .input { flex: 1; width: 0; }
  .pricing-filters select.input { width: 105px; flex: none; }
  .pricing-table-hint { padding: 0 12px 12px; flex-wrap: wrap; font-size: 10px; }
  .pricing-matrix { min-width: 1160px; }
  .pricing-plan-col { width: 132px; }
  .pricing-region-col { width: 108px; }
  .pricing-matrix .pricing-frozen-region { left: 132px; }
  .pricing-matrix .pricing-frozen-plan { padding-left: 12px; }
  .pricing-account b { font-size: 13px; }
  .pricing-bottom { grid-template-columns: 1fr; gap: 20px; }
  .pricing-sheet-footer { padding: 12px; flex-wrap: wrap; font-size: 10px; }
}

/* Private long text and attachment conversations */
.chat-long{max-width:100%;min-width:0}.chat-long summary{cursor:pointer;font-weight:600;padding:4px 0;font-size:13px}.chat-long summary span{font-weight:400;margin-left:8px}.chat-long .chat-text{max-height:320px;overflow:auto;margin-top:12px;font-family:ui-monospace,monospace;font-size:12px;overflow-wrap:anywhere}.chat-text-actions{display:flex;align-items:center;gap:12px;margin-top:10px;flex-wrap:wrap}.chat-document{display:flex;align-items:center;gap:12px;max-width:100%;text-decoration:none;color:inherit;border:1px solid var(--border);border-radius:9px;padding:12px;background:var(--surface)}.chat-document>span:nth-child(2){overflow-wrap:anywhere;min-width:0}.chat-document small{display:block;font-size:11px;color:var(--text-muted);margin-top:4px}.document-icon{font:600 11px ui-monospace,monospace;padding:12px 7px;background:var(--surface-2);border-radius:6px}.chat-files{min-width:0;max-width:100%;flex-wrap:wrap}.chat-bubble{min-width:0;max-width:90%}.chat-text{overflow-wrap:anywhere}.chat-counter{display:block;font-size:11px;margin:8px 0}.chat-send-error{font-size:13px;color:var(--bad,#c2413b);margin:8px 0 0}.attachment-preview{display:flex;align-items:center;gap:9px;border:1px solid var(--border);padding:7px 10px;border-radius:8px;max-width:100%;font-size:12px}.attachment-preview>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-preview img{width:32px;height:32px;object-fit:cover;border-radius:4px}.attachment-preview>b{font-size:10px;color:var(--accent)}.attachment-preview button{background:none;border:0;cursor:pointer;color:var(--text-muted);font-size:20px}.chat-input{max-height:220px;overflow:auto}.chat-layout,.chat-panel,.chat-side{min-width:0}

.customer-help-links{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:center;font-size:13px}.voucher-box [data-copy-receipt]{margin-top:8px}
