:root{font-family:system-ui,sans-serif;color:#172331;background:#f4f6f9}*{box-sizing:border-box}body{margin:0}button,.button{border:1px solid #bec8d3;background:white;color:#172331;border-radius:6px;padding:8px 11px;cursor:pointer;font:inherit;white-space:nowrap}button:hover,.button:hover{background:#e8f3ff}button.active,#review{background:#165c9a;color:white}input,select{font:inherit;padding:7px;border:1px solid #b9c6d1;border-radius:5px;max-width:100%}header{height:56px;background:#152c43;color:white;display:flex;align-items:center;gap:15px;padding:0 16px}header button{margin-left:auto}header button+button{margin-left:0}#saveState{min-width:90px;text-align:right;font-size:13px}main[hidden]{display:none!important}#homeScreen{max-width:820px;margin:40px auto}#projects>button{display:block;width:100%;text-align:left;margin:9px 0}#workspace{display:grid;grid-template-columns:225px minmax(400px,1fr) 240px;height:calc(100vh - 56px)}aside{overflow:auto;padding:12px;background:white;border-right:1px solid #dbe2e8}.right{border-left:1px solid #dbe2e8;border-right:0}.row{display:flex;gap:6px;align-items:center}.row input{min-width:0;flex:1}.toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:10px;background:white}.toolbar label{font-size:12px;display:flex;align-items:center;gap:4px}.toolbar input{width:62px}section{min-width:0}#canvasArea{height:calc(100% - 132px);overflow:auto;display:flex;align-items:center;justify-content:center;padding:12px;background:#dce3eb}#stage{position:relative;display:inline-block;max-width:100%;max-height:100%;line-height:0}#photo{max-width:100%;max-height:calc(100vh - 205px);width:auto;height:auto;display:block;user-select:none}#overlay{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none}#emptyImage{color:#64748b}#imageList button{display:flex;gap:8px;align-items:center;width:100%;margin:5px 0;white-space:normal;text-align:left;font-size:12px}#imageList button.active{background:#d9edff}#imageList img{width:46px;height:46px;object-fit:cover}.hint,.note{font-size:12px;color:#5b6d7c;padding:8px;line-height:1.5}#classes button{width:100%;text-align:left;margin:3px 0}#selectionCount{font-weight:600}.trainGrid{display:grid;grid-template-columns:minmax(300px,420px) 1fr;gap:24px;padding:24px}.trainGrid section{background:white;padding:20px;border-radius:8px}.trainGrid label{display:block;margin:10px 0}.trainGrid select{display:block;width:100%}.formGrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.formGrid input{width:100%}pre{white-space:pre-wrap;overflow:auto;background:#102235;color:#e3f4ff;padding:12px;max-height:38vh;border-radius:5px;font-size:12px}#runs button{margin:3px}#toast{position:fixed;bottom:20px;right:20px;background:#263746;color:white;padding:10px 16px;border-radius:6px;max-width:400px;display:none;z-index:5}.box{fill:rgba(23,126,218,.08);stroke:#1976ca;stroke-width:.003;vector-effect:non-scaling-stroke}.box.selected{stroke:#ffbc42;stroke-width:.006;fill:rgba(255,188,66,.18)}.box.unlabeled{stroke:#e14545}.mask{fill:rgba(23,126,218,.16);stroke:none;pointer-events:none}.handle{fill:#ffbc42;stroke:#172331;stroke-width:.002}.marquee{fill:rgba(55,130,210,.16);stroke:#2a70ad;stroke-width:.003;stroke-dasharray:.01 .006}.objectLabel{fill:#fff;paint-order:stroke;stroke:#123;stroke-width:.006px;pointer-events:none}@media(max-width:900px){#workspace{grid-template-columns:165px minmax(300px,1fr) 175px}.toolbar{font-size:12px}.trainGrid{grid-template-columns:1fr}} 

#stage{touch-action:none;cursor:crosshair}
#overlay.drawing{pointer-events:none}
#promptInput{width:190px}
#classes button.chosenClass{background:#165c9a;color:white;border-color:#165c9a}
[hidden]{display:none!important}header{height:auto;min-height:60px;flex-wrap:wrap;padding:10px 16px;font-size:14px}header button{margin-left:0}#saveState{margin-left:auto}#workspace{grid-template-columns:180px minmax(420px,1fr) 220px;height:calc(100vh - 65px)}.editor{display:flex;flex-direction:column;min-height:0}.toolbar{padding:7px 10px;border-bottom:1px solid #e7ecf1;font-size:12px}.toolbar button{font-size:12px;padding:6px 8px}.toolbar select{max-width:220px}.toolbar input[type=checkbox]{width:auto}.toolbar input[type=range]{width:80px}#canvasArea{height:auto;flex:1;min-height:220px;align-items:flex-start;justify-content:center;position:relative}#stage{max-height:none;max-width:none;flex-shrink:0}#photo{max-height:none;width:100%;max-width:none}#overlay{inset:0}#hint{padding:6px 10px;margin:0;background:#f0f6fa}.right button{margin:4px 0;width:100%;white-space:normal}.right label,.right select{display:block;width:100%;font-size:13px}.right .row{margin:10px 0}.right .row button{width:auto}#classChoice{margin:8px 0}details{padding:10px 0;font-size:13px}summary{cursor:pointer;font-weight:600}.page{padding:20px;max-width:1500px;margin:auto}.page h1{font-size:25px}.trainGrid{padding:0;grid-template-columns:360px 1fr}#tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:15px}.tile{white-space:normal;display:flex;flex-direction:column;align-items:center;gap:8px}.tile img{height:130px;max-width:100%;object-fit:contain}.card{background:white;border:1px solid #d8e0e8;border-radius:8px;padding:14px;margin:12px 0}.card h3{margin:0 0 8px}.card button{margin:5px 5px 0 0}.loss{width:100%;height:95px;background:#f3f7fb}.status{display:inline-block;padding:3px 8px;background:#e5edf4;border-radius:10px;font-size:12px}.Complete{background:#dff3e6}.Failed{background:#ffe4df}.Training{background:#fff0c5}#projects button{padding:18px}#homeScreen{max-width:900px;padding:20px}#objectDetails{font-size:12px;line-height:1.6}.predictionGrid{display:flex;flex-wrap:wrap;gap:8px}.predictionGrid label{padding:8px;background:#f4f6f9}.selectedObject{stroke:#ffbd3d!important;stroke-width:3!important}.maskShape{vector-effect:non-scaling-stroke;stroke-width:1.6;cursor:pointer}.maskLabel{font-family:system-ui;pointer-events:none;paint-order:stroke;stroke:#152c43;stroke-width:3px;fill:white;font-weight:600}.marqueeRect{fill:#3186d333;stroke:#3186d3;stroke-width:2;vector-effect:non-scaling-stroke}button:disabled{opacity:.5;cursor:wait}#toast{display:none;max-width:650px}#toast.error{background:#9b2626}@media(max-width:1050px){#workspace{grid-template-columns:135px minmax(350px,1fr) 170px}.right{padding:8px}.toolbar{gap:4px}.trainGrid{grid-template-columns:1fr}header{font-size:12px}}
#export{white-space:normal;width:100%}#canvasArea{align-items:flex-start}.predictionThumb{display:block;width:90px;height:90px;object-fit:contain}
.predictionGrid{max-height:440px;overflow:auto;padding:4px}.predictionGrid label{width:112px;flex-shrink:0;font-size:12px}.predictionThumb{width:94px;height:90px}.predictionGrid input{margin-bottom:5px}
