/* ============================================================
   星算助手页布局 + 桌面端（天文台 & 星尘坞）与移动端（mobile-cherry）
   1:1 源码级视觉复刻样式表
   ============================================================ */

/* ── 主站下载页重构部分（保留主站亮紫暖光风格） ── */
body.storefront.storefront--download .download-hero--v2 {
  padding: 28px 0 24px;
}

body.storefront.storefront--download .download-hero--v2 .page-shell {
  padding-top: 28px;
  padding-bottom: 12px;
}

body.storefront.storefront--download .download-hero--v2 .download-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

body.storefront.storefront--download .download-hero__primary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

body.storefront.storefront--download .download-hero__title--v2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  line-height: 1.12;
}

body.storefront.storefront--download .download-hero__sub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.storefront.storefront--download .download-hero__try-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(111, 76, 255, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: #4a35c9;
  font-size: 0.85rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.storefront.storefront--download .download-hero__try-btn:hover {
  transform: translateY(-1px);
  border-color: #6f4cff;
  box-shadow: 0 8px 20px rgba(111, 76, 255, 0.16);
}

body.storefront.storefront--download .download-hero__try-btn .material-symbols-outlined {
  font-size: 18px;
}

body.storefront.storefront--download .download-hero__alert--compact {
  padding: 12px 14px;
  border-radius: 14px;
}

body.storefront.storefront--download .download-hero__alert--compact .download-hero__alert-icon {
  width: 34px;
  height: 34px;
  font-size: 19px;
}

body.storefront.storefront--download .download-hero__alert--compact .download-hero__alert-body strong {
  font-size: 0.88rem;
}

body.storefront.storefront--download .download-hero__alert--compact .download-hero__alert-body p {
  font-size: 0.82rem;
  line-height: 1.6;
}

body.storefront.storefront--download .download-hero__companion {
  display: flex;
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(117, 243, 255, 0.16), transparent 44%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(246, 243, 255, 0.94));
  border: 1px solid rgba(111, 76, 255, 0.2);
  box-shadow: 0 22px 54px rgba(82, 39, 142, 0.11);
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry__lead {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry h2 {
  margin: 6px 0 4px;
  font-size: 1.2rem;
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry__lead p {
  font-size: 0.86rem;
  line-height: 1.65;
}

body.storefront.storefront--download .download-mobile-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #5b4c7a;
}

body.storefront.storefront--download .download-mobile-entry__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(111, 76, 255, 0.08);
  border: 1px solid rgba(111, 76, 255, 0.14);
  font-weight: 600;
}

body.storefront.storefront--download .download-mobile-entry__highlights {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(111, 76, 255, 0.05);
  border: 1px solid rgba(111, 76, 255, 0.11);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.storefront.storefront--download .download-mobile-entry__highlights li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #3d3254;
  line-height: 1.45;
}

body.storefront.storefront--download .download-mobile-entry__highlights .material-symbols-outlined {
  font-size: 17px;
  color: #5b3cf0;
  flex: 0 0 auto;
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(111, 76, 255, 0.18);
}

body.storefront.storefront--download .download-mobile-entry__btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry__cta {
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 13px;
  font-size: 0.88rem;
}

body.storefront.storefront--download .download-mobile-entry__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(111, 76, 255, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #4a35c9;
  font-size: 0.8rem;
  font-weight: 700;
}

body.storefront.storefront--download .download-mobile-entry__ghost .material-symbols-outlined {
  font-size: 17px;
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry__qr {
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry__qr img {
  width: 82px;
  height: 82px;
  padding: 4px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(111, 76, 255, 0.16);
}

body.storefront.storefront--download .download-hero__companion .download-mobile-entry__qr figcaption {
  font-size: 0.72rem;
  line-height: 1.35;
}

body.storefront.storefront--download .download-requirements--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.storefront.storefront--download .download-req-card--android .download-req-card__note {
  background: rgba(111, 76, 255, 0.08);
  color: #4a35c9;
}

body.storefront.storefront--download .download-req-card__svg {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(111, 76, 255, 0.12), rgba(255, 138, 61, 0.1));
  color: #4a35c9;
}

body.storefront.storefront--download .download-mobile__wechat-tip {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 138, 61, 0.12);
  border: 1px solid rgba(255, 138, 61, 0.3);
  color: #8f3300;
  font-size: 0.84rem;
  line-height: 1.6;
  text-align: left;
}

body.storefront.storefront--download .download-mobile__wechat-tip[hidden] {
  display: none;
}

body.storefront.storefront--download .download-mobile__shell--wide {
  max-width: 1020px;
}

body.storefront.storefront--download .download-mobile__copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(111, 76, 255, 0.26);
  background: rgba(255, 255, 255, 0.94);
  color: #4a35c9;
  font-size: 0.86rem;
  font-weight: 700;
}

body.storefront.storefront--download .download-section--demo {
  padding-top: 16px;
  padding-bottom: 36px;
  scroll-margin-top: 84px;
}

body.storefront.storefront--download .download-section--demo .page-shell {
  width: min(1360px, calc(100% - 28px));
  padding-top: 10px;
  padding-bottom: 10px;
}

.xs-svg-ic {
  width: 15px;
  height: 15px;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

.xs-svg-ic--lg { width: 20px; height: 20px; }
.xs-svg-ic--xl { width: 26px; height: 26px; }

/* ============================================================
   演示台外框与两套精确主题变量
   ============================================================ */
.xsd-root {
  --dk-bg: #030712;
  --dk-surface: #081226;
  --dk-elevated: #0f1a3a;
  --dk-terminal: #0b1530;
  --dk-deep: #02050d;
  --dk-border: #2c3a5e;
  --dk-border-soft: rgba(44, 58, 94, 0.58);
  --dk-accent: #75f3ff;
  --dk-on-accent: #04101e;
  --dk-blue: #4f7cff;
  --dk-violet: #9a8cff;
  --dk-amber: #ffb74f;
  --dk-emerald: #22c55e;
  --dk-error: #ff7b9d;
  --dk-text: #f4f7ff;
  --dk-text-2: #9eb0d1;
  --dk-muted: #7385ae;
  --dk-dock-bg: rgba(9, 12, 22, 0.94);
  --dk-claude: #e8a98f;
  --dk-codex: #7aa8ff;
  --dk-agy: #e09ae6;

  /* 移动端 xsTheme.ts 真实暗色 */
  --mb-bg: #090b11;
  --mb-surface: #121520;
  --mb-input: #171b28;
  --mb-elevated: #1c2030;
  --mb-border: rgba(255, 255, 255, 0.08);
  --mb-hairline: rgba(255, 255, 255, 0.06);
  --mb-text: #f3f5fa;
  --mb-text-2: #98a2b8;
  --mb-muted: #636d85;
  --mb-accent: #6debf8;
  --mb-on-accent: #06111b;
  --mb-violet: #9d8bff;
  --mb-success: #34d399;
  --mb-warn: #f6b856;
  --mb-danger: #f87195;
  --mb-dock-bg: rgba(20, 24, 36, 0.92);
  --mb-active-pill: rgba(109, 235, 248, 0.14);

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  border-radius: 20px;
  padding: 14px;
  background: #060b18;
  border: 1px solid rgba(117, 243, 255, 0.18);
  box-shadow: 0 30px 90px rgba(15, 20, 50, 0.34);
  color: var(--dk-text);
}

/* 严格对照两仓真实亮色：桌面端「冷白淡天空 #E9EFF7 / #EFF4FA」，移动端「#F4F6FA / #FFFFFF」 */
.xsd-root.xsd-light {
  --dk-bg: #e9eff7;
  --dk-surface: #eff4fa;
  --dk-elevated: #e0e7f1;
  --dk-terminal: #f0f5fb;
  --dk-deep: #e2e9f3;
  --dk-border: #aab7d4;
  --dk-border-soft: rgba(170, 183, 212, 0.65);
  --dk-accent: #0b7786;
  --dk-on-accent: #ffffff;
  --dk-blue: #4f7cff;
  --dk-violet: #604fd2;
  --dk-amber: #6e4a03;
  --dk-emerald: #0b5d29;
  --dk-error: #8e2b46;
  --dk-text: #0a1230;
  --dk-text-2: #445170;
  --dk-muted: #5a6685;
  --dk-dock-bg: #eff4fa;
  --dk-claude: #814a33;
  --dk-codex: #1a4498;
  --dk-agy: #86468c;

  --mb-bg: #f4f6fa;
  --mb-surface: #ffffff;
  --mb-input: #edf1f8;
  --mb-elevated: #e8edf6;
  --mb-border: rgba(15, 23, 42, 0.08);
  --mb-hairline: rgba(15, 23, 42, 0.06);
  --mb-text: #0f1526;
  --mb-text-2: #4e5a74;
  --mb-muted: #7c879e;
  --mb-accent: #0a7888;
  --mb-on-accent: #ffffff;
  --mb-violet: #6351d4;
  --mb-success: #15803d;
  --mb-warn: #b4690e;
  --mb-danger: #c2385a;
  --mb-dock-bg: rgba(255, 255, 255, 0.94);
  --mb-active-pill: rgba(10, 120, 136, 0.1);

  background: #dce4f2;
  border-color: rgba(111, 76, 255, 0.22);
  color: var(--dk-text);
}

.dk-serif {
  font-family: "Lora", "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
}

/* 顶部外置模式控制条 */
.xsd-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.xsd-bar__modes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dk-border-soft);
}

.xsd-light .xsd-bar__modes {
  background: rgba(255, 255, 255, 0.72);
}

.xsd-bar__mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--dk-text-2);
  font-size: 12.5px;
  font-weight: 600;
}

.xsd-bar__mode.is-active {
  background: var(--dk-accent);
  color: var(--dk-on-accent);
}

.xsd-bar__mode--sync.is-active {
  background: linear-gradient(120deg, #0ea5e9, #604fd2);
  color: #fff;
}

.xsd-bar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.xsd-bar__pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.36);
  color: var(--dk-emerald);
  font-size: 11.5px;
  font-weight: 600;
}

.xsd-bar__pulse i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dk-emerald);
}

.xsd-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--dk-border-soft);
  background: var(--dk-surface);
  color: var(--dk-text-2);
  font-size: 12px;
  font-weight: 600;
}

.xsd-bar__btn:hover {
  border-color: var(--dk-accent);
  color: var(--dk-text);
}

.xsd-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.xsd-mode-sync .xsd-stage {
  grid-template-columns: minmax(0, 1fr) 344px;
}

.xsd-mode-mobile .xsd-stage {
  justify-items: center;
}

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

.xsd-foot__note {
  font-size: 11.5px;
  color: var(--dk-muted);
}

.xsd-foot__toast {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(117, 243, 255, 0.14);
  border: 1px solid var(--dk-border);
  color: var(--dk-accent);
  font-size: 11.5px;
  font-weight: 600;
}

.xsd-foot__toast[hidden] { display: none; }

/* ============================================================
   一、桌面端 1:1 复刻（天文台 TitleBar + 星尘坞 + 全模块）
   ============================================================ */
/* ── 原生级超细暗色滚动条，消除浏览器默认白宽滚条 ── */
.xsd-root * {
  scrollbar-width: thin;
  scrollbar-color: rgba(115, 133, 174, 0.28) transparent;
}

.xsd-root *::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.xsd-root *::-webkit-scrollbar-track {
  background: transparent;
}

.xsd-root *::-webkit-scrollbar-thumb {
  background: rgba(115, 133, 174, 0.28);
  border-radius: 999px;
}

.xsd-root *::-webkit-scrollbar-thumb:hover {
  background: rgba(117, 243, 255, 0.45);
}

.dk-window {
  display: flex;
  flex-direction: column;
  height: 648px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dk-bg);
  border: 1px solid var(--dk-border);
  color: var(--dk-text);
  font-size: 13px;
}

/* TitleBar.tsx: 38px */
.dk-titlebar {
  height: 38px;
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 8px;
  background: var(--dk-bg);
  border-bottom: 1px solid var(--dk-border-soft);
  user-select: none;
}

.dk-titlebar__left,
.dk-titlebar__right {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.dk-tb-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dk-text-2);
  position: relative;
}

.dk-tb-icon:hover {
  background: var(--dk-elevated);
  color: var(--dk-text);
}

.dk-tb-lang {
  font-size: 11.5px;
  font-weight: 700;
}

.dk-tb-sep {
  width: 1px;
  height: 14px;
  background: var(--dk-border);
  margin: 0 3px;
}

.dk-tb-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ff5c84;
  color: #fff;
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
}

.dk-tb-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
}

.dk-tb-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #75f3ff, #9a8cff);
  color: #041120;
  font-size: 11px;
  font-weight: 800;
}

.dk-tb-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--dk-text);
}

.dk-tb-region {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid rgba(117, 243, 255, 0.4);
  color: var(--dk-accent);
  font-size: 10px;
  font-weight: 600;
}

.dk-titlebar__coord {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dk-muted);
  white-space: nowrap;
}

.dk-win-ctrls {
  display: inline-flex;
  height: 100%;
  margin-left: 4px;
}

.dk-win-ctrls span {
  width: 36px;
  height: 100%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  color: var(--dk-text-2);
}

.dk-win-ctrls span.is-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* 桌面主体壳：左侧星尘坞 + 右侧主内容 */
.dk-shell {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 0;
  transition: grid-template-columns 180ms ease;
}

.dk-shell.is-compact {
  grid-template-columns: 74px minmax(0, 1fr);
}

/* ── 星尘坞 DockNav.tsx (176px / 74px) ── */
.dk-dock {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--dk-dock-bg);
  border-right: 1px solid var(--dk-border-soft);
  padding: 10px 8px 8px;
  overflow: hidden;
}

.dk-dock__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 18% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 82% 16%, rgba(251, 191, 36, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 74% 48%, rgba(117, 243, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 26% 70%, rgba(154, 140, 255, 0.7), transparent),
    radial-gradient(140px 140px at 30% 10%, rgba(56, 189, 248, 0.09), transparent);
}

.xsd-light .dk-dock__stars { opacity: 0.25; }

.dk-dock__home {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  color: var(--dk-text);
}

.dk-dock__home img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: 0 0 40px;
}

.dk-dock__home.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbbf24, var(--dk-accent));
}

.dk-dock__home.is-active img {
  box-shadow: 0 4px 16px rgba(117, 243, 255, 0.38);
}

.dk-dock__home-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dk-dock__home-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dk-dock__home-text em {
  font-family: "Lora", Georgia, serif;
  font-size: 11px;
  color: var(--dk-amber);
}

.dk-shell.is-compact .dk-dock__home { justify-content: center; padding: 6px 0; }
.dk-shell.is-compact .dk-dock__home-text,
.dk-shell.is-compact .dk-dock__label,
.dk-shell.is-compact .dk-dock__ghead span,
.dk-shell.is-compact .dk-credit__body,
.dk-shell.is-compact .dk-credit__plus,
.dk-shell.is-compact .dk-avatar-meta {
  display: none;
}

.dk-dock__groups {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dk-dock__ghead {
  height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  font-size: 10px;
  color: var(--dk-muted);
  letter-spacing: 0.12em;
}

.dk-dock__gline {
  flex: 1 1 auto;
  height: 1px;
  background: var(--dk-border-soft);
}

.dk-dock__gdot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--dk-muted);
}

.dk-dock__ghead--cyan .dk-dock__gdot { background: var(--dk-accent); box-shadow: 0 0 6px var(--dk-accent); }
.dk-dock__ghead--violet .dk-dock__gdot { background: var(--dk-violet); box-shadow: 0 0 6px var(--dk-violet); }

.dk-dock__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 40px;
  padding: 0 10px 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--dk-text-2);
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.dk-shell.is-compact .dk-dock__item {
  justify-content: center;
  padding: 0;
}

.dk-dock__item:hover {
  background: rgba(244, 247, 255, 0.05);
  color: var(--dk-text);
}

.xsd-light .dk-dock__item:hover {
  background: var(--dk-elevated);
}

.dk-dock__item.is-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(56, 189, 248, 0.08));
  border-color: rgba(251, 191, 36, 0.42);
  color: var(--dk-text);
}

.xsd-light .dk-dock__item.is-active {
  background: linear-gradient(135deg, rgba(110, 74, 3, 0.13), rgba(11, 119, 134, 0.08));
  border-color: rgba(110, 74, 3, 0.34);
}

.dk-dock__item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24%;
  height: 52%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #fbbf24, var(--dk-accent));
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.7);
}

.dk-dock__item.is-running:not(.is-active) {
  border-color: rgba(117, 243, 255, 0.42);
  box-shadow: inset 0 0 12px rgba(117, 243, 255, 0.12);
}

.dk-dock__ic {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-grid;
  place-items: center;
}

.dk-dock__ic svg { width: 20px; height: 20px; }

.dk-dock__label {
  flex: 1 1 auto;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.dk-dock__num {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 10px;
  color: var(--dk-muted);
}

.dk-dock__item.is-active .dk-dock__num {
  color: #fbbf24;
  font-weight: 700;
}

.xsd-light .dk-dock__item.is-active .dk-dock__num { color: #6e4a03; }

.dk-shell.is-compact .dk-dock__num {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 8px;
}

/* 底部星核余额球 + 无框轨道头像 */
.dk-dock__footer {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--dk-border-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dk-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--dk-text);
  text-align: left;
}

.dk-shell.is-compact .dk-credit,
.dk-shell.is-compact .dk-avatar-row {
  justify-content: center;
}

.dk-credit__orb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: 0 0 30px;
  display: inline-grid;
  place-items: center;
  background: radial-gradient(circle at 32% 30%, #fef08a, #f59e0b 58%, #92400e 100%);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25), 0 0 12px rgba(245, 158, 11, 0.45);
}

.dk-credit__orb i { font-style: normal; color: #fff; font-size: 12px; }

.dk-credit__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dk-credit__body strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #fde68a, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.xsd-light .dk-credit__body strong {
  background: none;
  color: var(--dk-text);
}

.dk-credit__body small {
  font-size: 9.5px;
  color: var(--dk-muted);
}

.dk-credit__body small b {
  color: var(--dk-accent);
  font-weight: 600;
}

.dk-credit__plus {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: var(--dk-amber);
  font-weight: 700;
}

.dk-avatar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--dk-text);
  text-align: left;
}

.dk-avatar-orb {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #75f3ff, #4f7cff 55%, #9a8cff);
  color: #04101e;
  font-size: 12px;
  font-weight: 800;
}

.dk-avatar-online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid var(--dk-bg);
}

.dk-avatar-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dk-avatar-meta strong { font-size: 12px; font-weight: 600; }
.dk-avatar-meta small { font-size: 10px; color: var(--dk-muted); }

/* ── 桌面主区与共享页面标题栏 ── */
.dk-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--dk-bg);
}

.dk-pagehead {
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid var(--dk-border-soft);
}

.dk-pagehead.has-aurora {
  background:
    radial-gradient(ellipse 40% 110% at 22% 0%, rgba(79, 124, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 35% 110% at 72% 0%, rgba(154, 140, 255, 0.12), transparent 70%),
    var(--dk-bg);
}

.dk-pagehead__left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dk-pagehead__left h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.dk-kicker {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.dk-kicker--cyan { color: var(--dk-accent); }
.dk-kicker--violet { color: var(--dk-violet); }

.dk-pagehead__center {
  display: flex;
  justify-content: center;
}

.dk-deck-tabs {
  display: inline-flex;
  gap: 18px;
}

.dk-deck-tabs button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--dk-text-2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 14px 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dk-deck-tabs button em {
  font-style: normal;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--dk-muted);
}

.dk-deck-tabs button.is-active { color: var(--dk-text); }

.dk-deck-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--dk-violet);
}

.dk-deck-tabs--amber button.is-active::after { background: var(--dk-amber); }

.dk-home-links {
  display: flex;
  gap: 14px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--dk-muted);
}

.dk-target-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--dk-border);
  background: var(--dk-surface);
  font-size: 11.5px;
  color: var(--dk-text-2);
}

.dk-target-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dk-emerald);
}

.dk-header-actions {
  display: flex;
  gap: 6px;
}

.dk-pill-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--dk-border);
  background: var(--dk-surface);
  color: var(--dk-text-2);
  font-size: 11.5px;
}

.dk-main__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

/* ── 桌面 1:1 首页「星象电台」 ── */
.dk-home {
  display: flex;
  flex-direction: column;
}

.dk-hero {
  position: relative;
  min-height: 204px;
  padding: 20px 26px 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 46% 85% at 72% 28%, rgba(154, 140, 255, 0.24), transparent 72%),
    radial-gradient(ellipse 40% 80% at 32% 18%, rgba(79, 124, 255, 0.22), transparent 68%),
    radial-gradient(ellipse 35% 70% at 56% 82%, rgba(117, 243, 255, 0.14), transparent 72%),
    linear-gradient(180deg, var(--dk-deep) 0%, var(--dk-surface) 100%);
  border-bottom: 1px solid var(--dk-border-soft);
}

.dk-hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(2px 2px at 16% 24%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 42% 18%, rgba(117, 243, 255, 0.8), transparent),
    radial-gradient(2px 2px at 58% 36%, rgba(154, 140, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 84% 22%, rgba(255, 255, 255, 0.6), transparent);
}

.xsd-light .dk-hero__stars { opacity: 0.2; }

.dk-hero__left {
  position: relative;
  max-width: 500px;
}

.dk-hero__observer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--dk-accent);
  margin-bottom: 10px;
}

.dk-hero__observer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dk-accent);
  box-shadow: 0 0 8px var(--dk-accent);
}

.dk-hero__headline {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--dk-text);
}

.dk-hero__headline em {
  font-style: italic;
  color: var(--dk-violet);
}

.dk-hero__ask {
  margin-top: 18px;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(158, 176, 209, 0.42);
}

.dk-hero__ask:focus-within {
  border-bottom-color: var(--dk-accent);
}

.dk-hero__ask input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  color: var(--dk-text);
  font-size: 13.5px;
  outline: none;
  min-width: 0;
}

.dk-hero__ask input::placeholder { color: var(--dk-muted); }

.dk-hero__caret {
  width: 2px;
  height: 14px;
  background: var(--dk-accent);
}

.dk-hero__ask button {
  border: 0;
  background: transparent;
  color: var(--dk-accent);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.dk-hero__meta {
  margin-top: 12px;
  display: flex;
  gap: 20px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--dk-muted);
}

.dk-hero__meta button {
  border: 0;
  background: transparent;
  color: var(--dk-text-2);
  padding: 0;
}

.dk-hero__meta button:hover { color: var(--dk-accent); }

.dk-hero__live {
  position: absolute;
  right: 16px;
  top: 26px;
  width: 270px;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.9;
  opacity: 0.72;
  pointer-events: none;
}

.dk-hero__live-head {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--dk-violet);
  margin-bottom: 4px;
}

.dk-hero__live-line {
  display: flex;
  gap: 6px;
  color: var(--dk-text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dk-hero__live-line b { color: var(--dk-accent); font-weight: 600; }
.dk-hero__live-line.is-muted { color: var(--dk-muted); }
.dk-hero__live-line.is-ok span { color: var(--dk-emerald); }

/* 01 万象画布横向胶片条（无圆角，全幅出血） */
.dk-home-canvas {
  padding: 16px 22px 14px;
}

.dk-home-canvas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dk-home-canvas__title {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.dk-mono-idx {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--dk-accent);
}

.dk-home-canvas__title h3 { margin: 0; font-size: 17px; }

.dk-mono-sub {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dk-muted);
}

.dk-amber-chip {
  padding: 2px 7px;
  border: 1px solid rgba(255, 183, 79, 0.36);
  background: rgba(255, 183, 79, 0.1);
  color: var(--dk-amber);
  font-size: 10px;
  font-weight: 600;
}

.dk-link-btn {
  border: 0;
  background: transparent;
  color: var(--dk-text-2);
  font-size: 11.5px;
}

.dk-link-btn:hover { color: var(--dk-accent); }

.dk-home-strip {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dk-home-strip__cta {
  flex: 0 0 122px;
  height: 116px;
  border: 1px dashed rgba(117, 243, 255, 0.42);
  background: rgba(117, 243, 255, 0.04);
  color: var(--dk-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dk-home-strip__cta strong { font-size: 11.5px; }
.dk-home-strip__cta span { font-size: 10px; color: var(--dk-muted); }

.dk-home-strip__card {
  position: relative;
  flex: 0 0 156px;
  height: 116px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--dk-surface);
  text-align: left;
}

.dk-home-strip__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 220ms ease;
}

.dk-home-strip__card:hover img { transform: scale(1.05); }

.dk-home-strip__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 5, 13, 0.84) 100%);
}

.dk-home-strip__kind {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 2px 5px;
  background: rgba(2, 5, 13, 0.68);
  color: #e2e8f0;
  font-size: 9.5px;
}

.dk-home-strip__name {
  position: absolute;
  left: 8px;
  bottom: 7px;
  z-index: 2;
  color: #f4f7ff;
  font-size: 11.5px;
  font-weight: 600;
}

/* 三轨资讯带 */
.dk-marquee {
  border-top: 1px solid var(--dk-border-soft);
}

.dk-marquee__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 36px;
  padding: 0 22px;
  border: 0;
  border-bottom: 1px solid var(--dk-border-soft);
  background: transparent;
  color: var(--dk-text-2);
  text-align: left;
  overflow: hidden;
}

.dk-marquee__row:hover { background: var(--dk-surface); }

.dk-marquee__tag {
  flex: 0 0 74px;
  font-size: 10.5px;
  font-weight: 700;
}

.dk-marquee__tag.is-violet { color: var(--dk-violet); }
.dk-marquee__tag.is-amber { color: var(--dk-amber); }
.dk-marquee__tag.is-emerald { color: var(--dk-emerald); }

.dk-marquee__items {
  display: flex;
  gap: 18px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11.5px;
}

.dk-marquee__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dk-marquee__chip img { width: 20px; height: 20px; object-fit: cover; }
.dk-marquee__chip em { font-style: normal; font-family: ui-monospace, monospace; font-size: 10px; color: var(--dk-muted); }
.dk-marquee__chip i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dk-marquee__chip u.is-star { text-decoration: none; color: var(--dk-amber); font-family: ui-monospace, monospace; font-size: 10.5px; }

/* 底部 02–06 索引 */
.dk-home-index {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dk-home-index__cell {
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--dk-border-soft);
  background: transparent;
  color: var(--dk-text);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dk-home-index__cell:last-child { border-right: 0; }
.dk-home-index__cell:hover { background: var(--dk-surface); }
.dk-home-index__cell span { font-family: ui-monospace, monospace; font-size: 10px; color: var(--dk-accent); }
.dk-home-index__cell strong { font-size: 14px; }
.dk-home-index__cell small { font-size: 10.5px; color: var(--dk-muted); }

/* ── 桌面 1:1 万象星台 ── */
.dk-mother {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  height: 100%;
}

.dk-mother__left {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--dk-border-soft);
  background: var(--dk-surface);
  min-height: 0;
}

.dk-mother__new-wrap {
  display: flex;
  padding: 10px 10px 8px;
}

.dk-mother__new {
  flex: 1 1 auto;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(117, 243, 255, 0.28);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: rgba(117, 243, 255, 0.1);
  color: var(--dk-accent);
  font-size: 12.5px;
  font-weight: 600;
}

.dk-mother__new-caret {
  width: 28px;
  height: 34px;
  border: 1px solid rgba(117, 243, 255, 0.28);
  border-radius: 0 6px 6px 0;
  background: rgba(117, 243, 255, 0.1);
  color: var(--dk-accent);
  display: inline-grid;
  place-items: center;
}

.dk-mother__entries {
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--dk-border-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dk-mother__entries > button,
.dk-mother__entry-row > button:first-child {
  height: 30px;
  width: 100%;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dk-text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.dk-mother__entries em { font-style: normal; font-size: 10px; color: var(--dk-muted); }
.dk-mother__entries button.is-active { background: rgba(117, 243, 255, 0.12); color: var(--dk-accent); }

.dk-mother__entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 3px;
}

.dk-mother__entry-plus {
  height: 30px;
  border: 1px solid var(--dk-border-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--dk-text-2);
}

.dk-mother__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin: 8px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--dk-border-soft);
  background: var(--dk-bg);
}

.dk-mother__filters button {
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--dk-muted);
  font-size: 10.5px;
}

.dk-mother__filters button.is-active {
  background: var(--dk-elevated);
  color: var(--dk-text);
  font-weight: 600;
}

.dk-mother__threads {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dk-mthread {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--dk-text);
  text-align: left;
}

.dk-mthread:hover { background: rgba(117, 243, 255, 0.05); }
.dk-mthread.is-active { background: var(--dk-elevated); }

.dk-lamp {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex: 0 0 6px;
  background: var(--dk-emerald);
}

.dk-lamp.is-running { background: #6090ff; box-shadow: 0 0 6px #6090ff; }
.dk-lamp.is-awaiting { background: #ffc24f; box-shadow: 0 0 6px #ffc24f; }
.dk-lamp.is-failed { background: #ff7b9d; }

.dk-mthread__body { min-width: 0; flex: 1 1 auto; }
.dk-mthread__body strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-mthread__body span { font-size: 10px; color: var(--dk-muted); }
.dk-mthread__body em { font-style: normal; }
.dk-mthread__body em.is-mother { color: var(--dk-accent); }
.dk-mthread__body em.is-openclaw { color: #4ade80; }

.dk-mother__drawer-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--dk-border-soft);
  background: transparent;
  color: var(--dk-text-2);
  font-size: 12px;
}

.dk-mother__drawer-btn:hover { background: var(--dk-elevated); color: var(--dk-accent); }

.dk-mother__stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.dk-mother__center {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.dk-pane-bar {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--dk-border-soft);
}

.dk-pane-bar__l { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.dk-pane-bar__l strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-pane-bar__l span { font-size: 11px; color: var(--dk-muted); white-space: nowrap; }

.dk-pane-bar__r { display: flex; gap: 4px; }
.dk-pane-bar__r button {
  width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--dk-text-2);
  display: inline-grid; place-items: center;
}
.dk-pane-bar__r button:hover { background: var(--dk-elevated); color: var(--dk-text); }

.dk-chat-flow {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dk-msg--user {
  align-self: flex-end;
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(79, 124, 255, 0.22);
  border: 1px solid rgba(79, 124, 255, 0.42);
  font-size: 13px;
  line-height: 1.6;
}

.dk-msg--assistant {
  font-size: 13px;
  line-height: 1.65;
}

.dk-msg__think {
  font-size: 11.5px;
  color: var(--dk-accent);
  margin-bottom: 4px;
}

.dk-msg__tools {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--dk-surface);
  border: 1px solid var(--dk-border-soft);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--dk-muted);
}

.dk-chat-sugs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
}

.dk-chat-sugs button {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--dk-border);
  background: transparent;
  color: var(--dk-text-2);
  font-size: 12px;
}

.dk-chat-sugs button:hover { border-color: var(--dk-accent); color: var(--dk-text); }

/* ConfirmationDock.tsx */
.dk-conf {
  margin: 0 14px 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 183, 79, 0.42);
  background: var(--dk-surface);
}

.dk-conf.is-done { border-color: rgba(34, 197, 94, 0.45); }
.dk-conf__head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dk-amber); }
.dk-conf__head span { margin-left: auto; font-size: 10.5px; color: var(--dk-muted); }
.dk-conf__q { margin-top: 4px; font-size: 12.5px; font-weight: 600; }

.dk-conf__diff {
  margin: 6px 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--dk-terminal);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--dk-accent);
  overflow-x: auto;
}

.dk-conf__policy { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 8px; }
.dk-conf__policy-title { font-size: 10.5px; color: var(--dk-muted); }
.dk-conf__policy button {
  display: flex; align-items: center; gap: 7px; padding: 3px 4px; border: 0; background: transparent;
  color: var(--dk-text-2); font-size: 11.5px; text-align: left;
}
.dk-conf__policy button i {
  width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--dk-border); display: inline-block;
}
.dk-conf__policy button.is-on { color: var(--dk-text); }
.dk-conf__policy button.is-on i { border-color: var(--dk-accent); background: var(--dk-accent); }

.dk-conf__actions { display: flex; gap: 8px; }
.dk-conf__allow {
  height: 30px; padding: 0 12px; border: 0; border-radius: 6px;
  background: var(--dk-accent); color: var(--dk-on-accent); font-size: 12px; font-weight: 700;
}
.dk-conf__deny {
  height: 30px; padding: 0 12px; border: 1px solid var(--dk-border); border-radius: 6px;
  background: transparent; color: var(--dk-text-2); font-size: 12px;
}

.dk-conf__res { font-size: 11.5px; color: var(--dk-emerald); line-height: 1.55; }
.dk-conf__res.is-deny { color: var(--dk-error); }

.dk-composer {
  margin: 0 14px 12px;
  padding: 10px 12px 8px;
  border-radius: 14px;
  border: 1px solid var(--dk-border);
  background: var(--dk-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dk-composer:focus-within {
  border-color: var(--dk-accent);
  box-shadow: 0 0 20px rgba(117, 243, 255, 0.12);
}

.dk-composer input {
  border: 0; background: transparent; color: var(--dk-text); font-size: 13px; outline: none;
}
.dk-composer input::placeholder { color: var(--dk-muted); }

.dk-composer__foot {
  display: flex; align-items: center; justify-content: space-between;
}

.dk-composer__model { font-family: ui-monospace, monospace; font-size: 11px; color: var(--dk-muted); }
.dk-composer__foot button {
  padding: 4px 12px; border: 0; border-radius: 6px;
  background: var(--dk-accent); color: var(--dk-on-accent); font-size: 12px; font-weight: 700;
}

.dk-mother__right {
  width: 210px;
  flex: 0 0 210px;
  border-left: 1px solid var(--dk-border-soft);
  background: var(--dk-surface);
  display: flex;
  flex-direction: column;
}

.dk-rpanel-tabs {
  display: flex;
  border-bottom: 1px solid var(--dk-border-soft);
}

.dk-rpanel-tabs button {
  flex: 1 1 0;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--dk-muted);
  font-size: 11px;
}

.dk-rpanel-tabs button.is-active {
  color: var(--dk-accent);
  border-bottom: 2px solid var(--dk-accent);
}

.dk-rpanel-body { padding: 10px; font-size: 11.5px; }
.dk-rpanel-path { font-family: ui-monospace, monospace; font-size: 10px; color: var(--dk-muted); margin-bottom: 8px; word-break: break-all; }
.dk-tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--dk-text-2); font-family: ui-monospace, monospace; font-size: 11px; }
.dk-tree li.is-sub { padding-left: 10px; color: var(--dk-muted); }
.dk-tree b { color: var(--dk-amber); }

/* ── 桌面 1:1 万象画布（严格 0px 方角 + 底部 40px CanvasDock） ── */
.dk-canvas {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
}

.dk-canvas__top {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border-bottom: 1px solid var(--dk-border-soft);
  background: var(--dk-surface);
}

.dk-canvas__top-l { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.dk-canvas__top-l span { font-size: 10.5px; color: var(--dk-muted); font-family: ui-monospace, monospace; }
.dk-canvas__top-r { display: flex; gap: 6px; }
.dk-canvas__top-r button {
  height: 24px; padding: 0 8px; border: 1px solid var(--dk-border); background: transparent; color: var(--dk-accent); font-size: 11px;
}

.dk-canvas__body {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 0;
}

.dk-canvas__side {
  border-right: 1px solid var(--dk-border-soft);
  background: var(--dk-surface);
  display: flex;
  flex-direction: column;
}

.dk-canvas__stabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--dk-border-soft); }
.dk-canvas__stabs button { height: 30px; border: 0; background: transparent; color: var(--dk-muted); font-size: 11px; }
.dk-canvas__stabs button.is-active { color: var(--dk-accent); border-bottom: 2px solid var(--dk-accent); }

.dk-canvas__slist { padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.dk-canvas__slist button {
  display: flex; align-items: center; gap: 6px; padding: 6px; border: 1px solid var(--dk-border-soft);
  background: transparent; color: var(--dk-text-2); font-size: 11px; text-align: left;
}
.dk-canvas__slist button.is-active { border-color: var(--dk-accent); color: var(--dk-text); }
.dk-canvas__slist code { color: var(--dk-accent); font-size: 10px; }
.dk-canvas__thumb img { width: 32px; height: 24px; object-fit: cover; }

.dk-canvas__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 64px;
  background:
    radial-gradient(rgba(117, 243, 255, 0.16) 1px, transparent 1px),
    var(--dk-bg);
  background-size: 18px 18px;
  overflow: auto;
}

.dk-canvas__nodes { display: flex; align-items: center; gap: 10px; }

.dk-cnode {
  width: 174px;
  padding: 0;
  border-radius: 0;
  border: 1px solid var(--dk-border);
  background: var(--dk-terminal);
  color: var(--dk-text);
  text-align: left;
}

.dk-cnode.is-active {
  border-color: var(--dk-accent);
  box-shadow: 0 0 0 1px var(--dk-accent);
}

.dk-cnode__head {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  border-bottom: 1px solid var(--dk-border-soft);
  font-size: 10px;
}

.dk-cnode__head code { color: var(--dk-accent); }
.dk-cnode__head strong { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-cnode__head span { color: var(--dk-muted); }

.dk-cnode__img { position: relative; height: 96px; }
.dk-cnode__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dk-cnode__img em { position: absolute; right: 5px; top: 5px; font-style: normal; padding: 1px 5px; background: rgba(2, 5, 13, 0.72); color: #fff; font-size: 10px; }
.dk-cnode__text { padding: 7px; font-size: 10.5px; color: var(--dk-text-2); line-height: 1.5; }
.dk-canvas__wire { color: var(--dk-accent); font-family: ui-monospace, monospace; font-size: 11px; }

.dk-canvas__dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--dk-border);
  background: var(--dk-surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dk-canvas__dock button {
  height: 26px; padding: 0 7px; border: 0; background: transparent; color: var(--dk-text-2); font-size: 11px;
}
.dk-canvas__dock button.is-active, .dk-canvas__dock button:hover { background: var(--dk-elevated); color: var(--dk-accent); }
.dk-canvas__dock i { width: 1px; height: 14px; background: var(--dk-border); }
.dk-canvas__zoom { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--dk-muted); padding: 0 4px; }

/* ── 桌面 1:1 码上空间（实色无圆角工作台） ── */
.dk-cli {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 196px;
  height: 100%;
  background: var(--dk-surface);
}

.dk-cli__left {
  border-right: 1px solid var(--dk-border-soft);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}

.dk-cli__new-proj {
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: var(--dk-claude);
  color: var(--dk-on-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.dk-cli[data-engine="codex"] .dk-cli__new-proj { background: var(--dk-codex); }
.dk-cli[data-engine="antigravity"] .dk-cli__new-proj { background: var(--dk-agy); }
.dk-cli__new-proj kbd { font-family: ui-monospace, monospace; font-size: 10px; opacity: 0.78; }

.dk-cli__nav { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--dk-border-soft); }
.dk-cli__nav button {
  height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent;
  color: var(--dk-text-2); display: flex; justify-content: space-between; align-items: center; font-size: 11.5px;
}
.dk-cli__nav button.is-active, .dk-cli__nav button:hover { background: var(--dk-elevated); color: var(--dk-text); }
.dk-cli__nav em { font-style: normal; font-size: 10.5px; color: var(--dk-muted); }

.dk-cli__tree { flex: 1 1 auto; overflow-y: auto; }
.dk-cli__proj-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px; font-size: 12px; }
.dk-cli__proj-head em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--dk-muted); }

.dk-cli__sess {
  display: flex; align-items: flex-start; gap: 7px; width: 100%; padding: 7px 6px;
  border: 0; border-left: 2px solid transparent; background: transparent; color: var(--dk-text); text-align: left;
}
.dk-cli__sess.is-active { background: var(--dk-elevated); border-left-color: var(--dk-claude); }
.dk-cli__sess.dk-eng-codex.is-active { border-left-color: var(--dk-codex); }
.dk-cli__sess.dk-eng-antigravity.is-active { border-left-color: var(--dk-agy); }

.dk-eng-badge { width: 16px; height: 16px; display: inline-grid; place-items: center; font-size: 11px; flex: 0 0 16px; }
.dk-eng-badge.is-claude { color: var(--dk-claude); }
.dk-eng-badge.is-codex { color: var(--dk-codex); }
.dk-eng-badge.is-antigravity { color: var(--dk-agy); }

.dk-cli__sess-body { flex: 1 1 auto; min-width: 0; }
.dk-cli__sess-body strong { display: block; font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-cli__sess-body span { display: inline-flex; align-items: center; gap: 3px; font-family: ui-monospace, monospace; font-size: 9.5px; color: var(--dk-muted); }
.dk-cli__sess-body .xs-svg-ic { width: 10px; height: 10px; }

.dk-cli__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.dk-cli__topbar {
  height: 42px; flex: 0 0 42px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px; border-bottom: 1px solid var(--dk-border-soft); gap: 8px;
}
.dk-cli__topbar-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dk-cli__topbar-l strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-cli__eng-tag { font-family: ui-monospace, monospace; font-size: 10.5px; white-space: nowrap; }
.dk-cli__eng-tag.is-claude { color: var(--dk-claude); }
.dk-cli__eng-tag.is-codex { color: var(--dk-codex); }
.dk-cli__eng-tag.is-antigravity { color: var(--dk-agy); }

.dk-cli__topbar-r { display: flex; align-items: center; gap: 6px; }
.dk-cli__seg { display: inline-flex; border: 1px solid var(--dk-border); border-radius: 6px; overflow: hidden; }
.dk-cli__seg button { height: 24px; padding: 0 8px; border: 0; background: transparent; color: var(--dk-muted); font-size: 10.5px; }
.dk-cli__seg button.is-active { background: var(--dk-elevated); color: var(--dk-text); }
.dk-cli__pill { height: 26px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--dk-border); background: transparent; color: var(--dk-text-2); font-size: 11px; }
.dk-cli__conn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--dk-border); font-size: 10.5px; color: var(--dk-text-2); }
.dk-cli__conn i { width: 6px; height: 6px; border-radius: 50%; background: var(--dk-accent); }

.dk-cli__panes { flex: 1 1 auto; display: grid; grid-template-columns: 1fr; min-height: 0; overflow: auto; }
.dk-cli__panes.is-dual { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dk-cli__pane { display: flex; flex-direction: column; border-right: 1px solid var(--dk-border-soft); border-top: 2px solid var(--dk-claude); }
.dk-cli__pane.dk-pane-accent-1 { border-top-color: var(--dk-codex); }
.dk-cli__pbar { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-bottom: 1px solid var(--dk-border-soft); background: var(--dk-bg); font-size: 11px; }
.dk-cli__pbar code { font-family: ui-monospace, monospace; color: var(--dk-violet); font-size: 10px; }
.dk-cli__delta { margin-left: auto; font-family: ui-monospace, monospace; font-size: 10px; color: var(--dk-emerald); }

.dk-cli__msgs { flex: 1 1 auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.dk-climsg { font-size: 12px; line-height: 1.6; }
.dk-climsg.is-user { padding: 7px 10px; border-left: 2px solid var(--dk-claude); background: rgba(232, 169, 143, 0.1); }
.dk-climsg.is-user.is-eng-codex { border-left-color: var(--dk-codex); background: rgba(122, 168, 255, 0.1); }
.dk-climsg__think { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--dk-muted); margin-bottom: 3px; }
.dk-climsg__files { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; font-family: ui-monospace, monospace; font-size: 10.5px; }
.dk-climsg__files span { padding: 2px 6px; background: var(--dk-bg); border: 1px solid var(--dk-border-soft); }
.dk-climsg__files b { color: var(--dk-amber); }

.dk-cli__diff { padding: 8px 10px; background: var(--dk-terminal); font-family: ui-monospace, monospace; font-size: 11px; line-height: 1.6; }
.dk-cli__diff .is-add { color: var(--dk-emerald); }
.dk-cli__diff .is-del { color: var(--dk-error); }
.dk-cli__diff .is-ctx { color: var(--dk-muted); }

.dk-cli__pactions { display: flex; gap: 6px; padding: 6px 10px; border-top: 1px solid var(--dk-border-soft); }
.dk-cli__pactions button { height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--dk-border); background: transparent; color: var(--dk-text-2); font-size: 11px; }
.dk-cli__pactions button.is-run { border-color: var(--dk-accent); color: var(--dk-accent); }

.dk-cli__composer {
  display: flex; align-items: center; gap: 8px; margin: 8px 10px; padding: 9px 12px;
  border-radius: 12px; border: 1px solid var(--dk-border); background: var(--dk-terminal); font-size: 12px;
}
.dk-cli__prompt { font-family: ui-monospace, monospace; font-weight: 800; color: var(--dk-claude); }
.dk-cli__prompt.is-codex { color: var(--dk-codex); }
.dk-cli__placeholder { color: var(--dk-muted); flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-cli__cmode { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--dk-text-2); }

.dk-cli__right { border-left: 1px solid var(--dk-border-soft); display: flex; flex-direction: column; }
.dk-cli__rtabs { display: flex; border-bottom: 1px solid var(--dk-border-soft); }
.dk-cli__rtabs button { flex: 1 1 0; height: 36px; border: 0; background: transparent; color: var(--dk-muted); font-size: 10.5px; }
.dk-cli__rtabs button.is-active { color: var(--dk-claude); border-bottom: 2px solid var(--dk-claude); }
.dk-cli__rbody { padding: 10px; }

/* ── 桌面 1:1 公共网格（插件中心 / 模型中心 / 应用管理 发丝线无圆角舱格墙） ── */
.dk-split-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  height: 100%;
  min-height: 0;
}

.dk-split-aside__main {
  overflow-y: auto;
  padding: 12px 18px 18px;
}

.dk-filter-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dk-filter-strip__tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.dk-filter-strip__tabs button {
  border: 0; background: transparent; padding: 3px 0; color: var(--dk-muted); font-size: 12px; font-weight: 500;
}
.dk-filter-strip__tabs button.is-active { color: var(--dk-accent); font-weight: 700; }

.dk-view-switch { display: inline-flex; gap: 6px; font-size: 11.5px; color: var(--dk-muted); }
.dk-view-switch button { border: 0; background: transparent; color: inherit; padding: 0; }
.dk-view-switch button.is-active { color: var(--dk-text); font-weight: 700; }

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

.dk-grid-group {
  grid-column: 1 / -1;
  padding: 7px 12px;
  border-right: 1px solid var(--dk-border-soft);
  border-bottom: 1px solid var(--dk-border-soft);
  background: var(--dk-surface);
  font-size: 11px;
  font-weight: 700;
  color: var(--dk-muted);
}

.dk-grid-group.is-violet {
  background: rgba(154, 140, 255, 0.08);
  color: var(--dk-violet);
}

.dk-grid-empty {
  grid-column: 1 / -1;
  padding: 26px;
  text-align: center;
  border-right: 1px solid var(--dk-border-soft);
  border-bottom: 1px solid var(--dk-border-soft);
  color: var(--dk-muted);
}

/* 插件中心工具栏 + 卡片 + 右侧详情栏 */
.dk-plug-toolbar { border-bottom: 1px solid var(--dk-border-soft); margin-bottom: 10px; padding-bottom: 8px; }
.dk-plug-toolbar__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.dk-plug-sections { display: flex; gap: 16px; }
.dk-plug-sections button {
  height: 30px; border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--dk-text-2); font-size: 12.5px; font-weight: 500;
}
.dk-plug-sections button.is-active { color: var(--dk-text); font-weight: 700; border-bottom-color: var(--dk-violet); }

.dk-plug-searchbox {
  height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px;
  border: 1px solid var(--dk-border); background: var(--dk-terminal); color: var(--dk-muted);
}
.dk-plug-searchbox input { border: 0; background: transparent; color: var(--dk-text); font-size: 12px; outline: none; width: 120px; }

.dk-plug-cats { display: flex; flex-wrap: wrap; gap: 4px; }
.dk-plug-cats button {
  height: 24px; padding: 0 9px; border: 0; background: transparent; color: var(--dk-muted); font-size: 11px;
}
.dk-plug-cats button.is-active { background: rgba(154, 140, 255, 0.14); color: var(--dk-violet); font-weight: 600; }

.dk-pcard {
  display: flex; flex-direction: column; gap: 7px; padding: 11px 12px; min-height: 136px;
  border: 0; border-right: 1px solid var(--dk-border-soft); border-bottom: 1px solid var(--dk-border-soft);
  background: transparent; color: var(--dk-text); text-align: left;
}
.dk-pcard:hover { background: rgba(117, 243, 255, 0.03); }
.dk-pcard.is-active { background: rgba(154, 140, 255, 0.08); }

.dk-pcard__top { display: flex; align-items: flex-start; gap: 8px; }
.dk-plug-ic-img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: 0 0 32px; }
.dk-plug-ic-txt {
  width: 32px; height: 32px; border-radius: 6px; flex: 0 0 32px; display: inline-grid; place-items: center;
  background: var(--dk-elevated); color: var(--dk-accent); font-family: ui-monospace, monospace; font-size: 11px; font-weight: 700;
}
.dk-pcard__meta { flex: 1 1 auto; min-width: 0; }
.dk-pcard__meta strong { font-size: 12.5px; }
.dk-pcard__off { margin-left: 4px; padding: 0 4px; border: 1px solid var(--dk-border); font-style: normal; font-size: 9.5px; color: var(--dk-text-2); }
.dk-pcard__meta code { margin-left: 4px; font-family: ui-monospace, monospace; font-size: 9.5px; color: var(--dk-muted); }
.dk-pcard__meta small { display: block; font-size: 10px; color: var(--dk-muted); }
.dk-pcard__check { font-size: 10px; color: var(--dk-muted); white-space: nowrap; }
.dk-pcard__check.is-done { color: var(--dk-emerald); font-weight: 600; }

.dk-pcard__desc { margin: 0; font-size: 11px; color: var(--dk-text-2); line-height: 1.48; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-pcard__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.dk-pcard__tags span { padding: 1px 5px; background: var(--dk-elevated); color: var(--dk-muted); font-size: 9.5px; }
.dk-pcard__tags span.is-cat { background: rgba(154, 140, 255, 0.14); color: var(--dk-violet); }

.dk-pcard__foot {
  margin-top: auto; padding-top: 6px; border-top: 1px solid var(--dk-border-soft);
  display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: var(--dk-muted);
}
.dk-pcard__foot > div { display: flex; gap: 4px; }
.dk-pcard__foot > div span { padding: 0 4px; border: 1px solid var(--dk-border-soft); }

/* 常驻右侧详情栏（插件 / 工具 / 模型通用） */
.dk-aside {
  border-left: 1px solid var(--dk-border-soft);
  background: var(--dk-surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.dk-aside__kicker { font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: 0.14em; color: var(--dk-violet); }
.dk-aside__title { margin: 0; font-size: 16px; }
.dk-aside__desc { margin: 0; font-size: 11px; color: var(--dk-muted); line-height: 1.5; }
.dk-aside__tabs { display: flex; gap: 12px; border-bottom: 1px solid var(--dk-border-soft); }
.dk-aside__tabs button { border: 0; border-bottom: 2px solid transparent; padding: 6px 0; background: transparent; color: var(--dk-muted); font-size: 11.5px; }
.dk-aside__tabs button.is-active { color: var(--dk-accent); border-bottom-color: var(--dk-accent); font-weight: 600; }
.dk-aside__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; font-size: 11.5px; color: var(--dk-text-2); line-height: 1.55; }
.dk-aside__kv { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--dk-border-soft); font-size: 11px; }
.dk-aside__kv code { color: var(--dk-accent); font-family: ui-monospace, monospace; }
.dk-aside__foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--dk-border-soft); display: flex; flex-direction: column; gap: 6px; }
.dk-aside__hint { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--dk-muted); }
.dk-aside__btns { display: flex; gap: 6px; align-items: center; }
.dk-aside__btns button { flex: 1 1 0; height: 32px; border-radius: 6px; border: 1px solid var(--dk-border); background: transparent; color: var(--dk-text-2); font-size: 12px; font-weight: 600; }
.dk-aside__btns button.is-violet { border: 0; background: var(--dk-violet); color: #fff; }

.dk-pdetail__head { display: flex; align-items: center; gap: 8px; }
.dk-pdetail__title { flex: 1 1 auto; min-width: 0; }
.dk-pdetail__title h4 { margin: 0; font-size: 15px; }
.dk-pdetail__title span { font-size: 10.5px; color: var(--dk-muted); }
.dk-pdetail__state { font-style: normal; font-size: 10.5px; color: var(--dk-muted); }
.dk-pdetail__state.is-done { color: var(--dk-emerald); font-weight: 600; }
.dk-pdetail__chips { display: flex; flex-wrap: wrap; gap: 5px; font-size: 10px; }
.dk-pdetail__chips span, .dk-pdetail__chips code { padding: 2px 6px; border: 1px solid var(--dk-border-soft); color: var(--dk-text-2); }
.dk-pdetail__body strong { display: block; color: var(--dk-accent); font-size: 11px; margin-bottom: 2px; }
.dk-pdetail__body p { margin: 0; }
.dk-pdetail__doc { margin: 0; padding: 8px; background: var(--dk-terminal); font-family: ui-monospace, monospace; font-size: 10.5px; white-space: pre-wrap; color: var(--dk-text-2); }
.dk-pdetail__target { flex: 1.2 1 0; padding: 6px 8px; border: 1px solid var(--dk-border); font-size: 10.5px; color: var(--dk-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 模型中心行/卡 + 服务商 */
.dk-model-table { border-top: 1px solid var(--dk-border-soft); }
.dk-mrow {
  display: grid; grid-template-columns: 160px 1fr auto auto 46px; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--dk-border-soft);
  background: transparent; color: var(--dk-text); text-align: left;
}
.dk-mrow:hover, .dk-mrow.is-active { background: var(--dk-surface); }
.dk-mrow__id { font-family: ui-monospace, monospace; font-size: 12px; }
.dk-mrow__sub { font-size: 11px; color: var(--dk-muted); }
.dk-mrow__tier { font-size: 10.5px; color: var(--dk-emerald); }
.dk-mrow__tag { font-style: normal; padding: 1px 5px; border: 1px solid rgba(255, 183, 79, 0.4); color: var(--dk-amber); font-size: 10px; }
.dk-mrow__ms { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--dk-emerald); text-align: right; }

.dk-mcard {
  display: flex; flex-direction: column; gap: 6px; padding: 11px 12px;
  border: 0; border-right: 1px solid var(--dk-border-soft); border-bottom: 1px solid var(--dk-border-soft);
  background: transparent; color: var(--dk-text); text-align: left;
}
.dk-mcard.is-active { background: rgba(117, 243, 255, 0.06); }
.dk-mcard__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.dk-mcard__top strong { font-family: ui-monospace, monospace; font-size: 12px; }
.dk-mcard__src { font-style: normal; padding: 1px 5px; border: 1px solid rgba(255, 183, 79, 0.4); color: var(--dk-amber); font-size: 9.5px; }
.dk-mcard__sub { font-size: 10.5px; color: var(--dk-muted); }
.dk-mcard__caps { display: flex; flex-wrap: wrap; gap: 4px; }
.dk-mcard__caps span { padding: 1px 5px; background: var(--dk-elevated); color: var(--dk-text-2); font-size: 9.5px; }
.dk-mcard__foot { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--dk-border-soft); display: flex; justify-content: space-between; font-size: 10px; }
.dk-mcard__tier { color: var(--dk-emerald); }
.dk-mcard__ms { font-family: ui-monospace, monospace; color: var(--dk-muted); }

.dk-providers { display: flex; flex-direction: column; }
.dk-prov-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--dk-border-soft); font-size: 11.5px; }
.dk-prov-row__plus { color: var(--dk-accent); font-weight: 700; }
.dk-prov-row strong { display: block; font-size: 11.5px; }
.dk-prov-row small { font-family: ui-monospace, monospace; font-size: 10px; color: var(--dk-muted); }
.dk-prov-row__ext { margin-left: auto; color: var(--dk-muted); font-size: 11px; }

/* 工具管理卡片 + 底部整宽动作条 */
.dk-apps-wrap { display: flex; flex-direction: column; height: 100%; }
.dk-split-aside--grow { flex: 1 1 auto; min-height: 0; }
.dk-scan-status { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--dk-muted); }

.dk-acard {
  position: relative; display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; min-height: 122px;
  border: 0; border-right: 1px solid var(--dk-border-soft); border-bottom: 1px solid var(--dk-border-soft);
  background: transparent; color: var(--dk-text); text-align: left;
}
.dk-acard.is-active { background: rgba(117, 243, 255, 0.06); box-shadow: inset 2px 0 0 var(--dk-violet); }
.dk-acard.is-idle { opacity: 0.72; }
.dk-acard__top { display: flex; align-items: center; gap: 6px; }
.dk-acard__ic { font-size: 15px; font-weight: 800; }
.dk-acard__top strong { font-size: 13.5px; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-acard__mode { padding: 1px 5px; border: 1px solid var(--dk-border); font-size: 9.5px; color: var(--dk-accent); }
.dk-acard__mode.is-api { border-color: rgba(34, 197, 94, 0.42); color: var(--dk-emerald); }
.dk-acard__line { font-size: 10px; color: var(--dk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-acard__line b { font-weight: 500; }
.dk-acard__line code { font-family: ui-monospace, monospace; color: var(--dk-text-2); }
.dk-acard__chan { font-size: 10px; color: var(--dk-emerald); }
.dk-acard__foot { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--dk-border-soft); display: flex; justify-content: space-between; align-items: center; font-size: 9.5px; color: var(--dk-muted); }
.dk-acard__foot em { font-style: normal; padding: 1px 5px; margin-left: 4px; border: 1px solid rgba(117, 243, 255, 0.3); color: var(--dk-accent); }

.dk-apps-bottom {
  height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; border-top: 1px solid var(--dk-border-soft); background: var(--dk-bg);
}
.dk-apps-bottom span { font-family: ui-monospace, monospace; font-size: 11px; color: var(--dk-muted); }
.dk-apps-cta {
  width: 168px; height: 36px; border: 0; border-radius: 6px;
  background: var(--dk-accent); color: var(--dk-on-accent); font-size: 13px; font-weight: 700;
}

/* 内容中心 & 简易面板 */
.dk-content { display: flex; flex-direction: column; height: 100%; }
.dk-subtabs { display: flex; gap: 18px; padding: 0 22px; border-bottom: 1px solid var(--dk-border-soft); }
.dk-subtabs button { height: 36px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--dk-muted); font-size: 12px; }
.dk-subtabs button.is-active { color: var(--dk-text); border-bottom-color: var(--dk-accent); font-weight: 600; }
.dk-content__split { flex: 1 1 auto; display: grid; grid-template-columns: 186px minmax(0, 1fr); min-height: 0; }
.dk-content__issues { border-right: 1px solid var(--dk-border-soft); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.dk-mono-cap { font-family: ui-monospace, monospace; font-size: 10px; color: var(--dk-muted); margin-bottom: 4px; }
.dk-content__issues button { padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--dk-text-2); text-align: left; }
.dk-content__issues button.is-active { background: var(--dk-surface); color: var(--dk-text); }
.dk-content__issues span { display: block; font-family: ui-monospace, monospace; font-size: 10px; color: var(--dk-accent); }
.dk-content__issues strong { font-size: 12px; }
.dk-content__main { padding: 16px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.dk-content__masthead span { font-size: 10.5px; color: var(--dk-accent); }
.dk-content__masthead h3 { margin: 4px 0; font-size: 20px; }
.dk-content__masthead p { margin: 0; font-family: ui-monospace, monospace; font-size: 11px; color: var(--dk-muted); }
.dk-news-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--dk-border-soft); }
.dk-news-item__no { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; color: var(--dk-muted); }
.dk-news-item__body h4 { margin: 0 0 4px; font-size: 14px; }
.dk-news-item__src { display: inline-block; padding: 1px 6px; background: var(--dk-elevated); font-size: 10px; color: var(--dk-text-2); margin-bottom: 6px; }
.dk-news-item__body p { margin: 0 0 8px; font-size: 12px; color: var(--dk-text-2); line-height: 1.6; }
.dk-claude-note { padding: 8px 10px; border-radius: 6px; background: var(--dk-surface); border: 1px solid var(--dk-border-soft); font-size: 11.5px; }
.dk-claude-note strong { display: block; color: var(--dk-accent); font-size: 10.5px; margin-bottom: 2px; }

.dk-simple-panel { padding: 24px; }
.dk-simple-panel__card { max-width: 560px; padding: 20px; border: 1px solid var(--dk-border-soft); background: var(--dk-surface); }
.dk-simple-panel__card h3 { margin: 10px 0 6px; font-size: 18px; }
.dk-simple-panel__card p { margin: 0 0 14px; font-size: 12.5px; color: var(--dk-text-2); line-height: 1.65; }
.dk-simple-panel__rows { display: flex; flex-direction: column; gap: 8px; }
.dk-simple-panel__rows > div { display: flex; justify-content: space-between; padding: 8px 10px; background: var(--dk-bg); border: 1px solid var(--dk-border-soft); font-size: 11.5px; }
.dk-simple-panel__rows code { color: var(--dk-accent); font-family: ui-monospace, monospace; }

/* ============================================================
   二、移动端 1:1 复刻（mobile-cherry 悬浮液态胶囊 + 流光入口球）
   ============================================================ */
.mb-shell {
  width: min(368px, 100%);
  margin: 0 auto;
}

.mb-shell--companion { width: 100%; }

.mb-device {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 648px;
  border-radius: 34px;
  overflow: hidden;
  background: var(--mb-bg);
  color: var(--mb-text);
  border: 6px solid #161b28;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.45);
}

.xsd-light .mb-device { border-color: #d4dce8; }

.mb-statusbar {
  height: 30px;
  flex: 0 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--mb-text-2);
  position: relative;
  z-index: 4;
}

.mb-camera {
  width: 68px;
  height: 16px;
  border-radius: 999px;
  background: #05070c;
}

.xsd-light .mb-camera { background: rgba(15, 23, 42, 0.14); }
.mb-status-r { display: inline-flex; gap: 5px; }
.mb-status-r .xs-svg-ic { width: 13px; height: 13px; }

.mb-viewport {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-bottom: 86px;
}

.mb-viewport.is-push { padding-bottom: 0; display: flex; flex-direction: column; overflow: hidden; }

/* 顶部随空间变色的星云氛围光晕 */
.mb-aura {
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 150px;
  pointer-events: none;
  z-index: 0;
}

.mb-aura--companion { background: linear-gradient(180deg, rgba(109, 235, 248, 0.18), rgba(91, 132, 255, 0.08) 55%, transparent); }
.mb-aura--mother { background: linear-gradient(180deg, rgba(157, 139, 255, 0.2), rgba(109, 235, 248, 0.08) 55%, transparent); }
.mb-aura--cli { background: linear-gradient(180deg, rgba(232, 169, 143, 0.2), rgba(122, 168, 255, 0.08) 55%, transparent); }
.mb-aura--news { background: linear-gradient(180deg, rgba(109, 235, 248, 0.15), rgba(157, 139, 255, 0.1) 55%, transparent); }

/* Tab 1 首页顶栏 + 三空间分段 + 主浮卡 */
.mb-home { position: relative; padding: 6px 14px 16px; }
.mb-topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mb-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mb-text);
}

.mb-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
}

.mb-brand strong {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.mb-topbar__r { display: flex; align-items: center; gap: 6px; }

.mb-dev-pill {
  height: 30px; padding: 0 10px; border: 0; border-radius: 999px;
  background: var(--mb-elevated); color: var(--mb-text); font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.mb-dev-pill.is-online { background: rgba(52, 211, 153, 0.14); }
.mb-dev-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mb-muted); }
.mb-dev-pill.is-online i { background: var(--mb-success); }
.mb-dev-pill .xs-svg-ic { width: 12px; height: 12px; color: var(--mb-muted); }

.mb-icon-btn {
  width: 30px; height: 30px; border: 0; border-radius: 999px;
  background: var(--mb-elevated); color: var(--mb-text); display: inline-grid; place-items: center;
}

.mb-seg3 {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  padding: 4px; border-radius: 18px; background: var(--mb-input); margin-bottom: 8px;
}

.mb-seg3 button, .mb-seg2 button {
  height: 34px; border: 0; border-radius: 14px; background: transparent;
  color: var(--mb-text-2); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}

.mb-seg3 button.is-active, .mb-seg2 button.is-active {
  background: var(--mb-surface); color: var(--mb-text); font-weight: 700;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.mb-seg3 button em {
  font-style: normal; padding: 0 5px; border-radius: 999px;
  background: var(--mb-active-pill); color: var(--mb-accent); font-size: 10px;
}

.mb-subbar {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.mb-subbar__l { display: flex; gap: 6px; }
.mb-subbar__l button {
  height: 24px; padding: 0 9px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); color: var(--mb-text-2);
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px;
}
.xsd-light .mb-subbar__l button { background: rgba(15, 23, 42, 0.05); }
.mb-subbar__l .xs-svg-ic { width: 12px; height: 12px; }
.mb-subbar__link { border: 0; background: transparent; color: var(--mb-accent); font-size: 11px; font-weight: 600; }

.mb-card {
  position: relative; z-index: 2; padding: 8px; border-radius: 20px; background: var(--mb-surface);
  display: flex; flex-direction: column; gap: 2px;
}

.mb-studio-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--mb-text); text-align: left;
}
.mb-studio-row:hover { background: var(--mb-input); }
.mb-studio-row__ic { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: linear-gradient(135deg, #6debf8, #9d8bff); color: #06111b; }
.mb-studio-row strong { font-size: 13px; }
.mb-studio-row em { font-style: normal; padding: 1px 6px; border-radius: 999px; background: var(--mb-active-pill); color: var(--mb-accent); font-size: 10px; font-weight: 600; }
.mb-studio-row__arr { margin-left: auto; color: var(--mb-muted); }

.mb-group-head {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.xsd-light .mb-group-head { background: rgba(15, 23, 42, 0.03); }
.mb-gavatar {
  width: 24px; height: 24px; border-radius: 8px; display: inline-grid; place-items: center;
  background: var(--mb-active-pill); color: var(--mb-accent); font-size: 11px; font-weight: 700;
}
.mb-gavatar.is-violet { background: rgba(157, 139, 255, 0.18); color: var(--mb-violet); }
.mb-gfolder { color: var(--mb-accent); display: inline-grid; place-items: center; }
.mb-group-head strong { font-size: 13px; }
.mb-group-head small { margin-left: 6px; font-size: 10px; color: var(--mb-muted); }
.mb-gplus { margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: 8px; background: var(--mb-active-pill); color: var(--mb-accent); font-weight: 700; }

.mb-sess-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 10px 9px 40px; border: 0; border-radius: 11px; background: transparent; color: var(--mb-text); text-align: left;
}
.mb-sess-row:hover { background: var(--mb-input); }
.mb-sess-row__title { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-sess-row time { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--mb-muted); flex: 0 0 auto; }
.mb-sess-badge { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 10px; text-align: center; line-height: 16px; }

.mb-cli-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 22px;
  border: 0; border-left: 2.5px solid transparent; border-radius: 10px; background: transparent; color: var(--mb-text); text-align: left;
}
.mb-cli-row:hover { background: var(--mb-input); border-left-color: var(--dk-claude); }
.mb-cli-row.is-codex:hover { border-left-color: var(--dk-codex); }
.mb-cli-row__body { flex: 1 1 auto; min-width: 0; }
.mb-cli-row__body strong { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-cli-row__body span { display: inline-flex; align-items: center; gap: 3px; font-family: ui-monospace, monospace; font-size: 10px; color: var(--mb-muted); }
.mb-cli-row__body .xs-svg-ic { width: 10px; height: 10px; }
.mb-cli-row time { font-size: 10px; color: var(--mb-muted); }

/* 离线局域网发现卡片 */
.mb-offline {
  position: relative; z-index: 2; padding: 20px 16px; border-radius: 22px; background: var(--mb-surface);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.mb-offline__ic { width: 46px; height: 46px; border-radius: 15px; display: inline-grid; place-items: center; background: var(--mb-active-pill); color: var(--mb-accent); }
.mb-offline h4 { margin: 0; font-size: 15.5px; }
.mb-offline p { margin: 0; font-size: 12px; color: var(--mb-text-2); line-height: 1.55; }
.mb-lan-row {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px;
  border-radius: 14px; background: var(--mb-elevated); text-align: left; color: var(--mb-accent);
}
.mb-lan-row > div { flex: 1 1 auto; min-width: 0; }
.mb-lan-row strong { display: block; font-size: 12.5px; color: var(--mb-text); }
.mb-lan-row span { display: block; font-size: 10.5px; color: var(--mb-text-2); }
.mb-lan-row button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--mb-accent); color: var(--mb-on-accent); font-size: 11px; font-weight: 700; white-space: nowrap; }
.mb-offline__sec { width: 100%; height: 36px; border: 0; border-radius: 12px; background: var(--mb-elevated); color: var(--mb-text-2); font-size: 12px; font-weight: 600; }

/* ── FloatingLiquidTabBar + CosmicPortalOrb ── */
.mb-dock-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 12px;
  background: linear-gradient(180deg, transparent, var(--mb-bg) 56%);
  z-index: 6;
}

.mb-dock-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mb-dock {
  flex: 1 1 auto;
  height: 54px;
  padding: 4px;
  border-radius: 28px;
  background: var(--mb-dock-bg);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.xsd-light .mb-dock { box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12); }

.mb-dock__btn {
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--mb-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 500;
}

.mb-dock__btn.is-active {
  background: var(--mb-active-pill);
  color: var(--mb-text);
  font-weight: 700;
}

.mb-dock__btn.is-active .mb-dock__ic { color: var(--mb-accent); }
.mb-dock__ic { position: relative; width: 18px; height: 18px; display: inline-grid; place-items: center; }
.mb-dock__ic svg { width: 18px; height: 18px; }
.mb-dock__badge {
  position: absolute; top: -4px; right: -8px; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 999px; background: #ffb74f; color: #06111b; font-style: normal; font-size: 9px; font-weight: 800; line-height: 14px;
}

/* 右下 54px 旋转极光流光入口球 */
.mb-orb {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
}

.mb-orb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(#6debf8, #5b84ff, #8b5cf6, #f6c85f, #6debf8);
  animation: mb-orb-spin 7.6s linear infinite;
}

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

.mb-orb__core {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: #0b1226;
  color: #fff;
  display: inline-grid;
  place-items: center;
}

.xsd-light .mb-orb__core { background: #eef2ff; color: #0f1526; }
.mb-orb__core img { width: 100%; height: 100%; object-fit: cover; }

/* 3 张错峰悬浮新建卡 */
.mb-portal-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.mb-portal-card {
  width: 248px;
  padding: 10px 12px;
  border: 1px solid var(--mb-border);
  border-radius: 20px;
  background: var(--mb-surface);
  color: var(--mb-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}

.mb-portal-card span { display: block; font-size: 10px; color: var(--mb-accent); font-weight: 700; }
.mb-portal-card.is-cli span { color: var(--dk-claude); }
.mb-portal-card.is-mother span { color: var(--mb-violet); }
.mb-portal-card strong { display: block; font-size: 13px; margin-top: 1px; }
.mb-portal-card small { font-size: 10px; color: var(--mb-text-2); }
.mb-portal-card__ic {
  width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--mb-active-pill); color: var(--mb-accent); font-style: normal;
}
.mb-portal-card.is-cli .mb-portal-card__ic { background: rgba(232, 169, 143, 0.16); color: var(--dk-claude); }
.mb-portal-card.is-mother .mb-portal-card__ic { background: rgba(157, 139, 255, 0.16); color: var(--mb-violet); }

/* ── Tab 2 内容 ── */
.mb-news { position: relative; padding: 8px 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.mb-page-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.mb-page-head h3 { margin: 0; font-size: 20px; font-weight: 800; }
.mb-page-head p { margin: 2px 0 0; font-size: 11px; color: var(--mb-text-2); }
.mb-page-head__r { display: flex; gap: 6px; }
.mb-vol-pill {
  height: 30px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--mb-elevated);
  color: var(--mb-text); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
}

.mb-seg2 {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  padding: 4px; border-radius: 16px; background: var(--mb-input);
}

.mb-masthead {
  position: relative; z-index: 2; padding: 14px; border-radius: 20px; background: var(--mb-surface);
  display: flex; flex-direction: column; gap: 7px;
}
.mb-masthead__top { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--mb-accent); font-weight: 700; }
.mb-masthead__top span { display: inline-flex; align-items: center; gap: 5px; }
.mb-masthead__top i { width: 6px; height: 6px; border-radius: 50%; background: var(--mb-accent); }
.mb-masthead__top em { font-style: normal; padding: 2px 7px; border-radius: 999px; background: var(--mb-active-pill); }
.mb-masthead h4 { margin: 0; font-size: 17px; line-height: 1.35; }
.mb-masthead__meta { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--mb-muted); }
.mb-masthead__line { height: 1.5px; background: linear-gradient(90deg, var(--mb-accent), transparent); }
.mb-masthead__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mb-masthead__nav button { height: 30px; border: 0; border-radius: 10px; background: var(--mb-elevated); color: var(--mb-text-2); font-size: 11px; font-weight: 600; }

.mb-news-list { display: flex; flex-direction: column; gap: 10px; }
.mb-news-card { padding: 13px; border-radius: 18px; background: var(--mb-surface); display: flex; flex-direction: column; gap: 7px; }
.mb-news-card__top { display: flex; align-items: center; gap: 7px; }
.mb-news-card__top b { font-family: ui-monospace, monospace; font-size: 16px; color: var(--mb-accent); opacity: 0.85; }
.mb-news-card__top b.is-success { color: var(--mb-success); }
.mb-news-card__top span { padding: 2px 7px; border-radius: 999px; background: var(--mb-elevated); font-size: 10px; color: var(--mb-text-2); }
.mb-news-card h5 { margin: 0; font-size: 13.5px; line-height: 1.4; }
.mb-news-card p { margin: 0; font-size: 11.5px; color: var(--mb-text-2); line-height: 1.55; }

.mb-claude-box {
  padding: 8px 10px; border-left: 2.5px solid var(--mb-accent); border-radius: 10px;
  background: var(--mb-active-pill);
}
.mb-claude-box span { display: block; font-size: 10.5px; font-weight: 700; color: var(--mb-accent); margin-bottom: 2px; }
.mb-claude-box p { font-size: 11.5px; color: var(--mb-text); }

.mb-news-card__ops { display: flex; justify-content: space-between; align-items: center; padding-top: 2px; }
.mb-news-card__ops button { height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--mb-elevated); color: var(--mb-text-2); font-size: 11px; font-weight: 600; }
.mb-news-card__ops button.is-ask { background: var(--mb-active-pill); color: var(--mb-accent); }

.mb-gh-bar { display: flex; gap: 6px; }
.mb-gh-bar button { height: 28px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--mb-surface); color: var(--mb-text-2); font-size: 11.5px; font-weight: 600; }
.mb-gh-bar button.is-active { background: var(--mb-text); color: var(--mb-bg); }
.mb-gh-delta { margin-left: auto; font-style: normal; padding: 2px 7px; border-radius: 999px; background: var(--mb-active-pill); color: var(--mb-accent); font-size: 10.5px; font-weight: 700; }
.mb-gh-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--mb-muted); }
.mb-gh-meta i { width: 7px; height: 7px; border-radius: 50%; }

/* ── Tab 3 API 控制台 MineConsoleScreen.tsx ── */
.mb-console { display: flex; flex-direction: column; }
.mb-console__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 8px; background: var(--mb-surface); border-bottom: 1px solid var(--mb-hairline);
}
.mb-console__head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.mb-console__head-r { display: flex; align-items: center; gap: 6px; }
.mb-bal-pill {
  height: 28px; padding: 0 9px; border: 0; border-radius: 6px;
  background: rgba(246, 184, 86, 0.16); color: var(--mb-warn); font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700;
}

.mb-console__tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--mb-surface); border-bottom: 1px solid var(--mb-hairline);
}
.mb-console__tabs button {
  height: 36px; border: 0; border-bottom: 2px solid transparent; background: transparent;
  color: var(--mb-text-2); font-size: 11.5px; font-weight: 600;
}
.mb-console__tabs button.is-active { color: var(--mb-accent); border-bottom-color: var(--mb-accent); }

.mb-csec {
  padding: 12px 14px;
  background: var(--mb-surface);
  border-bottom: 1px solid var(--mb-hairline);
  margin-bottom: 8px;
}

.mb-csec__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12.5px; }
.mb-csec__head em { font-style: normal; font-size: 10.5px; color: var(--mb-muted); }

.mb-range5 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px;
  padding: 3px; border-radius: 8px; background: var(--mb-elevated); margin-bottom: 12px;
}
.mb-range5 button { height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--mb-text-2); font-size: 11px; font-weight: 600; }
.mb-range5 button.is-active { background: var(--mb-accent); color: var(--mb-on-accent); }

.mb-kpi3 { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.mb-kpi3 > div { border-right: 1px solid var(--mb-hairline); padding: 2px 4px; }
.mb-kpi3 > div:last-child { border-right: 0; }
.mb-kpi3 span { display: block; font-size: 10.5px; color: var(--mb-muted); }
.mb-kpi3 strong { display: block; margin: 2px 0; font-family: ui-monospace, monospace; font-size: 15px; font-weight: 800; }
.mb-kpi3 strong.is-warn { color: var(--mb-warn); }
.mb-kpi3 strong.is-accent { color: var(--mb-accent); }
.mb-kpi3 small { font-size: 9.5px; color: var(--mb-muted); }

.mb-metric3 { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: var(--mb-elevated); }
.mb-metric3 button { padding: 2px 7px; border: 0; border-radius: 4px; background: transparent; color: var(--mb-text-2); font-size: 10px; }
.mb-metric3 button.is-active { background: var(--mb-surface); color: var(--mb-text); font-weight: 700; }

.mb-tok-stack { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; }
.mb-tok-legend { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10.5px; color: var(--mb-text-2); }
.mb-tok-legend span { display: inline-flex; align-items: center; gap: 4px; }
.mb-tok-legend i { width: 7px; height: 7px; border-radius: 50%; }

.mb-svg-chart { width: 100%; height: 74px; display: block; }
.mb-chart-axis { display: flex; justify-content: space-between; font-family: ui-monospace, monospace; font-size: 9.5px; color: var(--mb-muted); margin-top: 4px; }

.mb-donut-wrap { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; }
.mb-donut { position: relative; width: 88px; height: 88px; }
.mb-donut svg { width: 100%; height: 100%; }
.mb-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mb-donut__center strong { font-family: ui-monospace, monospace; font-size: 14px; font-weight: 800; }
.mb-donut__center span { font-size: 9px; color: var(--mb-muted); }

.mb-donut-list { display: flex; flex-direction: column; gap: 6px; }
.mb-donut-item__top { display: flex; justify-content: space-between; font-size: 10px; margin-bottom: 2px; }
.mb-donut-item__top span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-donut-item__top i { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 6px; }
.mb-donut-item__top em { font-style: normal; color: var(--mb-muted); white-space: nowrap; }
.mb-donut-bar { height: 3.5px; border-radius: 999px; background: var(--mb-elevated); overflow: hidden; }
.mb-donut-bar span { display: block; height: 100%; border-radius: 999px; }

.mb-ep-row {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; margin-bottom: 6px; border: 0; border-radius: 8px; background: var(--mb-elevated); color: var(--mb-text); font-size: 11px;
}
.mb-ep-row em { font-style: normal; font-weight: 700; }
.mb-ep-row em.is-accent { color: var(--mb-accent); }
.mb-ep-row em.is-claude { color: var(--dk-claude); }
.mb-ep-row code { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--mb-text-2); }

.mb-key-row, .mb-log-row { padding: 9px 0; border-top: 1px solid var(--mb-hairline); }
.mb-key-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mb-key-row strong { display: block; font-size: 12.5px; }
.mb-key-row code { font-family: ui-monospace, monospace; font-size: 10px; color: var(--mb-muted); }

.mb-log-row__top, .mb-log-row__bot { display: flex; justify-content: space-between; font-size: 11.5px; }
.mb-log-row__top em { font-style: normal; color: var(--mb-warn); font-family: ui-monospace, monospace; }
.mb-log-row__bot { margin-top: 3px; font-size: 10px; color: var(--mb-muted); }
.mb-log-row__bot span { color: var(--mb-success); }

.mb-rt-banner { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--mb-hairline); margin-bottom: 10px; }
.mb-rt-banner i { width: 8px; height: 8px; border-radius: 50%; background: var(--mb-success); }
.mb-rt-banner strong { display: block; font-size: 12.5px; }
.mb-rt-banner span { font-size: 10.5px; color: var(--mb-muted); }

.mb-rt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mb-rt-grid > div { padding: 8px; border-radius: 8px; background: var(--mb-elevated); text-align: center; }
.mb-rt-grid span { display: block; font-size: 10px; color: var(--mb-muted); }
.mb-rt-grid strong { font-family: ui-monospace, monospace; font-size: 14px; }
.mb-rt-grid strong.is-ok { color: var(--mb-success); }

.mb-lat-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 46px; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 10.5px; }
.mb-lat-bar { height: 6px; border-radius: 999px; background: var(--mb-elevated); overflow: hidden; }
.mb-lat-bar i { display: block; height: 100%; border-radius: 999px; }
.mb-lat-row code { font-family: ui-monospace, monospace; text-align: right; color: var(--mb-text-2); }

/* 原生风格 Switch（固定品牌青轨道 + 白拇指） */
.mb-switch {
  width: 38px; height: 22px; padding: 2px; border: 0; border-radius: 999px;
  background: var(--mb-elevated); display: inline-flex; align-items: center; flex: 0 0 38px;
}
.mb-switch span { width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 160ms ease; }
.mb-switch.is-on { background: #6debf8; }
.mb-switch.is-on span { transform: translateX(16px); }

/* Tab 4 我的 */
.mb-mine { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.mb-mine__card { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: var(--mb-surface); }
.mb-mine__card strong { display: block; font-size: 14px; }
.mb-mine__card span { font-size: 11px; color: var(--mb-text-2); }
.mb-mine__row {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 12px 10px; border: 0; border-bottom: 1px solid var(--mb-hairline); background: transparent; color: var(--mb-text); font-size: 13px;
}
.mb-mine__row:last-child { border-bottom: 0; }
.mb-mine__row em { font-style: normal; font-size: 11.5px; color: var(--mb-muted); }

/* Push 二级页：聊天 / 定时任务 / 星绘工坊 */
.mb-chat, .mb-push-page { display: flex; flex-direction: column; height: 100%; background: var(--mb-bg); }
.mb-push-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: var(--mb-surface); border-bottom: 1px solid var(--mb-hairline);
}
.mb-mode-pill { flex: 1 1 auto; text-align: center; min-width: 0; }
.mb-mode-pill strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-mode-pill span { display: block; font-size: 10px; color: var(--mb-muted); }

.mb-cli-stripe { height: 2px; background: var(--dk-claude); }
.mb-cli-stripe.is-codex { background: var(--dk-codex); }
.mb-cli-stripe.is-antigravity { background: var(--dk-agy); }

.mb-chat__msgs { flex: 1 1 auto; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.mb-cmsg { font-size: 12.5px; line-height: 1.6; }
.mb-cmsg.is-user-flat {
  padding: 8px 10px; border-left: 2.5px solid var(--mb-accent); background: var(--mb-active-pill);
}
.mb-chat--claude .mb-cmsg.is-user-flat { border-left-color: var(--dk-claude); background: rgba(232, 169, 143, 0.14); }
.mb-chat--codex .mb-cmsg.is-user-flat { border-left-color: var(--dk-codex); background: rgba(122, 168, 255, 0.14); }
.mb-cmsg.is-user-bubble {
  align-self: flex-end; max-width: 86%; padding: 8px 11px; border-radius: 10px;
  background: var(--mb-elevated); border: 1px solid var(--mb-border);
}
.mb-cmsg.is-asst-flat { padding-top: 8px; border-top: 1px solid var(--mb-hairline); }
.mb-cmsg__think { font-size: 11px; color: var(--mb-accent); margin-bottom: 4px; }

.mb-inline-appr {
  padding: 10px; border-left: 2.5px solid var(--mb-warn); background: rgba(246, 184, 86, 0.1);
  display: flex; flex-direction: column; gap: 6px; font-size: 11.5px;
}
.mb-inline-appr.is-done { border-left-color: var(--mb-success); background: rgba(52, 211, 153, 0.1); }
.mb-inline-appr code { font-family: ui-monospace, monospace; font-size: 10.5px; color: var(--mb-accent); }
.mb-inline-appr > div { display: flex; gap: 8px; }
.mb-inline-appr button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; font-size: 11.5px; font-weight: 700; }
.mb-inline-appr button.is-ok { background: var(--mb-accent); color: var(--mb-on-accent); }
.mb-inline-appr button.is-no { background: rgba(248, 113, 149, 0.16); color: var(--mb-danger); }

/* XsUnifiedComposer */
.mb-composer-wrap { padding: 6px 10px 12px; background: var(--mb-bg); }
.mb-composer-pin { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-size: 10px; color: var(--mb-muted); }
.mb-token-ring {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px;
  border-radius: 999px; background: var(--mb-elevated); font-family: ui-monospace, monospace; color: var(--mb-text-2);
}
.mb-token-ring i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--mb-accent); border-top-color: transparent; }

.mb-composer {
  padding: 8px; border-radius: 12px; border: 1px solid var(--mb-border); background: var(--mb-surface);
  display: flex; flex-direction: column; gap: 6px;
}
.mb-composer__row { display: flex; align-items: center; gap: 7px; }
.mb-composer__plus, .mb-composer__send {
  width: 30px; height: 30px; border: 0; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 30px;
}
.mb-composer__plus { background: var(--mb-elevated); color: var(--mb-text); }
.mb-composer__send { background: var(--mb-accent); color: var(--mb-on-accent); }
.mb-composer__row input { flex: 1 1 auto; border: 0; background: transparent; color: var(--mb-text); font-size: 13px; outline: none; min-width: 0; }
.mb-composer__tray { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--mb-hairline); font-size: 10.5px; color: var(--mb-muted); }
.mb-composer__tray button { border: 0; padding: 2px 8px; border-radius: 999px; background: var(--mb-elevated); color: var(--mb-text); font-family: ui-monospace, monospace; font-size: 10.5px; }

/* 定时任务 & 星绘工坊 */
.mb-push-page .mb-seg2 { margin: 10px 12px 6px; }
.mb-chips-row { display: flex; gap: 6px; padding: 0 12px 8px; overflow-x: auto; }
.mb-chips-row button { height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--mb-surface); color: var(--mb-text-2); font-size: 11px; white-space: nowrap; }
.mb-chips-row button.is-active { background: var(--mb-text); color: var(--mb-bg); font-weight: 700; }
.mb-sch-list { flex: 1 1 auto; overflow-y: auto; padding: 0 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.mb-sch-card { padding: 12px; border-radius: 16px; background: var(--mb-surface); display: flex; flex-direction: column; gap: 8px; }
.mb-sch-card.is-off { opacity: 0.68; }
.mb-sch-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mb-sch-card__top strong { display: block; font-size: 13px; }
.mb-sch-card__top span { font-size: 11px; color: var(--mb-text-2); }
.mb-sch-card__bot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--mb-muted); }
.mb-sch-card__bot em { font-style: normal; padding: 1px 7px; border-radius: 999px; font-weight: 700; }
.mb-sch-card__bot em.is-ok { background: rgba(52, 211, 153, 0.14); color: var(--mb-success); }
.mb-sch-card__bot em.is-run { background: var(--mb-active-pill); color: var(--mb-accent); }
.mb-sch-run { margin-left: auto; height: 24px; padding: 0 9px; border: 0; border-radius: 999px; background: var(--mb-active-pill); color: var(--mb-accent); font-size: 10.5px; font-weight: 700; }

.mb-masonry { flex: 1 1 auto; overflow-y: auto; padding: 4px 12px 8px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-content: start; }
.mb-mcard { border-radius: 16px; overflow: hidden; background: var(--mb-surface); }
.mb-mcard__img { position: relative; height: 112px; }
.mb-mcard.is-tall .mb-mcard__img { height: 138px; }
.mb-mcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mb-mcard__tag { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(9, 11, 17, 0.65); color: #fff; font-size: 9.5px; }
.mb-mcard__same { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border: 0; border-radius: 999px; background: rgba(99, 81, 212, 0.88); color: #fff; font-size: 9.5px; font-weight: 700; }
.mb-mcard strong { display: block; padding: 7px 8px; font-size: 11.5px; }

.mb-ratio-bar { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 6px; }
.mb-ratio-bar button { height: 24px; padding: 0 8px; border: 0; border-radius: 999px; background: var(--mb-surface); color: var(--mb-text-2); font-size: 10px; white-space: nowrap; }
.mb-ratio-bar button.is-active { background: var(--mb-active-pill); color: var(--mb-accent); font-weight: 700; }

/* 底部弹出抽屉（设备切换 / 模型选择） */
.mb-sheet-mask {
  position: absolute; inset: 0; z-index: 20; background: rgba(2, 5, 13, 0.6);
  display: flex; align-items: flex-end;
}
.mb-sheet {
  width: 100%; padding: 16px 14px 18px; border-radius: 24px 24px 0 0;
  background: var(--mb-surface); color: var(--mb-text); display: flex; flex-direction: column; gap: 10px;
}
.mb-sheet h4 { margin: 0; font-size: 15px; }
.mb-sheet__close { height: 34px; border: 0; border-radius: 10px; background: var(--mb-elevated); color: var(--mb-text-2); font-size: 12px; font-weight: 600; }

.mb-mpick__head { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--mb-hairline); padding-bottom: 8px; font-size: 12.5px; color: var(--mb-muted); }
.mb-mpick__head .is-active { color: var(--mb-accent); font-weight: 700; }
.mb-mpick__head button { margin-left: auto; border: 0; background: transparent; color: var(--mb-muted); }
.mb-mpick__list { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.mb-mpick__row { display: flex; justify-content: space-between; align-items: center; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: var(--mb-text); text-align: left; }
.mb-mpick__row.is-active, .mb-mpick__row:hover { background: var(--mb-elevated); }
.mb-mpick__row strong { display: block; font-family: ui-monospace, monospace; font-size: 12px; }
.mb-mpick__row small { font-size: 10px; color: var(--mb-muted); }
.mb-mpick__row em { font-style: normal; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; }
.mb-mpick__row em.is-free { background: rgba(52, 211, 153, 0.16); color: var(--mb-success); }
.mb-mpick__row em.is-discount { background: var(--mb-active-pill); color: var(--mb-accent); }
.mb-mpick__row em.is-normal { background: var(--mb-elevated); color: var(--mb-text-2); }

/* ── 响应式断点 ── */
@media (max-width: 1180px) {
  .xsd-mode-sync .xsd-stage { grid-template-columns: minmax(0, 1fr); }
  .mb-shell--companion { width: min(368px, 100%); }
  .dk-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-cli { grid-template-columns: 200px minmax(0, 1fr); }
  .dk-cli__right { display: none; }
}

@media (max-width: 960px) {
  body.storefront.storefront--download .download-hero--v2 .download-hero__shell,
  body.storefront.storefront--download .download-requirements--three { grid-template-columns: minmax(0, 1fr); }
  .dk-split-aside { grid-template-columns: minmax(0, 1fr); }
  .dk-aside { border-left: 0; border-top: 1px solid var(--dk-border-soft); }
  .dk-mother { grid-template-columns: minmax(0, 1fr); }
  .dk-mother__left, .dk-mother__right { display: none; }
  .dk-titlebar__coord, .dk-hero__live { display: none; }
  .dk-home-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .xsd-root { padding: 10px; }
  .dk-shell { grid-template-columns: 62px minmax(0, 1fr); }
  .dk-dock__home-text, .dk-dock__label, .dk-dock__ghead span, .dk-credit__body, .dk-credit__plus, .dk-avatar-meta { display: none; }
  .dk-dock__home, .dk-dock__item, .dk-credit, .dk-avatar-row { justify-content: center; padding: 0; }
  .dk-catalog-grid { grid-template-columns: 1fr; }
}
