/* ============================================================
   Token UI Preview · 京枢智算 · API
   静态设计预览样式（无外部字体 / 无框架 / 资源全部本地）
   ============================================================ */

:root {
  --white: #ffffff;
  --canvas: #f6f8fb;
  --ink: #121620;
  --ink-2: #46505f;
  --muted: #667082;
  --line: #e6eaf2;
  --line-soft: #edf0f6;
  --blue: #0b4fe6;
  --blue-deep: #0736be;
  --blue-bright: #0b63f5;
  --blue-soft: #eef4ff;
  --blue-line: #dce7ff;
  --red: #b3372c;
  --red-soft: #fdf2f0;
  --radius: 16px;

  /* ---------- 动效令牌（JS 从这些变量读取，集中维护） ---------- */
  --dur-press: 90ms;
  --dur-release: 220ms;
  --dur-collapse: 350ms;
  --dur-snap: 180ms;
  --dur-check: 360ms;
  --dur-lightflow: 1000ms;
  --dur-blur-text: 650ms;
  --stagger-blur-text: 32ms;
  --blur-text-radius: 10px;
  --dur-modal: 180ms;
  --dur-chevron: 350ms;
  --ease-press: cubic-bezier(0.34, 0.02, 0.26, 1);
  --ease-release-up: cubic-bezier(0.22, 0.9, 0.3, 1);
  --ease-release-settle: cubic-bezier(0.4, 0.05, 0.5, 1);
  --ease-collapse-open: cubic-bezier(0.16, 0.84, 0.3, 1);
  --ease-collapse-close: cubic-bezier(0.55, 0.06, 0.68, 0.19);
  --ease-snap: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-check: cubic-bezier(0.3, 0.7, 0.4, 1);
  --ease-lightflow: cubic-bezier(0.22, 0.8, 0.2, 1);
  --ease-modal: cubic-bezier(0.22, 0.8, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(11, 79, 230, 0.14);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  vertical-align: middle;
}

/* ---------- Logo 裁切（同一素材，按非透明内容区取景） ---------- */

.logo-mark {
  position: relative;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 337 / 582;
  overflow: hidden;
}

.logo-mark img {
  position: absolute;
  top: calc(-265 / 582 * 100%);
  left: calc(-459 / 337 * 100%);
  width: calc(1254 / 337 * 100%);
  height: auto;
  max-width: none;
  user-select: none;
}

/* ---------- 通用按钮 / 状态 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  /* 不包含 transform：按下/回弹交给 motion.js 的 WAAPI，避免过渡与关键帧抢同一属性 */
  transition: background-color 0.16s var(--ease-press),
    border-color 0.16s var(--ease-press), color 0.16s var(--ease-press),
    box-shadow 0.16s var(--ease-press);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0a46d6 0%, #0b5ef2 100%);
  box-shadow: 0 10px 24px rgba(10, 70, 214, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #093fc6 0%, #0a55e0 100%);
  box-shadow: 0 14px 30px rgba(10, 70, 214, 0.24);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s var(--ease-press);
}

.btn-primary:hover svg {
  transform: translateX(2px);
}

.btn-ghost {
  color: var(--ink-2);
  background: var(--white);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--blue);
  border-color: var(--blue-line);
  background: #fafcff;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 9px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: #f4f8ff;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 79, 230, 0.1);
}

.status-pill-quiet {
  height: 28px;
  font-size: 11.5px;
}

.skip-link {
  position: absolute;
  top: -64px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(12, 22, 45, 0.12);
  transition: top 0.15s var(--ease-press);
}

.skip-link:focus {
  top: 16px;
}

/* ============================================================
   首页
   ============================================================ */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--white);
}

.site > main {
  flex: 1;
}

/* ---------- 首屏：主区 / 辅区 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background: radial-gradient(
    760px 380px at 24% -12%,
    rgba(11, 79, 230, 0.09),
    rgba(255, 255, 255, 0) 70%
  );
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
      to right,
      rgba(18, 36, 70, 0.045) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(18, 36, 70, 0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(
    ellipse 58% 64% at 26% 42%,
    #000 0%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 58% 64% at 26% 42%,
    #000 0%,
    transparent 72%
  );
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero-main {
  max-width: 560px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand-lockup-mark {
  width: 27.79px; /* 48 * 337 / 582 */
  height: 48px;
}

.brand-lockup-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-lockup-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.brand-lockup-product {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.hero h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(34px, 3.5vw, 46px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.012em;
}

.hero-copy {
  max-width: 500px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.01em;
}

/* ---------- 辅区：接口 / 用量示意（低对比，不抢主区） ---------- */

.hero-preview {
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.preview-window {
  overflow: hidden;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 28, 58, 0.06);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
}

.preview-dots {
  display: inline-flex;
  gap: 5px;
}

.preview-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dfe5ef;
}

.preview-bar-title {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.preview-body {
  padding: 18px 18px 16px;
}

.preview-code {
  margin: 0 0 18px;
  padding: 14px 16px;
  overflow-x: auto;
  background: #f6f8fc;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  color: #7b8698;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 11px;
  line-height: 1.8;
  white-space: pre;
}

.pc-comment {
  color: #9aa4b4;
}

.preview-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 64px;
  padding: 0 2px;
}

.preview-bars i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #dbe4f4, #eef2f9);
}

.preview-bars i:nth-child(1) { height: 32%; }
.preview-bars i:nth-child(2) { height: 46%; }
.preview-bars i:nth-child(3) { height: 39%; }
.preview-bars i:nth-child(4) { height: 61%; }
.preview-bars i:nth-child(5) { height: 52%; }
.preview-bars i:nth-child(6) { height: 73%; }

.preview-caption {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.preview-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- Features ---------- */

.features {
  padding: 8px 0 92px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.feature {
  padding: 38px 34px 0;
  border-left: 1px solid var(--line-soft);
}

.feature:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature:last-child {
  padding-right: 0;
}

.feature-index {
  display: block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feature p {
  max-width: 320px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  text-wrap: balance;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 30px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.footer-company {
  color: var(--ink-2);
  letter-spacing: 0.01em;
  text-align: center;
}

/* ============================================================
   控制台
   ============================================================ */

.app {
  --sidebar-w: 264px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--canvas);
}

/* 页面级 header 之后才是侧栏 + 内容；header 宽度按 viewport 走，不受侧栏影响。 */
.app-body {
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.console-page-header {
  flex: 0 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: var(--sidebar-w);
  height: 100vh;
  padding: 26px 20px 22px;
  background: var(--white);
  border-right: 1px solid var(--line);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 2px 6px;
}

.sidebar-mark {
  width: 20.84px; /* 36 * 337 / 582 */
  height: 36px;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sidebar-product {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sidebar-company {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5c6677;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-press), color 0.15s var(--ease-press);
}

.nav-item svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: #8b95a6;
  transition: color 0.15s var(--ease-press);
}

.nav-item:hover {
  background: #f5f8fd;
  color: var(--ink);
}

.nav-item:hover svg {
  color: #5c6677;
}

.nav-item.is-active {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 500;
}

.nav-item.is-active svg {
  color: var(--blue);
}

.nav-item:focus-visible {
  outline-offset: 2px;
}

/* ---------- 侧栏拖拽手柄（仅桌面；手机隐藏） ---------- */

.sidebar-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  bottom: 0;
  z-index: 6;
  width: 9px;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.sidebar-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: transparent;
  transition: background-color 0.12s var(--ease-press);
}

.sidebar-resizer:hover::before,
.sidebar-resizer:focus-visible::before,
body.is-resizing-sidebar .sidebar-resizer::before {
  background: var(--blue);
  opacity: 0.55;
}

.sidebar-resizer:focus-visible {
  outline-offset: -3px;
}

body.is-resizing-sidebar {
  cursor: col-resize;
  user-select: none;
}

.app-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.crumb-root {
  color: var(--muted);
}

.crumb-sep {
  color: #c4cbd6;
}

#crumb-current {
  color: var(--ink-2);
}

.console-main {
  width: 100%;
  max-width: 1120px;
  padding: 36px 40px 56px;
}

.page-head {
  margin-bottom: 22px;
}

.page-head h1 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-head p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.view-title:focus {
  outline: none;
}

/* ---------- 指标 ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric {
  min-width: 0;
  padding: 22px 24px;
}

.metric + .metric {
  border-left: 1px solid var(--line-soft);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.metric-value {
  display: block;
  margin: 10px 0 4px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.metric-value.is-empty {
  color: #b6becb;
  font-weight: 500;
}

.metric-note {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 面板 ---------- */

.panel {
  padding: 22px 24px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.panel-head h2 {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.panel-hint {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.panel-copy {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  text-wrap: pretty;
}

.panel-footnote {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin-top: 16px;
}

/* ---------- 空状态 ---------- */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 32px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.empty-icon svg {
  width: 22px;
  height: 22px;
}

.empty-title {
  margin-bottom: 5px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.empty-desc {
  max-width: 320px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
  text-wrap: pretty;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- 接入说明与测试配置（折叠卡） ---------- */

.panel-collapse {
  margin-top: 16px;
}

.collapse-heading {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.collapse-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.collapse-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
  transition: transform var(--dur-chevron) var(--ease-collapse-close);
}

.collapse-trigger[aria-expanded="true"] .collapse-chevron {
  transform: rotate(180deg);
  transition-timing-function: var(--ease-collapse-open);
}

.collapse-inner {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.config-list {
  display: flex;
  flex-direction: column;
}

.config-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
}

.config-row:first-child {
  padding-top: 0;
}

.config-key {
  flex: 0 0 auto;
  color: var(--muted);
}

.config-val {
  overflow-wrap: anywhere;
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 11.5px;
  text-align: right;
}

.code-block {
  margin: 14px 0 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: #f7f9fc;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.code-block code {
  color: #2c3442;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 11.5px;
  line-height: 1.9;
  white-space: pre;
}

.code-comment {
  color: var(--muted);
}

.test-settings {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.settings-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.switch-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.switch-box {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #c6cfdd;
  border-radius: 6px;
  background: var(--white);
  transition: background-color var(--dur-press) var(--ease-press),
    border-color var(--dur-press) var(--ease-press);
}

.switch-input:checked + .switch-box {
  background: var(--blue);
  border-color: var(--blue);
}

.switch-input:focus-visible + .switch-box {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.switch-check {
  width: 13px;
  height: 13px;
  color: #ffffff;
  opacity: 0;
}

.switch-input:checked + .switch-box .switch-check {
  opacity: 1;
}

.switch-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.switch-label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.switch-desc {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.settings-note {
  margin-top: 12px;
  padding-left: 32px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

/* ---------- 账户 ---------- */

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: start;
  gap: 16px;
}

.info-list {
  margin-top: 8px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.7;
}

.info-row:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.info-row dt {
  flex: 0 0 auto;
  color: var(--muted);
}

.info-row dd {
  color: var(--ink-2);
  text-align: right;
}

.balance-label {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.balance-amount {
  margin: 8px 0 2px;
  color: #b6becb;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.console-footnote {
  margin-top: 34px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ============================================================
   预览说明面板
   ============================================================ */

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, 0.38);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 30px 30px 26px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(8, 18, 45, 0.24);
  animation: modal-in var(--dur-modal) var(--ease-modal);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  background: #f4f6fa;
  color: var(--ink-2);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.modal-icon svg {
  width: 20px;
  height: 20px;
}

.modal-card h2 {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.modal-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  text-wrap: pretty;
}

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

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 1080px) {
  .hero-grid {
    gap: 44px;
  }

  .console-main {
    padding: 32px;
  }

  .app-topbar {
    padding: 0 32px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-main {
    max-width: 640px;
  }

  .hero-preview {
    justify-self: start;
    max-width: 560px;
  }

  .overview-grid,
  .account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    padding: 26px 0 0;
    border-left: 0;
  }

  .feature + .feature {
    margin-top: 26px;
    border-top: 1px solid var(--line-soft);
  }

  .feature:first-child {
    padding-top: 30px;
  }

  .feature p {
    max-width: none;
  }

  .app {
    display: block;
  }

  .app-body {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-resizer {
    display: none;
  }

  .sidebar-brand {
    padding: 0 4px;
  }

  .sidebar-mark {
    width: 17.36px; /* 30 * 337 / 582 */
    height: 30px;
  }

  .sidebar-company {
    font-size: 9.5px;
  }

  .app-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
  }

  .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    height: auto;
    min-height: 52px;
    padding: 7px 2px;
    border-radius: 9px;
    font-size: 10.5px;
    letter-spacing: 0;
    text-align: center;
  }

  .nav-item svg {
    width: 17px;
    height: 17px;
  }

  .app-topbar {
    height: 52px;
    padding: 0 16px;
  }

  .crumb {
    font-size: 11.5px;
  }

  .console-main {
    padding: 24px 16px 40px;
  }

  .page-head {
    margin-bottom: 18px;
  }

  .page-head h1 {
    font-size: 22px;
  }

  .page-head p {
    font-size: 12.5px;
  }

  .metric {
    padding: 16px 14px;
  }

  .metric-label {
    font-size: 11px;
  }

  .metric-value {
    margin: 8px 0 3px;
    font-size: 26px;
  }

  .metric-note {
    font-size: 9.5px;
  }

  .panel {
    padding: 18px 18px 16px;
  }

  .console-footnote {
    margin-top: 26px;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .status-pill {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
  }

  .hero {
    padding: 30px 0 44px;
  }

  .brand-lockup {
    margin-bottom: 24px;
  }

  .brand-lockup-mark {
    width: 23.15px; /* 40 * 337 / 582 */
    height: 40px;
  }

  .brand-lockup-name {
    font-size: 13.5px;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 10.5px;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    margin-bottom: 16px;
    font-size: clamp(30px, 8.2vw, 38px);
  }

  .hero-copy {
    font-size: 14.5px;
    line-height: 1.85;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 24px;
  }

  .btn {
    height: 44px;
    padding: 0 22px;
  }

  .btn-sm {
    height: 36px;
    padding: 0 16px;
  }

  .hero-note {
    font-size: 11px;
  }

  .preview-body {
    padding: 16px 14px 14px;
  }

  .preview-code {
    margin-bottom: 14px;
    font-size: 10.5px;
  }

  .preview-bars {
    height: 54px;
  }

  .features {
    padding-bottom: 56px;
  }

  .site-footer {
    padding: 20px 0 26px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  .config-row {
    gap: 14px;
  }

  .config-val {
    text-align: left;
  }

  .code-block {
    padding: 14px 14px;
  }

  .settings-note {
    padding-left: 0;
  }

  .modal {
    padding: 16px;
  }

  .modal-card {
    padding: 26px 22px 22px;
  }
}

@media (max-width: 400px) {
  .sidebar-company {
    max-width: 210px;
    line-height: 1.35;
  }

  .metric {
    padding: 14px 12px;
  }

  .metric-value {
    font-size: 24px;
  }

  .nav-item {
    font-size: 10px;
  }

  .brand-lockup-name {
    font-size: 12.5px;
  }
}

/* ============================================================
   减少动态效果：CSS 侧兜底；JS 侧由 motion.js 的
   prefers-reduced-motion 分支直接落位，不播放动画。
   ============================================================ */

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

/* ============================================================
   本地演示 MVP（聊天 / 凭证 / 用量 / 账户）
   ============================================================ */

/* ---------- 通用演示标记 ---------- */

.demo-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f6fa;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.badge-on {
  background: #edf9f2;
  border-color: #d3ecdf;
  color: #0b6b46;
}

.badge-off {
  background: #f4f6fa;
  border-color: var(--line);
  color: var(--muted);
}

.badge-demo {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: var(--blue);
}

.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  padding: 11px 14px;
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  background: #f8fbff;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.75;
}

.demo-banner-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(11, 79, 230, 0.12);
}

.storage-warning {
  margin: -6px 0 18px;
  padding: 9px 12px;
  border: 1px solid #f0d3cf;
  border-radius: 10px;
  background: var(--red-soft);
  color: #8d2d23;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- 指标适配 4 项 ---------- */

.metrics .metric-value {
  font-size: clamp(22px, 2.1vw, 30px);
}

/* ---------- 用量筛选 ---------- */

.filter-bar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.filter-field select {
  height: 36px;
  min-width: 150px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12.5px;
}

.segmented {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #f3f6fb;
}

.seg-btn {
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.16s var(--ease-press), color 0.16s var(--ease-press);
}

.seg-btn:hover {
  color: var(--ink-2);
}

.seg-btn.is-active {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(16, 28, 58, 0.08);
}

.filter-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

/* ---------- 图表 ---------- */

.bar-chart {
  padding-top: 14px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 118px;
  border-bottom: 1px solid var(--line-soft);
}

.chart-column {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.chart-bar {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #b7cffa, #dfe9fb);
}

.chart-labels {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.chart-label {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 9.5px;
  text-align: center;
  white-space: nowrap;
}

.chart-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.chart-empty {
  padding: 30px 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* ---------- 表格 ---------- */

.table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  white-space: nowrap;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table-compact {
  min-width: 0;
}

.cell-mono {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.overview-recent {
  margin-top: 16px;
}

.empty-compact {
  padding: 24px 12px;
}

/* ---------- 凭证 ---------- */

.credential-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.credential-row {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
}

.credential-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.credential-name {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.credential-key-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.credential-key {
  padding: 5px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #f4f7fc;
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  word-break: break-all;
}

.credential-key-hint {
  color: var(--muted);
  font-size: 10.5px;
}

.credential-meta {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.credential-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.btn-danger {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(155, 45, 35, 0.18);
}

.btn-danger:hover {
  background: #9d2f25;
  border-color: #9d2f25;
}

.btn-ghost.btn-danger-ghost {
  color: var(--red);
  border-color: #f0d3cf;
}

.btn-ghost.btn-danger-ghost:hover {
  background: var(--red-soft);
  border-color: #e8beb8;
  color: var(--red);
}

/* ---------- 账户 / 弹窗表单 ---------- */

#account-balance {
  color: var(--ink);
}

.modal-card .field-error {
  margin: 6px 0 0;
  color: var(--red);
}

.modal-card form .modal-actions {
  margin-top: 16px;
}

.limit-form {
  margin-top: 6px;
}

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.field-input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.inline-control {
  display: flex;
  gap: 8px;
}

.inline-control .field-input {
  flex: 1;
  min-width: 0;
}

.field-error {
  margin-top: 6px;
  color: var(--red);
  font-size: 11.5px;
}

.field-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.modal-card .field-hint {
  margin-bottom: 0;
}

/* ---------- 聊天：模型选择 / 光流 ---------- */

.chat-stage {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.stage-head h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.stage-copy {
  max-width: 720px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

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

.model-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.16s var(--ease-press), background-color 0.16s var(--ease-press),
    box-shadow 0.16s var(--ease-press);
}

.model-card:hover {
  border-color: var(--blue-line);
  background: #fbfdff;
}

.model-card.is-selected {
  border-color: var(--blue);
  background: #f6faff;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.model-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.model-desc {
  color: var(--ink-2);
  font-size: 13px;
}

.model-meta {
  color: var(--muted);
  font-size: 11px;
}

.lightflow {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--blue-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  box-shadow: 0 18px 45px -34px rgba(16, 58, 150, 0.55);
}

.lightflow-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Light Tunnel 局部铺开：浅色底 + 蓝白纵深光束，不做整页深色背景 */
.light-tunnel-container {
  position: relative;
  width: 100%;
  height: 158px;
  overflow: hidden;
  border: 1px solid rgba(30, 82, 196, 0.14);
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 50% 48%, #ffffff 0%, #f2f7ff 48%, #e7f0ff 100%);
}

.light-tunnel-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.lightflow-fallback {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightflow.has-tunnel .lightflow-fallback {
  display: none;
}

.lightflow.is-fallback .lightflow-fallback {
  display: flex;
}

.lightflow.is-fallback .light-tunnel-container {
  display: none;
}

.lightflow-svg {
  display: block;
  width: min(420px, 100%);
  height: auto;
}

.lightflow-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px;
}

.lightflow-copy {
  min-width: 0;
}

.lightflow-title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.lightflow-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

.lf-stream {
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.85;
}

.lf-out {
  stroke: var(--blue-bright);
  stroke-width: 1.6;
  stroke-dasharray: 4 6;
  opacity: 0.35;
}

.lf-source {
  fill: var(--blue-soft);
  stroke: var(--blue);
  stroke-width: 1.4;
}

.lf-core {
  fill: var(--blue);
}

.lf-ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.2;
  opacity: 0.55;
}

.lf-core,
.lf-ring,
.lf-source {
  transform-box: fill-box;
  transform-origin: center;
}

/* ---------- 聊天工作区 ---------- */

.chat-workspace {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
}

.session-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 10px;
}

.session-head h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
}

.session-item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.session-item.is-active {
  border-color: var(--blue-line);
  background: var(--blue-soft);
}

.session-switch {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.session-title {
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-meta {
  color: var(--muted);
  font-size: 10.5px;
}

.session-delete {
  flex: 0 0 auto;
  width: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.session-delete:hover {
  background: var(--red-soft);
  color: var(--red);
}

.session-note {
  margin-top: auto;
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: min(560px, calc(100vh - 230px));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.conversation-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.conversation-title-wrap {
  min-width: 0;
}

.conversation-head h2 {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.conversation-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.message-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  max-height: 52vh;
  padding: 18px 20px;
  overflow-y: auto;
  background: #fcfdff;
}

.msg {
  max-width: min(640px, 92%);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.msg-user {
  align-self: flex-end;
  border-color: var(--blue-line);
  background: var(--blue-soft);
}

.msg-assistant {
  align-self: flex-start;
}

.msg-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.msg-author {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.msg-text {
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.msg-text.is-streaming::after {
  content: "▍";
  margin-left: 2px;
  color: var(--blue);
  animation: caret-blink 1s steps(2, start) infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.msg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.msg-time {
  color: var(--muted);
  font-size: 10.5px;
}

.msg-stopped {
  color: #8a5a12;
  font-size: 10.5px;
}

.msg-actions {
  display: flex;
  gap: 4px;
}

.msg-action {
  padding: 2px 5px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--blue);
  font-size: 11px;
  cursor: pointer;
}

.msg-action:hover {
  background: var(--blue-soft);
}

.example-prompts {
  padding: 12px 20px;
  border-top: 1px solid var(--line-soft);
}

.example-title {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
}

.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.16s var(--ease-press), color 0.16s var(--ease-press);
}

.prompt-chip:hover {
  border-color: var(--blue-line);
  background: #fbfdff;
  color: var(--blue);
}

.composer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--line-soft);
  background: var(--white);
}

.composer-input {
  width: 100%;
  min-height: 64px;
  max-height: 96px;
  padding: 11px 12px;
  resize: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.7;
}

.composer-input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.composer-hint {
  color: var(--muted);
  font-size: 10.5px;
}

.composer-actions {
  display: flex;
  gap: 8px;
}

/* ---------- 轻提示 ---------- */

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}

.toast {
  padding: 10px 14px;
  border-radius: 10px;
  background: #121620;
  color: #ffffff;
  font-size: 12.5px;
  line-height: 1.6;
  box-shadow: 0 12px 30px rgba(8, 18, 45, 0.22);
  animation: toast-in 0.18s var(--ease-modal);
}

.toast-ok {
  background: #0f3f8f;
}

.toast-warn {
  background: #74500f;
}

.toast-error {
  background: #8b2f25;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- MVP 响应式 ---------- */

@media (max-width: 1080px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric,
  .metric:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .metric:nth-child(1),
  .metric:nth-child(2) {
    border-top: 0;
  }

  .metric:nth-child(even) {
    border-left: 1px solid var(--line-soft);
  }

  .chat-workspace {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .conversation-head {
    padding: 14px 16px;
  }

  .message-list {
    padding: 16px;
  }

  .composer {
    padding: 12px 16px 14px;
  }
}

@media (max-width: 860px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric,
  .metric:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .metric:nth-child(1),
  .metric:nth-child(2) {
    border-top: 0;
  }

  .metric:nth-child(even) {
    border-left: 1px solid var(--line-soft);
  }

  .chat-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .session-panel {
    order: 1;
    padding: 12px;
  }

  .session-list {
    flex-direction: row;
    max-height: none;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .session-item {
    flex: 0 0 auto;
    max-width: 210px;
    min-width: 150px;
  }

  .session-note {
    display: none;
  }

  .conversation {
    order: 2;
    min-height: 480px;
  }

  .message-list {
    max-height: 46vh;
  }

  .filter-actions {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .demo-banner {
    font-size: 11.5px;
  }

  .metrics .metric-value {
    font-size: 24px;
  }

  .model-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-stage {
    padding: 18px 16px;
  }

  .lightflow-inner {
    gap: 8px;
  }

  .light-tunnel-container {
    height: 128px;
  }

  .lightflow-bar {
    align-items: flex-start;
  }

  .conversation {
    min-height: 420px;
  }

  .conversation-head {
    flex-direction: column;
  }

  .conversation-actions {
    width: 100%;
  }

  .message-list {
    max-height: 44vh;
    padding: 14px;
  }

  .msg {
    max-width: 100%;
  }

  .example-prompts,
  .composer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .filter-bar {
    padding: 12px 14px;
  }

  .filter-field,
  .filter-field select {
    width: 100%;
  }

  .segmented {
    width: 100%;
  }

  .seg-btn {
    flex: 1;
  }

  .filter-actions {
    width: 100%;
  }

  .filter-actions .btn {
    flex: 1;
  }

  .data-table {
    min-width: 520px;
  }

  .toast-region {
    right: 14px;
    bottom: 14px;
  }

  .credential-row {
    padding: 12px;
  }
}

@media (max-width: 400px) {
  .nav-item {
    font-size: 9.5px;
  }

  .composer-input {
    min-height: 58px;
  }
}

/* ============================================================
   TOKEN-MVP-003 返修 r2：桌面聊天工作区按视口约束高度
   目标：1280x720 / 1440x900 / 983x704（zoom 等效）聊天输入框与发送按钮
   初始完整在视口内；消息区 flex min-height:0 内部滚动，长会话不撑高。
   手机（<861px）不套用，保留正常页面滚动。
   ============================================================ */

@media (min-width: 861px) {
  /* 新增页面级 header 后，聊天工作区应约束在 header 下方的剩余视口内。 */
  body.is-chat-page .app {
    height: 100vh;
    min-height: 0;
  }

  body.is-chat-page .app-body {
    flex: 1;
    min-height: 0;
  }

  body.is-chat-page .app-main {
    height: auto;
    min-height: 0;
  }

  body.is-chat-page .sidebar {
    height: 100%;
  }

  body.is-chat-page .console-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 24px;
  }

  body.is-chat-page .demo-banner,
  body.is-chat-page .page-head,
  body.is-chat-page .chat-stage {
    flex: 0 0 auto;
  }

  body.is-chat-page .page-chat {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }

  body.is-chat-page .chat-workspace {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
  }

  body.is-chat-page .session-panel,
  body.is-chat-page .conversation {
    min-height: 0;
  }

  body.is-chat-page .conversation {
    height: 100%;
  }

  body.is-chat-page .session-panel {
    display: flex;
    flex-direction: column;
  }

  body.is-chat-page .session-list {
    flex: 1;
    min-height: 0;
    max-height: none;
  }

  body.is-chat-page .conversation-head,
  body.is-chat-page .example-prompts,
  body.is-chat-page .composer {
    flex: 0 0 auto;
  }

  body.is-chat-page .message-list {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
}

/* ---------- 账户：折叠的数据管理（不进入广告主体） ---------- */

.data-details {
  margin-top: 16px;
  padding: 0;
}

.data-details .details-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  list-style: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

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

.data-details .details-summary::after {
  content: "展开";
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 400;
}

.data-details[open] .details-summary::after {
  content: "收起";
}

.data-details .details-summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.data-details .details-body {
  padding: 0 24px 20px;
  border-top: 1px solid var(--line-soft);
}

.data-details .details-body .panel-copy {
  margin-top: 14px;
}

@media (max-width: 720px) {
  .data-details .details-summary {
    padding: 16px 18px;
  }

  .data-details .details-body {
    padding: 0 18px 16px;
  }
}

/* ---------- React Bits Blur Text 原生 WAAPI 适配的字符层 ---------- */

.blur-text-char {
  display: inline-block;
}

.blur-text-char.is-blurring {
  will-change: filter, opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .blur-text-char {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Rental pages · shared glass surfaces and motion tokens */
:root {
  --glass-bg: rgba(255,255,255,.57);
  --glass-border: rgba(255,255,255,.88);
  --glass-shadow: 0 18px 60px rgba(38,69,118,.08), inset 0 1px 0 rgba(255,255,255,.9);
  --dur-card-enter: 780ms;
  --stagger-card: 120ms;
  --dur-card-return: 650ms;
  --card-tilt: 5;
  --parallax-speed: .18;
}
body { background: #edf2fa; }
.ambient-scene { position: fixed; inset: -20vh -10vw; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(ellipse at 12% 30%, #c1d6fb 0, transparent 44%), radial-gradient(ellipse at 84% 53%, #c9c7f4 0, transparent 43%), linear-gradient(130deg,#f0f5fc,#e5edfa 55%,#f4f4fb); transform: translate3d(0,var(--sky-scroll,0px),0); }
.ambient-scene::before { content: ''; position: absolute; width: 64vw; height: 64vw; left: 14%; top: 8%; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.16),0 0 0 140px rgba(255,255,255,.1); }
.ambient-scene::after { content: ''; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(99,134,181,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(99,134,181,.09) 1px,transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(transparent,#000,transparent); }
.site, .app { background: transparent; }
.business-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 32px; }
.business-header .brand-lockup { margin: 0; }
.business-header .brand-lockup-name { font-size: 16px; }
.business-header .brand-lockup-product { font-size: 9px; letter-spacing: .14em; margin-top: 4px; }
.header-caption { font-size: 12px; color: var(--ink-2); }

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  margin-left: auto;
}

.back-link:hover {
  color: var(--blue);
}

.back-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.home-intro { padding: 46px 0 40px; }
.home-intro h1 { font-size: clamp(32px,4vw,52px); line-height: 1.3; font-weight: 600; letter-spacing: -.035em; }
.home-intro h1 > .title-accent { color: var(--blue); }
.home-intro > p:last-child { margin-top: 16px; font-size: 15px; color: var(--ink-2); }
.rental-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; perspective: 1400px; }
.glass-card { position: relative; isolation: isolate; border: 1px solid var(--glass-border); border-radius: 24px; background: var(--glass-bg); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(24px) saturate(135%); backdrop-filter: blur(24px) saturate(135%); transform: perspective(1400px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition: transform var(--dur-card-return) cubic-bezier(.2,.8,.2,1),border-color .25s,box-shadow .35s; }
.glass-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; background: radial-gradient(360px circle at var(--spot-x,50%) var(--spot-y,50%),rgba(255,255,255,.83),rgba(145,183,255,.18) 38%,transparent 72%); opacity: var(--spot-opacity,0); transition: opacity .35s; }
.glass-card.is-pointed { transition-duration: 100ms,.25s,.35s; border-color: rgba(255,255,255,.98); box-shadow: 0 28px 65px rgba(38,69,118,.13),inset 0 1px 0 #fff; }
.glass-card.card-enter { opacity: 0; translate: 0 36px; }
.glass-card.card-enter.is-revealed { opacity: 1; translate: 0 0; transition: opacity var(--dur-card-enter) var(--enter-delay,0ms),translate var(--dur-card-enter) cubic-bezier(.16,1,.3,1) var(--enter-delay,0ms),transform var(--dur-card-return) cubic-bezier(.2,.8,.2,1),border-color .25s,box-shadow .35s; }
.rental-card { display: block; padding: 26px 32px 30px; min-width: 0; color: inherit; text-decoration: none; cursor: pointer; }
.rental-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: .13em; color: #506683; }
.service-tag { border: 1px solid rgba(83,121,182,.16); padding: 4px 10px; border-radius: 100px; font-size: 10px; letter-spacing: .04em; }
.service-art { position: relative; height: 215px; display: flex; align-items: center; justify-content: center; margin-block: 12px 20px; }
.art-label { position: absolute; bottom: 0; font-size: 8px; letter-spacing: .23em; color: #657ba0; }
.compute-chip { display: grid; align-content: center; justify-items: center; width: 114px; height: 114px; border-radius: 22px; border: 1px solid rgba(255,255,255,.95); background: linear-gradient(140deg,rgba(255,255,255,.95),rgba(130,169,233,.45)); box-shadow: 12px 16px 32px rgba(45,83,144,.18), inset 0 0 0 9px rgba(255,255,255,.35),0 0 0 12px rgba(148,180,231,.16); transform: rotate(-17deg) skew(5deg,5deg); }
.compute-chip > span { color: #2254a8; font-size: 36px; font-weight: 600; letter-spacing: -.05em; }
.compute-chip > small { font-size: 8px; color: #416ba9; letter-spacing: .18em; }
.chip-orbit { position: absolute; width: 240px; height: 130px; border: 1px solid rgba(102,145,209,.22); transform: rotate(-17deg) skew(8deg,8deg); border-radius: 30px; }
.orbit-two { width: 300px; height: 172px; border-style: dashed; opacity: .7; }
.api-core { display: grid; place-items: center; width: 106px; height: 106px; border-radius: 50%; font-size: 28px; font-weight: 500; letter-spacing: -.04em; color: #3152ac; background: linear-gradient(130deg,rgba(255,255,255,.95),rgba(169,167,239,.4)); box-shadow: inset 0 0 0 7px rgba(255,255,255,.4),0 14px 36px rgba(79,83,160,.16); border: 1px solid white; }
.api-orbit { position: absolute; width: 270px; height: 152px; border-radius: 50%; border: 1px solid rgba(113,125,199,.3); transform: rotate(-18deg); }
.api-node { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid white; background: rgba(248,250,255,.83); box-shadow: 0 8px 20px rgba(77,91,143,.09); font-size: 13px; color: #5570ac; }
.node-a { left: 16%; top: 60%; }.node-b { right: 16%; top: 17%; }.node-c { right: 20%; bottom: 18%; }
.rental-copy h2 { font-size: 30px; line-height: 1.4; font-weight: 600; letter-spacing: -.03em; }
.rental-copy > p { margin-top: 12px; max-width: 400px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.service-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; font-size: 11px; color: #526581; }
.service-chips > span { padding-right: 10px; border-right: 1px solid rgba(83,121,182,.2); }.service-chips > span:last-child { border: 0; }
.service-link { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(99,133,187,.17); font-size: 14px; font-weight: 500; color: var(--blue); }.service-link > span { font-size: 23px; font-weight: 400; }
.home-bottom { display: flex; justify-content: space-between; gap: 20px; margin: 32px 0 60px; color: #667993; font-size: 11px; }.home-bottom > span:last-child { font-size: 9px; letter-spacing: .15em; }
.site-footer { background: rgba(255,255,255,.15); border-top-color: rgba(255,255,255,.6); }
.business-intro { padding-block: 54px 52px; max-width: 740px; }.business-intro h1 { font-size: clamp(36px,5vw,58px); line-height: 1.3; letter-spacing: -.035em; font-weight: 600; }.business-intro > p:last-of-type { margin-top: 22px; max-width: 560px; color: var(--ink-2); line-height: 1.9; font-size: 15px; }
.business-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }.business-section { margin: 20px 0 72px; }.section-heading { margin-bottom: 24px; }.section-heading > span { color: #617695; font-size: 10px; letter-spacing: .14em; }.section-heading h2 { margin-top: 10px; font-size: 25px; font-weight: 500; letter-spacing: -.02em; }
.detail-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }.detail-card { padding: 28px; }.detail-card h3 { margin: 24px 0 12px; font-size: 19px; font-weight: 500; }.detail-card p, .process-list p { font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.process-list { list-style: none; padding: 30px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }.process-list li > span { color: var(--blue); font-size: 11px; }.process-list h3 { margin: 16px 0 10px; font-size: 16px; font-weight: 500; }
.request-section { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-top: 20px; }.request-intro { padding-top: 24px; }.request-intro h2 { font-size: 30px; font-weight: 500; line-height: 1.6; }.request-intro > p:not(.eyebrow) { margin-top: 18px; color: var(--ink-2); font-size: 14px; }.request-intro .request-note { font-size: 12px !important; color: var(--muted) !important; }
.request-form { padding: 30px; display: grid; gap: 18px; }.request-form label { display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }.request-form input,.request-form select,.request-form textarea { width: 100%; min-width: 0; border: 1px solid rgba(115,143,187,.25); border-radius: 10px; padding: 12px; font: inherit; font-size: 13px; color: var(--ink); background: rgba(255,255,255,.65); }.request-form textarea { resize: vertical; }.request-result p { margin-top: 10px; font-size: 12px; color: var(--blue); }
/* The same surface is applied to static and dynamically rendered console cards. */
.app .glass-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--glass-shadow); }
.app .model-card.is-selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue),var(--glass-shadow); }
.app-main { background: transparent; }.app .sidebar,.app .app-topbar { background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }.metrics { gap: 14px; background: transparent; border: 0; overflow: visible; }.app .metric { padding: 22px; }.app .metric + .metric { border-left: 1px solid var(--glass-border); }
@media (max-width: 800px) { .business-header { padding-block: 24px; }.header-caption { display: none; }.rental-card { padding: 24px; }.detail-grid { grid-template-columns: 1fr; }.process-list { grid-template-columns: repeat(2,minmax(0,1fr)); }.request-section { gap: 28px; }.service-art { height: 190px; }.node-a { left: 5%; }.node-b { right: 5%; }.node-c { right: 10%; }.chip-orbit { width: 180px; }.orbit-two { width: 220px; }.api-orbit { width: 220px; } }
@media (max-width: 600px) { .wrap { width: calc(100% - 36px); }.business-header { align-items: flex-start; }.business-header .brand-lockup-name { font-size: 12px; }.business-header .brand-lockup-product { font-size: 7px; letter-spacing: .06em; }.business-header .brand-lockup-mark { height: 38px; width: 22px; }.brand-lockup { gap: 10px; }.back-link { font-size: 11px; white-space: nowrap; }.home-intro { padding: 30px 0; }.home-intro h1 > .title-accent { display: block; }.home-intro > p:last-child { font-size: 13px; }.rental-grid { grid-template-columns: 1fr; gap: 22px; }.service-art { height: 205px; }.rental-copy h2 { font-size: 28px; }.rental-copy > p { font-size: 13px; }.home-bottom > span:last-child { display: none; }.business-intro { padding-block: 30px; }.business-section { margin-bottom: 48px; }.section-heading h2 { font-size: 22px; }.request-section { grid-template-columns: 1fr; }.request-intro h2 { font-size: 27px; }.request-form { padding: 24px; }.process-list { padding: 24px; gap: 24px; }.node-a { left: 16%; }.node-b { right: 16%; }.node-c { right: 20%; } }
@media (prefers-reduced-motion: reduce) { .glass-card, .glass-card.card-enter, .glass-card.card-enter.is-revealed { opacity: 1; translate: none; transform: none; transition: none; }.ambient-scene { transform: none; }.glass-card::after { transition: none; } }
.art-label { white-space: nowrap; font-size: clamp(6px,.64vw,8px); }
@media (max-width: 600px) { .art-label { font-size: 7px; } }

/* ---------- 首页商务合作入口与轻量弹窗（TOKEN-HOME-016） ---------- */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.business-entry {
  white-space: nowrap;
}

.business-entry > span {
  margin-left: 2px;
  color: var(--blue);
}

.business-modal-card {
  width: min(460px, 100%);
}

.business-modal-card h2 {
  padding-right: 34px;
}

.business-modal-card .business-contact-label {
  margin: 20px 0 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.business-phone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.business-phone {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.business-phone:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.business-phone:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  .header-actions {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .business-header {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .business-modal-card {
    padding: 26px 20px 22px;
  }

  .business-phone {
    font-size: 15px;
    padding: 10px 12px;
  }
}
