#workspace-text .nc-left{min-height:0}
#workspace-text .nc-shell{height:100%;min-height:0;display:flex;flex-direction:column;padding:12px;gap:10px}
#workspace-text .nc-heading{display:flex;align-items:center;gap:12px;padding:2px 8px;color:#ddd;font-size:14px;flex-shrink:0}
#workspace-text .nc-heading span{color:#888;font-size:11px}
#workspace-text .nc-messages{flex:1;min-height:0;overflow:auto;padding:12px 8px;scrollbar-color:#444 transparent;overflow-wrap:anywhere}
#workspace-text .nc-empty{display:flex;flex-direction:column;justify-content:center;min-height:180px;text-align:center;color:#888;font-size:13px;line-height:2}
#workspace-text .nc-message{position:relative;margin:0 0 24px;font-size:14px;line-height:1.8}
#workspace-text .nc-message>small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#workspace-text .nc-message p{white-space:pre-wrap;margin:6px 0}
#workspace-text .nc-message pre,#workspace-text .nc-legacy pre{white-space:pre-wrap;max-height:240px;overflow:auto;font-size:12px;line-height:1.8;padding:8px;overflow-wrap:anywhere}
#workspace-text .nc-user{width:fit-content;max-width:88%;box-sizing:border-box;background:#2b2b2b;padding:8px 13px;border-radius:15px;margin-left:auto}
#workspace-text .nc-user p{margin:0}
#workspace-text .nc-assistant{padding:0 0 0 34px;background:transparent}
#workspace-text .nc-assistant::before{content:'✧';position:absolute;left:0;top:3px;display:grid;place-items:center;width:22px;height:22px;background:#282828;border-radius:50%;color:#999;font-size:17px;line-height:1}
#workspace-text .nc-legacy{margin-bottom:16px;color:#aaa;font-size:12px}
#workspace-text .nc-legacy summary{white-space:normal}
#workspace-text .nc-composer{position:relative;flex-shrink:0;background:#181818;border:0;border-radius:15px;padding:10px 12px}
#workspace-text .nc-composer.nc-dragover{outline:2px solid #c8a96a;outline-offset:2px}
#workspace-text .nc-input-row{display:flex;align-items:flex-start;gap:8px}
#workspace-text #nc-attach{display:grid;place-items:center;background:transparent;color:#999;border-radius:7px;width:30px;height:30px;padding:6px;flex-shrink:0}
#workspace-text #nc-attach:hover{background:#303030;color:#ddd}
#workspace-text #nc-attach svg{width:17px;height:17px}
#workspace-text #nc-input{display:block;flex:1;width:100%;min-width:0;min-height:52px;max-height:240px;resize:vertical;background:transparent;color:#ddd;border:0;padding:3px 2px 8px;font-family:inherit;font-size:14px;line-height:1.7;outline:none;box-sizing:border-box}
#workspace-text #nc-input::placeholder{color:#888}
#workspace-text .nc-controls{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:5px}
#workspace-text .nc-controls summary{background:transparent;gap:5px;font-size:11px;padding:7px 6px;max-width:165px}
#workspace-text #nc-model summary{background:#292929;border-radius:7px}
#workspace-text #nc-model summary svg{width:15px;height:15px;flex-shrink:0;color:#aaa}
#workspace-text .nc-controls summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#workspace-text #nc-send{margin-left:auto;flex-shrink:0;width:32px;height:32px;background:#fff;color:#000;font-size:23px;padding:0;border:0;border-radius:50%}
#workspace-text #nc-send:hover:not(:disabled){background:#eee}
#workspace-text #nc-send:disabled{background:#444;color:#888;cursor:default}
#workspace-text .nc-controls .sd-popover{position:fixed;top:auto;bottom:auto;z-index:12000;width:280px;max-width:calc(100vw - 20px);max-height:50vh;background:#202020}
#workspace-text .nc-controls .sd-popover input[type=range]{width:100%;accent-color:#c8a96a}
#workspace-text .nc-controls .sd-popover input[type=number]{width:100%;padding:7px;border:0;border-radius:6px;background:#303030;color:#eee}
#workspace-text .nc-files{display:flex;gap:6px;flex-wrap:wrap;font-size:11px}
#workspace-text .nc-files>span{background:#343434;max-width:100%;overflow-wrap:anywhere;padding:2px 7px;border-radius:6px;margin-bottom:8px}
#workspace-text .nc-files button{padding:3px;color:#bbb}
#workspace-text .nc-status{min-height:18px;flex-shrink:0;font-size:11px;line-height:1.5;color:#c8ad77;padding:0 8px;overflow-wrap:anywhere}
#workspace-text .nc-screenplay>header{gap:8px}
#workspace-text .nc-screenplay>header>div{gap:5px}
#workspace-text .nc-screenplay button,#workspace-text .nc-screenplay summary{font-size:12px}
#workspace-text .nc-screenplay .sd-popover{left:auto;right:0}
#workspace-text #nc-script{min-height:55vh;background:#202020;padding:10px 4px;font:inherit;font-size:15px;line-height:1.9}
#workspace-text #nc-confirm{color:#d8be85}
@media(max-width:1000px){#workspace-text .nc-shell{padding:8px}#workspace-text .nc-controls summary{max-width:130px}#workspace-text .nc-user{max-width:94%}}
