:root {
  color-scheme: light;
  --primary: #5b7b6e;
  --action: #4d6b5f;
  --deep: #263f35;
  --paper: #f5f6f7;
  --sage: #edf2ef;
  --ink: #2b2b2b;
  --text: #555;
  --muted: #626e68;
  --line: #dfe6e2;
  --white: #fff;
  --spot: #a94348;
  /* Typography: serif display 700, sans-serif emphasis 500, sans-serif body 400. */
  --heading: 'Noto Serif SC', serif;
  --body: 'Noto Sans SC', sans-serif;
  --weight-display: 700;
  --weight-emphasis: 500;
  --weight-regular: 400;
  --shadow: 0 2px 6px #14261e0b, 0 24px 56px #14261e16;
  --ease: cubic-bezier(.2,.7,.25,1);
  --motion-out: .24s;
  --motion-in: .43s;
  --surface-radius: 16px;
  --cover-header-height: 73px;
  --anchor-gap: 17px;
  font-family: var(--body);
  font-weight: var(--weight-regular);
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cover-header-height) + var(--anchor-gap)); }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; }
::selection { background: #bcd1c5; color: var(--deep); }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6, strong, b { font-weight: var(--weight-emphasis); }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: middle; }
.skip { position: fixed; top: 8px; left: 12px; transform: translateY(-160%); z-index: 20; background: var(--white); padding: 12px; border-radius: 10px; }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .76); border-bottom: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.25); transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.site-header.on-cover { background: rgb(251 255 252 / .91); border-bottom-color: rgb(250 255 252 / .75); backdrop-filter: blur(24px) saturate(1.3); }
.site-header .nav nav a { color: #20392e; font-weight: var(--weight-emphasis); }
.site-header.on-cover .logo img { filter: brightness(.74); }
.site-header .action-glow {
  color: #20392e;
  white-space: nowrap;
}
.nav { position: relative; min-height: calc(var(--cover-header-height) - 1px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.logo { display: inline-flex; justify-self: start; align-items: center; min-height: 44px; }
.logo img { display: block; width: 152px; height: auto; }
.site-header .logo img { width: 120px; }
.nav nav { display: flex; gap: clamp(14px, 1.6vw, 26px); align-items: center; }
.nav nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; white-space: nowrap; color: var(--text); }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--deep); text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; }
.reading-progress { position: absolute; inset: auto 0 -1px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: var(--weight-emphasis); line-height: 1.35; transition: background .2s, border-color .2s, color .2s; }
.button.small { min-height: 44px; padding-inline: 15px; }
.button .icon { width: 17px; height: 17px; }
.action-glow { position: relative; isolation: isolate; }
:is(.login-link, .header-cta, .hero-action) { min-height: 44px; padding-inline: 10px; border: 0; }
.action-glow::after {
  content: '';
  position: absolute;
  inset: 0 0 var(--action-glow-offset, 6px);
  z-index: -1;
  pointer-events: none;
  border-bottom: 1px solid var(--action-glow-line, #638571);
  background: var(--action-glow-fill, none);
  mask-image: linear-gradient(to right, transparent, #000 24%, #000 76%, transparent);
  opacity: 0;
  transition: opacity .32s var(--ease);
}
.action-glow:focus-visible::after { opacity: 1; }
.action-glow[aria-pressed="true"]::after { opacity: 1; border-bottom: 2px solid var(--deep); }
@media (hover: hover) {
  .action-glow:not(:disabled):hover::after { opacity: 1; }
}
.primary { background: var(--action); color: var(--white); }
.primary:hover { background: var(--deep); }
.secondary { border-color: #cdd9d2; color: var(--deep); background: var(--white); }
.secondary:hover { background: var(--sage); border-color: var(--primary); }
.light { background: var(--white); color: var(--deep); }
.light:hover { background: #dce9e1; }
.light:focus-visible { outline-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.overline { display: flex; align-items: center; gap: 9px; color: var(--action); font-size: 13px; font-weight: var(--weight-emphasis); letter-spacing: .14em; }
.overline > span:empty { display: block; width: 15px; height: 1px; background: currentColor; }
.hero h1 { font: var(--weight-display) clamp(41px, 4.82vw, 70px)/1.13 var(--heading); letter-spacing: -.035em; margin: 22px 0 24px; }
.hero-line { display: block; white-space: nowrap; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .42em;
  margin: 0 0 12px;
  color: #edf3ed;
  font-size: 17px;
  font-weight: var(--weight-regular);
  line-height: 1.35;
  letter-spacing: .12em;
  text-shadow: 0 1px 8px #081811a6;
}
.hero-keyword { position: relative; }
.hero-keyword::after {
  --line-from-word: inset(0% 0% 0% 100%);
  --line-away-from-word: inset(0% 100% 0% 0%);
  position: absolute;
  --line-thickness: 1.5px;
  inset-block-start: calc((100% - var(--line-thickness)) / 2);
  inset-inline-end: calc(100% + 9px);
  width: 24px;
  height: var(--line-thickness);
  background: linear-gradient(90deg, #dce6ba00, #dce6baaa);
  pointer-events: none;
  content: "";
}
.hero-keyword:last-child::after {
  --line-from-word: inset(0% 100% 0% 0%);
  --line-away-from-word: inset(0% 0% 0% 100%);
  inset-inline: calc(100% + 9px) auto;
  background: linear-gradient(90deg, #dce6baaa, #dce6ba00);
}
@media (prefers-reduced-motion: no-preference) {
  .hero.is-typing .hero-keyword::after {
    animation: hero-keyword-lines 2.4s var(--ease) calc(var(--hero-actions-at) + 240ms) infinite backwards;
  }
}
@keyframes hero-keyword-lines {
  0%, 8% { clip-path: var(--line-from-word); opacity: 0; }
  33%, 53% { clip-path: inset(0%); opacity: 1; }
  78%, 100% { clip-path: var(--line-away-from-word); opacity: 0; }
}
.hero-text-separator { color: #b3cdb8; letter-spacing: 0; }
.hero-sentence { display: block; }
.hero-phrase { display: inline-block; white-space: nowrap; }
.hero-down { position: absolute; bottom: 9px; justify-self: center; grid-column: 1/-1; display: grid; place-items: center; width: 44px; height: 44px; color: #e8f2eb; }
.hero-down .icon { width: 23px; height: 23px; }
.features { background: var(--white); border-block: 1px solid var(--line); padding: 86px 0 100px; }
.feature-scroll-enabled.features { height: var(--feature-track-height); padding: 0; overflow-anchor: none; background: #fff; }
.feature-scroll-enabled .feature-screen { position: sticky; top: var(--feature-header); height: var(--feature-screen-height); width: min(1440px, calc(100% - 64px)); display: grid; grid-template-columns: clamp(142px, 13vw, 182px) minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: clamp(18px,3vw,44px); }
.feature-heading { position: relative; align-self: center; display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-right: 15px; border-right: 1px solid var(--line); }
.feature-heading h2 { font: var(--weight-display) 20px var(--heading); color: var(--deep); white-space: nowrap; }
.feature-progress { display: flex; flex-direction: column; gap: 4px; }
.feature-progress a { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 9px; border-radius: 8px; color: var(--text); font-size: 13px; transition: background-color .18s var(--ease), color .18s var(--ease); }
.feature-progress a .icon { width: 15px; height: 15px; }
.feature-progress a:hover { background: var(--sage); color: var(--deep); }
.feature-progress a[aria-current] { background: var(--deep); color: white; }
.feature-scroll-hint { font-size: 12px; color: var(--muted); white-space: nowrap; }
.feature-scroll-enabled .feature-list { position: relative; isolation: isolate; overflow: hidden; }
.feature-scroll-enabled .feature-section { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5px 0; gap: 8px; border: 0; visibility: hidden; opacity: 0; pointer-events: none; }
.feature-scroll-enabled .feature-copy { width: 100%; max-width: none; min-height: 0; }
.feature-scroll-enabled .feature-copy h3 { font-size: clamp(21px,3vw,36px); }
.feature-scroll-enabled .workbench { width: 100%; zoom: var(--feature-scale, 1); }
.feature-scroll-enabled .feature-section.feature-active { visibility: visible; opacity: 1; pointer-events: auto; z-index: 2; }
.feature-scroll-enabled .feature-section:not(.feature-active):not(.feature-leaving) * { visibility: hidden !important; }
@media (prefers-reduced-motion: no-preference) {
  .feature-scroll-enabled .feature-heading::after { content: ''; position: absolute; inset: 0 -1px 0 auto; width: 2px; background: var(--primary); transform: scaleY(var(--wheel-progress,0)); transform-origin: center; transition: transform .24s cubic-bezier(.2,.8,.35,1.08); pointer-events: none; }
  .feature-scroll-enabled .feature-section.feature-active { animation: feature-arrive var(--motion-in) var(--motion-out) var(--ease) both; }
  .feature-scroll-enabled .feature-section.feature-leaving { visibility: visible; pointer-events: none; animation: feature-depart var(--motion-out) cubic-bezier(.4,0,.7,.35) both; }
  .feature-scroll-enabled [data-direction=back] { --feature-travel: -1; }
}
@keyframes feature-arrive {
  from { opacity: 0; transform: translateY(calc(var(--feature-travel,1) * 60px)) scale(.985); clip-path: inset(8% 0 0 round 14px); }
  18% { opacity: .45; }
  to { opacity: 1; transform: none; clip-path: inset(0 round 0); }
}
@media (min-width: 951px) and (prefers-reduced-motion: no-preference) {
  .feature-scroll-enabled .feature-section.feature-active { animation: feature-arrive .32s var(--ease) both; }
  .feature-scroll-enabled .feature-section.feature-leaving { animation-duration: .18s; }
}
@keyframes feature-depart {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(calc(var(--feature-travel,1) * -38px)) scale(.985); visibility: hidden; }
}
@media (max-width: 760px) {
  .feature-scroll-enabled .feature-screen { width: calc(100% - 24px); grid-template-columns: clamp(64px,18vw,100px) minmax(0,1fr); gap: 8px; }
  .feature-heading { padding-right: 6px; gap: 8px; }
  .feature-heading h2 { font-size: 14px; }
  .feature-progress a { padding: 5px 4px; gap: 4px; font-size: 11px; overflow-wrap: anywhere; }
  .feature-progress a .icon { display: none; }
  .feature-scroll-hint { display: none; }
}
.section-intro { margin-bottom: 36px; }
.section-intro h2, .closing h2 { font: var(--weight-display) clamp(34px, 4.1vw, 60px)/1.2 var(--heading); letter-spacing: -.035em; margin: 11px 0 12px; }
.section-intro > p:last-child, .closing p:last-child { color: var(--text); font-size: 16px; line-height: 1.75; }
.mobile-break { display: none; }
.feature-section { display: grid; gap: 25px; padding-block: clamp(38px,6vw,85px); border-top: 1px solid var(--line); }
.feature-section:last-child { padding-bottom: 0; }
.feature-copy { max-width: 760px; }
.feature-label { display: flex; align-items: center; gap: 8px; color: var(--action); font-size: 14px; font-weight: var(--weight-emphasis); }
.feature-copy h3 { font: var(--weight-display) clamp(27px,3.1vw,41px)/1.25 var(--heading); letter-spacing: -.045em; margin: 12px 0; }
.feature-copy > p:last-child { color: var(--text); font-size: 15px; line-height: 1.75; }
.demo-note { margin-top: 12px; }
.demo-note strong { display: block; color: var(--deep); }
.demo-note span { overflow-wrap: anywhere; white-space: pre-wrap; }
.demo-field { display: grid; gap: 6px; margin-block: 12px; font-size: 14px; font-weight: var(--weight-emphasis); color: var(--deep); }
.demo-field select, .demo-field textarea, .demo-field input { width: 100%; min-height: 44px; padding: 9px 10px; border: 1px solid #a9bfb3; border-radius: 9px; color: var(--ink); background: var(--white); font: var(--weight-regular) 16px/1.5 var(--body); }
.demo-field textarea { resize: vertical; }
.demo-field :focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.workbench { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); min-height: 382px; min-width: 0; overflow: hidden; }
.window-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 52px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 12px; }
.window-bar span:first-child { font-weight: var(--weight-emphasis); color: var(--deep); }
.window-bar i { display: inline-block; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-right: 5px; }
.panel-body { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 10px; padding: 12px; min-height: 475px; }
[data-demo=check] .demo-frame, [data-demo=chat] .demo-frame { grid-template-columns: minmax(0,1.9fr) minmax(0,1.12fr); }
.sheet, .drawer { min-width: 0; padding: clamp(16px, 2.2vw, 25px); border: 1px solid var(--line); border-radius: 12px; }
.sheet { background: var(--white) url(paper.webp) center / cover; }
.drawer { background: var(--white); }
.panel-body h3, .panel-body h4 { font-size: 19px; line-height: 1.4; margin: 6px 0 10px; }
.panel-body p { font-size: 14px; line-height: 1.7; color: var(--text); }
.panel-body .prose { font-size: 16px; color: var(--ink); line-height: 1.9; }
.panel-body .prose + .prose { margin-top: 8px; }
.caption { color: var(--action); font-size: 12px; font-weight: var(--weight-emphasis); }
.state { display: inline-flex; padding: 4px 9px; background: var(--sage); border-radius: 999px; color: var(--deep); font-size: 12px; font-weight: var(--weight-emphasis); }
.entity-zoom { align-items: center; }
.entity-zoom .icon { width: 12px; height: 12px; }
.state.warning { color: #88353a; background: #f9e9e9; }
.drawer .actions { margin-top: 13px; }
.panel-body .button { min-height: 44px; font-size: 13px; padding-inline: 12px; }
.patch, .result { margin-top: 12px; padding: 11px 12px; background: var(--sage); border-radius: 8px; }
.patch del { color: #88353a; }
.patch ins { color: var(--deep); text-decoration: none; font-weight: var(--weight-emphasis); }
.located { border-radius: 2px; background: #d9e7dc; color: var(--deep); box-decoration-break: clone; }
.node-group { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; align-items: center; gap: 22px 27px; position: relative; margin-top: 20px; padding: 12px 0; }
.graph-branches { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.graph-branches path { fill: none; stroke: var(--primary); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.node, .choice { border: 1px solid var(--line); border-radius: 9px; background: var(--white); padding: 9px 12px; min-height: 44px; text-align: left; font-size: 14px; }
.node { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 2px 6px; align-items: center; }
.node .icon { width: 16px; height: 16px; }
.node small { grid-column: 2; color: var(--muted); font-size: 11px; }
.node[data-value=event] { grid-column: 2; grid-row: 1 / 3; }
.desk-rail { padding: 14px 8px; background: white; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.desk-rail strong, .desk-rail span { display: block; padding: 9px; }
.desk-rail .active { background: var(--sage); color: var(--deep); box-shadow: inset 3px 0 var(--primary); border-radius: 6px; }
.editor-sheet { background: white; padding: 0; overflow: hidden; }
.editor-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 15px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--deep); }
.editor-toolbar .button { min-height: 36px; }
.editor-paper { background: #eeeef0 url(paper.webp) center / cover; min-height: 290px; margin: 18px; padding: clamp(15px,3vw,38px); border-radius: 7px; overflow-wrap: anywhere; }
.editor-paper h4 { font: var(--weight-display) 26px/1.3 var(--heading); }
.review-evidence { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; }
.review-evidence blockquote { color: var(--text); border-left: 2px solid #cbdad0; padding-left: 10px; }
.graph-board { min-width: 0; background: radial-gradient(#b6ccc0 1px, transparent 1px) center/22px 22px,white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.graph-board .editor-toolbar { background: white; }
.graph-board .node-group { min-height: 315px; margin: 0; padding: 24px; gap: 18px clamp(15px,7vw,95px); }
.graph-board .node { min-height: 82px; background: #f5f8f6; box-shadow: 0 3px 12px #263f3514; overflow-wrap: anywhere; }
.graph-board .node[aria-pressed=true] { outline: 2px solid #a0baaa; }
.story-timeline { margin: 22px; padding-left: 20px; }
.story-timeline li { padding: 10px; border-left: 2px solid var(--line); color: var(--deep); }
.story-timeline small { display: block; margin-bottom: 5px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sage); border-radius: 8px; }
.segmented .choice { min-height: 37px; border: 0; background: transparent; }
.segmented .choice[aria-pressed=true] { background: var(--action); color: white; }
#feature-guide .demo-frame { display: block; min-width: 0; width: 100%; }
#feature-guide .demo-stage { grid-template-columns: minmax(0,1fr); margin-inline: auto; }
#feature-guide .demo-stage { min-height: 610px; }
.guide-proposals { width: min(100%, 860px); margin-inline: auto; padding: clamp(12px,3vw,35px); }
.guide-proposals > h4 { font: var(--weight-display) clamp(22px,3vw,32px)/1.35 var(--heading); color: var(--deep); }
.guide-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: 10px; margin-block: 16px; }
.guide-option { display: grid; gap: 7px; padding: 17px; }
.guide-proposal-bar, .guide-project { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block: 14px; color: var(--deep); font-size: 13px; }
.guide-project strong { font: var(--weight-display) 22px var(--heading); }
.guide-option strong { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: var(--weight-display) 21px/1.5 var(--heading); }
.guide-option i { width: 15px; height: 15px; flex: none; border-radius: 50%; border: 1px solid #a5b6ac; }
.guide-option small { justify-self: end; padding: 4px 7px; border-radius: 5px; background: white; color: var(--deep); }
.guide-options.is-expanded .guide-option { min-height: 156px; }
.guide-note p { margin-top: 7px; padding: 8px; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; }
.guide-continue { align-items: center; justify-content: flex-end; color: var(--action); font-size: 13px; }
.guide-continue > span:first-child { margin-right: auto; }
.guide-continue .button { min-width: 116px; }
.guide-note { margin-block: 12px; padding: 10px 14px; border-radius: 9px; background: white; border: 1px solid var(--line); color: var(--deep); font-size: 13px; }
.guide-deck { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 7px; }
.guide-tabs { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; }
.guide-tabs .choice { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12px; padding-inline: 7px; min-width: 69px; }
.guide-deck .guide-paper { position: relative; padding: 0; box-shadow: none; }
.guide-paper-body { padding: 14px; }
.guide-world-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.guide-world-cards article { padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #f3f7f4; }
.guide-map { display: block; width: 100%; height: auto; }
#guide-tree .guide-paper:has(.guide-map) { display: flex; flex-direction: column; overflow: hidden; }
#guide-tree .guide-paper:has(.guide-map) .editor-toolbar { flex: none; }
#guide-tree .guide-paper-body:has(.guide-map) { flex: 1; display: grid; align-items: center; min-height: 0; background: radial-gradient(#b6ccc0 1px,transparent 1px) 0 0/17px 17px, #f8fbf9; }
#guide-tree .guide-paper-body:has([aria-label^="人物关系图"]) { background: linear-gradient(#e6eee8 1px,transparent 1px) 0 0/20px 20px, linear-gradient(90deg,#e6eee8 1px,transparent 1px) 0 0/20px 20px, #fafcfa; }
.guide-map-card, .guide-map-label { fill: white; stroke: #cbdcd1; }
.guide-map-port { fill: #5b7b6e; stroke: white; }
.guide-map-edge { fill: none; stroke: #668e7d; stroke-width: 2px; }
.guide-map-title { font: var(--weight-display) 18px var(--heading); fill: var(--deep); }
.guide-map-meta { font: 13px var(--body); fill: var(--deep); }
.guide-outline p { margin-bottom: 9px; }
.guide-agent .topics .button { justify-content: flex-start; text-align: left; }
.guide-agent { display: flex; flex-direction: column; }
.guide-agent .guide-compose { margin-top: auto; }
.guide-discussion-slot { visibility: hidden; }
.guide-discussion { position: absolute; z-index: 2; min-height: 0; }
.guide-agent p { font-size: 14px; line-height: 1.7; color: var(--text); }
.guide-discussion .button { min-height: 31px; font-size: 13px; padding-inline: 12px; }
.guide-agent > * { flex-shrink: 0; }
.guide-thread { min-height: 0; }
.guide-discussion { overflow: visible; }
.guide-agent .guide-thread { padding-bottom: 8px; }
#guide-tree .demo-frame { padding-bottom: 16px; }
.guide-compose { margin-block: 12px 8px; padding: 7px; display: flex; justify-content: space-between; gap: 5px; align-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted); }
.guide-compose .state { white-space: nowrap; }
.quick-summary, .quick-form-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,150px),1fr)); gap: 8px; }
.quick-summary { margin-bottom: 10px; }
.quick-summary span, .quick-active { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.quick-summary article { display: grid; min-width: 0; gap: 3px; padding: 9px 12px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.quick-summary article span { padding: 0; border: 0; font-size: 12px; }
.quick-summary article strong { font-size: 15px; font-weight: var(--weight-emphasis); }
.quick-summary article small { color: var(--muted); font-size: 12px; }
.quick-length-slot { min-height: 86px; display: grid; justify-items: center; align-items: start; }
.quick-length-slot .quick-subpanel { width: min(100%, 420px); background: var(--sage); }
.quick-summary span { font-size: 13px; color: var(--action); }
.quick-active { padding: clamp(12px,3vw,26px); }
.quick-active > h4 { font: var(--weight-display) clamp(22px,3vw,30px) var(--heading); margin-bottom: 16px; }
.quick-form-cards .choice { display: grid; gap: 6px; min-height: 72px; align-content: center; }
.quick-subpanel { margin-block: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: #f6f8f6; font-size: 14px; }
.quick-subpanel .step-row { margin-bottom: 0; }
.quick-chapter-row { display: flex; gap: 16px; padding: 10px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.quick-chapter-row strong { color: var(--action); text-decoration: underline; text-underline-offset: 7px; }
#guide-quick .editor-paper { background: white; }
#guide-quick .editor-paper > :is(.caption,h4) { display: block; text-align: center; }
@media (max-width: 760px) {
  .guide-deck { grid-template-columns: minmax(0,1fr); }
  .guide-tabs { flex-direction: row; flex-wrap: wrap; padding-top: 0; }
  .guide-tabs .choice { flex: 1; }
}
.guide-shell > .editor-toolbar { margin-bottom: 10px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.guide-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 12px; min-height: 380px; }
.guide-paper { background: white; border: 3px solid var(--deep); box-shadow: -4px 4px 0 #d5e2da; }
.quick-grid { grid-template-columns: minmax(0,1fr) minmax(0,2.6fr); }
.quick-context .button { margin-top: 12px; }
.agent-status { padding: 16px; background: var(--deep); color: white; border-radius: 12px; margin-bottom: 17px; }
.agent-status span { font-size: 11px; letter-spacing: .12em; }
.agent-status p { color: #e0ece5; }
.quick-stages { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: #f3f7f4; border-bottom: 1px solid var(--line); }
.quick-stages .choice { flex: 1 0 auto; text-align: center; font-size: 12px; }
.chat-title { display: flex; align-items: center; gap: 8px; font-weight: var(--weight-emphasis); color: var(--deep); margin-bottom: 12px; }
.agent-bubble, .user-bubble { border-radius: 12px; background: var(--paper); padding: 11px 13px; margin-block: 10px; }
.user-bubble { background: var(--sage); width: fit-content; margin-left: auto; }
.topic-box { padding: 10px; border-radius: 12px; background: var(--sage); }
.node-group.topics { grid-template-columns: 1fr; grid-template-rows: auto; gap: 5px; margin-top: 5px; padding: 0; }
.node:hover, .choice:hover, .node[aria-pressed=true], .choice[aria-pressed=true] { border-color: #a0baaa; background: var(--sage); }
.step-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 15px; }
.panel-body[data-demo] { display: block; padding: 0; }
.demo-stage { display: grid; position: relative; isolation: isolate; overflow: hidden; }
.demo-frame { grid-area: 1 / 1; visibility: hidden; opacity: 0; min-width: 0; }
.demo-frame.is-current { visibility: visible; opacity: 1; }
.demo-frame.is-outgoing { z-index: 0; }
.demo-pointer { position: absolute; top: 0; left: 0; z-index: 3; width: 25px; height: 29px; pointer-events: none; }
.demo-pointer svg { display: block; width: 100%; height: 100%; fill: #263f35; stroke: white; stroke-width: 1.7; stroke-linejoin: round; filter: drop-shadow(0 2px 3px #203c3960); transform-origin: 15% 8%; }
.demo-value { display: block; min-width: 0; border: 1px solid #a9bfb3; border-radius: 9px; background: var(--white); padding: 9px 10px; font-weight: var(--weight-regular); }
.entity-controls { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--white); }
.entity-controls button { min-height: 44px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--deep); font-size: 14px; }
.entity-controls button[aria-pressed=true] { background: var(--action); border-color: var(--action); color: var(--white); }
.entity-stage { --entity-canvas-height: 460px; --entity-board-height: calc(var(--entity-canvas-height) + 54px); display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,.46fr); align-items: stretch; gap: 10px; padding: 12px; }
.entity-board { min-width: 0; height: var(--entity-board-height); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.place-board { grid-column: 1/-1; }
.entity-canvas { position: relative; height: var(--entity-canvas-height); background: radial-gradient(#b6ccc0 1px,transparent 1px) center/22px 22px, #f8faf8; }
.entity-people .entity-canvas, .place-board .entity-canvas { background: linear-gradient(#e6eee8 1px,transparent 1px) 0 0/24px 24px, linear-gradient(90deg,#e6eee8 1px,transparent 1px) 0 0/24px 24px, #fafcfa; }
.entity-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.entity-wires > path { fill: none; stroke: #668e7d; stroke-width: 2; }
.entity-wires .is-linking { stroke-dasharray: 5 4; }
.entity-node, .entity-place { position: absolute; border: 1px solid #cbdcd1; border-radius: 10px; padding: 12px; background: #f7faf8; box-shadow: 0 3px 12px #263f3516; color: var(--deep); }
.entity-node { width: 36%; }
.entity-node-0 { left: 4%; top: 46px; }
.entity-node-1 { right: 5%; top: 52px; }
.entity-node-2 { right: 5%; bottom: 22px; }
.entity-node small { font-size: 10px; color: var(--muted); }
.entity-node h4, .entity-place h4, .entity-detail h4 { margin: 5px 0 6px; font-size: 16px; }
.entity-node p, .entity-place p, .entity-detail p { font-size: 13px; line-height: 1.6; }
.entity-grip { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 25px; height: 16px; border-radius: 5px; background: radial-gradient(white 1px,transparent 1.5px) center/6px 5px, var(--primary); border: 2px solid var(--primary); }
.entity-port { position: absolute; top: 50%; width: 10px; height: 10px; border: 2px solid white; outline: 1px solid #8da399; background: var(--primary); border-radius: 50%; transform: translateY(-50%); }
.entity-port.left { left: -5px; } .entity-port.right { right: -5px; }
.entity-node:is(.is-dragging,.is-link-target), .entity-canvas.is-editing .entity-place { outline: 2px solid #82a596; box-shadow: 0 7px 18px #263f352c; }
.entity-link-label { position: absolute; transform: translate(-50%,-50%); border: 1px solid #cbdcd1; background: white; font-size: 11px; z-index: 1; white-space: nowrap; }
.entity-detail { display: flex; flex-direction: column; height: var(--entity-board-height); min-height: 0; overflow: hidden; padding: 0; color: var(--deep); }
.entity-detail > header { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.entity-detail > header strong { margin-right: auto; }
.entity-detail > header .state { border-radius: 6px; background: var(--action); color: white; }
.entity-close { border: 1px solid var(--line); padding: 4px 6px; border-radius: 6px; font-size: 12px; }
.entity-detail-body { flex: 1; min-height: 0; overflow: hidden; padding: 12px; }
.entity-detail > :is(header,footer) { flex: none; }
.entity-detail h5 { margin: 10px 0 7px; font-size: 13px; }
.entity-detail dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
.entity-detail dt, .entity-place dt { color: var(--muted); font-size: 12px; }
.entity-detail dd { margin: 3px 0 0; font-size: 13px; line-height: 1.55; }
.entity-detail dl > div { padding: 6px 8px; background: #f5f8f6; border-radius: 6px; }
.entity-profile dl > div:nth-child(n+5) { grid-column: 1/-1; }
.entity-profile { margin-top: 8px; border-top: 1px solid var(--line); }
.entity-person-overview { display: flex; align-items: center; gap: 9px; }
.entity-avatar, .entity-place header .icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; background: var(--sage); }
.entity-place header .icon { padding: 8px; }
.entity-detail > footer { border-top: 1px solid var(--line); padding: 10px 12px; }
.entity-detail > footer span { display: inline-block; border: 1px solid #edd2d2; border-radius: 6px; padding: 4px 7px; color: #943b3e; background: #fdf4f4; font-size: 12px; }
.entity-relationship-row { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 5px; }
.entity-preview .demo-pointer.is-pressed svg { scale: .8; }
.place-board .entity-canvas { display: grid; align-content: start; justify-items: center; padding: 16px 8px 34px; }
.entity-place { position: relative; width: min(95%, 360px); background: white; padding: 13px 15px; }
.entity-place header { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; }
.entity-place header .button { margin-left: auto; min-height: 32px; padding-inline: 9px; font-size: 12px; }
.entity-place section { border-top: 1px solid var(--line); padding-top: 8px; }
.entity-place dl { display: grid; gap: 5px; margin: 6px 0 10px; }
.entity-place dd { margin: 3px 0 0; font-size: 13px; }
.entity-place strong { font-size: 13px; }
.place-edit { display: none; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 9px; font-size: 12px; }
.place-edit .button { min-height: 38px; }
.place-editing-title, .is-editing .place-name, .is-editing .entity-place header .secondary { display: none; }
.is-editing .place-editing-title { display: inline; }
.is-editing .place-edit { display: flex; }
.is-editing .entity-place dd, .is-editing .place-description { padding: 4px 6px; border: 1px solid #cbdcd1; border-radius: 5px; }
.entity-saved { display: none; position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); }
.is-saved .entity-saved { display: inline-flex; }
@media (max-width: 760px) {
  .entity-stage { grid-template-columns: minmax(0,1fr); grid-template-rows: var(--entity-board-height) 215px; }
  .place-board { grid-row: 1/-1; height: 100%; }
  .place-board .entity-canvas { height: calc(100% - 52px); }
  .entity-detail { height: 215px; }
  .entity-node { width: 35%; padding: 10px 7px 7px; }
  .entity-node h4 { font-size: 13px; }
  .entity-node p { font-size: 11px; }
  .entity-node .entity-person-overview { gap: 4px; flex-wrap: wrap; }
  .entity-node .entity-avatar { width: 22px; height: 22px; font-size: 12px; }
  .entity-link-label { font-size: 10px; padding-inline: 4px; }
}
.demo-frame [data-selected=true] { border-color: #a0baaa; background: var(--sage); }
#guide-tree { --tree-deep: #2d4a3e; }
#guide-tree .guide-option[data-selected=true],
#guide-tree .guide-tabs [data-selected=true] { background: var(--tree-deep); border-color: var(--tree-deep); color: white; }
#guide-tree .guide-option[data-selected=true] > span { color: #e6eee9; }
#guide-tree .guide-option[data-selected=true] i { border-color: #e1eee6; background: white; box-shadow: inset 0 0 0 4px var(--tree-deep); }
#guide-tree .guide-option[data-selected=true] small { color: var(--tree-deep); }
#guide-tree .guide-paper { border-color: var(--tree-deep); }
#guide-tree .guide-tabs [data-selected=true] { position: relative; z-index: 1; margin-right: -10px; padding-right: 17px; padding-bottom: 13px; border-radius: 10px 0 0 10px; }
#guide-tree .guide-tabs [data-selected=true]::after { content: ''; position: absolute; left: calc(50% - 14px); bottom: 5px; width: 18px; height: 2px; border-radius: 5px; background: white; }
@media (max-width: 760px) {
  #guide-tree .guide-tabs [data-selected=true] { margin-right: 0; padding-right: 7px; border-radius: 10px 10px 0 0; }
  #guide-tree .guide-tabs [data-selected=true]::after { left: calc(50% - 9px); }
}
.demo-frame .segmented [data-selected=true] { background: var(--action); color: white; }
.demo-frame .graph-board [data-selected=true] { outline: 2px solid #a0baaa; }
#guide-quick { --quick-deep: #2d4a3e; }
#guide-quick .quick-active .choice[data-selected=true] { background: var(--quick-deep); border-color: var(--quick-deep); color: white; }
#guide-quick .quick-stages .choice[data-selected=true] { background: #e6eee8; border-color: #d2e0d6; color: var(--quick-deep); }
.demo-frame :is(.button, .choice, .node) { cursor: default; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-demo].has-played .demo-frame.is-outgoing { visibility: visible; animation: demo-exit .48s var(--ease) both; }
  [data-demo].has-played .demo-frame.is-current { z-index: 1; }
  [data-demo=check].has-played .is-current .review-drawer { animation: demo-drawer .53s var(--ease) both; }
  [data-demo=check].has-played .is-current .located { animation: demo-marker .65s .12s var(--ease) both; }
  [data-demo=graph].has-played .is-current :is(.node-group, .story-timeline) { animation: demo-canvas .55s var(--ease) both; }
  [data-demo=graph].has-played .is-current .drawer { animation: demo-drawer .51s .06s var(--ease) both; }
  [data-demo=graph].has-played .is-current .graph-branches path { stroke-dasharray: 200; animation: demo-branch .62s .1s var(--ease) both; }
  #feature-guide .has-played .is-current :is(.editor-paper, .guide-options) { transform-origin: left center; animation: demo-paper .6s var(--ease) both; }
  #guide-tree.has-played .demo-frame:has(.guide-deck).is-outgoing { visibility: hidden; animation: none; }
  #guide-tree.has-played .is-current .guide-paper:has(.guide-map) { animation: none; }
  #guide-tree.has-played .is-current .guide-map { animation: demo-canvas .45s var(--ease) both; }
  #feature-guide .has-played .is-current .drawer { animation: demo-drawer .5s .07s var(--ease) both; }
  #guide-quick.has-played .is-current .guide-generated > span { animation: quick-type .01s calc(.45s + var(--letter-delay)) step-end both; }
  #guide-quick.has-played:not(.is-playing) .is-current .guide-generated > span { animation-play-state: paused; }
  #feature-guide .has-played .is-current .guide-options.is-expanded { animation: guide-expand .56s var(--ease) both; }
  #feature-guide .has-played .is-current .quick-subpanel { animation: demo-message .52s .12s var(--ease) both; }
  #guide-tree .guide-discussion .guide-new-messages:not([hidden]) > * { animation: demo-message .38s var(--ease) both; }
  #guide-tree .guide-discussion .guide-new-messages > :not(:first-child) { animation-delay: .22s; }
  #guide-tree:not(.is-playing) .guide-discussion .guide-new-messages > * { animation-play-state: paused; }
  [data-demo=chat].has-played .is-current :is(.agent-bubble, .drawer .patch, .editor-paper .patch) { animation: demo-message .45s var(--ease) both; }
  [data-demo=chat].has-played .is-current .drawer .patch { animation-delay: .13s; }
  [data-demo=chat].has-played .is-current .editor-paper .patch { animation-delay: .22s; }
  [data-demo].has-played:not(.is-playing) :is(.demo-frame, .demo-frame *) { animation-play-state: paused !important; }
}
@keyframes quick-type { from { visibility: hidden; } to { visibility: visible; } }
@keyframes guide-expand {
  from { transform: scaleX(.62) translateY(8px); }
  to { transform: none; }
}
@keyframes demo-exit {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-8px) scale(.994); visibility: hidden; }
}
@keyframes demo-drawer {
  from { transform: translateX(28px); clip-path: inset(0 100% 0 0 round 12px); }
  to { transform: none; clip-path: inset(0 0 0 0 round 12px); }
}
@keyframes demo-marker {
  from { background-color: transparent; }
  55% { background-color: #bbd8c5; }
  to { background-color: #d9e7dc; }
}
@keyframes demo-canvas {
  from { transform: translate(-10px, 6px) scale(.975); }
  to { transform: none; }
}
@keyframes demo-branch { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
@keyframes demo-paper {
  from { transform: perspective(950px) rotateY(-8deg) translateX(-14px); clip-path: inset(0 22% 0 0 round 8px); }
  to { transform: none; clip-path: inset(0 0 0 0 round 8px); }
}
@keyframes demo-message {
  from { transform: translateY(12px); clip-path: inset(0 0 100% 0 round 8px); }
  to { transform: none; clip-path: inset(0 0 0 0 round 8px); }
}
.skill-flow { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 12px; padding: 12px; --skill-cycle: 13.6s; }
.skill-editor, .skill-monitor { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.skill-paper-window { position: relative; background: #eeeef0 url(paper.webp) center / cover; margin: 14px; border-radius: 8px; }
.skill-paper-window .demo-pointer { display: none; top: 60%; left: 42%; }
.skill-flow.is-animated .skill-paper-window .demo-pointer { display: block; animation: skill-pointer var(--skill-cycle) ease-in-out infinite; }
.skill-flow.is-animated:not(.is-playing) .skill-paper-window .demo-pointer { animation-play-state: paused; }
@keyframes skill-pointer {
  0%, 50% { opacity: 0; transform: translate(34px,24px); }
  4%, 54% { opacity: 1; transform: translate(34px,24px); }
  10%, 60% { opacity: 1; transform: translate(0,0); }
  11.5%, 61.5% { opacity: 1; transform: scale(.77); }
  13%, 63% { opacity: 1; transform: scale(1); }
  17%, 67%, 100% { opacity: 0; transform: none; }
}
.skill-page, .skill-job { min-width: 0; padding: clamp(15px,3vw,32px); }
.skill-page h4, .skill-job h4 { color: var(--deep); margin: 7px 0 12px; }
.skill-page h4 { font: var(--weight-display) 25px/1.3 var(--heading); }
.skill-page p { font-size: 16px; line-height: 1.75; margin-bottom: 10px; }
.skill-insert { background: var(--sage); padding: 8px 10px; border-left: 2px solid var(--primary); border-radius: 4px; }
.skill-job p { font-size: 14px; line-height: 1.65; color: var(--text); }
.skill-job ul { display: grid; gap: 6px; margin: 12px 0 8px; padding: 0; list-style: none; }
.skill-job li { display: flex; align-items: center; gap: 7px; border: 1px solid #bdd0c5; border-radius: 8px; background: var(--sage); color: var(--deep); padding: 5px 9px; font-size: 13px; }
.skill-job li::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-left: auto; }
.skill-job li .icon, .skill-applied .icon { width: 15px; height: 15px; color: var(--action); }
.skill-job .skill-applied { color: var(--action); font-weight: var(--weight-emphasis); }
.skill-typing { display: none; }
.skill-flow.is-animated :is(.skill-paper-window, .skill-task-window) { height: 365px; overflow: hidden; }
.skill-flow.is-animated .skill-track { position: relative; height: 100%; isolation: isolate; }
.skill-flow.is-animated .skill-track > article { --phase: 0s; position: absolute; inset: 0; min-height: 0; overflow: hidden; animation: skill-page-switch var(--skill-cycle) var(--phase) var(--ease) infinite; }
.skill-flow.is-animated .skill-page { background: #eeeef0 url(paper.webp) center / cover; }
.skill-flow.is-animated .skill-job { background: white; }
.skill-flow.is-animated .skill-track > article:nth-child(2) { --phase: calc(var(--skill-cycle) / -2); }
.skill-flow.is-animated .skill-job li { --call-offset: 0s; animation: skill-call var(--skill-cycle) calc(var(--phase) + var(--call-offset)) linear infinite; }
.skill-flow.is-animated .skill-job li + li { --call-offset: .42s; }
.skill-flow.is-animated .skill-job li::after { animation: skill-indicator var(--skill-cycle) calc(var(--phase) + var(--call-offset)) linear infinite; }
.skill-flow.is-animated .skill-job li .icon { animation: skill-icon var(--skill-cycle) calc(var(--phase) + var(--call-offset)) var(--ease) infinite; }
.skill-flow.is-animated .skill-applied { animation: skill-apply var(--skill-cycle) var(--phase) linear infinite; }
.skill-flow.is-animated .skill-insert { position: relative; }
.skill-flow.is-animated .skill-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skill-flow.is-animated .skill-typing { display: inline; }
.skill-flow.is-animated .skill-typing > span { animation: skill-letter var(--skill-cycle) calc(var(--phase) + var(--letter-delay)) step-end infinite backwards; }
.skill-flow.is-animated .skill-typing::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.12em; background: var(--action); animation: skill-caret var(--skill-cycle) var(--phase) linear infinite; }
.skill-flow.is-animated:not(.is-playing) :is(.skill-track > article, .skill-job li, .skill-job li .icon, .skill-applied, .skill-typing > span),
.skill-flow.is-animated:not(.is-playing) :is(.skill-job li, .skill-typing)::after { animation-play-state: paused; }
@keyframes skill-page-switch {
  0% { visibility: visible; opacity: 0; transform: translateY(18px); }
  4%, 45% { visibility: visible; opacity: 1; transform: none; }
  49.8% { visibility: visible; opacity: 0; transform: translateY(-18px); }
  50%, 100% { visibility: hidden; opacity: 0; transform: translateY(-18px); }
}
@keyframes skill-call {
  0%, 3% { opacity: .4; transform: translateX(-4px); background: var(--white); }
  6%, 9% { opacity: 1; transform: none; border-color: var(--action); box-shadow: 0 0 0 2px #5b7b6e20; }
  13%, 100% { opacity: 1; transform: none; }
}
@keyframes skill-indicator {
  0%, 3% { opacity: .3; transform: scale(.7); }
  6% { opacity: 1; transform: scale(1.35); }
  10%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes skill-icon {
  0%, 3% { transform: scale(.8); }
  7% { transform: scale(1.22) rotate(-8deg); }
  12%, 100% { transform: none; }
}
@keyframes skill-apply {
  0%, 25% { opacity: 0; transform: translateY(4px); }
  29%, 100% { opacity: 1; transform: none; }
}
@keyframes skill-letter {
  0% { visibility: hidden; }
  15%, 100% { visibility: visible; }
}
@keyframes skill-caret {
  0%, 14%, 19%, 24%, 31%, 100% { opacity: 0; }
  15%, 20%, 25%, 30% { opacity: 1; }
}
@media (max-width: 760px) {
  .skill-flow { grid-template-columns: minmax(0,1fr); }
  .skill-flow.is-animated .skill-task-window { height: 285px; }
  .skill-page, .skill-job { padding: 12px; }
  .skill-page h4 { font-size: 20px; }
  .skill-page p { font-size: 14px; line-height: 1.55; margin-bottom: 7px; }
}

.modes { padding-block: 95px 84px; }
.workbench, .mode-card { border-radius: var(--surface-radius); }
.feature-scroll-enabled .workbench { box-shadow: 0 10px 32px #203c3914; }
/* Align the desktop feature presentation with the creative-mode cards below. */
@media (min-width: 951px) {
  .feature-scroll-enabled .feature-screen { width: min(1200px, calc(100% - 96px)); }
  #feature-graph .entity-stage { grid-template-columns: minmax(0,1fr) minmax(260px,290px); }
  #feature-graph .entity-detail-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  #feature-guide .guide-grid { grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); }
  #feature-guide .quick-grid { grid-template-columns: minmax(0,1fr) minmax(0,2.4fr); }
  #feature-skill .skill-flow { grid-template-columns: minmax(0,1fr) minmax(240px,280px); }
  #feature-skill .skill-job { padding: 22px 20px; }
}
@media (min-width: 951px) and (max-width: 1024px) {
  .feature-scroll-enabled .feature-screen { width: calc(100% - 56px); }
  #feature-graph .entity-stage { grid-template-columns: minmax(0,1fr) 260px; }
}
.workbench .window-bar, .entity-controls { background: var(--white); }
.mode-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.mode-card { border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; box-shadow: 0 4px 18px #263f3508; }
.mode-art { display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 205px; padding: 18px; background: radial-gradient(#819d8d4d .65px,transparent .8px) center / 14px 14px, #e8efea; color: var(--deep); }
.mini-workflow, .mini-options, .mini-files { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.mini-workflow span, .mini-options span, .mini-files span { padding: 5px 9px; border: 1px solid #c9d9d0; background: var(--white); border-radius: 7px; font-size: 12px; }
.mini-workflow span:last-child, .mini-options span:first-child { color: var(--white); border-color: var(--action); background: var(--action); }
.mini-paper { width: min(260px,100%); background: var(--white) url(paper.webp) center / cover; border-radius: 10px; padding: 13px 16px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.mini-paper small, .mini-paper strong { display: block; }
.mini-paper small { font-size: 11px; margin-bottom: 4px; }
.mini-paper strong { font: var(--weight-display) 16px var(--heading); }
.mini-paper i { display: block; height: 1px; background: #a5b4aa; margin-top: 8px; }
.mini-paper i:last-child { width: 64%; }
.tree-art { background-color: #e3ede8; }
.mini-chat { background: var(--white); padding: 11px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; }
.mini-files span { background: #f3f8f5; }
.mode-copy { padding: 24px 26px 26px; }
.mode-copy h3 { font: var(--weight-display) 28px var(--heading); margin-bottom: 8px; }
.mode-copy p { min-height: 3.5em; color: var(--text); font-size: 15px; line-height: 1.75; margin-bottom: 18px; }
.closing { padding-bottom: 48px; }
.closing-card { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; border-radius: 22px; padding: clamp(26px,5.5vw,72px); background: radial-gradient(#d8eee629 .7px, transparent 1px) center / 15px 15px, var(--deep); color: var(--white); }
.closing-card h2 { font-size: clamp(31px,3.8vw,50px); }
.closing .overline, .closing p:last-child { color: #e2eee7; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); min-height: 82px; color: var(--muted); font-size: 13px; }
.footer .logo img { width: 120px; }
.footer > a:last-child { padding-block: 14px; }
.footer > a:last-child:hover { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .map-place { animation-delay: .22s; }
  .hero-lines path { stroke-dasharray: 360; animation: draw-line 1.1s .25s var(--ease) both; }
  .reveal.is-visible { animation: enter .52s var(--ease) both; }
  .mode-card:nth-child(2) { animation-delay: .08s; }
}
@keyframes enter { from { opacity: .25; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 1024px) {
  .wrap { width: calc(100% - 56px); }
  .hero h1 { font-size: clamp(40px, 4.9vw, 56px); }
  [data-demo=check] .demo-frame, [data-demo=chat] .demo-frame { grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
  .desk-rail { display: none; }
}
@media (max-width: 950px) {
  :root { --cover-header-height: 65px; --anchor-gap: 12px; }
  .nav { grid-template-columns: 1fr auto auto; gap: 8px; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
  .nav nav { display: none; position: absolute; inset: calc(100% + 4px) 0 auto; max-height: calc(100dvh - var(--cover-header-height) - 16px); overflow-y: auto; overscroll-behavior: contain; padding: 5px 15px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
  .nav nav.open { display: grid; gap: 0; }
  .nav nav a + a { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .logo img { width: 132px; }
  .hero h1 { margin-block: 16px; font-size: clamp(35px, 8vw, 59px); }
  .hero-text { font-size: 14px; }
  .hero-down { bottom: 6px; }
  .board-top { padding: 15px 12px; }
  .features, .modes { padding-block: 58px; }
  .feature-section { grid-template-columns: 1fr; gap: 16px; padding-block: 30px; }
  .mode-grid { gap: 12px; }
  .mode-copy { padding: 19px; }
}
@media (max-width: 520px) {
  .panel-body, [data-demo=check] .demo-frame, [data-demo=chat] .demo-frame, .guide-grid, .quick-grid { grid-template-columns: minmax(0,1fr); min-height: auto; }
  .panel-body { padding: 8px; }
  .editor-paper { min-height: 230px; margin: 10px; }
  .graph-board .node-group { padding: 10px; min-height: 225px; }
  .panel-body p { font-size: 15px; }
  .mobile-break { display: inline; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-copy p { min-height: auto; }
  .window-bar { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
 
/* Keep the guide heading and the active preview together in the viewport. */
.feature-section { gap: 12px; padding-block: 22px; }
.feature-copy { min-height: var(--feature-copy-height, 0px); }
.feature-copy h3 { margin: 5px 0; font-size: clamp(23px,3vw,36px); }
#feature-guide .window-bar { min-height: 32px; padding-block: 5px; }
#feature-guide .guide-controls { padding-block: 4px; }
#feature-guide [data-demo], #feature-guide .demo-frame, #feature-guide .demo-stage { min-height: 0; }
#feature-guide .demo-frame { padding: 8px; }
#feature-guide .demo-frame.guide-centered { display: grid; place-items: center; place-content: center; grid-template-columns: minmax(0,1fr); }
#guide-quick .quick-proposals { width: min(100%, 860px); }
#guide-quick .quick-summary { display: flex; flex-wrap: wrap; justify-content: center; }
#guide-quick .quick-summary article { flex: 0 1 calc((100% - 12px) / 4); }
#guide-quick .quick-active > .step-row,
#guide-quick .quick-subpanel .step-row { justify-content: center; }
#guide-quick .quick-category-row { justify-content: center; gap: 6px; }
#guide-quick .quick-subpanel > strong { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
#guide-quick .quick-subpanel > strong small { color: var(--muted); font-weight: var(--weight-emphasis); }
.quick-ending-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.quick-ending-cards .choice { display: flex; flex-direction: column; gap: 4px; }
.quick-ending-cards small { line-height: 1.4; }
.quick-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.quick-actions > .button:last-child { margin-left: auto; min-width: 136px; }
.quick-skip { font-size: 12px; color: var(--action); }
@media (max-width: 520px) {
  .quick-ending-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .quick-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr); }
  .quick-actions > .button:last-child { margin: 0; min-width: 0; }
  .quick-actions .quick-skip { grid-column: 1/-1; grid-row: 1; text-align: center; }
}
.guide-idea { width: min(100%, 740px); margin-inline: auto; padding: 12px; }
.guide-idea h4 { font: var(--weight-display) clamp(22px,3vw,30px) var(--heading); color: var(--deep); }
.guide-idea-card { margin-top: 14px; padding: 13px; border-radius: 14px; border: 1px solid var(--line); background: white; color: var(--deep); font-size: 14px; }
.guide-idea-input { min-height: 105px; margin: 8px 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; line-height: 1.65; color: var(--muted); }
.guide-idea-input.is-filled { color: var(--ink); }
.guide-idea-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--action); }
.guide-idea-actions .primary { margin-left: auto; min-width: 118px; }
.quick-generation { width: min(100%, 1060px); margin-inline: auto; }
.quick-generation .quick-context { min-width: 0; }
.quick-direction { background: white; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.quick-direction dl { margin: 8px 0; font-size: 12px; }
.quick-direction dt { color: var(--muted); }
.quick-direction dd { margin: 2px 0 5px; }
.quick-agent-meter { display: flex; gap: 4px; margin-top: 8px; }
.quick-agent-meter i { display: block; width: 20px; height: 2px; background: #658778; }
.quick-agent-meter i:nth-child(2) { background: #b1cabd; }
.quick-stages i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #a8bdb3; vertical-align: middle; }
.quick-stages i.is-done, .quick-stages [data-selected=true] i { background: var(--primary); }
.quick-chapter-row small { margin-left: auto; }
.quick-preview-status { display: flex; justify-content: space-between; gap: 6px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
#feature-guide .guide-proposals { padding: 10px 14px; }
#feature-guide .guide-proposals h4 { margin: 4px 0 7px; font-size: clamp(19px,2.6vw,27px); }
#feature-guide .guide-proposal-bar, #feature-guide .guide-project { margin-block: 5px; }
#feature-guide .guide-options { margin-block: 6px; }
#feature-guide .guide-option { padding: 9px; gap: 4px; }
#feature-guide .guide-option strong { font-size: clamp(14px,2vw,19px); }
#feature-guide .guide-options.is-expanded .guide-option { min-height: 92px; }
#feature-guide .guide-note { margin-block: 7px; padding: 6px 8px; }
#feature-guide .guide-note p { min-height: 0; margin-top: 4px; padding: 5px; }
#feature-guide .guide-grid { min-height: 0; gap: 8px; }
#feature-guide .guide-agent, #feature-guide .quick-context { padding: 9px; }
#feature-guide .guide-agent .chat-title { margin-bottom: 5px; }
#feature-guide .guide-agent .topic-box { padding: 5px; }
#feature-guide .guide-agent .topics { gap: 3px; }
#feature-guide .guide-agent :is(.agent-bubble,.user-bubble) { margin-block: 4px; padding: 5px 7px; }
#feature-guide .guide-compose { margin-block: 5px; }
#feature-guide .editor-toolbar { min-height: 40px; }
#feature-guide .demo-frame :is(.button,.choice) { min-height: 31px; }
#feature-guide .quick-active { padding: 10px; }
#feature-guide .quick-summary { margin-bottom: 5px; gap: 4px; }
#feature-guide .quick-summary span { padding: 5px; }
#feature-guide .quick-form-cards .choice { min-height: 48px; }
#guide-quick .quick-form-cards .choice { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; background: var(--paper); border-radius: 12px; }
#guide-quick .quick-form-cards .choice[data-selected=true] { background: var(--quick-deep); }
#feature-guide .quick-summary article span { padding: 0; }
#feature-guide .quick-subpanel, #feature-guide .step-row { margin-block: 6px; }
#feature-guide .quick-subpanel { padding: 6px; }
#feature-guide .quick-context .agent-status { padding: 9px; margin-bottom: 8px; }
#feature-guide .quick-grid .editor-paper { min-height: 0; padding: 10px; margin: 6px; }
#feature-guide .quick-grid .editor-paper h4 { margin: 4px 0 6px; }
#feature-guide .quick-grid .prose { line-height: 1.55; }
@media (max-width: 520px) {
  .feature-copy > p:last-child { font-size: 13px; line-height: 1.45; }
  #feature-guide .guide-options { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  #feature-guide .guide-options.is-expanded { grid-template-columns: 1fr; }
  #feature-guide .guide-option small, #feature-guide .guide-agent .guide-compose { display: none; }
  #feature-guide .guide-option { font-size: 12px; }
  #feature-guide .guide-paper-body { padding: 6px; }
  #feature-guide .guide-tabs .choice { min-width: 0; font-size: 11px; }
  #feature-guide .guide-agent .topics .button { min-height: 25px; }
  #feature-guide .quick-context > :not(.agent-status) { display: none; }
  #feature-guide .quick-context .agent-status { margin-bottom: 0; }
  #guide-quick .quick-summary article { flex-basis: calc((100% - 4px) / 2); }
}

.hero { position: relative; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; isolation: isolate; overflow: hidden; background: #273b30; color: white; text-align: center; min-height: 100svh; margin-top: calc(-1 * var(--cover-header-height)); padding: calc(var(--cover-header-height) + 16px) 20px; }
.hero::before, .hero::after { content: ''; position: absolute; inset: 0; z-index: -1; }
/* 与 .hero-video 同框（top/bottom -7% 即高度 114%），
   否则视频淡入的瞬间画面会突然放大约 12% */
.hero::before { inset: -7% 0; background: url(hero-poster.webp) center / cover no-repeat; filter: blur(.8px); }
.hero-video {
  position: absolute;
  top: -7%;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 114%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s var(--ease);
}
.hero::after { background: linear-gradient(180deg, #08181118, transparent 38%, #08181145); }
@media (max-width: 760px) {
  .hero::before { background-position: 22% center; }
  .hero-video { object-position: 22% center; }
}
.hero-copy { width: min(100%,800px); }
.hero .overline, .hero .actions { justify-content: center; }
.hero .actions { gap: 16px; }
.hero .overline, .hero h1 em { color: #d5eadc; }
.hero-action { color: white; }
.hero-action + .hero-action { color: #d5eadc; }
.hero :is(a, button):focus-visible { outline-color: #e8f2eb; }
@media (prefers-reduced-motion: no-preference) {
  .hero.is-video-ready .hero-video { opacity: 1; }
  .hero-down .icon { animation: hero-down-bounce 2s ease-in-out infinite; }
  .hero.is-typing .hero-actions { animation: hero-actions-in .44s var(--ease) var(--hero-actions-at) backwards; }
  .hero-letter { animation: hero-type 0s var(--type-at) both; }
  .hero h1 .hero-letter { position: relative; }
  .hero h1 .hero-letter::after { content: ''; position: absolute; right: -.04em; top: .16em; bottom: .12em; width: 2px; background: #d5eadc; opacity: 0; pointer-events: none; animation: hero-caret 80ms var(--type-at) step-end; }
}
@keyframes hero-down-bounce {
  0%, 18%, 68%, 100% { transform: translateY(0); }
  43% { transform: translateY(6px); }
}
@keyframes hero-type { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-caret { from { opacity: 1; } to { opacity: 0; } }
@keyframes hero-actions-in {
  from { visibility: hidden; opacity: 0; transform: translateY(9px); }
  to { visibility: visible; opacity: 1; transform: none; }
}
