/* =========================================================================
   HistoPilot 介绍主页（未登录 /）—— ZCode 风格深色产品页
   docs/histopilot-com-landing-page.md §2/§5
   - 深色底 #161616、近白正文、低对比描边 rgba(255,255,255,.10)
   - 主 CTA 白底黑字大圆角；次 CTA 透明描边
   - 系统字体栈（无外部字体/CDN）；尊重 prefers-reduced-motion
   ========================================================================= */

:root {
  --bg: #161616;
  --bg-raise: #1b1b1b;
  --bg-deep: #101010;
  --text: #f4f4f4;
  --text-2: rgba(244, 244, 244, 0.64);
  --text-3: rgba(244, 244, 244, 0.60);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --radius: 16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- 可访问性：跳过顶栏直达主内容 ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================================
   顶栏（粘性：左品牌 / 中锚点 / 右语言 + 登录）
   ========================================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 22, 0.88);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links li { flex: 0 0 auto; }
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 10px;
  color: #f3c68c;
  border: 1px solid rgba(243, 198, 140, 0.28);
  border-radius: 8px;
  background: rgba(243, 198, 140, 0.08);
}
.nav-links .nav-support:hover { color: #ffe0b7; background: rgba(243, 198, 140, 0.16); }
.nav-support svg { flex: none; }
.nav-links .ext {
  font-size: 11px;
  color: var(--text-3);
  margin-left: 3px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ---- 语言切换（沿用 i18n.js 的 .lang-toggle，深色化） ---- */
.lang-toggle {
  height: 34px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lang-toggle:hover { color: var(--text); border-color: var(--line-strong); }
.route-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; white-space: nowrap; }
.route-switch a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; color: var(--text-2); border-radius: 999px; font-size: 13px; text-decoration: none; }
.route-switch a:hover, .route-switch a:focus-visible { color: var(--text); background: rgba(255,255,255,.08); }
.route-switch a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.13); }
.nav-lang { display: flex; align-items: center; }
.nav-lang .lang-toggle { min-height: 44px; }
@media (max-width: 380px) { .route-switch a { font-size: 12px; padding: 0 7px; } .topbar-actions { gap: 6px; } }

/* ---- 账户头像（H2：右上唯一身份入口；disclosure 面板承载操作） ---- */
.topbar-actions { position: relative; }
.account-btn {
  height: 44px;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.account-btn:hover, .account-btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.12);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.account-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 216px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.account-name {
  padding: 8px 12px 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.account-link {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 13.5px;
  font-family: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.account-logout { margin: 0; }
.account-logout .account-link { color: var(--text-3); }
.account-note {
  padding: 9px 12px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.5;
}

/* =========================================================================
   按钮（主：白底黑字胶囊；次：透明描边）
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: #fff; color: #111; }
.btn-primary:hover { background: rgba(255, 255, 255, 0.86); color: #111; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.05);
}
.btn-sm { height: 34px; padding: 0 18px; font-size: 13px; }
.logout-form { display: inline-flex; margin: 0; }

/* =========================================================================
   Hero：左文右 mock
   ========================================================================= */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 26px;
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  flex: 0 0 auto;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.lead {
  font-size: 17px;
  color: var(--text-2);
  max-width: 54ch;
  margin-bottom: 36px;
}
.hero-actions, .conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.hero-hint { font-size: 13px; color: var(--text-3); }
.hero-register { font-size: 13.5px; color: var(--text-2); }
.hero-register a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.hero-register a:hover { text-decoration: none; }
.hero-register-note { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.hero-actions .hero-hint, .hero-actions .hero-register { flex: 1 0 100%; }

/* =========================================================================
   工作台预览（H1：真实截图，示例切片；测试环境拍摄，见交付记录）
   ========================================================================= */
.workbench-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  margin: 0;
}
.workbench-preview-frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.25);
}
.workbench-preview-body { position: relative; aspect-ratio: 1440 / 900; }
.workbench-preview-body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-deep);
}
.workbench-preview-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 16, 16, 0.72);
  color: rgba(244, 244, 244, 0.82);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.workbench-preview-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.cap-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 12.5px;
}
.cap-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.55);
}

/* =========================================================================
   如何开始（H1：四步真实用户旅程；第一步文案按注册模式由模板切换）
   ========================================================================= */
.section-tight { padding-top: 8px; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: none;
}
.step {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
}
.step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.10);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.step h3 { margin-bottom: 6px; color: var(--text); font-size: 15px; }
.step p { color: var(--text-3); font-size: 13px; line-height: 1.6; }
.steps-note { margin-top: 12px; color: var(--text-3); font-size: 12.5px; }
.conversion-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.conversion-section .conversion-actions { margin-top: 24px; }
.public-guide { width: min(900px, calc(100% - 40px)); margin: 60px auto; }
.public-guide p { line-height: 1.8; }
.public-page-list { padding-left: 24px; }
.public-page-list li { margin-bottom: 24px; }
.public-page-list a { font-size: 19px; font-weight: 600; }
.public-page-list p { color: var(--text-2); margin-top: 8px; }
@media (max-width: 767px) { .steps.conversion-steps { grid-template-columns: 1fr; } }
@media (max-width: 1079px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  background: #181818;
  border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 6px; }
.lights i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.mock-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
@keyframes hp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* =========================================================================
   区块通用
   ========================================================================= */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 32px;
  text-wrap: balance;
}

/* ---- 更新内容 ---- */
.whats-new-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 720px;
}
.whats-new-release {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-raise);
  padding: 18px 20px 8px;
}
.whats-new-release.is-latest {
  border-color: var(--line-strong);
}
.whats-new-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
  margin-bottom: 12px;
  list-style: none;
}
.whats-new-release:not(.is-latest) .whats-new-head { cursor: pointer; }
.whats-new-version {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 650;
}
.whats-new-date {
  font-size: 13px;
  color: var(--text-3);
}
.whats-new-items {
  margin: 0 0 12px 1.1em;
  padding: 0;
}
.whats-new-items li {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 8px;
}
.whats-new-empty { font-size: 14px; color: var(--text-2); }
.whats-new-release summary::-webkit-details-marker { display: none; }
.whats-new-release summary::after {
  content: "";
  margin-left: auto;
  width: 0.55em;
  height: 0.55em;
  border-right: 1.5px solid var(--text-3);
  border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.whats-new-release[open] summary::after { transform: rotate(225deg); }

/* ---- 产品如何工作：三列步骤 ---- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card { border-top: 1px solid var(--line); padding-top: 22px; }
.how-card .no {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  display: block;
  margin-bottom: 14px;
}
.how-card h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.how-card p { font-size: 14px; color: var(--text-2); }

.section-lead {
  max-width: 68ch;
  color: var(--text-2);
  font-size: 16px;
  margin: 12px 0 28px;
}

/* ---- 原理演示舞台 ---- */
.demo-stage {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-deep);
}
.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #181818;
}
.demo-tabs { display: flex; gap: 8px; }
.demo-tab {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.demo-tab.is-on {
  background: #fff;
  color: #111;
  border-color: transparent;
}
.demo-actions { display: flex; gap: 8px; margin-left: auto; }
.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.8fr);
}
.slide-stage {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: linear-gradient(145deg, #2b1521, #1f1524 55%, #261a21);
}
.slide-world {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #814c68, #bc7d91 55%, #97617b);
  transform: scale(1);
  transform-origin: center;

}
.demo-panel {
  padding: 18px 16px 16px;
  background: #141414;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-status { font-size: 14px; color: var(--text); line-height: 1.55; }
.demo-steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.demo-steps.is-hidden { display: none; }
.demo-steps li {
  font-size: 13px;
  color: var(--text-3);
  padding-left: 18px;
  position: relative;
}
.demo-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.demo-steps li.is-on { color: var(--text); }
.demo-steps li.is-on::before { background: #fff; border-color: #fff; }
.demo-steps li.is-done { color: var(--text-2); }
.demo-steps li.is-done::before { background: rgba(255, 255, 255, 0.55); }
.demo-footnote { margin-top: auto; font-size: 12px; color: var(--text-3); }

/* ---- 能力：三张卡 ---- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cap-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cap-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  background: var(--bg-raise);
  transition: border-color 0.15s ease;
}
.cap-card:hover { border-color: var(--line-strong); }
.cap-card .icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-2);
}
.cap-card h3 {
  font-size: 15.5px;
  font-weight: 650;
  margin-bottom: 6px;
}
.cap-card p { font-size: 13.5px; color: var(--text-2); }

/* ---- 套件：三张仓库卡 ---- */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.suite-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.15s ease;
}
.suite-card:hover { border-color: var(--line-strong); }
.suite-card .repo {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}
.suite-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.suite-card p { font-size: 14px; color: var(--text-2); flex: 1; }
.suite-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.suite-card a .arrow { transition: transform 0.15s ease; }
.suite-card a:hover .arrow { transform: translateX(3px); }

/* =========================================================================
   页脚
   ========================================================================= */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 52px;
}
.footer-note { font-size: 13.5px; color: var(--text-2); margin-bottom: 20px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 24px;
}
.footer-links a {
  color: var(--text-3);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: var(--text); }
.footer-links .sep { color: var(--text-3); font-size: 13px; }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* =========================================================================
   响应式
   ========================================================================= */
@media (max-width: 1079px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .cap-grid,
  .cap-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .demo-body { grid-template-columns: 1fr; }
  .demo-panel { border-left: none; border-top: 1px solid var(--line); }
  .suite-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
    row-gap: 8px;
  }
  .nav-links {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  /* 窄屏导航横向滚动时语言切换始终可见 */
  .nav-lang { position: sticky; right: 0; margin-left: auto; padding-left: 12px; background: linear-gradient(to right, rgba(22,22,22,0), var(--bg) 12px); }
  .hero h1 { font-size: 36px; }
  .hero { padding: 40px 16px 56px; }
  .section { padding: 56px 16px; }
  .cap-grid,
  .cap-grid-3 { grid-template-columns: 1fr; }
  .demo-toolbar { flex-direction: column; align-items: stretch; }
  .demo-actions { margin-left: 0; }
  .hero-actions .btn, .conversion-actions .btn { flex: 1 1 auto; }
}

/* =========================================================================
   减少动画（prefers-reduced-motion）
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* A single product flow, with an actual shared camera for all magnifications. */
.demo-heading { margin-top: 32px; font-size: 22px; scroll-margin-top: 100px; }

.demo-loop-hint { margin-left: auto; font-size: 12px; color: var(--text-3); }

/* 复核解读卡：钉弹出时淡入；目标区用待复核强调色，非目标用中性描边。 */
.demo-review { display: none; padding: 12px; border: 1px solid #5c6470; border-radius: 8px; color: #dfe3e8; font-size: 13px; line-height: 1.6; }
.demo-review.is-in { display: block; animation: hp-card-in .35s ease; }
.demo-review.is-target { border-color: #a98034; color: #f4e3c0; background: #2a2416; }
@keyframes hp-card-in { from { opacity: 0; transform: translateY(4px); } }
.slide-stage { aspect-ratio: 1; min-height: 0; align-self: start; background: #111; }
.shot-viewport { position: absolute; inset: 0; overflow: hidden; background: #1a1416; }
.shot-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; opacity: 0;
  will-change: transform, opacity;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.shot-img.is-wide { object-fit: contain; }

/* 蓝框：模拟 Agent 在图上画出的观察框；解读贴在框边逐字流出。 */
.anno-box {
  position: absolute;
  border: 2px solid #007AFF;
  background: rgba(0, 122, 255, 0.10);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.anno-box.is-on { opacity: 1; }
.anno-a { left: 26%; top: 5%; width: 48%; height: 40%; }
.anno-b { left: 5%; top: 12%; width: 50%; height: 44%; }
.anno-a.is-wide { left: 27%; top: 50%; width: 10%; height: 12%; }
.anno-b.is-wide { left: 76%; top: 55%; width: 10%; height: 12%; }
.anno-caption {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: max(180px, 100%);
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(12, 18, 28, 0.92);
  border-left: 3px solid #007AFF;
  color: #e8f1ff;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.anno-b .anno-caption { left: calc(100% + 8px); top: 0; width: 200px; }
.anno-box.is-wide .anno-caption { width: 150px; font-size: 11px; }
.anno-b.is-wide .anno-caption { left: auto; right: calc(100% + 8px); width: 150px; }
.demo-source { font-size: 12px; color: var(--text-2); margin-top: auto; }
.demo-footnote { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .anno-box.is-on { opacity: 1; }
}

/* Homepage review: clearer hierarchy and labels that stay inside the viewport. */
.section { scroll-margin-top: 112px; }
.hero-copy { min-width: 0; }
.demo-panel { padding: 24px; }
.demo-status { min-height: 4.8em; }
.demo-steps li { padding: 9px 12px 9px 28px; border-radius: 6px; }
.demo-steps li::before { left: 10px; top: 16px; }
.demo-steps li.is-on { background: #ffffff0a; }
@media (max-width: 1079px) and (min-width: 721px) {
  .hero { gap: 32px; }
  .hero-copy { max-width: 680px; }
  .how-grid, .cap-grid-3, .suite-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .demo-body { grid-template-columns: minmax(0, 1.4fr) minmax(240px, .8fr); }
}
@media (max-width: 720px) {
  .hero { gap: 28px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); }
  .lead { font-size: 16px; margin-bottom: 24px; }
  .badge { font-size: 11px; margin-bottom: 20px; }
  .demo-loop-hint { margin-left: 0; }
  .demo-panel { padding: 18px 16px; }
  .demo-steps { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .demo-status { min-height: 0; }
  .anno-b:not(.is-wide) .anno-caption { left: 0; top: calc(100% + 8px); width: 220px; max-width: 80vw; }
  .anno-box.is-wide .anno-caption { width: 116px; }
  .anno-a.is-wide .anno-caption { left: -60px; }
  .anno-b.is-wide .anno-caption { left: auto; right: 0; top: calc(100% + 38px); width: 130px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn-sm { padding: 0 12px; }
}

/* Approved SVG tissue walkthrough, scoped to the homepage component. */
.tissue-demo .viewer{border:1px solid #ffffff1c;border-radius:15px;overflow:hidden;background:#1b191c;box-shadow:0 25px 70px #0003}
.tissue-demo .toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:16px 20px;border-bottom:1px solid #ffffff13;font-size:13px}
.tissue-demo .toolbar>span:first-child{display:flex;align-items:center;gap:8px}
.tissue-demo .toolbar i{display:block;width:7px;height:7px;border-radius:50%;background:#ba829f}
.tissue-demo .schematic{color:#aba0ae;font-size:11px}
.tissue-demo .body{display:grid;grid-template-columns:minmax(0,1fr) 284px}
.tissue-demo .canvas{position:relative;overflow:hidden;aspect-ratio:900/680;background:#edc5d4}
.tissue-demo #tissue{display:block;width:100%;height:100%;overflow:hidden}
.tissue-demo .corner{position:absolute;bottom:15px;left:15px;background:#251525d9;border:1px solid #ffffff33;padding:7px 10px;border-radius:6px;font-size:11px;color:#f7eef4;display:flex;gap:8px}
.tissue-demo .dot{color:#af8fa9}
.tissue-demo aside{padding:25px 23px;display:flex;flex-direction:column;border-left:1px solid #ffffff12}
.tissue-demo .agent-label{font-size:10px;letter-spacing:1.4px;color:#ac9ead;display:flex;align-items:center;gap:7px}
.tissue-demo .agent-dot{width:6px;height:6px;border-radius:50%;background:#93c9b0}
.tissue-demo aside h2{font-size:19px;line-height:1.45;font-weight:600;margin:25px 0 12px}
.tissue-demo #status{font-size:13px;line-height:1.85;color:#bdb3c0;min-height:76px;margin:0}
.tissue-demo ol{list-style:none;padding:0;display:grid;gap:4px;margin:23px 0}
.tissue-demo li{color:#958a99;font-size:12px;position:relative;padding:9px 12px 9px 28px;border-radius:5px}
.tissue-demo li:before{content:"";width:6px;height:6px;position:absolute;left:10px;top:13px;border:1px solid #807184;border-radius:50%}
.tissue-demo li.active{background:#ffffff08;color:#f5eef6}
.tissue-demo li.active:before{background:#d9b0c8;border-color:#d9b0c8}
.tissue-demo li.done:before{background:#7d6073;border-color:#7d6073}
.tissue-demo .legend{margin-top:auto;display:flex;flex-wrap:wrap;gap:13px;font-size:10px;color:#b4a7b8}
.tissue-demo .legend span{display:flex;align-items:center;gap:5px}
.tissue-demo .legend i{width:9px;height:9px;display:block;border-radius:50%}
.tissue-demo .nucleus{background:#8d497f}
.tissue-demo .lumen{background:#f4e5e6}
.tissue-demo .legend .mark{border:1px solid #007aff;border-radius:2px}
.tissue-demo .aside-note{font-size:10px;line-height:1.8;color:#948898;border-top:1px solid #ffffff10;padding-top:15px;margin:18px 0 0}
.tissue-demo .controls{padding:13px 18px;display:flex;align-items:center;gap:9px;border-top:1px solid #ffffff13}
.tissue-demo .progress{height:2px;background:#ffffff15;flex:1;margin-right:12px;border-radius:5px;overflow:hidden}
.tissue-demo .progress span{display:block;width:0;height:100%;background:#ca9bb8}
.tissue-demo #count{font-size:10px;font-variant-numeric:tabular-nums;color:#a89bae;margin-right:5px}
.tissue-demo button{border:1px solid #ffffff1a;background:#242026;color:#dcd2df;min-width:34px;height:34px;border-radius:6px;padding:0 10px;font:inherit;font-size:12px;cursor:pointer}
.tissue-demo button:hover{border-color:#a9819a;background:#312935}
.tissue-demo button:disabled{opacity:.3;cursor:default}
.tissue-demo button:focus-visible{outline:2px solid #dba9c9;outline-offset:3px}
.tissue-demo .note{position:absolute;left:20px;right:20px;bottom:57px;display:flex;gap:12px;padding:13px 15px;background:#171d2bed;border:1px solid #7caceb55;border-left:3px solid #007aff;border-radius:7px;max-width:350px;color:#edf3ff}
.tissue-demo .note[hidden]{display:none}
.tissue-demo .note>span{font-size:12px;color:#89b9ff;margin-top:2px}
.tissue-demo .note strong{font-size:12px;font-weight:600}
.tissue-demo .note p{font-size:11px;line-height:1.7;color:#b9c9e2;margin:5px 0 0}
@media(max-width:760px){.tissue-demo .body{grid-template-columns:1fr}
.tissue-demo .canvas{aspect-ratio:1}
.tissue-demo aside{border-left:0;border-top:1px solid #ffffff12;padding:20px}
.tissue-demo aside h2{margin:14px 0 8px;font-size:17px}
.tissue-demo #status{min-height:0}
.tissue-demo ol{display:flex;flex-wrap:wrap;margin:16px 0;gap:2px}
.tissue-demo li{font-size:11px;padding:8px 8px 8px 23px}
.tissue-demo li:before{left:9px;top:11px}
.tissue-demo .legend{margin-top:4px}
.tissue-demo .aside-note{margin-top:14px}
.tissue-demo .toolbar{padding:13px;font-size:12px}
.tissue-demo .schematic{font-size:10px}
.tissue-demo .controls{padding:12px;gap:6px}
.tissue-demo button{height:40px;min-width:37px}
.tissue-demo .note{left:14px;right:14px;bottom:57px;max-width:310px}
.tissue-demo .progress{margin-right:3px}
.tissue-demo #count{font-size:9px}
}
.tissue-demo #note-body{min-height:3.4em}
.tissue-demo #note-title.streaming::after,.tissue-demo #note-body.streaming::after{content:"▍";color:#8cbdff;margin-left:2px}
.tissue-demo .review-pin{position:absolute;max-width:180px;width:43%;padding:9px 11px;border:1px solid #79acff80;border-left:3px solid #007aff;border-radius:6px;background:#152237ed;color:#edf3ff;pointer-events:none;box-shadow:0 3px 14px #0002}
.tissue-demo .review-pin[hidden]{display:none}
.tissue-demo .review-pin strong{display:block;font-size:11px;font-weight:600}
.tissue-demo .review-pin span{display:block;margin-top:4px;font-size:10px;line-height:1.5;color:#c7d9f2}
.tissue-demo #note-title{display:block;min-height:1.5em}

.tissue-demo #tissue{max-width:100%}.tissue-demo .viewer{box-shadow:none}.tissue-demo .body{grid-template-columns:minmax(0,1fr) 270px}@media(max-width:760px){.tissue-demo .body{grid-template-columns:1fr}}

/* =========================================================================
   登录弹窗（<dialog id="login-dialog">，_login_dialog.html）
   - showModal：top-layer 居中 + ::backdrop 半透明遮罩（entry-auth.js 升级模态）
   - 无 JS 退化：服务端 open 属性直出时按 fixed 居中浮层呈现
   - body.login-dialog-open 期间锁定背景滚动
   ========================================================================= */
.login-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(400px, calc(100vw - 32px));
  height: fit-content;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raise);
  color: var(--text);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.login-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}
body.login-dialog-open { overflow: hidden; }

.login-dialog-card {
  position: relative;
  padding: 36px 32px 28px;
}
.login-dialog-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.login-dialog-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.login-dialog-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.login-dialog-kicker {
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-3);
}
.login-dialog h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.login-dialog-subtitle {
  margin: 6px 0 18px;
  font-size: 14px;
  color: var(--text-2);
}

.login-dialog-message,
.login-dialog-error {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}
/* 基调=中性（信息框）；成功/提示/警示用语气变体（2026-10-08 设计 §5：
   绿色只表示「已受理/已发送」类成功态，绝不用于受限/失败态） */
.login-dialog-message {
  background: var(--bg-deep);
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.login-dialog-message-ok {
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.35);
  color: #7ddc9a;
}
.login-dialog-message-info {
  background: rgba(10, 132, 255, 0.10);
  border-color: rgba(10, 132, 255, 0.32);
  color: #9ecbff;
}
.login-dialog-message-warn {
  background: rgba(255, 159, 10, 0.12);
  border-color: rgba(255, 159, 10, 0.38);
  color: #ffc46b;
}
.login-dialog-error {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.35);
  color: #ff8a80;
}
.login-dialog-error #login-dialog-countdown,
.login-dialog-error #register-dialog-countdown { font-variant-numeric: tabular-nums; }

/* 双视图（登录/注册）：一次只显示一个（hidden 属性兜底 display:none） */
.login-dialog .auth-view[hidden] { display: none; }
.login-dialog-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}

/* 注册：唯一的自愿共享复选框（不预勾选；说明链接新窗口打开且不影响选中状态） */
.login-dialog form label.login-dialog-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  cursor: pointer;
}
.login-dialog form label.login-dialog-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: none;
  margin: 3px 0 0;
}
.login-dialog form label.login-dialog-check a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}
.login-dialog form label.login-dialog-check a:hover { border-bottom-color: var(--text); }
.login-dialog-legal { margin-top: 14px; }
.login-dialog-legal a { color: var(--text-2); border-bottom: 1px solid var(--line-strong); text-decoration: none; }
.login-dialog-legal a:hover { color: var(--text); border-bottom-color: var(--text); }

.login-dialog form label {
  display: block;
  margin: 10px 0 6px;
  font-size: 13px;
  color: var(--text-2);
}
.login-dialog form input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.login-dialog form input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 1px;
  border-color: transparent;
}
.login-dialog-submit {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.login-dialog-submit:hover { background: rgba(255, 255, 255, 0.86); }
.login-dialog-submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.login-dialog-submit:disabled { opacity: 0.5; cursor: default; }

.login-dialog-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
}
.login-dialog-links a {
  max-width: 100%;
  min-height: 32px;
  line-height: 1.5;
  padding: 6px 0;
  overflow-wrap: break-word;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.login-dialog-links a:hover { border-bottom-color: var(--text); }

.login-dialog-forgot {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
}

/* ---- 注册防刷状态 UX（2026-10-08 设计 §5/§7）---- */
/* Cloudflare Turnstile 容器：不预留高度（未渲染时收起——重发倒计时中/加载
   中只显示占位小字）；flexible 尺寸随弹窗宽度自适应（375px 不溢出） */
#register-turnstile {
  width: 100%;
  margin-top: 14px;
}
#register-turnstile iframe { max-width: 100%; }
/* 渲染前占位（中性小字；渲染成功/失败后移除或让位于提示） */
.register-turnstile-placeholder {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
}
/* 就地提示（token 未就绪 / 挑战加载失败）：中性措辞，绝不说「机器人」 */
.register-turnstile-notice {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-deep);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.register-turnstile-notice-text { flex: 1 1 auto; min-width: 100%; }
.register-turnstile-retry {
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.register-turnstile-retry:hover { background: rgba(255, 255, 255, 0.08); }
.register-turnstile-retry:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.register-turnstile-notice-help {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}
.register-turnstile-notice-help:hover { border-bottom-color: var(--text); }
/* 倒计时（仅展示；服务端权威）：等宽数字避免跳动 */
.login-dialog-countdown {
  display: block;
  margin: -6px 0 12px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
/* resend_submitted / new_link 态强调求助链接 */
.login-dialog-links a.login-dialog-links-strong {
  font-weight: 600;
  color: #fff;
  border-bottom-width: 2px;
}
/* limit 态主操作（给作者发邮件）：按钮式链接 */
a.login-dialog-primary-link {
  display: block;
  width: 100%;
  height: 44px;
  line-height: 44px;
  margin-top: 18px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
a.login-dialog-primary-link:hover { background: rgba(255, 255, 255, 0.86); }
a.login-dialog-primary-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (max-width: 720px) {
  .login-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .login-dialog-card { padding: 28px 20px 22px; }
  .login-dialog-links { gap: 10px; }
}

/* Prominent local converter entry, available with or without an account. */
.converter-entry { display: grid; gap: 8px; margin-top: 24px; padding: 18px 20px; border: 1px solid #73c8c0; border-radius: 12px; background: rgba(75, 180, 165, .12); color: inherit; text-decoration: none; }
.converter-entry strong { color: #a1e8dc; font-size: 19px; }
.converter-entry span { font-size: 14px; line-height: 1.65; }
.converter-entry:hover { background: rgba(75, 180, 165, .22); }
.converter-entry:focus-visible { outline: 3px solid #a1e8dc; outline-offset: 4px; }

/* Collaboration walkthrough: one static tissue image; transitions stay local. */
.collab-section { border-top: 1px solid var(--line); }
.collab-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.collab-copy h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.collab-copy h2 span { display: block; }
.collab-copy .section-lead { margin-top: 18px; }
.collab-features { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 22px; }
.collab-features li { display: flex; gap: 14px; }
.collab-features li > span { font-size: 12px; color: #78b6ff; padding-top: 5px; font-variant-numeric: tabular-nums; }
.collab-features h3 { font-size: 16px; font-weight: 600; margin: 0 0 5px; }
.collab-features p { font-size: 14px; line-height: 1.75; color: var(--text-2); margin: 0; }
.collab-demo { min-width: 0; container-type: inline-size; }
.collab-window { border: 1px solid #404047; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 48px #0004; background: #f5f5f8; color: #25252c; }
.collab-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 56px; padding: 10px 18px; background: #fff; border-bottom: 1px solid #dedee5; }
.collab-window-title { font-size: 13px; font-weight: 600; }
.collab-people { display: flex; gap: 6px; }
.collab-person { font-size: 11px; border-radius: 20px; padding: 5px 9px; white-space: nowrap; }
.collab-person-a { background: #e6f0ff; color: #0961bf; }
.collab-person-b { background: #e3f6ef; color: #187654; }
.collab-workspace { display: grid; grid-template-columns: minmax(0,1fr) 172px; height: 360px; }
.collab-canvas { min-width: 0; position: relative; overflow: hidden; background: #f5eff2; }
.collab-scene { position: absolute; inset: 0; transition: transform .65s cubic-bezier(.2,.65,.3,1); }
/* Image and annotations share one SVG coordinate system: never stretch labels. */
.collab-demo[data-step="1"] .collab-scene, .collab-demo[data-step="2"] .collab-scene { transform: scale(1.12); }
.collab-marks { position: absolute; inset: 0; width: 100%; height: 100%; }
.collab-marks g { opacity: 0; transition: opacity .3s; }
.collab-mark-a { color: #0879ee; }
.collab-mark-b { color: #18825b; }
.collab-marks rect:not(.collab-mark-label), .collab-marks path { fill: #ffffff10; stroke: currentColor; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s ease; }
.collab-marks .collab-mark-label { fill: currentColor; }
.collab-marks text { font-size: 15px; fill: #fff; font-weight: 600; }
.collab-demo[data-step="1"] .collab-mark-a, .collab-demo[data-step="2"] .collab-mark-a, .collab-demo[data-step="2"] .collab-mark-b { opacity: 1; }
.collab-demo[data-step="1"] .collab-mark-a rect:not(.collab-mark-label), .collab-demo[data-step="2"] .collab-mark-a rect:not(.collab-mark-label), .collab-demo[data-step="2"] .collab-mark-b rect:not(.collab-mark-label) { stroke-dashoffset: 0; }
.collab-share-card { position: absolute; left: 50%; top: 50%; width: calc(100% - 32px); max-width: 340px; transform: translate(-50%, -50%); padding: 20px; background: #fffffffa; border: 1px solid #ffffff; border-radius: 14px; box-shadow: 0 10px 28px #442d492c; transition: opacity .3s, transform .5s; }
.collab-demo:not([data-step="0"]) .collab-share-card { opacity: 0; transform: translate(-50%, calc(-50% - 12px)) scale(.96); pointer-events: none; }
.collab-card-eyebrow { font-size: 11px; color: #77737e; display: block; margin-bottom: 7px; }
.collab-share-card strong { font-size: 15px; font-weight: 600; }
.collab-share-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.collab-share-options span { font-size: 11px; background: #f2f4f8; padding: 5px 8px; border-radius: 6px; color: #51515e; }
.collab-share-link { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; padding: 10px 12px; border-radius: 8px; color: #fff; background: #0879ee; }
.collab-canvas-caption { position: absolute; bottom: 10px; left: 10px; font-size: 10px; color: #534653; background: #ffffffe6; padding: 4px 7px; border-radius: 4px; }
.collab-annotations { min-width: 0; overflow: auto; padding: 16px 12px; border-left: 1px solid #dedee5; background: #f5f5f8; }
.collab-list-heading { font-size: 12px; font-weight: 600; padding-bottom: 14px; }
.collab-empty { font-size: 12px; line-height: 1.8; color: #87828d; transition: opacity .2s; }
.collab-demo:not([data-step="0"]) .collab-empty { display: none; }
.collab-note { opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s; border: 1px solid #d8e8fb; background: #fff; padding: 11px; border-radius: 9px; margin-bottom: 12px; }
.collab-note-b { border-color: #cee9dc; }
.collab-demo[data-step="1"] .collab-note-a, .collab-demo[data-step="2"] .collab-note { opacity: 1; transform: translateY(0); }
.collab-author { font-size: 11px; font-weight: 600; color: #0961bf; }
.collab-note-b .collab-author { color: #187654; }
.collab-note p { font-size: 12px; line-height: 1.7; margin: 7px 0; }
.collab-note-tag { font-size: 10px; color: #8a7031; background: #fbf5e8; border-radius: 4px; padding: 3px 5px; }
.collab-note-b .collab-note-tag { color: #187654; background: #eaf6ef; }
.collab-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.collab-controls button { min-height: 44px; padding: 0 12px; border: 1px solid #404047; border-radius: 9px; background: #242428; color: #d3d3da; font: inherit; font-size: 12px; cursor: pointer; }
.collab-controls button:hover { background: #303038; color: #fff; }
.collab-step-buttons { display: flex; flex: 1; gap: 6px; }
.collab-step-buttons button { flex: 1; }
.collab-step-buttons button[aria-pressed="true"] { border-color: #468ed8; color: #91c7ff; background: #213348; }
.collab-phase { min-height: 3.5em; margin-top: 12px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
@media (max-width: 1000px) { .collab-layout { grid-template-columns: 1fr; gap: 28px; } .collab-copy h2 { max-width: 24ch; } }
/* Stack notes before the canvas becomes too narrow, including translated copy. */
@container (max-width: 540px) {
  .collab-workspace { grid-template-columns: 1fr; grid-template-rows: 280px 230px; height: 510px; }
  .collab-annotations { border-left: 0; border-top: 1px solid #dedee5; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto 1fr; gap: 10px; align-content: start; }
  .collab-list-heading { grid-column: 1 / -1; padding-bottom: 0; }
  .collab-empty { grid-column: 1 / -1; grid-row: 2; }
  .collab-note { grid-row: 2; margin: 0; align-self: start; }
  .collab-note-a { grid-column: 1; }
  .collab-note-b { grid-column: 2; }
  .collab-toolbar { padding: 10px 12px; }
  .collab-window-title { font-size: 12px; }
  .collab-people { gap: 4px; }
  .collab-person { padding: 4px 6px; }
  .collab-share-card { padding: 18px; }
  .collab-share-options { gap: 6px; }
  .collab-step-buttons { flex-basis: 100%; }
  .collab-controls > button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .collab-demo *, .collab-demo *::before { transition: none !important; animation: none !important; } }
