:root{font:13px Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#202936;background:#fff}*{box-sizing:border-box}html,body{height:100%;margin:0}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:#fff;border:1px solid transparent;border-radius:6px;padding:7px 9px}button:hover{background:#f2f4f7}button.active{background:#eef2f8;border-color:#dce5ef;color:#1e4e88}button:disabled{opacity:.35}.app{height:100dvh;display:flex;flex-direction:column;min-height:470px}.topbar{height:55px;display:flex;gap:18px;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid #e8ebef;flex-shrink:0}.brand{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;white-space:nowrap;font-size:16px}.brand small{font-size:10px;color:#99a1ab;font-weight:500}.project-name{flex:1;text-align:center;color:#8a94a0;font-size:11px}.prototype{background:#f4f5f6;border-radius:20px;padding:4px 8px;margin-left:8px}.header-actions{display:flex;gap:3px;align-items:center}.primary{background:#222b37!important;color:white;border-radius:7px;padding:9px 14px}.layout{display:flex;flex:1;min-height:0}.library{width:248px;min-width:210px;display:flex;flex-direction:column;border-right:1px solid #e6e9ee;padding:14px 12px 8px;gap:10px}.library-title{font-weight:700;font-size:13px}.library input{width:100%;border:1px solid #e1e5eb;border-radius:7px;padding:10px;outline:0}.categories{display:flex;overflow-x:auto;gap:3px;padding-bottom:2px}.categories button{white-space:nowrap;font-size:10px;padding:7px 6px}.library-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:auto;align-content:start;padding-right:3px;flex:1}.library-card{min-height:106px;border:1px solid #e9ecf0;border-radius:8px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;background:#fff;text-align:center;font-size:10px;cursor:grab}.library-card:hover{border-color:#a3b0c0;background:#f8fafc}.library-card svg{width:90%;height:72px;pointer-events:none}.library-note{font-size:10px;line-height:1.5;color:#8893a0;padding-top:7px;border-top:1px solid #eceef1}.editor{display:flex;flex-direction:column;min-width:0;flex:1}.toolbar{display:flex;gap:5px;align-items:center;min-height:47px;padding:5px 10px;border-bottom:1px solid #e8ebef;flex-wrap:wrap}.toolgroup{display:flex;gap:2px;align-items:center;padding-right:6px;border-right:1px solid #e8ebef}.toolgroup:last-child{border:0}.toolgroup button{font-size:12px;white-space:nowrap}.toolgroup label{display:flex;align-items:center;gap:3px;color:#66717e;font-size:11px}.toolgroup select{background:#fff;border:1px solid #e4e7ec;border-radius:5px;padding:4px}.toolgroup input[type=color]{height:24px;width:28px;border:0;background:transparent;padding:0}.end{margin-left:auto}.canvas-outer{flex:1;min-height:0;position:relative;background:#f7f8fa;overflow:hidden;touch-action:none}.canvas-outer #stage{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none;user-select:none}.ruler{position:absolute;z-index:2;background:#fff;color:#919aa5;font:9px ui-monospace,monospace;pointer-events:none}.ruler-x{top:0;left:24px;right:0;height:20px;border-bottom:1px solid #e8ebef}.ruler-y{left:0;top:20px;bottom:0;width:24px;border-right:1px solid #e8ebef}.tick{position:absolute;white-space:nowrap}.statusbar{min-height:30px;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 12px;border-top:1px solid #e8ebef;color:#8b95a1;font-size:10px}.footer{height:24px;display:flex;justify-content:space-between;padding:5px 15px;border-top:1px solid #e9ebef;color:#9aa3af;font-size:10px;flex-shrink:0}.footer a{color:inherit;text-decoration:none}.context-menu{position:absolute;z-index:10;padding:5px;border-radius:9px;border:1px solid #e0e5eb;background:#fff;box-shadow:0 15px 35px #2224;width:178px}.context-menu button{width:100%;display:block;text-align:left}.hidden{display:none!important}.toast{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);background:#242f3a;color:#fff;padding:9px 14px;border-radius:7px;z-index:8}dialog{border:1px solid #e3e7ed;box-shadow:0 14px 60px #0002;border-radius:12px;padding:23px;width:min(360px,90vw)}dialog::backdrop{background:#20293655}dialog h2{font-size:17px;margin:0 0 19px}dialog label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0}dialog select,dialog input{border:1px solid #e1e5eb;padding:7px;max-width:170px;border-radius:6px}.dialog-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:20px}@media(max-width:1100px){.project-name{display:none}.library{width:215px}.toolbar{gap:2px}.formatting{order:3}}@media(max-width:700px){.library{width:155px;min-width:155px;padding:8px 5px}.library-items{grid-template-columns:1fr}.topbar{padding:0 7px}.brand{font-size:13px}.brand img{width:26px;height:26px}.toolbar{max-height:116px;overflow-y:auto}.statusbar span:nth-child(2),.footer span:nth-child(2){display:none}}
/* v0.2 detailed glassware and solution controls */
.library-card svg{height:85px;max-height:85px;overflow:visible}.library-card{min-height:122px}.field-hint{font-size:11px;line-height:1.5;color:#8591a0;margin:-7px 0 14px}#solutionDialog input[type=range]{flex:1;min-width:115px;accent-color:#536273}#solutionDialog input[type=color]{height:32px;width:75px;padding:3px}

/* v0.6 — scalable 16-category library and honest planned/available statuses */
.library{width:265px;min-width:235px}
.categories{display:flex;flex-direction:column;flex:0 0 auto;max-height:180px;overflow-y:auto;gap:2px;border-bottom:1px solid #e8ebef;padding:0 0 7px}
.categories .category-item{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;text-align:left;padding:6px 8px;font-size:11px;white-space:normal;min-height:28px}
.categories .category-item small{color:#8a96a5;font-size:10px;flex-shrink:0}
.categories .category-item.active{border-color:#c4d4e2}
.library-filter{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#6a7580}
.library-filter label{display:flex;align-items:center;gap:4px;white-space:nowrap}
.library-filter input{width:auto;accent-color:#374151}
.library-filter small{font-size:9px;text-align:right}
.roadmap-card{cursor:default;color:#9aa4af;background:#fafbfc;border-style:dashed;justify-content:center}
.roadmap-card small{font-size:9px;color:#9aa4af}
.roadmap-icon{font-size:20px;color:#c5ccd4}
.library-empty{grid-column:1/-1;font-size:11px;line-height:1.5;color:#8b96a1;padding:14px 4px}
@media(max-width:700px){.library{width:171px;min-width:171px}.categories{max-height:132px}.library-filter{flex-wrap:wrap}}
