.wn-studio-journey .scratch-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;align-items:start}
.wn-studio-journey .scratch-workspace:has(.scratch-library-panel:not([hidden])){grid-template-columns:repeat(2,minmax(0,1fr))}
.wn-studio-journey .scratch-demo .demo-navigation{margin-bottom:1rem;justify-content:space-between}
.wn-studio-journey #scratch-writing{min-height:230px;padding:1rem;border:1px solid #a99aaf;border-radius:7px;background:linear-gradient(90deg,#faf5fb,#fff);white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.1rem;line-height:1.8;outline-offset:4px}
.wn-studio-journey #scratch-writing:empty:before{content:'Type something here…';color:var(--muted,#62616b);pointer-events:none}
.wn-studio-journey #scratch-writing-help{margin:.7rem 0 1rem}
.wn-studio-journey .scratch-citation-marker{display:inline;padding:0 .14rem;min-height:0;border:0;border-radius:3px;background:#f2e5f4;color:var(--purple,#92278f);font-size:.75em;line-height:1;vertical-align:super;font-weight:bold;user-select:none;white-space:nowrap}
.wn-studio-journey .scratch-citation-marker:hover{background:#e5cce8}
.wn-studio-journey .scratch-citation-marker:focus-visible{outline-offset:2px}
.wn-studio-journey #scratch-search-form{display:flex;gap:.6rem;align-items:flex-end;margin-bottom:.8rem}
.wn-studio-journey #scratch-search-form .field{flex:1;margin:0;min-width:0}
.wn-studio-journey #scratch-search-form>button{margin-bottom:0;flex:0 0 auto}
.wn-studio-journey #scratch-selected-passage{font-size:.94rem;margin-bottom:1rem}
.wn-studio-journey #scratch-selected-passage blockquote{margin-top:.2rem;margin-bottom:.5rem;overflow-wrap:anywhere}
.wn-studio-journey .scratch-demo .matching-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:.8rem}
.wn-studio-journey .scratch-demo .reader .source-text{font-size:.94rem}
.wn-studio-journey .scratch-demo .reader h5{font-size:.92rem;margin:.5rem 0}
.wn-studio-journey .scratch-demo .source-actions{margin-top:.85rem}
.wn-studio-journey .scratch-demo .source-notice{font-size:.86rem;color:var(--muted,#62616b);margin:.65rem 0 0}
.wn-studio-journey .scratch-demo .source-card details>summary{min-height:44px;display:list-item;padding:.3rem 0}
.wn-studio-journey #scratch-references{margin-top:1.7rem;padding-top:1.1rem;border-top:1px solid var(--line,#ddd5df)}
.wn-studio-journey #scratch-reference-list{padding-left:1.35rem;margin:0;display:grid;gap:.65rem;font-size:.9rem}
.wn-studio-journey #scratch-reference-list li{overflow-wrap:anywhere}
.wn-studio-journey #scratch-reference-list p{margin:.2rem 0}
.wn-studio-journey #scratch-reference-list .reference-meta{color:var(--muted,#62616b)}
.wn-studio-journey #scratch-save-state{font-size:.78rem}
.wn-studio-journey .scratch-demo .source-prompt{border-left:3px solid #bd9dc0;background:linear-gradient(90deg,#f7eff8,transparent);padding:.8rem 1rem}
@media(max-width:760px){.wn-studio-journey .scratch-workspace:has(.scratch-library-panel:not([hidden])){grid-template-columns:1fr}.wn-studio-journey #scratch-writing{min-height:210px;padding:.8rem}.wn-studio-journey #scratch-search-form{gap:.5rem}.wn-studio-journey #scratch-search-form>button{padding:.67rem .8rem}.wn-studio-journey .scratch-demo .source-actions .primary{width:100%}.wn-studio-journey .scratch-demo .demo-navigation{align-items:flex-start;gap:.5rem}}
