@font-face{font-family:GuideSpace;src:url('./branding/workspace-v2/fonts/SpaceGrotesk.woff2') format('woff2');font-weight:300 700;font-display:swap}
@font-face{font-family:GuideNoto;src:url('./tutorial/assets/fonts/NotoSansSC-Guide.woff2?v=daf306f6c40a') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:GuideMono;src:url('./branding/workspace-v2/fonts/IBMPlexMono.woff2') format('woff2');font-display:swap}
:root{
  color-scheme:light;
  --paper:#f4f2ea;--surface:#fff;--ink:#17191c;--muted:#535955;
  --line:#dcdcd2;--soft:#f6f7f3;--orange:#ff6b3d;--focus:#5162d6;--input-line:#8b9389;
  font-family:GuideSpace,GuideNoto,"PingFang SC","Microsoft YaHei",sans-serif;
  color:var(--ink);background:var(--paper);font-size:16px;line-height:1.75;
  font-synthesis:none;text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}
body{margin:0;min-width:320px}
a{color:inherit;text-underline-offset:4px}
button,input{font:inherit}
button{cursor:pointer}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible,.guide-table:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
[hidden]{display:none!important}
h1,h2,h3,p{margin-top:0}
h2,h3,[id]{scroll-margin-top:100px}
.skip-link{position:fixed;top:8px;left:12px;z-index:100;background:var(--ink);color:var(--paper);padding:8px 16px;transform:translateY(-160%)}
.skip-link:focus{transform:none}
.site-header{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:76px;padding:16px max(24px,calc((100% - 1232px)/2));background:var(--paper);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;font:600 24px/1 GuideSpace,sans-serif;letter-spacing:-1px}
.brand sup{font:9px sans-serif;margin-left:4px}
.site-header nav{display:flex;align-items:center;gap:24px;font-size:14px}
.site-header nav a{text-decoration:none}
.header-action{padding:8px 16px;border:1px solid var(--input-line);border-radius:5px}
.header-action:hover{background:var(--surface)}
main{max-width:1280px;margin:auto;padding:0 24px}
.guide-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:64px;padding:64px 0 48px;border-bottom:1px solid var(--line)}
.eyebrow{font:12px/1.5 GuideMono,monospace;letter-spacing:.05em;color:var(--muted)}
.hero-copy>.eyebrow:before{content:"";display:inline-block;width:8px;height:8px;background:var(--orange);margin-right:12px}
.guide-hero h1{font-size:16px;font-weight:500;color:var(--muted);margin:24px 0}
.guide-hero h1 span{display:block;font-size:40px;line-height:1.25;font-weight:600;color:var(--ink);margin-top:16px}
.hero-description{color:var(--muted);font-size:16px;line-height:1.75}
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:24px;margin:24px 0;font-size:14px}
.hero-actions>a{text-decoration:none}
.primary-action{display:inline-flex;align-items:center;justify-content:center;gap:24px;background:var(--orange);color:var(--ink);border-radius:5px;padding:12px 24px;font-size:14px;font-weight:600;text-decoration:none;min-height:44px}
.primary-action:hover{background:#f65f32}
.hero-meta{color:var(--muted);font-size:12px;margin:0}
.hero-meta span{padding:0 4px}
.learning-path{align-self:center;background:var(--surface);border:1px solid var(--line);border-top:3px solid var(--ink);border-radius:5px;padding:32px}
.learning-path h2{font-size:24px;line-height:1.4;margin:16px 0 24px;font-weight:600}
.learning-path ol{list-style:none;margin:0;padding:0}
.learning-path li{display:flex;gap:16px;margin:0 0 24px}
.learning-path li>span{font:14px/1.7 GuideMono,monospace;color:var(--muted);padding-top:2px}
.learning-path strong{font-size:16px;font-weight:600}
.learning-path li p{font-size:14px;line-height:1.6;color:var(--muted);margin:4px 0 0}
.learning-path>a{display:block;border-top:1px solid var(--line);padding-top:16px;font-size:14px;text-decoration:none}
.reading-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:48px;align-items:start;margin:48px 0 64px}
.guide-sidebar{position:sticky;top:100px;max-height:calc(100vh - 118px);overflow:auto;padding:0 8px 12px 0;scrollbar-width:thin}
.toc summary{font-size:16px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;padding:0 12px 16px;border-bottom:1px solid var(--line)}
.toc summary::-webkit-details-marker{display:none}
.toc[open] summary>span{transform:rotate(180deg)}
.toc-content{padding-top:16px}
.chapter-search{padding:0 12px}
.chapter-search label{display:block;font-size:12px;color:var(--muted);margin:0 0 8px}
.chapter-search input{width:100%;min-width:0;min-height:44px;border:1px solid var(--input-line);background:var(--surface);border-radius:5px;padding:8px 12px;font-size:14px}
.chapter-search p{font-size:12px;color:var(--muted);margin:8px 0;min-height:18px}
.toc ol{list-style:none;margin:0;padding:0}
.toc li a{display:flex;gap:12px;align-items:baseline;text-decoration:none;font-size:14px;line-height:1.5;padding:12px;border-radius:5px}
.toc li a>span{font:12px GuideMono,monospace;color:var(--muted);min-width:18px}
.toc li a:hover{background:var(--surface)}
.toc li a[aria-current=location]{background:var(--ink);color:var(--paper)}
.toc li a[aria-current=location]>span{color:var(--orange)}
.reading-tools{display:flex;flex-direction:column;align-items:start;gap:8px;margin:24px 12px 0;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.reading-tools a{text-decoration:none;padding:4px 0}
.reading-tools button{padding:4px 0;border:0;background:none;color:inherit;font-size:inherit}
.guide-article{min-width:0;overflow-wrap:anywhere}
.reading-note{padding:24px;border:1px solid var(--line);border-left:3px solid var(--orange);background:var(--surface);margin-bottom:32px;font-size:16px}
.reading-note p{margin:8px 0 0;color:var(--muted);font-size:14px}
.guide-article>p{color:var(--muted);font-size:16px}
.guide-chapter{padding:32px 0 24px;border-top:1px solid var(--line);margin-top:32px}
.guide-chapter h2{font-size:26px;line-height:1.5;font-weight:600;margin-bottom:32px}
.guide-chapter h3{font-size:20px;line-height:1.6;font-weight:600;margin:32px 0 16px}
.guide-chapter p{margin-bottom:16px}
.guide-chapter li{padding-left:4px;margin-bottom:8px}
.guide-chapter ol,.guide-chapter ul{padding-left:24px;margin:16px 0 24px}
.guide-chapter li::marker{color:var(--muted)}
.guide-chapter a:hover{text-decoration-color:var(--orange)}
.guide-chapter code{font-family:GuideMono,GuideNoto,Consolas,monospace;font-size:.9em;background:var(--soft);border:1px solid var(--line);padding:1px 4px;border-radius:4px}
.guide-chapter figure{margin:32px 0}
.guide-chapter figure a{display:block}
.guide-chapter img{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:5px}
.guide-chapter figcaption{font-size:12px;line-height:1.6;color:var(--muted);margin-top:8px}
.guide-table{overflow:auto;border:1px solid var(--line);border-radius:5px;margin:24px 0}
.guide-table table{width:100%;min-width:480px;border-collapse:collapse;font-size:14px;line-height:1.75;background:var(--surface)}
.guide-table th{background:var(--soft);font-weight:600;text-align:left}
.guide-table td,.guide-table th{padding:16px;vertical-align:top;border-bottom:1px solid var(--line)}
.guide-table td:first-child{min-width:120px}
.guide-table tr:last-child td{border-bottom:none}
.practice{border:1px solid var(--line);background:var(--surface);border-radius:5px;margin:24px 0}
.practice-label{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);background:var(--soft)}
.practice-label:before{content:"›";color:var(--ink);font:600 20px/1 GuideMono,monospace}
.copy-prompt{margin-left:auto;min-height:36px;padding:4px 12px;border:1px solid var(--input-line);background:var(--surface);border-radius:5px;color:var(--ink);font-size:12px;white-space:nowrap}
.copy-prompt:hover{background:var(--paper)}
.copy-status{margin-left:auto}
.practice blockquote{margin:0;padding:24px;color:var(--ink);font-size:16px;line-height:1.85;white-space:pre-line}
.practice blockquote p{margin:0}
.guide-finish{margin-top:32px;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:5px}
.guide-finish h2{font-size:24px;font-weight:600;margin-bottom:24px}
.guide-finish>a:last-child{font-size:14px;margin-left:24px;text-decoration:none;display:inline-block;padding:12px 0}
.site-footer{display:flex;align-items:center;gap:24px;max-width:1232px;padding:24px 0;margin:auto;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.site-footer>span{font-family:GuideMono,monospace;letter-spacing:.02em}
.site-footer p{margin:0}
.site-footer>a{margin-left:auto;text-decoration:none}
.annotated-shot{padding:24px;border:1px solid var(--line);border-radius:5px;background:var(--surface)}
.shot-heading{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.shot-kicker{font:12px/1.5 GuideMono,GuideNoto,sans-serif;color:var(--muted)}
.shot-heading>strong{font-size:18px;font-weight:600;line-height:1.6}
.shot-open{text-decoration:none!important;min-width:0;align-self:start}
.shot-stage{display:block;position:relative;width:100%;isolation:isolate}
.shot-stage img{width:100%;height:auto;display:block;border:0!important;border-radius:4px!important}
.shot-mark{position:absolute;border:2px solid var(--focus);border-radius:4px;pointer-events:none}
.shot-mark b,.shot-number{display:grid;place-items:center;width:24px;height:24px;border-radius:4px;background:var(--orange);color:var(--ink);font:600 12px/1 GuideMono,sans-serif;border:1px solid var(--ink)}
.shot-mark b{position:absolute;right:0;top:0;box-shadow:0 0 0 2px var(--surface)}
.shot-open-label{display:block;padding:12px 2px 0;font-size:14px;text-decoration:underline;text-underline-offset:4px}
.shot-open:focus-visible{outline-offset:6px}
.shot-notes{list-style:none!important;counter-reset:shot-note;margin:24px 0 0!important;padding:0!important;display:grid;gap:16px;align-content:start}
.shot-notes li{display:flex;gap:12px;align-items:start;margin:0!important;padding:0!important;counter-increment:shot-note}
.shot-number{flex:none;margin-top:2px}
.shot-notes strong{font-size:16px;font-weight:600;line-height:1.6}
.shot-notes p{font-size:14px;line-height:1.75;color:var(--muted);margin:4px 0 0!important}
.annotated-shot figcaption{padding-top:16px;border-top:1px solid var(--line);margin-top:16px}
.shot-portrait .shot-layout{display:grid;grid-template-columns:minmax(0,290px) minmax(0,1fr);gap:24px}
.shot-portrait .shot-notes{margin-top:0!important}
.shot-viewer{width:min(1440px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.shot-viewer::backdrop{background:rgb(23 25 28 / .78)}
.shot-viewer-header{display:flex;align-items:center;gap:16px;position:sticky;top:0;z-index:2;padding:12px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.shot-viewer-header h2{font-size:16px;line-height:1.6;margin:0;flex:1}
.shot-viewer-header button{border:1px solid var(--input-line);background:var(--paper);color:var(--ink);border-radius:5px;padding:8px 12px;min-height:40px;font-size:14px;flex:none}
.shot-viewer-content{padding:24px}
.shot-viewer-image{overflow:auto;max-height:65dvh;padding:3px;overscroll-behavior:contain}
.shot-viewer .shot-stage{width:min(var(--shot-width),100%);margin:auto}
.shot-viewer[data-size=original] .shot-stage{width:var(--shot-width);max-width:none}
.shot-viewer .shot-notes{grid-template-columns:repeat(auto-fit,minmax(230px,1fr));margin-bottom:4px!important}
.shot-viewer-hint{margin:0 0 12px;font-size:12px;color:var(--muted)}
.shot-viewer-open{overflow:hidden}
@media(min-width:1000px){.toc summary{pointer-events:none}.toc summary>span{display:none}}
@media(max-width:999px){
  .guide-hero{gap:32px;padding-top:40px}.guide-hero h1 span{font-size:36px}.learning-path{padding:24px}
  .reading-layout{grid-template-columns:1fr;gap:24px;margin-top:32px}.guide-sidebar{position:static;max-height:none;padding:0}
  .toc{border:1px solid var(--line);border-radius:5px;background:var(--surface)}.toc summary{padding:16px;border:0}.toc-content{padding:0 12px 16px}
  .toc ol{display:grid;grid-template-columns:1fr 1fr}.reading-tools{flex-direction:row;flex-wrap:wrap;gap:24px;border:0;margin:12px 4px 0;padding:0}
  .guide-chapter{padding-top:24px}.site-footer{margin:0 24px}
}
@media(max-width:600px){
  .site-header{min-height:64px;padding:12px 16px;gap:12px}.brand{font-size:20px;gap:8px}.brand img{width:24px;height:24px}
  .site-header nav{gap:12px;font-size:12px}.header-action{padding:8px}.header-action span{display:none}
  main{padding:0 16px}.guide-hero{display:block;padding:32px 0}.guide-hero h1{margin-top:24px}.guide-hero h1 span{font-size:32px;line-height:1.4}
  .hero-actions{gap:16px;font-size:14px}.primary-action{padding:12px 16px;gap:16px}.hero-meta{font-size:12px}
  .learning-path{margin-top:32px;padding:24px}.learning-path h2{font-size:22px}.learning-path li{margin-bottom:16px}
  .reading-layout{margin-bottom:32px}.toc ol{grid-template-columns:1fr}.reading-note{padding:16px}
  .guide-chapter h2{font-size:24px}.guide-chapter h3{font-size:20px}.guide-table td,.guide-table th{padding:12px}
  .practice-label{padding:12px;gap:8px;flex-wrap:wrap}.practice blockquote{padding:16px}.copy-status{font-size:12px}
  .guide-finish{padding:24px}.guide-finish h2{font-size:22px}.guide-finish>a:last-child{margin-left:16px}
  .site-footer{flex-wrap:wrap;gap:8px 24px;margin:0 16px;padding:24px 0}.site-footer>span{width:100%}
  .annotated-shot{padding:16px}.shot-portrait .shot-layout{display:block}.shot-portrait .shot-open{max-width:320px;margin:auto}.shot-portrait .shot-notes{margin-top:24px!important}
  .shot-mark{border-width:1.5px}.shot-mark b{width:20px;height:20px;font-size:12px;box-shadow:0 0 0 1px var(--surface)}.shot-heading>strong{font-size:16px}
  .shot-viewer{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.shot-viewer-header{gap:8px;padding:12px}.shot-viewer-header h2{font-size:14px}
  .shot-viewer-header button{padding:8px;font-size:12px}.shot-viewer-content{padding:12px}.shot-viewer .shot-notes{grid-template-columns:1fr}.shot-viewer-image{max-height:60dvh}
  h2,h3,[id]{scroll-margin-top:88px}
}
@media print{
  .site-header,.guide-sidebar,.hero-actions,.learning-path,.copy-prompt,.copy-status,.reading-tools,.guide-finish,.site-footer,.skip-link,.shot-viewer{display:none!important}
  .shot-viewer-open{overflow:visible}.shot-open-label{display:none}.shot-mark,.shot-number{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  :root{font-size:11pt;background:white;color:black}main{max-width:none;padding:0}.guide-hero{display:block;padding:0 0 16px}
  .guide-hero h1 span{font-size:24pt;line-height:1.4}.hero-description br{display:none}.reading-layout{display:block;margin:24px 0}.reading-note{padding:12px}
  .guide-chapter{padding-top:16px;margin-top:24px}.guide-chapter h2{font-size:18pt}.guide-chapter h3{font-size:13pt}.guide-chapter h2,.guide-chapter h3{break-after:avoid}
  .practice,figure,tr{break-inside:avoid}.guide-table{overflow:visible}.guide-table table{min-width:0;font-size:10pt}.guide-chapter a{color:black}
  .guide-chapter figure{max-width:600px}.guide-chapter p{orphans:3;widows:3}.shot-portrait .shot-layout{grid-template-columns:200px minmax(0,1fr)}
  .annotated-shot{padding:12px}.shot-notes{gap:8px}.shot-notes p{font-size:9pt}.shot-notes strong{font-size:10pt}
}
