/* Fixed guide surfaces leave the accepted document-space DNA geometry intact. */
[data-dna-native=true] [data-dna-lab]{display:none!important}
[data-dna-lab] [hidden],[data-dna-lab][hidden]{display:none!important}
:root:not([data-dna-native=true]){scroll-padding-top:54px}
#lab-header{pointer-events:none;position:fixed;z-index:12;top:0;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:.45rem;padding:0 .6rem;min-height:44px;background:#060d12ed;font-size:.85rem;line-height:1.3;backdrop-filter:blur(12px)}
#lab-header a,#lab-header button{pointer-events:auto;display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}#lab-header span{color:var(--dim)}
[data-dna-lab] button{background:transparent;border:1px solid var(--edge);border-radius:7px;padding:.35rem .6rem;min-height:40px;color:var(--ink);font:inherit}
#lab-toggle{border:0;padding:0;color:var(--accent)}#lab-toggle[aria-expanded=true]{text-decoration:underline;text-underline-offset:5px}
#lab-shell{font-size:.85rem;line-height:1.5}#lab-shell a{text-decoration:underline;color:var(--accent);overflow-wrap:anywhere}
.lab-toolbar{position:fixed;z-index:14;top:50px;left:12px;right:12px;display:flex;align-items:center;gap:6px;pointer-events:none}.lab-toolbar>*{pointer-events:auto;background:#102027!important}#lab-close{margin-left:auto;font-size:1.1rem!important}.lab-tabs{display:none;gap:4px}#lab-account{margin-left:auto}#lab-close{margin-left:0}
#lab-status{position:fixed;z-index:14;top:94px;left:14px;max-width:min(28rem,calc((100vw - 500px)/2));margin:0;color:var(--dim);font-size:.7rem;background:#060d12ef;overflow-wrap:anywhere;max-height:8rem;overflow:auto}
.lab-panel{position:fixed;z-index:13;top:145px;bottom:16px;width:min(28rem,calc((100vw - 500px)/2));display:flex;flex-direction:column;min-height:0;padding:14px;border:1px solid var(--edge);border-radius:14px;background:#0c1920f5;box-shadow:0 12px 45px #0004;overflow:hidden}
.lab-panel[data-provider=gpt]{left:12px}.lab-panel[data-provider=claude]{right:12px}.lab-panel h2{font-size:1.15rem;line-height:1.2;margin:0}.lab-subtitle{font-size:.68rem;color:var(--dim);margin:5px 0 10px}.lab-log{flex:1;min-height:50px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-wrap:anywhere}.lab-message{padding:.6rem 0;border-top:1px solid #273b42}.lab-message small{display:block;color:var(--accent);font-size:.65rem}.lab-message p{white-space:pre-wrap;margin:.35rem 0}.lab-message[data-role=user]{color:#f3e3c0}.lab-message[data-role=notice]{color:#efc89c}.lab-sources{font-size:.7rem;display:flex;flex-wrap:wrap;gap:5px 10px}.lab-digest{margin:.5rem 0;font-size:.7rem}.lab-project{font-size:.72rem!important;color:var(--accent)!important}.lab-compose{border-top:1px solid var(--edge);padding-top:8px}.lab-compose label{display:block;font-size:.7rem}.lab-compose textarea{resize:vertical;width:100%;min-height:54px;max-height:150px;border:1px solid var(--edge);border-radius:6px;background:#060d12;color:var(--ink);font:inherit;padding:8px}.lab-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.lab-actions label{display:flex;align-items:center;gap:4px}.lab-privacy{font-size:.6rem;line-height:1.3;color:var(--dim);margin:7px 0 0}.lab-message.incomplete{opacity:.75}.lab-highlight .nucleus{outline:3px solid #fff5a4;outline-offset:6px;animation:none!important}.lab-highlight .node-label{opacity:1}
#lab-auth{width:min(30rem,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--edge);border-radius:14px;background:#0c1920;color:var(--ink);font:inherit;padding:22px}#lab-auth::backdrop{background:#000b}#lab-auth h2{font-size:1.25rem}#lab-auth label{display:block;margin:12px 0}#lab-auth input{display:block;width:100%;background:#060d12;border:1px solid var(--edge);border-radius:6px;color:var(--ink);padding:10px}#lab-auth-error{color:#efc89c}
@media(max-width:1099px){
 :root:has(body.lab-open){scroll-padding-bottom:calc(min(52dvh,540px) + 64px)}
 .lab-toolbar{top:auto;bottom:calc(var(--lab-keyboard,0px) + min(52dvh,540px));left:8px;right:8px;flex-wrap:wrap;padding:5px;border:1px solid var(--edge);border-radius:8px;background:#0c1920}.lab-tabs{display:flex}#lab-new{font-size:.7rem!important}#lab-status{top:auto;bottom:calc(var(--lab-keyboard,0px) + min(52dvh,540px) + 100px);left:10px;max-width:calc(100vw - 20px);font-size:.65rem;max-height:45px;pointer-events:none}
 .lab-panel{top:auto;bottom:var(--lab-keyboard,0px);height:min(52dvh,540px);width:calc(100% - 16px);left:8px!important;right:8px!important;padding:10px;border-radius:10px 10px 0 0}.lab-panel[data-active=false]{display:none}.lab-panel h2{font-size:1rem}.lab-subtitle{margin:2px 0 4px}.lab-privacy{font-size:.58rem}.lab-tabs button[aria-pressed=true]{border-color:var(--accent)}
}
@media(min-width:700px) and (max-width:1099px) and (orientation:landscape){
 .lab-panel{width:calc(50% - 12px);height:52dvh}.lab-digest{display:none}.lab-panel[data-active=false]{display:flex}.lab-panel[data-provider=claude]{left:auto!important}.lab-tabs{display:none}.lab-toolbar{bottom:calc(var(--lab-keyboard,0px) + 52dvh)}.lab-compose textarea{min-height:42px;height:42px}.lab-privacy{display:none}.lab-subtitle{display:none}.lab-panel h2{font-size:.85rem}.lab-digest{margin:3px 0}
}
@media(max-width:380px){#lab-header{gap:.3rem;font-size:.78rem}.lab-toolbar{gap:3px}.lab-toolbar button{font-size:.65rem!important;padding:3px 5px;min-height:36px}.lab-panel{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){#lab-shell *{scroll-behavior:auto}}
