body[data-workshop=document] main{max-width:1100px;margin:auto;padding:16px;line-height:1.6}#document-index{display:flex;flex-wrap:wrap;gap:8px 18px;margin:14px 0 24px}#document-index a{padding:5px 0}.document-search{display:grid;gap:5px;max-width:640px}.document-search input{padding:10px;min-width:0}#document-chapters section{scroll-margin-top:120px;border-top:1px solid #52616e;padding:16px 0}#document-chapters section[hidden]{display:none}#document-controls article{border:1px solid #52616e;border-radius:6px;padding:12px;margin:10px 0;overflow-wrap:anywhere}#document-controls dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:4px 12px}#document-controls dt{font-weight:600}#document-controls dd{margin:0}#document-controls h3{margin:0 0 6px}@media(max-width:600px){body[data-workshop=document] main{padding:10px}#document-controls dl{display:block}#document-controls dd{margin-bottom:8px}}.document-context-link{font-size:.85em;padding:4px 8px}
/* Shared slate/amber app styling, with a readable document measure. */
body[data-workshop=document]{background:#1b2b36;color:#edf3f7;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-size:13px}
body[data-workshop=document] main{width:100%;max-width:1280px;padding:16px;box-sizing:border-box;line-height:1.6}
body[data-workshop=document] main>h1{font-size:24px;margin:0 0 8px}
body[data-workshop=document] main>p:first-of-type{color:#a9bdcb;font-size:12px;margin:0 0 12px}
body[data-workshop=document] .document-search{max-width:none;padding:10px;background:#24343f;border:1px solid #405565;border-radius:6px;color:#c5d4df;font-size:12px;gap:5px}
body[data-workshop=document] .document-search input{width:100%;max-width:640px;height:34px!important;min-height:34px!important;box-sizing:border-box;padding:6px 10px;border:1px solid #536b7c;border-radius:4px;background:#2d414f;color:#edf3f7;font:inherit}
body[data-workshop=document] :is(input,a):focus-visible{outline:2px solid #ffc857;outline-offset:3px}
body[data-workshop=document] #document-status{font-size:12px;color:#a9bdcb;margin:6px 0;min-height:18px}
body[data-workshop=document] #document-index{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 16px;padding:10px;background:#24343f;border:1px solid #405565;border-radius:6px}
body[data-workshop=document] #document-index a{padding:6px 10px;border:1px solid #405565;border-radius:4px;background:#2d414f;color:#edf3f7;text-decoration:none;font-size:12px}
body[data-workshop=document] #document-index a:hover{background:#3a5262;border-color:#a9bdcb}
body[data-workshop=document] #document-chapters>section{border:1px solid #405565;border-radius:6px;background:#24343f;padding:14px 16px;margin:0 0 12px;scroll-margin-top:100px}
body[data-workshop=document] #document-chapters h2{font-size:18px;color:#ffc857;margin:0 0 10px;line-height:1.35}
body[data-workshop=document] #document-chapters h3{font-size:14px;color:#d8e5ed;margin:16px 0 6px}
body[data-workshop=document] #document-chapters :is(p,li,dd){max-width:90ch;overflow-wrap:anywhere}
body[data-workshop=document] #document-chapters a{color:#83cffe;text-underline-offset:3px}
body[data-workshop=document] #document-controls article{background:#203340;border-color:#405565;padding:12px;margin:8px 0}
body[data-workshop=document] #document-controls :is(dt,dd){font-size:12px}
body[data-workshop=document] #document-chapters dt{color:#c5d4df;font-weight:600}
body[data-workshop=document] #document-chapters dd{margin:0 0 10px}
@media(max-width:600px){body[data-workshop=document] main{padding:10px}body[data-workshop=document] #document-chapters>section{padding:12px}body[data-workshop=document] #document-index a{flex:1 1 140px}body[data-workshop=document] .document-search input{max-width:none}}

/* Use the same light theme surfaces as the application shell. */
html[data-appearance=light] body[data-workshop=document] {background:var(--ts-bg,#f4f4f4);color:var(--ts-text,#222)}
html[data-appearance=light] body[data-workshop=document] :is(.document-search,#document-index,#document-chapters>section,#document-controls article){background:var(--ts-panel,#fff);border-color:var(--ts-border,#aaa);color:inherit}
html[data-appearance=light] body[data-workshop=document] :is(.document-search input,#document-index a){background:var(--ts-raised,#eee);border-color:var(--ts-border,#aaa);color:inherit}
html[data-appearance=light] body[data-workshop=document] :is(main>p:first-of-type,#document-status,#document-chapters h2,#document-chapters h3,#document-chapters dt){color:inherit}
html[data-appearance=light] body[data-workshop=document] #document-chapters a{color:#064b85}
html[data-appearance=light] body[data-workshop=document] :is(input,a):focus-visible{outline-color:#064b85}
html[data-appearance=light] body[data-workshop=document] #document-index a:hover{text-decoration:underline}
