.nf-composer__workspace { display:flex; align-items:center; justify-content:flex-end; flex:0 1 auto; min-width:0; max-width:100%; margin-left:auto; font-size:12px; }
.nf-composer__workspace-buttons { min-width:0; }
.nf-composer__top { flex-wrap:wrap; }
.nf-composer__top-actions { margin-left:auto; }
.nf-composer__top-actions [data-workspace-toggle][aria-expanded="true"] { color:var(--pc-text); background:var(--pc-surface); }
.nf-composer__header .nf-composer__workspace-buttons { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
.nf-composer__workspace-buttons::-webkit-scrollbar { display:none; }
.nf-composer__workspace-buttons button { flex:none; white-space:nowrap; }
.nf-composer__workspace > div,.nf-composer__workspace-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.nf-composer__workspace button,.nf-composer__workspace-actions button,.nf-composer__template-row { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:36px; padding:8px 11px; border:1px solid var(--pc-line); border-radius:9px; color:var(--pc-text); background:var(--pc-workspace-bg); cursor:pointer; transition:background .18s,border-color .18s,opacity .18s; }
.nf-composer__workspace button:hover,.nf-composer__workspace-actions button:hover { background:var(--pc-workspace-hover-bg); }
.nf-composer__workspace button svg { width:16px; height:16px; flex:none; }
.nf-composer [data-workspace-save] { color:var(--pc-muted); font-size:10px; }
.nf-composer [data-cloud-status] { flex-basis:100%; color:var(--pc-muted); font-size:11px; line-height:1.5; animation:nf-composer-item-in .18s ease both; }
.nf-composer__workspace-dialog { width:min(720px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); padding:22px; overflow:auto; background:var(--pc-workspace-bg); border:1px solid var(--pc-line); border-radius:16px; color:var(--pc-text); }
.nf-composer__workspace-dialog .nf-composer__popover-head { position:sticky; top:-22px; z-index:2; align-items:flex-start; margin-bottom:18px; padding:12px 0; background:var(--pc-workspace-bg); }
.nf-composer__workspace-dialog h2 { overflow-wrap:anywhere; font-size:17px; line-height:1.5; margin:0; }
.nf-composer__workspace-dialog p { line-height:1.6; margin:12px 0; }
.nf-composer__workspace-dialog [data-workspace-message]:empty { display:none; }
.nf-composer__media-view { display:grid; place-items:center; min-height:120px; background:var(--pc-media-bg); border-radius:12px; overflow:hidden; }
.nf-composer__media-view :is(img,video) { display:block; max-width:100%; width:auto; max-height:50dvh; object-fit:contain; }
.nf-composer__media-view audio { width:min(100%,450px); margin:30px 0; }
.nf-composer__media-settings { margin:18px 0; }
.nf-composer__media-name-form { margin-top:18px; padding:16px; border:1px solid var(--pc-line); border-radius:12px; background:var(--pc-media-settings-bg); }
.nf-composer__media-name-form [data-media-name-error] { color:var(--pc-text); }
.nf-composer__workspace-dialog .nf-composer__select { max-width:320px; }
.nf-composer__attachment > .nf-composer__media-details { left:4px; }
.nf-composer__video-controls { margin:18px 0; padding:16px; border:1px solid var(--pc-line); border-radius:12px; background:var(--pc-media-settings-bg); animation:nf-composer-item-in .2s ease both; }
.nf-composer__video-controls h3 { margin:0 0 16px; font-size:14px; font-weight:500; }
.nf-composer__video-controls output { float:right; color:var(--pc-text); font-variant-numeric:tabular-nums; }
.nf-composer__workspace-dialog .nf-composer__video-controls input[type="range"] { appearance:auto; width:100%; padding:0; border:0; background:transparent; accent-color:var(--pc-accent); cursor:pointer; }
.nf-composer__video-bounds { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.nf-composer__video-bounds input { margin:8px 0 0; font-variant-numeric:tabular-nums; }
.nf-composer__video-bounds input[aria-invalid="true"] { border-color:var(--pc-input-invalid-border); }
.nf-composer__workspace-dialog .nf-composer__checkbox { display:flex; gap:10px; align-items:center;   color:var(--pc-text); cursor:pointer; }
.nf-composer__workspace-dialog .nf-composer__checkbox input { width:16px; height:16px; flex:none; margin:0; accent-color:var(--pc-accent); }
.nf-composer__reference-set { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:12px 0; padding:14px; border:1px solid var(--pc-line); border-radius:12px; animation:nf-composer-item-in .2s ease both; }
.nf-composer__set-thumbs { display:flex; gap:5px; }
.nf-composer__set-thumbs .nf-composer__thumb { width:38px; height:38px; }
.nf-composer__set-info { flex:1 1 180px; min-width:0; }
.nf-composer__set-info :is(strong,small) { display:block; overflow-wrap:anywhere; }
.nf-composer__set-info small { margin-top:5px; font-size:11px; color:var(--pc-muted); }
.nf-composer__reference-set .nf-composer__workspace-actions { flex-basis:100%; }
.nf-composer__set-members { margin:0 0 18px; padding:10px 14px; border:1px solid var(--pc-line); border-radius:10px; }
.nf-composer__set-members legend { color:var(--pc-muted); font-size:12px; padding:0 5px; }
.nf-composer__checkbox span { min-width:0; overflow-wrap:anywhere; }
.nf-composer__template-row { display:block; width:100%; text-align:left; margin:8px 0; }
.nf-composer__template-row small { display:block; margin-top:5px; color:var(--pc-muted); line-height:1.5; }
.nf-composer__comparison { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:18px 0; }
.nf-composer__comparison pre { padding:12px; border:1px solid var(--pc-line); border-radius:10px; color:var(--pc-text); background:var(--pc-media-bg); white-space:pre-wrap; overflow-wrap:anywhere; font:inherit; font-size:13px; line-height:1.65; max-height:35dvh; overflow:auto; }
@media(max-width:767px) { .nf-composer__header > .nf-composer__workspace { flex-basis:100%; width:100%; } }
@media(max-width:600px) { .nf-composer__comparison { grid-template-columns:1fr; } .nf-composer__workspace-dialog { padding:16px; } .nf-composer__workspace-dialog .nf-composer__popover-head { top:-16px; } .nf-composer__header .nf-composer__workspace-buttons { gap:6px; } .nf-composer__workspace button { padding:7px 8px; font-size:11px; } .nf-composer__video-controls { padding:12px; } }
