:root {
  --base: #f5f7f2;
  --surface: #ffffff;
  --ink: #171914;
  --muted: #5d6258;
  --hairline: #d8ded1;
  --teal: #08746b;
  --teal-dark: #064f49;
  --vermillion: #c43f2f;
  --amber: #b47810;
  --steel: #28536b;
  --code: #11160f;
  --code-soft: #eef2e9;
  --shadow: 0 18px 60px rgba(23, 25, 20, 0.1);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 116, 107, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(8, 116, 107, 0.04) 1px, transparent 1px),
    var(--base);
  background-size: 42px 42px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

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

.image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: zoom-in;
  outline-offset: 4px;
}

.image-button img {
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.image-button:hover img {
  filter: contrast(1.02);
  transform: translateY(-2px);
}

body.has-lightbox {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 14, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(1180px, 100%);
  max-height: min(900px, calc(100vh - 48px));
  padding: 14px;
  background: #f8faf5;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.lightbox__image {
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.lightbox__caption {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 6px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.lightbox__close:hover {
  border-color: var(--teal);
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(245, 247, 242, 0.9);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  height: 64px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
  font-size: 13px;
}

.brand__text {
  font-size: 15px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
}

.topnav a {
  min-width: max-content;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
}

.topnav a:hover {
  color: var(--ink);
  background: rgba(8, 116, 107, 0.09);
}

.manual-head {
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 18% 0, rgba(8, 116, 107, 0.16), transparent 32%),
    linear-gradient(135deg, #f8faf5 0%, #eef4ee 100%);
}

.manual-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: 620px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 78px) 0;
}

.manual-head__copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  line-height: 1.08;
  font-weight: 800;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7.5vw, 92px);
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.4vw, 56px);
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.35;
}

.lead {
  max-width: 700px;
  margin-bottom: 22px;
  color: #30352d;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal-dark);
  border-radius: 6px;
  font-weight: 900;
}

.primary-link:hover {
  background: var(--teal-dark);
}

.hero-actions span {
  color: var(--teal-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 10px 10px 0 rgba(196, 63, 47, 0.16);
}

.rule-strip div {
  min-height: 132px;
  padding: 18px;
  border-right: 1px solid var(--ink);
}

.rule-strip div:last-child {
  border-right: 0;
}

.rule-strip strong {
  display: block;
  margin-bottom: 9px;
  font-size: 17px;
}

.rule-strip span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.manual-head__figure {
  margin: 0;
  transform: rotate(1deg);
}

.manual-head__figure img {
  width: 100%;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.layout-shell {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 38px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.side-rail {
  position: sticky;
  top: 88px;
  align-self: start;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 24px 6px 18px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 116, 107, 0.35) transparent;
}

.side-rail__title {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.side-rail__group {
  display: block;
  margin: 26px 0 12px;
  padding: 0 12px;
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.35;
}

.side-rail__title + .side-rail__group {
  margin-top: 4px;
}

.side-rail a {
  display: block;
  margin-bottom: 8px;
  padding: 9px 12px;
  color: var(--muted);
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.3;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.side-rail a.is-active {
  color: var(--teal-dark);
  background: #fffaf2;
  border-left-color: var(--vermillion);
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(203, 62, 49, 0.12);
}

.content-flow {
  min-width: 0;
}

.band {
  scroll-margin-top: 86px;
  padding: clamp(52px, 8vw, 94px) 0;
  border-bottom: 1px solid var(--hairline);
}

.band--route {
  padding-top: clamp(40px, 6vw, 76px);
}

.chapter-intro {
  scroll-margin-top: 86px;
  padding: clamp(42px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--hairline);
}

.chapter-intro h2 {
  max-width: 820px;
  margin-bottom: 16px;
}

.chapter-intro p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.chapter-intro--advanced {
  margin-top: 10px;
  border-top: 1px solid var(--hairline);
}

.feature-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.feature-map article {
  min-height: 150px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.feature-map strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 20px;
}

.feature-map span {
  display: block;
  color: var(--muted);
  line-height: 1.7;
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.route-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
}

.route-stage {
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route-stage h3 {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 12px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--teal);
  border-radius: 6px;
  font-size: 16px;
}

.route-stage--accent h3 {
  background: var(--vermillion);
}

.route-stage ol {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.route-stage li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.route-stage li:first-child {
  border-top: 0;
  padding-top: 0;
}

.route-stage span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  grid-row: 1 / span 2;
  color: var(--teal-dark);
  background: #e8f2ec;
  border: 1px solid #c8d9cd;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.route-stage--accent span {
  color: #8b241b;
  background: #fae8e4;
  border-color: #ecc8bf;
}

.route-stage strong {
  display: block;
  grid-column: 2;
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.35;
}

.route-stage p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.split--setup {
  align-items: center;
}

.path-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.download-card {
  display: grid;
  gap: 6px;
  max-width: 520px;
  padding: 18px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--ink);
  border-left: 6px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 rgba(8, 116, 107, 0.1);
}

.download-card span {
  color: var(--teal-dark);
  font-weight: 900;
}

.download-card a {
  width: fit-content;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 20px;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(8, 116, 107, 0.35);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.download-card p {
  margin: 0;
  color: var(--muted);
}

.path-pair div {
  padding: 16px;
  background: var(--code-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.path-pair span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-weight: 800;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.path-pair code {
  display: block;
  padding: 8px 0;
  overflow-wrap: anywhere;
  color: var(--code);
  line-height: 1.4;
}

.check-list,
.audit-list,
.warning-panel ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li,
.audit-list li,
.warning-panel li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}

.check-list li::before,
.audit-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.home-orientation {
  display: grid;
  grid-template-columns: minmax(320px, 0.4fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding: clamp(28px, 3.5vw, 40px);
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.home-orientation__copy {
  padding-top: 4px;
}

.home-orientation__copy h3 {
  margin: 18px 0 18px;
  color: var(--teal-dark);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.18;
}

.home-orientation__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.home-entry-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-entry-map article {
  min-height: 128px;
  padding: 16px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.home-entry-map strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 17px;
}

.home-entry-map span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.home-scene-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.home-scene-cards article {
  min-height: 178px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.home-scene-cards span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.home-scene-cards h3 {
  color: var(--ink);
  font-size: 22px;
}

.home-scene-cards p {
  margin: 0;
  color: var(--muted);
}

.home-scene-shots {
  margin-bottom: 8px;
}

.screenshot,
.wide-shot,
.image-strip figure,
.video-frames figure {
  margin: 0;
}

.screenshot img,
.wide-shot img,
.image-strip img,
.video-frames img {
  width: 100%;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.screenshot--page img {
  max-height: 620px;
  object-fit: contain;
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.46fr) minmax(380px, 0.54fr);
  gap: clamp(24px, 3.2vw, 44px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 38px);
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-panel__copy {
  max-width: 560px;
}

.project-panel__copy h3 {
  margin-bottom: 16px;
  color: var(--teal-dark);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
}

.project-panel__copy > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.screenshot--project img {
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
}

.project-rules {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.project-rules article {
  padding: 16px 18px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
}

.project-rules article:last-child {
  border-left-color: var(--amber);
}

.project-rules strong,
.project-rules span {
  display: block;
}

.project-rules strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 16px;
}

.project-rules span {
  color: var(--muted);
  line-height: 1.65;
}

.project-boundary {
  padding: 16px 18px;
  margin-top: 16px;
  background: #fffaf2;
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--amber);
  border-radius: var(--radius);
}

.project-boundary strong,
.project-boundary span {
  display: block;
}

.project-boundary strong {
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 18px;
}

.project-boundary span {
  color: var(--muted);
  line-height: 1.65;
}

.project-type-block {
  padding: clamp(20px, 3vw, 26px);
  margin-bottom: 20px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.project-type-block__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.project-type-block__head h3 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 24px;
  line-height: 1.35;
}

.project-type-block__head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.project-template-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 14px;
  min-height: 150px;
  padding: 18px 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.project-template-grid span {
  grid-row: 1 / span 2;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  align-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.project-template-grid h3 {
  margin: 1px 0 6px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.35;
}

.project-template-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-start {
  display: grid;
  grid-template-columns: minmax(250px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: clamp(20px, 3vw, 26px);
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
}

.project-start h3 {
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 24px;
}

.project-start p {
  margin-bottom: 0;
  color: var(--muted);
}

.prompt-block--compact {
  box-shadow: none;
}

.prompt-block--compact pre {
  padding: clamp(16px, 2.4vw, 22px);
}

.default-mode {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin-bottom: 20px;
}

.default-mode__hero,
.default-mode__notes article {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.default-mode__hero {
  padding: clamp(24px, 4vw, 38px);
  border-left: 8px solid var(--teal);
  box-shadow: var(--shadow);
}

.default-mode__hero span,
.mode-guide__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.default-mode__hero h3 {
  margin: 14px 0 12px;
  color: var(--teal-dark);
  font-size: clamp(29px, 3.4vw, 42px);
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: normal;
}

.default-mode__hero p {
  color: var(--muted);
  font-size: 19px;
}

.default-mode__hero strong {
  display: block;
  margin-top: 20px;
  color: var(--ink);
}

.default-mode__notes {
  display: grid;
  gap: 16px;
}

.default-mode__notes article {
  padding: 22px;
}

.default-mode__notes h3 {
  color: var(--steel);
  font-size: 24px;
}

.default-mode__notes p {
  margin-bottom: 0;
  color: var(--muted);
}

.mode-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  background: transparent;
  border: 0;
}

.mode-guide article {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px 22px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.mode-guide__tag {
  min-height: auto;
  padding: 0;
  color: var(--teal-dark);
  background: transparent;
  border-radius: 0;
  font-size: 13px;
}

.mode-guide h3 {
  margin-top: 8px;
  margin-bottom: 14px;
  color: var(--steel);
  font-size: 28px;
}

.mode-guide p {
  flex: 1;
  margin-bottom: 14px;
  color: var(--muted);
}

.mode-guide__note {
  display: block;
  flex: 0;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.55;
}

.mode-guide__risk h3 {
  color: var(--vermillion);
}

.mode-guide__risk .mode-guide__tag {
  color: var(--vermillion);
}

.wide-shot {
  max-width: 940px;
}

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

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

.ui-shot-grid figure {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.ui-shot-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ui-shot-grid figcaption {
  min-height: 24px;
}

.prompt-block {
  overflow: hidden;
  background: var(--code);
  border: 1px solid #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.quick-prompts article {
  min-height: 138px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.quick-prompts span {
  display: block;
  margin-bottom: 14px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.quick-prompts strong {
  display: block;
  font-size: 22px;
  line-height: 1.45;
}

.first-task-map {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 3vw, 28px);
  margin-bottom: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.first-task-map h3 {
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 26px;
}

.first-task-map p {
  color: var(--muted);
}

.first-task-map ol {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.first-task-map li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
}

.first-task-map li span,
.review-path span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.prompting-grid,
.settings-grid,
.automation-panel {
  display: grid;
  gap: 14px;
}

.prompting-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
}

.prompting-grid article,
.settings-grid article,
.automation-panel article {
  min-height: 170px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.prompting-grid span,
.settings-grid span,
.automation-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.prompting-grid h3,
.settings-grid h3,
.automation-panel h3 {
  color: var(--teal-dark);
  font-size: 22px;
}

.prompting-grid p,
.settings-grid p,
.automation-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.prompting-note,
.settings-rule {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  background: #fbf7f3;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
}

.prompting-note strong,
.settings-rule strong {
  color: var(--amber);
  font-size: 18px;
}

.prompting-note span,
.settings-rule span {
  color: var(--muted);
}

.settings-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.settings-grid article {
  display: flex;
  flex-direction: column;
  min-height: 265px;
}

.settings-grid span {
  width: fit-content;
  background: var(--steel);
}

.settings-grid strong {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  line-height: 1.6;
}

.automation-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.automation-panel span {
  background: var(--amber);
}

.automation-prompt,
.public-search-note {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.automation-prompt > div,
.public-search-note > div {
  padding: 22px;
}

.automation-prompt h3,
.public-search-note h3 {
  color: var(--teal-dark);
  font-size: 24px;
}

.automation-prompt p,
.public-search-note p {
  margin: 0;
  color: var(--muted);
}

.automation-prompt pre,
.public-search-note pre {
  color: #eef7df;
  background: var(--code);
  border-radius: 0;
  box-shadow: none;
}

.prompt-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 10px 14px;
  color: #f7fbef;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.prompt-block__bar span {
  font-weight: 800;
}

.prompt-block__bar button,
.template-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  color: var(--ink);
  background: #f8faf5;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
}

.prompt-block__bar button:hover,
.template-tabs button:hover {
  border-color: var(--teal);
}

pre {
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  overflow-x: auto;
  color: #eef7df;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.72;
}

.scene-grid,
.review-matrix,
.review-path,
.agent-steps,
.redline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scene-grid article,
.review-matrix article,
.review-path article,
.agent-steps article,
.redline-grid article {
  min-height: 178px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.scene-grid span,
.agent-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--steel);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.scene-grid p,
.review-matrix p,
.review-path p,
.agent-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.review-path {
  margin-bottom: 22px;
}

.review-path article {
  min-height: 168px;
}

.review-path h3 {
  margin-top: 12px;
  color: var(--teal-dark);
  font-size: 22px;
}

.review-matrix {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 34px;
}

.review-matrix article {
  min-height: 150px;
}

.review-matrix h3 {
  color: var(--teal-dark);
}

.audit-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.audit-panel h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.audit-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.redline-inline {
  padding: clamp(20px, 3vw, 26px);
  margin-top: 20px;
  background: #fffaf8;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--vermillion);
  border-radius: var(--radius);
}

.redline-inline__head {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.redline-inline__head h3 {
  margin: 0;
  color: var(--vermillion);
  font-size: 24px;
  line-height: 1.35;
}

.redline-inline__head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.audit-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.audit-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--hairline);
}

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

.audit-list li::before {
  display: none;
}

.audit-list span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--teal-dark);
  background: #e8f2ec;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.definition-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.definition-table div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  min-height: 150px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.definition-table strong,
.definition-table span {
  padding: 0;
}

.definition-table strong {
  display: block;
  color: var(--teal-dark);
  font-size: 18px;
  line-height: 1.45;
}

.definition-table span {
  color: var(--muted);
  line-height: 1.75;
}

.safe-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}

.safe-flow li {
  min-height: 130px;
  padding: 18px;
  background: var(--surface);
  border-top: 5px solid var(--amber);
  border-radius: var(--radius);
}

.safe-flow span {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.feature-path {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 0 0 6px;
  margin: 0 0 12px;
  color: var(--teal-dark);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
}

.connector-example {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.connector-example__intro {
  max-width: 850px;
  padding: 4px 0 12px;
}

.connector-example h3 {
  color: var(--teal-dark);
  font-size: 26px;
}

.connector-example p {
  color: var(--muted);
}

.connector-build-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.connector-build-flow li {
  min-height: 150px;
  padding: 16px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.connector-build-flow span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.connector-build-flow strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 900;
}

.connector-build-flow p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.connector-example__guard {
  display: grid;
  grid-template-columns: minmax(220px, 0.54fr) minmax(0, 1fr);
  gap: 18px 24px;
  align-items: start;
  padding: 18px 20px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
}

.connector-example__guard .eyebrow {
  color: var(--amber);
}

.connector-example__guard h3 {
  color: var(--amber);
}

.connector-example__guard pre {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: none;
}

.connector-example__guard code {
  white-space: pre-wrap;
}

.connector-example__guard--wide {
  margin-top: 18px;
  margin-bottom: 28px;
}

.connector-oa-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.connector-oa-grid article {
  min-height: 150px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.connector-oa-grid h3 {
  color: var(--teal-dark);
  font-size: 20px;
}

.connector-oa-grid p {
  margin: 0;
  color: var(--muted);
}

.connector-shots {
  margin-bottom: 22px;
}

.connector-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.connector-check-grid article {
  min-height: 145px;
  padding: 18px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.connector-check-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 18px;
}

.connector-check-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.expert-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 22px;
  align-items: center;
  padding: clamp(22px, 3vw, 30px);
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.expert-panel__copy h3 {
  color: var(--teal-dark);
  font-size: 26px;
}

.expert-panel__copy p {
  color: var(--muted);
  font-size: 18px;
}

.expert-rule {
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--hairline);
}

.expert-rule strong {
  display: block;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 18px;
}

.expert-rule span {
  color: var(--muted);
}

.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.expert-grid article {
  min-height: 190px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.expert-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.expert-grid h3 {
  color: var(--teal-dark);
}

.expert-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.expert-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.expert-compare > div {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.expert-compare h3,
.expert-compare p {
  padding-right: 20px;
  padding-left: 20px;
}

.expert-compare h3 {
  padding-top: 20px;
  color: var(--steel);
  font-size: 24px;
}

.expert-compare p {
  color: var(--muted);
}

.expert-compare pre {
  min-height: 260px;
  color: #eef7df;
  background: var(--code);
}

.expert-team-shot {
  margin-bottom: 22px;
}

.expert-caution {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 22px;
  padding: 20px 22px;
  background: #fbf7f3;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
}

.expert-caution strong {
  color: var(--amber);
  font-size: 18px;
}

.expert-caution span {
  color: var(--muted);
}

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

.expert-playbook div {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.expert-playbook strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 18px;
}

.expert-playbook p {
  margin: 0;
  color: var(--muted);
}

.expert-team-uses {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: clamp(22px, 3vw, 28px);
  margin: 0 0 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.expert-team-uses h3 {
  color: var(--teal-dark);
  font-size: 24px;
}

.expert-team-uses p {
  margin: 0;
  color: var(--muted);
}

.expert-team-uses ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.expert-team-uses li {
  min-height: 126px;
  padding: 16px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.expert-team-uses li::before {
  display: none;
}

.expert-team-uses strong {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 17px;
}

.expert-team-uses span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.knowledge-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 18px;
  margin-bottom: 22px;
}

.knowledge-steps {
  display: grid;
  gap: 12px;
}

.knowledge-steps article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.knowledge-steps span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #fff;
  background: var(--steel);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.knowledge-steps h3,
.knowledge-review h3,
.knowledge-prompt h3 {
  margin-bottom: 6px;
}

.knowledge-steps p,
.knowledge-review p,
.knowledge-prompt p,
.knowledge-caution span {
  margin-bottom: 0;
  color: var(--muted);
}

.knowledge-review {
  padding: 22px;
  background: #eef3f4;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--steel);
  border-radius: var(--radius);
}

.knowledge-review ol {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 14px 0 16px;
}

.knowledge-review li {
  padding-left: 4px;
}

.knowledge-library-grid,
.knowledge-task-grid,
.knowledge-remote {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

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

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

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

.knowledge-library-grid article,
.knowledge-task-grid article,
.knowledge-remote > div {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.knowledge-library-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-library-grid p,
.knowledge-task-grid p,
.knowledge-remote p {
  margin-bottom: 0;
  color: var(--muted);
}

.knowledge-process {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.knowledge-process span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  color: var(--teal-dark);
  background: #e8f2ec;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.knowledge-process span:not(:last-child)::after {
  content: ">";
  margin-left: 10px;
  color: var(--muted);
}

.knowledge-prompt {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 18px;
  color: #f7fbef;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.knowledge-prompt h3 {
  color: #fff;
}

.knowledge-prompt p {
  color: #cbd4c5;
}

.knowledge-prompt pre {
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.knowledge-prompt code {
  white-space: pre-wrap;
}

.knowledge-caution {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin: 4px 0 28px;
  padding: 22px 24px;
  background: #fbf7f3;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
}

.knowledge-caution strong {
  display: block;
  color: var(--amber);
  font-size: 18px;
  line-height: 1.45;
}

.knowledge-caution span {
  display: block;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
}

.knowledge-shots {
  margin-top: 26px;
}

.tool-verdict {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px 22px;
  margin-bottom: 18px;
  background: #fbf7f3;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
}

.tool-verdict span,
.tool-cards span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.tool-verdict strong {
  display: block;
  color: var(--amber);
  font-size: 22px;
  line-height: 1.35;
}

.tool-verdict p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.tool-cards article {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.tool-cards h3 {
  color: var(--teal-dark);
  font-size: 22px;
}

.tool-cards p {
  flex: 1;
  margin-bottom: 16px;
  color: var(--muted);
}

.tool-cards a {
  width: fit-content;
  padding: 6px 10px;
  color: var(--teal-dark);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.tool-cards a:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.tool-howto {
  padding: 22px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.tool-howto h3 {
  margin-bottom: 16px;
  color: var(--teal-dark);
  font-size: 24px;
}

.tool-howto ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool-howto li {
  min-height: 150px;
  padding: 16px;
  color: var(--muted);
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.tool-howto span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-weight: 900;
}

.warning-panel {
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 28px;
  color: var(--ink);
  background: #fffaf8;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--vermillion);
  border-radius: var(--radius);
}

.warning-panel h3 {
  color: var(--vermillion);
  font-size: 22px;
}

.warning-panel li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--vermillion);
}

.warning-panel li {
  color: var(--muted);
}

.agent-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 28px;
}

.agent-steps span {
  background: var(--vermillion);
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.image-strip img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: top center;
  background: #fff;
}

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

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

.template-explain article {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.template-explain span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.template-explain p {
  margin-bottom: 0;
  color: var(--muted);
}

.skill-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 3vw, 28px);
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skill-panel h3 {
  color: var(--teal-dark);
  font-size: 26px;
}

.skill-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.expert-panel__copy .feature-path,
.skill-panel .feature-path {
  margin-bottom: 12px;
}

.skill-menu-note {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: #f8faf5;
  border: 1px solid var(--hairline);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
}

.skill-menu-note strong {
  color: var(--teal-dark);
  font-size: 18px;
}

.skill-menu-note span {
  display: block;
  color: var(--muted);
}

.skill-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.skill-route-grid article {
  min-height: 150px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.skill-route-grid h3 {
  color: var(--teal-dark);
  font-size: 20px;
}

.skill-route-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.skill-create-block {
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.skill-create-block > div {
  padding: 22px;
}

.skill-create-block h3 {
  color: var(--teal-dark);
  font-size: 24px;
}

.skill-create-block p {
  margin: 0;
  color: var(--muted);
}

.skill-create-block pre {
  margin: 0;
  color: #eef7df;
  background: var(--code);
  border-radius: 0;
  box-shadow: none;
}

.template-anatomy {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.template-anatomy h3 {
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.template-anatomy p {
  margin-bottom: 0;
  color: var(--muted);
}

.template-anatomy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.template-anatomy li {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
}

.template-anatomy li::before {
  display: none;
}

.template-anatomy li span {
  margin-right: 8px;
  color: var(--ink);
  font-weight: 900;
}

.template-warning {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 22px;
  background: #fbf7f3;
  border: 1px solid var(--hairline);
  border-left: 6px solid var(--amber);
  border-radius: var(--radius);
}

.template-warning strong {
  color: var(--amber);
  font-size: 18px;
}

.template-warning span {
  color: var(--muted);
}

.template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.template-tabs button {
  color: var(--muted);
  background: #fff;
  border-color: var(--hairline);
}

.template-tabs button.is-active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.template-panel[hidden] {
  display: none;
}

.redline-grid article {
  min-height: 132px;
}

.redline-grid strong,
.redline-grid span {
  display: block;
}

.redline-grid strong {
  margin-bottom: 9px;
  color: var(--vermillion);
  font-size: 20px;
}

.redline-grid span {
  color: var(--muted);
}

.faq-groups {
  display: grid;
  gap: 28px;
}

.faq-group {
  display: grid;
  gap: 12px;
}

.faq-group__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 0 4px;
}

.faq-group__head span {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.faq-group__head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.faq-list {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item > span {
  color: var(--teal-dark);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 900;
}

.faq-item h3 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 20px;
}

.faq-item p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
}

.band--faq {
  padding-bottom: 120px;
}

.term-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.term-strip article {
  padding: 18px 20px;
  border-right: 1px solid var(--hairline);
}

.term-strip article:last-child {
  border-right: 0;
}

.term-strip strong,
.term-strip span {
  display: block;
}

.term-strip strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
  font-size: 16px;
}

.term-strip span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.scene-grid article > code {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  color: var(--teal-dark);
  border-top: 1px solid var(--hairline);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.6;
  white-space: normal;
}

.case-study {
  margin-top: 42px;
  padding: 34px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.case-study__head {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.case-study__head > span {
  color: var(--vermillion);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 900;
}

.case-study__head h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.case-study__head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.case-study__steps {
  border-top: 1px solid var(--hairline);
}

.case-study__steps > section {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}

.case-study__steps > section:last-child {
  border-bottom: 0;
}

.case-study__steps h4 {
  margin: 0;
  color: var(--teal-dark);
  font-size: 15px;
}

.case-study__steps p {
  margin: 0;
  color: var(--muted);
}

.case-study__steps .prompt-block {
  margin: 0;
}

.project-create-row,
.expert-create,
.skill-manage,
.automation-runbook {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
  margin-top: 34px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.project-create-row figure {
  margin: 0;
}

.project-create-row h3,
.expert-create h3,
.skill-manage h3,
.automation-runbook h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.project-create-row > div > p,
.expert-create > div > p:not(.feature-path),
.skill-manage > div > p,
.automation-runbook > div > p {
  color: var(--muted);
}

.process-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.process-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}

.process-list li > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.process-list p {
  margin: 0;
  color: var(--muted);
}

.knowledge-source-rule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border: 1px solid var(--ink);
}

.knowledge-source-rule > div {
  padding: 20px;
  border-right: 1px solid var(--ink);
}

.knowledge-source-rule > div:last-child {
  border-right: 0;
}

.knowledge-source-rule strong,
.knowledge-source-rule span {
  display: block;
}

.knowledge-source-rule strong {
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.knowledge-source-rule span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq-group--safety .faq-list {
  border-color: rgba(203, 62, 49, 0.38);
  box-shadow: 8px 8px 0 rgba(203, 62, 49, 0.1);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  padding: 11px 15px;
  color: #fff;
  background: var(--teal-dark);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .manual-head__inner,
  .layout-shell,
  .split {
    grid-template-columns: 1fr;
  }

  .manual-head__inner {
    min-height: auto;
  }

  .manual-head__figure {
    transform: none;
  }

  .layout-shell {
    width: min(100% - 28px, var(--max));
  }

  .side-rail {
    position: static;
    display: flex;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 14px 0 0;
  }

  .side-rail__title {
    display: none;
  }

  .side-rail__group {
    display: none;
  }

  .side-rail a {
    min-width: max-content;
    border: 1px solid var(--hairline);
    border-left-width: 1px;
    background: #fff;
    border-radius: 6px;
  }

  .side-rail a.is-active {
    border-color: rgba(203, 62, 49, 0.35);
    background: #fffaf2;
  }

  .term-strip,
  .project-create-row,
  .expert-create,
  .skill-manage,
  .automation-runbook,
  .knowledge-source-rule {
    grid-template-columns: 1fr;
  }

  .term-strip article,
  .knowledge-source-rule > div {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .term-strip article:last-child,
  .knowledge-source-rule > div:last-child {
    border-bottom: 0;
  }

  .default-mode,
  .mode-guide,
  .home-orientation,
  .home-entry-map,
  .home-scene-cards,
  .first-task-map,
  .project-panel,
  .project-type-block__head,
  .project-template-grid,
  .project-start,
  .prompting-grid,
  .prompting-note,
  .settings-grid,
  .settings-rule,
  .automation-panel,
  .automation-prompt,
  .public-search-note,
  .expert-panel,
  .expert-grid,
  .expert-compare,
  .expert-caution,
  .expert-playbook,
  .expert-team-uses,
  .feature-map,
  .skill-panel,
  .skill-route-grid,
  .skill-create-block,
  .connector-example,
  .connector-example__guard,
  .connector-oa-grid,
  .connector-check-grid,
  .knowledge-panel,
  .knowledge-library-grid,
  .knowledge-task-grid,
  .knowledge-remote,
  .knowledge-prompt,
  .connector-build-flow,
  .template-explain,
  .template-anatomy,
  .template-warning,
  .tool-verdict,
  .tool-cards,
  .tool-howto ol,
  .safe-flow,
  .agent-steps,
  .redline-inline__head,
  .review-path,
  .review-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scene-grid,
  .redline-grid,
  .image-strip,
  .quick-prompts,
  .ui-shot-grid,
  .ui-shot-grid--two,
  .connector-build-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-board {
    grid-template-columns: 1fr;
  }

  .audit-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .topbar__inner,
  .manual-head__inner {
    width: calc(100% - 28px);
  }

  .topbar__inner {
    height: auto;
    min-height: 62px;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .topnav {
    width: 100%;
  }

  .scene-grid--four,
  .case-study__head,
  .case-study__steps > section {
    grid-template-columns: 1fr;
  }

  .case-study__head,
  .case-study__steps > section {
    gap: 10px;
  }

  .case-study {
    margin-top: 32px;
    padding: 28px 0;
  }

  .rule-strip,
  .path-pair,
  .default-mode,
  .mode-guide,
  .home-orientation,
  .home-entry-map,
  .home-scene-cards,
  .first-task-map,
  .project-panel,
  .project-type-block__head,
  .project-template-grid,
  .project-start,
  .prompting-grid,
  .prompting-note,
  .settings-grid,
  .settings-rule,
  .automation-panel,
  .automation-prompt,
  .public-search-note,
  .expert-panel,
  .expert-grid,
  .expert-compare,
  .expert-caution,
  .expert-playbook,
  .expert-team-uses,
  .expert-team-uses ul,
  .feature-map,
  .skill-panel,
  .skill-route-grid,
  .skill-create-block,
  .connector-example,
  .connector-example__guard,
  .connector-oa-grid,
  .connector-check-grid,
  .definition-table,
  .connector-build-flow,
  .knowledge-panel,
  .knowledge-library-grid,
  .knowledge-task-grid,
  .knowledge-remote,
  .knowledge-prompt,
  .knowledge-caution,
  .template-explain,
  .template-anatomy,
  .template-anatomy ul,
  .template-warning,
  .tool-verdict,
  .tool-cards,
  .tool-howto ol,
  .scene-grid,
  .review-path,
  .review-matrix,
  .safe-flow,
  .agent-steps,
  .redline-inline__head,
  .image-strip,
  .video-frames,
  .quick-prompts,
  .ui-shot-grid,
  .ui-shot-grid--two,
  .redline-grid {
    grid-template-columns: 1fr;
  }

  .faq-group__head {
    display: grid;
    gap: 4px;
  }

  .faq-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px;
  }

  .connector-example__guard pre {
    grid-column: 1;
    grid-row: auto;
  }

  .rule-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .rule-strip div:last-child {
    border-bottom: 0;
  }

  .connector-build-flow {
    grid-template-columns: 1fr;
  }

  .knowledge-steps article {
    grid-template-columns: 1fr;
  }

  .knowledge-steps span {
    grid-row: auto;
  }

  .band {
    padding: 48px 0;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm 13mm 16mm;
  }

  :root {
    --shadow: none;
  }

  body {
    color: #111;
    background: #fff;
    font-size: 10.5pt;
  }

  .topbar,
  .skip-link,
  .side-rail,
  .hero-actions,
  .toast,
  .lightbox,
  button {
    display: none !important;
  }

  .manual-head {
    background: #fff;
  }

  .manual-head__inner,
  .layout-shell,
  .split,
  .project-create-row,
  .expert-create,
  .skill-manage,
  .automation-runbook {
    display: block;
    width: 100%;
  }

  .manual-head__inner,
  .layout-shell {
    margin: 0;
  }

  .manual-head__figure {
    margin-top: 8mm;
    transform: none;
  }

  .manual-head__copy h1 {
    font-size: 28pt;
  }

  .rule-strip,
  .term-strip,
  .knowledge-source-rule {
    box-shadow: none;
  }

  .band,
  .chapter-intro {
    padding: 10mm 0;
    break-before: page;
  }

  .band--route {
    break-before: auto;
  }

  .chapter-intro + .band {
    break-before: auto;
  }

  .case-study,
  .prompt-block,
  figure,
  .faq-item,
  .project-panel,
  .project-create-row,
  .expert-create,
  .skill-manage,
  .knowledge-source-rule > div,
  .knowledge-prompt,
  .automation-runbook {
    break-inside: avoid;
  }

  .image-button {
    display: block !important;
    cursor: default;
  }

  figure img,
  .lightbox__image {
    max-height: 165mm;
    object-fit: contain;
  }

  pre,
  code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
