@charset "UTF-8";

:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --surface: #ffffff;
  --sidebar-bg: #f3f3ef;
  --ink: #202b38;
  --muted: #596675;
  --line: #e0e3e5;
  --accent: #28664d;
  --accent-soft: #e8eee1;
  --panel-end: #edf1f5;
  --panel-shadow: 0 18px 45px -30px #233c60;
  --code: #122b3b;
  --code-ink: #faf6e4;
  --sidebar: 252px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.8; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 20; background: var(--ink); color: var(--paper); padding: 10px 20px; }
.skip:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 34px 25px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: var(--sidebar-bg); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.5px; line-height: 1.25; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .07em; color: var(--muted); margin-top: 3px; }
.sidebar-caption { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 25px 0 20px; }
nav { display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 23px 10px 8px; font-weight: 700; }
nav a { font-size: 13px; padding: 8px 10px; border-radius: 5px; text-decoration: none; color: var(--muted); line-height: 1.5; }
nav a:hover, nav a[aria-current] { color: var(--accent); background: var(--accent-soft); }
.sidebar-bottom { margin-top: auto; padding-top: 50px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.sidebar-bottom a { text-decoration: none; }
.workspace { margin-left: var(--sidebar); }
.topbar { min-height: 76px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 48px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar div { display: flex; flex-wrap: wrap; gap: 25px; }
.topbar a { text-decoration: none; color: var(--ink); font-weight: 600; }
main { max-width: 1240px; padding: 0 64px; margin: auto; }
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 380px); align-items: center; gap: 44px; padding: 72px 0 48px; }
.eyebrow { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--accent); margin: 0 0 18px; }
.status-dot { display: inline-block; height: 7px; width: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -1.2px; }
h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 650; letter-spacing: -1.3px; margin: 0 0 25px; }
h1 span { color: var(--muted); }
h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 650; margin: 0 0 24px; }
h3 { font-size: 20px; letter-spacing: -.4px; margin: 30px 0 15px; }
p { margin: 0 0 20px; }
.lede { color: var(--muted); font-size: 17px; line-height: 1.8; max-width: 610px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 44px; gap: 18px; justify-content: center; align-items: center; padding: 11px 17px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface); }
.button:hover { background: var(--accent-soft); }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { filter: brightness(1.12); }
.hero-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; color: var(--muted); }
.hero-copy { min-width: 0; }
.engine-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 24px; background: linear-gradient(145deg, var(--surface), var(--panel-end)); box-shadow: var(--panel-shadow); }
.panel-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 28px; }
.panel-label { font-size: 11px; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; color: var(--muted); }
.local-tag { background: var(--accent-soft); color: var(--accent); font-size: 11px; padding: 3px 7px; border-radius: 4px; }
.app-node, .engine-node, .model-node { display: flex; align-items: center; gap: 13px; line-height: 1.5; }
.app-node strong, .engine-node strong, .model-node strong { display: block; font-size: 14px; line-height: 1.4; }
.app-node div, .engine-node div, .model-node div { min-width: 0; overflow-wrap: anywhere; }
.app-node div > span, .engine-node div > span, .model-node div > span { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); }
.node-symbol { flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; font-size: 19px; font-weight: 700; padding: 6px 10px; color: var(--accent); }
.connection { margin: 6px 0 6px 23px; border-left: 1px dashed var(--muted); padding: 10px 18px; font: 11px/2 "SFMono-Regular", Consolas, "Liberation Mono", monospace; color: var(--muted); overflow-wrap: anywhere; }
.engine-node { background: var(--surface); padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.engine-node img { flex: none; width: 52px; height: 52px; object-fit: contain; }
.engine-node strong { font-size: 20px; }
.model-node { margin-bottom: 22px; }
.file-mark { flex: none; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--line); border-radius: 5px; padding: 10px 8px; font: 12px "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.panel-bottom { border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.panel-bottom .status-dot { margin: 0; flex: none; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 26px; color: var(--ink); text-decoration: none; background: var(--surface); transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-number { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.card h3 { font-size: 20px; margin-top: 24px; }
.card h3 span { color: var(--accent); }
.card p { font-size: 14px; color: var(--muted); line-height: 1.8; }
.card-link { margin-top: auto; color: var(--accent); font-size: 12px; font-weight: 650; }
.table-wrap { overflow-x: auto; margin: 27px 0; border: 1px solid var(--line); border-radius: 7px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
caption { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 650; background: var(--surface); color: var(--muted); }
th, td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 11px; color: var(--muted); }
tbody th { font-weight: 600; width: 32%; }
.callout { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; padding: 22px 24px; margin: 26px 0 0; font-size: 14px; }
.callout p { margin: 5px 0 0; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: .86em; overflow-wrap: anywhere; }
p code, li code, td code, th code { background: var(--surface); padding: 2px 4px; border-radius: 3px; }
pre { max-width: 100%; overflow-x: auto; background: var(--code); color: var(--code-ink); padding: 24px; border-radius: 7px; font-size: 13px; line-height: 1.85; margin: 0 0 25px; tab-size: 2; }
pre code { font-size: inherit; overflow-wrap: normal; }
.code-heading { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 11px; letter-spacing: .5px; margin: 25px 0 9px; }
.text-link { font-size: 14px; font-weight: 600; }
.steps { padding-left: 23px; }
.steps li { padding-left: 7px; margin-bottom: 15px; }
.reference { border-top: 1px solid var(--line); margin-top: 38px; color: var(--muted); font-size: 12px; }
.reference h3 { color: var(--ink); }
footer { max-width: 1240px; margin: auto; padding: 28px 64px 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
footer a { color: inherit; }
@media (max-width: 1200px) {
  :root { --sidebar: 225px; }
  .sidebar { padding-inline: 18px; }
  main, footer, .topbar { padding-inline: 36px; }
  .hero { gap: 28px; }
  .engine-panel { padding: 18px; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { max-width: 620px; }
  .engine-panel { width: 100%; max-width: 520px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 20px; }
  .sidebar { position: static; width: 100%; padding: 20px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { max-width: 190px; }
  .sidebar-caption, .sidebar-bottom, .nav-label { display: none; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 3px 6px; margin-top: 15px; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 60px; padding: 14px 24px; }
  .topbar div { gap: 15px; }
  main, footer { padding-inline: 24px; }
  .guide-intro { padding-top: 44px; }
  section { padding: 38px 0; }
  .hero { padding: 44px 0 36px; }
  .lede { font-size: 16px; }
  .card { padding: 24px; }
  .card h3 { margin-top: 17px; }
  th, td { padding: 12px; }
}
@media (max-width: 380px) {
  main, footer, .sidebar, .topbar { padding-inline: 18px; }
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1b1e22; --surface: #23272c; --sidebar-bg: #23272c; --ink: #e7ebef; --muted: #b0bac4; --line: #3a424c; --accent: #9dc9aa; --accent-soft: #293d30; --panel-end: #292f36; --panel-shadow: 0 18px 45px -30px #000000; --code: #101820; }
  .button.primary { color: #1b1e22; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card, .card:hover { transition: none; transform: none; } }
