/* TaskDock 官网 · 全站样式
   艺术方向：夜港（Night Harbor）。深墨蓝底色与鼠尾草绿取自品牌图标；
   绿色只用于“已归位 / 已完成 / 已同步”，琥珀只用于“进行中 / 待同步”。 */

:root {
  color-scheme: dark;

  --ink-0: #060a16;
  --ink-1: #0a1124;
  --ink-2: #0f1830;
  --ink-3: #15203d;
  --ink-4: #1c2a4c;
  --line: rgba(168, 186, 228, 0.12);
  --line-strong: rgba(168, 186, 228, 0.22);

  --text: #e9edf6;
  --text-2: #aab4cb;
  --text-3: #7a86a3;

  --sage: #8fcdaa;
  --sage-2: #6fae8d;
  --sage-ink: #0d2a1e;
  --sage-glow: rgba(143, 205, 170, 0.28);
  --amber: #ebbd73;
  --amber-glow: rgba(235, 189, 115, 0.22);
  --slate: #93a6cc;
  --rose: #ef9a8f;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
    "Noto Sans CJK SC", "Source Han Sans SC", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Noto Sans SC",
    "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas,
    "Liberation Mono", monospace;

  /* 由阻尼弹簧采样得到的 linear() 曲线（k/c：420/30、170/17、260/15） */
  --spring-snappy: linear(0, 0.0294, 0.0861, 0.1615, 0.2479, 0.3393, 0.4308, 0.5192, 0.6019, 0.6892,
    0.7552, 0.8128, 0.8621, 0.9034, 0.9373, 0.9646, 0.9859, 1.0021, 1.014, 1.0222, 1.0274, 1.0302,
    1.0311, 1.0307, 1.0292, 1.0266, 1.024, 1.0212, 1.0183, 1.0155, 1.0129, 1.0105, 1.0084, 1.0065,
    1.0048, 1.0035, 1.0023, 1.0014, 1.0007, 1.0001, 0.9997, 0.9994, 0.9992, 0.9991, 0.999, 0.999,
    0.9991, 0.9991, 1);
  --spring-soft: linear(0, 0.0331, 0.0969, 0.1916, 0.2904, 0.4043, 0.5168, 0.6135, 0.7104, 0.7881,
    0.8613, 0.9216, 0.9655, 1.0028, 1.0278, 1.0468, 1.0584, 1.0636, 1.0648, 1.0629, 1.0583, 1.052,
    1.0456, 1.0382, 1.0309, 1.0247, 1.0184, 1.0134, 1.0087, 1.0049, 1.0021, 0.9997, 0.9981, 0.9969,
    0.9962, 0.9959, 0.9958, 0.9959, 0.9962, 0.9967, 0.9971, 0.9976, 0.998, 0.9984, 0.9988, 0.9991,
    0.9995, 0.9997, 1);
  --spring-snappy-ms: 485ms;
  --spring-soft-ms: 850ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --maxw: 1200px;
}

@view-transition {
  navigation: auto;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink-0);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(64, 96, 168, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(111, 174, 141, 0.07), transparent 60%),
    var(--ink-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* 极淡的蓝图网格：秩序的底纹 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(168, 186, 228, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(168, 186, 228, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%);
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: var(--sage);
  color: var(--sage-ink);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-weight: 600;
  transition: top 0.2s var(--ease-out);
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 顶栏 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  view-transition-name: site-header;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    backdrop-filter 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 13, 28, 0.72);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.site-header .brand {
  view-transition-name: brand;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--sage);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}

.icon-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

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

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--spring-snappy-ms) var(--spring-snappy), opacity 0.2s;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 20px;
}

.menu-toggle span:nth-child(3) {
  top: 25px;
}

.site-header.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 按钮 ---------- */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform var(--spring-snappy-ms) var(--spring-snappy), background-color 0.25s,
    border-color 0.25s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 186, 228, 0.36);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--spring-snappy-ms) var(--spring-snappy);
}

.btn:hover svg.arrow {
  transform: translateX(3px);
}

.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  --btn-bg: var(--sage);
  --btn-fg: var(--sage-ink);
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(143, 205, 170, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  border-color: transparent;
  box-shadow: 0 16px 40px -12px rgba(143, 205, 170, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-ghost {
  --btn-bg: transparent;
}

/* ---------- 通用排版 ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-glow);
}

.eyebrow .idx {
  color: var(--sage);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.lead {
  margin-top: 22px;
  max-width: 38rem;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--text-2);
  text-wrap: pretty;
}

.muted {
  color: var(--text-3);
}

.accent {
  color: var(--sage);
}

.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 136px);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  line-height: 1;
  color: var(--text-2);
  white-space: nowrap;
}

.chip svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.chip-event {
  color: var(--amber);
  border-color: rgba(235, 189, 115, 0.28);
}

.chip-date {
  color: var(--slate);
}

.chip-flow {
  color: var(--sage);
  border-color: rgba(143, 205, 170, 0.26);
}

.ref {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

/* 状态圆圈：待开始（空心）→ 进行中（半填）→ 已完成（打勾） */
.status {
  --c: var(--slate);
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.6px solid var(--c);
  transition: border-color 0.3s, background-color 0.3s;
}

.status::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: conic-gradient(var(--c) 0 50%, transparent 50% 100%);
  transform: scale(0);
  transition: transform var(--spring-snappy-ms) var(--spring-snappy);
}

.status::after {
  content: "";
  position: absolute;
  left: 4.6px;
  top: 2.2px;
  width: 4.5px;
  height: 8.5px;
  border: solid var(--sage-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--spring-snappy-ms) var(--spring-snappy);
}

.status[data-s="doing"] {
  --c: var(--amber);
}

.status[data-s="doing"]::before {
  transform: scale(1) rotate(0deg);
}

.status[data-s="done"] {
  --c: var(--sage);
  background: var(--sage);
}

.status[data-s="done"]::after {
  transform: rotate(45deg) scale(1);
}

button.status {
  padding: 0;
  background-color: transparent;
}

button.status[data-s="done"] {
  background-color: var(--sage);
}

/* ---------- 任务卡（全站共用的“物件”） ---------- */

.tcard {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(36, 52, 92, 0.96), rgba(24, 36, 66, 0.96));
  border: 1px solid rgba(168, 186, 228, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 0 rgba(0, 0, 0, 0.3),
    0 14px 30px -14px rgba(0, 0, 0, 0.7);
  color: var(--text);
}

.tcard-body {
  min-width: 0;
  flex: 1;
}

.tcard-title {
  display: block;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s;
}

.tcard-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.tcard[data-s="done"] .tcard-title {
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(143, 205, 170, 0.5);
}

/* ========== 首屏：混乱 → 归位 ========== */

.hero-track {
  position: relative;
  height: 280vh;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.hero-copy {
  position: absolute;
  z-index: 4;
  left: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  top: 50%;
  width: min(36rem, 46vw);
  transform: translateY(-46%);
  pointer-events: none;
}

.hero-copy > * {
  pointer-events: auto;
}

.hero-title {
  font-size: clamp(2.7rem, 6.2vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-title .line {
  display: block;
}

.hero-title .scatter {
  display: inline-block;
  will-change: transform;
}

.hero-title .settle {
  color: var(--sage);
}

.hero-lead {
  margin-top: 26px;
  max-width: 31rem;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-3);
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(235, 189, 115, 0.3);
  background: rgba(235, 189, 115, 0.08);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
}

.release-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(235, 189, 115, 0.2);
}

.hero-field {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.hero-field .tcard {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--card-w, 340px);
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: 50% 50%;
}

.hero-field .tcard.is-dragging {
  cursor: grabbing;
  z-index: 20;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 60px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(143, 205, 170, 0.35);
}

.hero-field .tcard .status {
  pointer-events: auto;
}

.hero-field .tcard.just-docked {
  animation: dock-pulse 0.7s var(--ease-out);
}

.hero-track.is-static {
  height: auto;
}

.hero-track.is-static .hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
}

@media (max-width: 760px) {
  .hero-track.is-static .hero-stage {
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .hero-track.is-static .hero-copy {
    position: relative;
    top: 0;
    padding: calc(var(--header-h) + 32px) 0 48px;
  }
}

@keyframes dock-pulse {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 0 rgba(143, 205, 170, 0.5),
      0 14px 30px -14px rgba(0, 0, 0, 0.7);
  }
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 12px rgba(143, 205, 170, 0),
      0 14px 30px -14px rgba(0, 0, 0, 0.7);
  }
}

.dock-panel {
  position: absolute;
  z-index: 2;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 26, 50, 0.9), rgba(11, 18, 37, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  opacity: 0;
  pointer-events: none;
}

.dock-panel-head {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}

.dock-panel-head .crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.dock-panel-head .crumbs svg {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  flex: none;
}

.dock-panel-head .sep {
  color: var(--text-3);
}

.dock-panel-head .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sage);
  white-space: nowrap;
}

.dock-group {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-3);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.dock-group .n {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-3);
}

.dock-group i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.hero-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  white-space: nowrap;
  pointer-events: none;
}

.hero-hint .meter {
  position: relative;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.hero-hint .meter b {
  position: absolute;
  inset: 0;
  background: var(--sage);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.hero-reset {
  position: absolute;
  z-index: 5;
  right: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  bottom: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.hero-reset.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ========== 01 一个任务，四个维度 ========== */

.model {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.model-tabs {
  display: grid;
  gap: 4px;
  margin-top: 36px;
}

.model-tab {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 4px 14px;
  align-items: start;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  transition: background-color 0.3s, border-color 0.3s;
}

.model-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.model-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line);
}

.model-tab .k {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 24px;
  color: var(--text-3);
  transition: color 0.3s;
}

.model-tab[aria-selected="true"] .k {
  color: var(--sage);
}

.model-tab .t {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 620;
  line-height: 24px;
}

.model-tab .d {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--spring-soft-ms) var(--spring-soft), color 0.3s;
}

.model-tab .d > span {
  overflow: hidden;
}

.model-tab[aria-selected="true"] .d {
  grid-template-rows: 1fr;
  color: var(--text-2);
}

.lens {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  min-height: 520px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(143, 205, 170, 0.06), transparent 70%),
    linear-gradient(180deg, rgba(17, 26, 50, 0.7), rgba(10, 16, 34, 0.7));
  overflow: hidden;
}

.lens-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
}

.lens-bar .dots {
  display: flex;
  gap: 6px;
}

.lens-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(168, 186, 228, 0.18);
}

.lens-bar .where {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.lens-bar .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sage);
}

.lens-bar .live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

.lens-stage {
  position: relative;
  padding: 26px;
  min-height: 468px;
}

.lens-view {
  display: none;
}

.lens-view.is-active {
  display: block;
}

.lens-stage {
  display: flex;
  flex-direction: column;
}

.lens-caption {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
}

.lens-caption .ref {
  font-size: 12px;
}

/* 目录视图 */
.tree {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  padding-left: calc(12px + var(--depth, 0) * 22px);
  border-radius: 10px;
  color: var(--text-2);
}

.tree-row svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-3);
}

.tree-row .agg {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.tree-row.is-folder {
  color: var(--text);
}

.tree .tcard {
  margin-left: calc(var(--depth, 0) * 22px);
}

.tree-note {
  margin: 10px 0 0 calc(3 * 22px);
  font-size: 12px;
  color: var(--text-3);
}

/* 日程视图 */
.week {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.day {
  min-height: 210px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.day-head b {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
}

.day.is-today .day-head b {
  color: var(--sage);
}

.events-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.event-col {
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(235, 189, 115, 0.3);
  background: rgba(235, 189, 115, 0.03);
  min-height: 84px;
}

.event-col .day-head b {
  font-size: 14px;
  color: var(--amber);
}

.mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(36, 52, 92, 0.9);
  border: 1px solid rgba(168, 186, 228, 0.12);
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.mini .status {
  width: 13px;
  height: 13px;
  border-width: 1.4px;
}

.mini .status::after {
  left: 3.1px;
  top: 1.2px;
  width: 3.5px;
  height: 6.5px;
  border-width: 0 1.6px 1.6px 0;
}

.mini span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day .mini,
.lane .mini {
  align-items: flex-start;
}

.day .mini span:last-child,
.lane .mini span:last-child {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.day .mini .status,
.lane .mini .status {
  margin-top: 1px;
}

.mini.is-focus {
  border-color: rgba(143, 205, 170, 0.45);
  box-shadow: 0 0 0 3px rgba(143, 205, 170, 0.1);
}

.mini.is-other {
  opacity: 0.55;
}

/* 流程视图 */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lane {
  min-height: 210px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.lane-head .n {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--text-3);
}

.flow-title svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--text-3);
}

.flow-title .chip {
  margin-left: auto;
}

.flow-title {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-2);
}

/* 步骤视图 */
.steps-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.steps-card .tcard {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  height: 64px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 10px 14px 14px;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px dashed var(--line);
}

.steps li:last-child {
  border-bottom: 0;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.steps li .status {
  width: 16px;
  height: 16px;
}

.steps li .status::after {
  left: 4px;
  top: 1.6px;
  width: 4px;
  height: 7.5px;
}

.steps li .lbl {
  flex: 1;
}

.steps li .st {
  font-size: 12px;
  color: var(--text-3);
}

.note-block {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 22, 0.5);
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
  white-space: pre-wrap;
}

.note-block .h {
  color: var(--sage);
}

.note-block .c {
  color: var(--amber);
}

.lens .focus-card {
  view-transition-name: focus-card;
}

.lens .focus-card .status {
  cursor: pointer;
}

::view-transition-group(focus-card) {
  animation-duration: var(--spring-soft-ms);
  animation-timing-function: var(--spring-soft);
}

::view-transition-old(lens-body),
::view-transition-new(lens-body) {
  animation-duration: 0.32s;
}

.lens-stage {
  view-transition-name: lens-body;
}

/* ========== 02 时间轴 ========== */

.time-shell {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 26, 50, 0.65), rgba(10, 16, 34, 0.65));
  overflow: hidden;
}

.time-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.time-tray .label {
  margin-right: 6px;
  font-size: 13px;
  color: var(--text-3);
}

.pill-task {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(168, 186, 228, 0.16);
  background: linear-gradient(180deg, rgba(36, 52, 92, 0.95), rgba(24, 36, 66, 0.95));
  font-size: 13.5px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  transition: transform var(--spring-snappy-ms) var(--spring-snappy), border-color 0.25s,
    box-shadow 0.25s;
}

.pill-task:hover {
  transform: translateY(-2px);
}

.pill-task[aria-pressed="true"] {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(143, 205, 170, 0.14);
}

.pill-task .status {
  width: 14px;
  height: 14px;
}

.pill-task .status::after {
  left: 3.4px;
  top: 1.4px;
  width: 3.6px;
  height: 6.8px;
  border-width: 0 1.6px 1.6px 0;
}

.pill-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  pointer-events: none;
  cursor: grabbing;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(143, 205, 170, 0.4);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) 1px repeat(2, minmax(160px, 1fr));
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-4) transparent;
}

.tl-divider {
  background: var(--line);
}

.tl-col {
  position: relative;
  min-height: 330px;
  padding: 16px 12px 70px;
  border-right: 1px solid var(--line);
  scroll-snap-align: start;
  transition: background-color 0.3s;
}

.tl-col:last-child {
  border-right: 0;
}

.tl-col.is-over {
  background: rgba(143, 205, 170, 0.06);
}

.tl-col.is-target {
  cursor: copy;
}

.tl-col.is-target .tl-drop {
  border-color: rgba(143, 205, 170, 0.5);
  color: var(--sage);
}

.tl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.tl-head b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.tl-head span {
  font-size: 12px;
  color: var(--text-3);
}

.tl-col.is-today .tl-head b {
  color: var(--sage);
}

.tl-kind {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.tl-col.is-event .tl-head b {
  font-size: 16px;
  color: var(--amber);
}

.tl-col.is-event.has-arrived .tl-head b::after {
  content: " · 已到达";
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

.tl-items {
  display: grid;
  gap: 6px;
}

.tl-items .mini {
  margin: 0;
  animation: place-in var(--spring-snappy-ms) var(--spring-snappy) both;
}

.tl-items .mini.is-new {
  border-color: rgba(143, 205, 170, 0.5);
}

@keyframes place-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.92);
  }
}

.tl-drop {
  display: grid;
  place-items: center;
  height: 34px;
  margin-top: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  font-size: 11.5px;
  color: var(--text-3);
  transition: border-color 0.25s, color 0.25s;
}

.tl-actions {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 16px;
}

.tl-actions .btn {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  font-size: 12.5px;
  font-weight: 560;
}

.time-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-3);
  min-height: 58px;
}

.time-foot .msg {
  flex: 1;
  min-width: 14rem;
  transition: color 0.3s;
}

.time-foot .msg.is-fresh {
  color: var(--text);
}

.time-foot .btn {
  min-height: 34px;
  font-size: 13px;
}

.legend-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: 40px;
}

.legend-row h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.legend-row p {
  font-size: 14px;
  color: var(--text-3);
}

/* ========== 03 离线优先 ========== */

.sync-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.sync-facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.sync-facts li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 15px;
  color: var(--text-2);
}

.sync-facts li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--sage);
}

.sync-facts b {
  color: var(--text);
  font-weight: 600;
}

.sync-stage {
  position: relative;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 26, 50, 0.65), rgba(10, 16, 34, 0.65));
  padding: 22px;
}

.sync-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.sync-wires {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.sync-wires path {
  fill: none;
  stroke: rgba(143, 205, 170, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
  transition: stroke 0.4s, opacity 0.4s;
}

.sync-wires path.is-down {
  stroke: rgba(239, 154, 143, 0.4);
  opacity: 0.6;
}

.client {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 12px;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.client.is-offline {
  border-color: rgba(239, 154, 143, 0.35);
}

.client-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12.5px;
  color: var(--text-2);
}

.client-head svg {
  width: 15px;
  height: 15px;
  color: var(--text-3);
}

.net {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--sage);
}

.net::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.client.is-offline .net {
  color: var(--rose);
}

.client-list {
  display: grid;
  gap: 6px;
}

.client-list .mini {
  margin: 0;
  height: 36px;
  font-size: 12.5px;
  transition: border-color 0.4s, background-color 0.4s;
}

.client-list .mini.is-pending {
  border-color: rgba(235, 189, 115, 0.5);
}

.client-list .mini.is-conflict {
  border-color: rgba(239, 154, 143, 0.6);
}

.client-list .mini.is-flash {
  animation: flash 0.9s var(--ease-out);
}

@keyframes flash {
  0% {
    background-color: rgba(143, 205, 170, 0.35);
  }
}

.client-list .mini button.status {
  cursor: pointer;
}

.client-list .mini .tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--amber);
}

.client-list .mini.is-conflict .tag {
  color: var(--rose);
}

.outbox {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  min-height: 74px;
}

.outbox-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.outbox-head b {
  color: var(--amber);
  font-weight: 500;
}

.outbox-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.op {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(235, 189, 115, 0.12);
  border: 1px solid rgba(235, 189, 115, 0.3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--amber);
  white-space: nowrap;
  animation: place-in var(--spring-snappy-ms) var(--spring-snappy) both;
}

.op.is-flying {
  position: fixed;
  z-index: 60;
  left: 0;
  top: 0;
  margin: 0;
  animation: none;
  pointer-events: none;
}

.op.is-ping {
  background: rgba(143, 205, 170, 0.14);
  border-color: rgba(143, 205, 170, 0.4);
  color: var(--sage);
}

.hub {
  position: relative;
  z-index: 1;
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 18px;
  border: 1px solid rgba(143, 205, 170, 0.28);
  background: radial-gradient(circle at 50% 30%, rgba(143, 205, 170, 0.12), transparent 70%), var(--ink-2);
  text-align: center;
}

.hub svg {
  width: 30px;
  height: 30px;
  color: var(--sage);
}

.hub .name {
  font-size: 13px;
  font-weight: 600;
}

.hub .sub {
  font-size: 10.5px;
  color: var(--text-3);
  line-height: 1.4;
}

.hub .cursor {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--sage);
}

.hub.is-hit {
  animation: hub-hit 0.6s var(--ease-out);
}

@keyframes hub-hit {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 205, 170, 0.45);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(143, 205, 170, 0);
  }
}

.sync-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13.5px;
}

.switch .track {
  position: relative;
  width: 36px;
  height: 22px;
  border-radius: 999px;
  background: var(--sage-2);
  transition: background-color 0.3s;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(14px);
  transition: transform var(--spring-snappy-ms) var(--spring-snappy);
}

.switch[aria-checked="false"] .track {
  background: rgba(239, 154, 143, 0.55);
}

.switch[aria-checked="false"] .track::after {
  transform: translateX(0);
}

.sync-log {
  margin-top: 14px;
  min-height: 44px;
  font-size: 13px;
  color: var(--text-3);
}

.sync-log b {
  color: var(--text);
  font-weight: 560;
}

.conflict {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(239, 154, 143, 0.4);
  background: rgba(239, 154, 143, 0.06);
  font-size: 12.5px;
  color: var(--text-2);
  animation: place-in var(--spring-snappy-ms) var(--spring-snappy) both;
}

.conflict .row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.conflict .btn {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
}

/* ========== 04 自托管 ========== */

.host {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.term {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #050913;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.term-bar .dots {
  display: flex;
  gap: 6px;
  margin-right: 14px;
}

.term-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(168, 186, 228, 0.16);
}

.term-tab {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 12.5px;
  color: var(--text-3);
  transition: background-color 0.2s, color 0.2s;
}

.term-tab[aria-selected="true"],
.term-tab.is-label {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  color: var(--text-2);
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.copy-btn.is-done {
  color: var(--sage);
  border-color: rgba(143, 205, 170, 0.4);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.term pre {
  margin: 0;
  padding: 20px 22px 24px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-2);
  tab-size: 2;
}

.term pre[hidden] {
  display: none;
}

.term .cm {
  color: var(--text-3);
}

.term .pr {
  color: var(--sage);
  user-select: none;
  -webkit-user-select: none;
}

.term .vr {
  color: var(--amber);
}

.stack {
  display: grid;
  gap: 10px;
}

.stack-layer {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.stack-layer + .stack-layer::before {
  content: "";
  position: absolute;
  left: 38px;
  top: -11px;
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.stack-layer .ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.stack-layer .ic svg {
  width: 20px;
  height: 20px;
}

.stack-layer .t {
  font-weight: 600;
  font-size: 15px;
}

.stack-layer .d {
  font-size: 13px;
  color: var(--text-3);
}

.stack-layer .port {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.stack-layer.is-core {
  border-color: rgba(143, 205, 170, 0.3);
  background: rgba(143, 205, 170, 0.04);
}

.stack-layer.is-core .ic {
  color: var(--sage);
}

.stack-layer.is-core .port {
  color: var(--sage);
}

.stack-layer.is-optional {
  border-style: dashed;
}

.stack-layer.is-sealed .port {
  color: var(--text-3);
}

.host-notes {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
}

.host-notes li {
  display: flex;
  gap: 10px;
}

.host-notes li::before {
  content: "—";
  color: var(--text-3);
}

.host-notes a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-strong);
}

.host-notes a:hover {
  color: var(--text);
}

/* ========== 05 细节账本 ========== */

.ledger {
  border-top: 1px solid var(--line);
}

.ledger-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr) 260px;
  gap: 24px;
  align-items: center;
  min-height: 112px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ledger-row .no {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
}

.ledger-row h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

.ledger-row p {
  font-size: 14.5px;
  color: var(--text-3);
}

.ledger-row .demo {
  position: relative;
  height: 68px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.ledger-row:hover .demo {
  border-color: var(--line-strong);
}

/* 细节演示：Markdown */
.demo-md {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  font-size: 11px;
}

.demo-md > div {
  padding: 10px 12px;
  line-height: 1.5;
}

.demo-md .src {
  font-family: var(--font-mono);
  color: var(--text-3);
  border-right: 1px solid var(--line);
}

.demo-md .out b {
  display: block;
  font-size: 12px;
  color: var(--text);
}

.demo-md .out code {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--sage);
}

/* 细节演示：命令面板 */
.demo-k {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 14px;
}

.demo-k kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  color: var(--text);
}

.demo-k .search {
  flex: 1;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--text-2);
  overflow: hidden;
  white-space: nowrap;
}

.demo-k .typed {
  overflow: hidden;
  white-space: nowrap;
  border-right: 1.5px solid var(--sage);
  animation: typing 4.2s steps(8) infinite;
  width: 8.2em;
}

@keyframes typing {
  0%,
  8% {
    width: 0;
  }
  45%,
  85% {
    width: 8.2em;
  }
  100% {
    width: 0;
  }
}

/* 细节演示：右滑完成 */
.demo-swipe {
  position: absolute;
  inset: 12px;
  border-radius: 10px;
  background: rgba(143, 205, 170, 0.18);
  overflow: hidden;
}

.demo-swipe::before {
  content: "完成";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
}

.demo-swipe .mini {
  position: absolute;
  inset: 0;
  margin: 0;
  height: 100%;
  border-radius: 10px;
  animation: swipe 3.6s var(--ease-out) infinite;
}

@keyframes swipe {
  0%,
  15% {
    transform: translateX(0);
  }
  38%,
  52% {
    transform: translateX(46%);
  }
  70%,
  100% {
    transform: translateX(0);
  }
}

.demo-swipe .mini .status {
  animation: swipe-check 3.6s steps(1) infinite;
}

@keyframes swipe-check {
  0%,
  45% {
    background: transparent;
    border-color: var(--slate);
  }
  46%,
  100% {
    background: var(--sage);
    border-color: var(--sage);
  }
}

/* 细节演示：归档恢复 */
.demo-archive {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
  font-size: 11.5px;
  color: var(--text-2);
}

.demo-archive .box {
  display: flex;
  gap: 4px;
}

.demo-archive .box i {
  width: 14px;
  height: 20px;
  border-radius: 4px;
  background: var(--ink-4);
  border: 1px solid var(--line-strong);
  animation: archive-fold 4s var(--ease-out) infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes archive-fold {
  0%,
  20% {
    transform: none;
    opacity: 1;
  }
  40%,
  60% {
    transform: translateY(10px) scale(0.6);
    opacity: 0.35;
  }
  80%,
  100% {
    transform: none;
    opacity: 1;
  }
}

/* 细节演示：TASK-N */
.demo-ref {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.demo-ref .tok {
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(143, 205, 170, 0.1);
  border: 1px solid rgba(143, 205, 170, 0.28);
  color: var(--sage);
}

/* 细节演示：深浅色 */
.demo-theme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

.demo-theme > div {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 0 14px;
}

.demo-theme i {
  display: block;
  height: 6px;
  border-radius: 3px;
}

.demo-theme .light {
  background: #eef2f6;
}

.demo-theme .light i {
  background: #c7d0dc;
}

.demo-theme .light i:first-child {
  width: 60%;
  background: #4c8c6b;
}

.demo-theme .dark i {
  background: var(--ink-4);
}

.demo-theme .dark i:first-child {
  width: 60%;
  background: var(--sage);
}

/* ========== 06 平台 + 结尾 ========== */

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

/* 三端之间一条流动的同步线：数据在网页、Android 与中枢之间往返 */
.platforms {
  position: relative;
}

.platforms::before {
  content: "";
  position: absolute;
  left: 49px;
  right: 49px;
  top: 49px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, var(--sage), transparent) 0 0 / 28% 100% no-repeat,
    var(--line-strong);
  animation: sync-flow 5s linear infinite;
  pointer-events: none;
}

@keyframes sync-flow {
  from {
    background-position: -30% 0, 0 0;
  }
  to {
    background-position: 130% 0, 0 0;
  }
}

.platform .ic {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--ink-1);
}

.platform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  transition: transform var(--spring-soft-ms) var(--spring-soft), border-color 0.3s;
}

.platform:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.platform .ic {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(143, 205, 170, 0.1);
  color: var(--sage);
}

.platform .ic svg {
  width: 22px;
  height: 22px;
}

.platform h3 {
  margin-top: 8px;
}

.platform p {
  font-size: 14.5px;
  color: var(--text-3);
}

.platform .foot {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.finale {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.finale h2 {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  max-width: 14em;
  margin-inline: auto;
}

.finale .lead {
  margin-inline: auto;
}

.finale .hero-cta {
  justify-content: center;
}

.finale-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}

.finale-dock {
  position: relative;
  height: 2px;
  max-width: 560px;
  margin: 64px auto 0;
  background: var(--line);
}

.finale-dock i {
  position: absolute;
  top: -5px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--sage);
  left: calc(var(--x) * 1%);
  transform: translateX(-50%) translateY(var(--y, -60px)) rotate(var(--r, 30deg));
  opacity: var(--o, 0);
  transition: transform 1.1s var(--spring-soft), opacity 0.6s;
  transition-delay: calc(var(--i) * 70ms);
}

.finale.is-in .finale-dock i {
  --y: 0px;
  --r: 0deg;
  --o: 1;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  font-size: 14px;
  color: var(--text-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-brand p {
  margin-top: 14px;
  max-width: 22rem;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

/* ---------- 入场动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform var(--spring-soft-ms) var(--spring-soft);
  transition-delay: calc(var(--d, 0) * 80ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ========== 下载页 ========== */

.page-hero {
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(40px, 6vw, 72px);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.channels {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.channel.is-primary {
  border-color: rgba(143, 205, 170, 0.3);
  background:
    radial-gradient(500px 200px at 0% 0%, rgba(143, 205, 170, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.025);
}

.channel .kind {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.channel h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.channel p {
  font-size: 14.5px;
  color: var(--text-3);
}

.channel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.codeline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #050913;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  overflow: hidden;
}

.codeline code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.codeline .copy-btn {
  margin-left: 0;
  flex: none;
}

.release-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 36px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid rgba(235, 189, 115, 0.28);
  background: rgba(235, 189, 115, 0.05);
  font-size: 14px;
  color: var(--text-2);
}

.release-card .tag {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--amber);
}

.release-card .note {
  color: var(--text-3);
  font-size: 13.5px;
}

.release-card a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
}

.steps-rail {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.rail-line {
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.rail-line b {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--sage), var(--sage-2));
  transform-origin: 50% 0;
  transform: scaleY(var(--p, 0));
}

.rail-step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 56px;
}

.rail-step:last-child {
  padding-bottom: 0;
}

.rail-step .num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--ink-1);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}

.rail-step.is-reached .num {
  border-color: var(--sage);
  color: var(--sage-ink);
  background: var(--sage);
}

.rail-step h3 {
  font-size: 1.3rem;
  margin-top: 6px;
}

.rail-step .body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.rail-step .body > p {
  color: var(--text-2);
  max-width: 44rem;
}

.env-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.env-table th,
.env-table td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.env-table th {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.env-table td:first-child {
  white-space: nowrap;
}

.env-table td:first-child code {
  font-size: 12.5px;
  color: var(--sage);
}

.env-table td {
  color: var(--text-2);
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
}

.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(235, 189, 115, 0.28);
  background: rgba(235, 189, 115, 0.05);
  font-size: 14px;
  color: var(--text-2);
}

.callout svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--amber);
}

.callout code {
  font-size: 12.5px;
  color: var(--text);
}

.inline-code,
.rail-step p code,
.rules code,
.callout code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88em;
}

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

.rule {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.rule h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.rule p {
  font-size: 14px;
  color: var(--text-3);
}

.doc-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s, transform var(--spring-snappy-ms) var(--spring-snappy);
}

.doc-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.doc-link b {
  display: block;
  font-weight: 600;
}

.doc-link span {
  font-size: 13px;
  color: var(--text-3);
}

.doc-link svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

/* ========== 404 ========== */

.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) var(--gutter) 60px;
}

.lost .code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber);
  margin-bottom: 18px;
}

.lost h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
}

.lost p {
  margin: 18px auto 30px;
  max-width: 28rem;
  color: var(--text-2);
}


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

@media (max-width: 1080px) {
  .ledger-row {
    grid-template-columns: 48px minmax(0, 1fr) 240px;
  }

  .ledger-row p {
    grid-column: 2;
    grid-row: 2;
  }

  .ledger-row .demo {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .channels {
    grid-template-columns: 1fr 1fr;
  }

  .channel.is-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(8, 13, 28, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--spring-snappy-ms) var(--spring-snappy), opacity 0.2s, visibility 0s 0.2s;
  }

  .site-header.is-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform var(--spring-snappy-ms) var(--spring-snappy), opacity 0.2s;
  }

  .site-nav a {
    padding: 14px 4px;
    border-radius: 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:hover {
    background: transparent;
  }

  .site-nav a[aria-current="page"]::after {
    left: auto;
    right: 6px;
    top: 50%;
    bottom: auto;
    margin-top: -2px;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-actions .btn {
    display: none;
  }

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

  .lens {
    position: relative;
    top: 0;
  }

  .model-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin: 28px calc(var(--gutter) * -1) 0;
    padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
  }

  .model-tabs::-webkit-scrollbar {
    display: none;
  }

  .model-tab {
    flex: none;
    display: inline-flex;
    width: auto;
    gap: 8px;
    padding: 10px 16px;
    border-color: var(--line);
    border-radius: 999px;
  }

  .model-tab .k {
    line-height: 20px;
  }

  .model-tab .t {
    font-size: 15px;
    line-height: 20px;
  }

  .model-tab .d {
    display: none;
  }

  .model .model-desc {
    display: block;
  }

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

  .platform {
    min-height: 0;
  }

  .platforms::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .doc-links {
    grid-template-columns: 1fr 1fr;
  }
}

.model-desc {
  display: none;
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--text-2);
  min-height: 3.2em;
}

@media (max-width: 760px) {
  :root {
    --header-h: 58px;
  }

  .hero-track {
    height: 240vh;
  }

  .hero-copy {
    top: calc(var(--header-h) + 20px);
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    transform: none;
  }

  .hero-title {
    font-size: clamp(2.3rem, 10.5vw, 3.2rem);
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero-cta {
    margin-top: 22px;
  }

  .hero-cta .btn {
    min-height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .hero-meta {
    margin-top: 16px;
  }

  .hero-hint {
    bottom: 16px;
  }

  .hero-hint .label-long {
    display: none;
  }

  .hero-reset {
    bottom: 48px;
  }

  .tcard {
    height: 52px;
    padding: 0 12px;
    gap: 10px;
  }

  .tcard-title {
    font-size: 13px;
  }

  .lens {
    border-radius: 22px;
  }

  .lens-stage {
    padding: 16px;
    min-height: 430px;
  }

  .lens-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

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

  .week .day:nth-child(n + 4) {
    display: none;
  }

  .day {
    min-height: 150px;
  }

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

  .lane {
    min-height: 0;
  }

  .tree .tcard {
    margin-left: 0;
  }

  .tree-note {
    margin-left: 0;
  }

  .sync-stage {
    padding: 14px;
  }

  .sync-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hub {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    align-items: center;
    text-align: left;
    gap: 2px 12px;
    padding: 12px 16px;
  }

  .hub svg {
    width: 26px;
    height: 26px;
    grid-row: 1 / span 2;
  }

  .hub .name,
  .hub .sub {
    grid-column: 2;
  }

  .hub .cursor {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  [data-client="android"] .outbox {
    display: none;
  }

  .ledger-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 26px 0;
  }

  .ledger-row p {
    grid-column: 2;
    grid-row: auto;
  }

  .ledger-row .demo {
    grid-column: 2;
    grid-row: auto;
    margin-top: 10px;
  }

  .stack-layer {
    grid-template-columns: 36px 1fr;
    padding: 14px;
  }

  .stack-layer .ic {
    width: 36px;
    height: 36px;
  }

  .stack-layer .port {
    grid-column: 2;
  }

  .stack-layer + .stack-layer::before {
    left: 32px;
  }

  .term pre {
    font-size: 12px;
    padding: 16px;
  }

  .term-bar .dots {
    display: none;
  }

  .channels,
  .rules,
  .doc-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .env-table thead {
    display: none;
  }

  .env-table tr,
  .env-table td {
    display: block;
  }

  .env-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

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

  .env-table td {
    padding: 0;
    border: 0;
  }

  .env-table td:first-child {
    margin-bottom: 4px;
    white-space: normal;
  }

  .release-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .rail-step {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
  }

  .rail-step .num {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .rail-line {
    left: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}

@media (max-width: 380px) {
  .hero-cta .btn {
    padding: 0 14px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  @view-transition {
    navigation: none;
  }
}

.lost-slot {
  position: relative;
  width: min(320px, 100%);
  height: 58px;
  margin: 0 auto 48px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
}

.lost-slot .tcard {
  text-align: left;
  position: absolute;
  inset: -1.5px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.lost-slot .tcard.just-docked {
  animation: dock-pulse 0.7s var(--ease-out);
}
