:root{font:14px 'Segoe UI',sans-serif;color:#edf1f6;background:#11151c}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{height:34px;flex:none;display:flex;align-items:center;padding:0 12px;gap:10px}.brand{font-size:16px}.brand b{color:#e8ba62}header span{font-size:11px;color:#9ba9bc;margin-left:auto}header a{color:#bcc9d8;text-decoration:none;font-size:11px;padding:3px 7px;border:1px solid #3a4658;border-radius:4px}nav{display:flex;flex:none;flex-wrap:nowrap;gap:3px;height:39px;padding:3px 7px 0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;border-bottom:1px solid #536174}nav button{font:inherit;font-size:12px;color:#bac7d9;background:#202936;border:1px solid #425063;border-bottom:0;border-radius:6px 6px 0 0;padding:7px 10px;white-space:nowrap;flex:1 0 auto;cursor:pointer}nav button.active{color:#ffdb98;background:#303846;box-shadow:inset 0 3px #e8ba62}nav button:focus-visible{outline:2px solid #e8ba62;outline-offset:-3px}#editors{flex:1;min-height:0;position:relative}iframe{border:0;width:100%;height:100%;display:block;background:#151b24}[hidden]{display:none!important}@media(max-width:700px){header span{display:none}header a{margin-left:auto}}
header button{font:inherit;font-size:12px;border:1px solid #63718a;background:#273445;color:#ffe0a4;border-radius:4px;padding:3px 10px;cursor:pointer}#sharedLibrary{width:min(580px,96vw);height:min(840px,94vh);background:#1a2330;color:#eef3fa;border:1px solid #536880;border-radius:12px;padding:18px;overflow:auto}#sharedLibrary::backdrop{background:#0008}.lib-head{display:flex;align-items:center;justify-content:space-between}.lib-head h2{margin:0;font-size:20px}.lib-hint{font-size:12px;color:#b4c2d5;line-height:1.5}.lib-tabs,#libProjectSave,#libSearch,#libAssetTools{display:flex;gap:8px;margin:12px 0;align-items:center}#sharedLibrary button,#sharedLibrary select{background:#314258;color:#edf4ff;border:1px solid #657891;border-radius:5px;padding:8px;cursor:pointer}#sharedLibrary button.active{background:#66512c;color:#ffdda0}#sharedLibrary button:disabled{opacity:.45;cursor:default}#sharedLibrary input{background:#101722;color:white;border:1px solid #586b83;padding:9px;min-width:0;flex:1;border-radius:5px}#libList{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.lib-project,.lib-asset{display:flex;flex-direction:column;gap:8px;padding:12px;background:#222e3e;border:1px solid #41536c;border-radius:8px;min-width:0;word-break:break-word}.lib-project small,.lib-asset small{color:#b6c3d4;font-size:11px}.lib-asset img{height:100px;width:100%;object-fit:contain;background:#f2f4f7;border-radius:4px;padding:7px}#sharedLibrary a{color:#bddaff;font-size:12px}#libMessage{font-size:12px;line-height:1.5}#libMessage.error{color:#ffb7a8}

#sharedLibrary{width:min(780px,96vw)}.lib-filter,.lib-selection,.lib-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:9px 0}.lib-filter label,.lib-choice{display:flex;align-items:center;gap:7px}#sharedLibrary input[type=checkbox]{flex:none;accent-color:#e8ba62;width:17px;height:17px}.lib-choice{font-size:12px}.lib-project.selected,.lib-asset.selected{border:2px solid #e8ba62;padding:11px;background:#303849}#libManagement{border-block:1px solid #41536c;padding:5px 0}#libSelectionCount{margin-left:auto;font-size:12px}#libCategory{max-width:260px}@media(max-width:450px){#libList{grid-template-columns:1fr}}
.lib-copy{border-top:1px solid #41536c;padding-top:8px}.lib-copy summary{cursor:pointer;font-size:12px;color:#bddaff}.lib-copy[open]{display:flex;flex-direction:column}.lib-copy small,.lib-copy select,.lib-copy button{display:block;width:100%;margin-top:8px}

/* Clear product boundaries — keep each item and its actions together. */
#libList{gap:16px}.lib-project,.lib-asset{border:3px solid #829faf;border-radius:12px;padding:14px;background:#223343;gap:10px}.lib-project.selected,.lib-asset.selected{border:3px solid #f3ca76;padding:14px;background:#344151}.lib-project:focus-within,.lib-asset:focus-within{outline:2px solid #f3ca76;outline-offset:2px}.lib-project>strong,.lib-asset>strong{line-height:1.4}
