[hidden]{display:none!important}*{box-sizing:border-box}body{margin:0}.shell{height:100dvh;max-width:none;display:grid;grid-template-rows:auto minmax(0,1fr) auto;position:relative;padding-left:0}header{padding-left:5rem}main{min-height:0;overflow:hidden}#chat{height:100%;min-height:0}#messages{min-height:0;overflow-y:auto;overscroll-behavior:contain}#studio{height:100%;overflow-y:auto;padding:1.5rem;max-width:76rem;margin:auto}#studio h2{margin-top:0}#nav-toggle{position:fixed;top:1rem;left:1rem;z-index:5;width:auto}#studio-nav{position:fixed;inset:0 auto 0 0;width:16rem;background:#132731;padding:4.5rem 1rem 1rem;z-index:6;overflow-y:auto;box-shadow:0 0 20px #0008}#studio-nav h2{font-size:1.1rem}#studio-nav button{display:block;width:100%;margin:.5rem 0;text-align:left}#studio-nav [aria-current=page]{outline:2px solid #c3dfbf;background:#34544b}#studio-form{display:grid;gap:.55rem;margin-top:1rem}#studio-form label{font-weight:600}#studio-form textarea{min-height:6rem;resize:vertical}#studio-form input,#studio-form textarea,#studio-form select,#project{width:100%;font:inherit;color:inherit;background:#172e39;border:1px solid #68848b;border-radius:.45rem;padding:.7rem}#studio-form button,#studio-tools button,#studio-list button{width:auto;margin:.4rem .4rem .4rem 0}#studio-list article{padding:1rem;margin:.7rem 0;border:1px solid #49636c;border-radius:.5rem}#studio-list pre{white-space:pre-wrap;overflow-wrap:anywhere}#studio-list p{overflow-wrap:anywhere}#studio-context{color:#c3d4da}button:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #f5cf91;outline-offset:3px}@media(min-width:900px){body.nav-open .shell{padding-left:16rem}body.nav-open #nav-toggle{left:17rem}#studio-form{grid-template-columns:minmax(10rem,1fr) minmax(0,3fr)}#studio-form button{grid-column:2}}@media(max-width:899px){#studio-nav{width:min(85vw,20rem)}#studio{padding:1rem}button{min-height:44px}#studio-form{padding-bottom:2rem}}

#manuscript-text{min-height:24rem;white-space:pre-wrap;overflow-wrap:anywhere}#studio-form>p{grid-column:1 / -1}

/* Keep voice controls reachable within the fixed Studio viewport. */
.shell{grid-template-columns:minmax(0,1fr)}#chat{overflow-y:auto}#messages{flex-shrink:0;min-height:28dvh;max-height:50dvh}@media(max-width:899px){header{flex-wrap:wrap}}

.voice-session-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.voice-session-buttons button{padding:12px 8px;min-width:0}
