:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#202735;background:#f3f5f8;font-size:14px}*{box-sizing:border-box}body{margin:0}.topbar{height:70px;background:#fff;border-bottom:1px solid #e2e6ed;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:11px}.brand-mark{width:38px;height:38px;border-radius:11px;background:#243b63;color:white;display:grid;place-items:center;font-weight:800}.brand strong{display:block;font-size:16px}.brand small,.workspace-head small{display:block;color:#7b8493;font-size:11px;margin-top:3px}.top-actions{display:flex;align-items:center;gap:12px}.language-label{color:#697386;font-size:12px}button,select,input,textarea{font:inherit}button,select{border:1px solid #d8dee8;background:#fff;color:#303b4e;border-radius:7px;padding:9px 11px;cursor:pointer}button:hover:not(:disabled){border-color:#8295b5;background:#f8faff}button:disabled{opacity:.4;cursor:not-allowed}.primary{background:#254675;color:white;border-color:#254675}.primary:hover:not(:disabled){background:#1c365b;color:white}.layout{display:grid;grid-template-columns:330px minmax(0,1fr);gap:16px;padding:16px;min-height:calc(100vh - 70px)}.sidebar{display:flex;flex-direction:column;gap:12px}.panel{background:#fff;border:1px solid #e2e6ed;border-radius:10px;padding:14px;box-shadow:0 1px 2px #17233a08}.panel h2{font-size:13px;margin:0 0 12px;font-weight:700}.upload{border:1.5px dashed #b9c5d7;border-radius:9px;background:#f8faff;min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-align:center}.upload.drag{border-color:#2c67ad;background:#eef5ff}.upload input{display:none}.upload-icon{font-size:25px;color:#4774aa}.upload small,.formats,.hint{color:#788396;font-size:11px}.formats{font-size:10px;letter-spacing:.5px;margin-top:4px}.button-row{display:flex;gap:7px;margin-top:9px}.button-row button{flex:1}.quiet{background:#f7f8fa}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.tool{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 5px}.tool span{font-size:19px}.tool b{font-size:11px}.tool.active{background:#edf3fb;border-color:#6f8eb7;color:#244d7d}.hint{line-height:1.5;margin:10px 0 0}.empty{padding:9px;color:#8a93a1;font-size:11px;background:#f8f9fb;border-radius:6px}.panel label{display:block;font-size:11px;color:#5e6878;margin:10px 0 5px}.panel textarea,.panel input[type=number],.panel select{width:100%;border:1px solid #d8dee8;border-radius:6px;padding:8px;color:#273348;background:#fff}.panel textarea{resize:vertical}.panel input[type=color]{width:100%;height:34px;padding:2px;border:1px solid #d8dee8;border-radius:6px;background:#fff}.two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.danger{color:#b42318;border-color:#f0c7c4}.full{width:100%;margin-top:7px}.object-list{display:flex;flex-direction:column;gap:5px;max-height:170px;overflow:auto}.object-item{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:8px;border:1px solid #e6e9ef;border-radius:6px;cursor:pointer;font-size:11px}.object-item.active{border-color:#6f8eb7;background:#f0f5fc}.object-item small{color:#8791a0}.workspace{background:#fff;border:1px solid #e2e6ed;border-radius:10px;display:flex;flex-direction:column;min-width:0;overflow:hidden}.workspace-head{height:56px;border-bottom:1px solid #e8ebf0;display:flex;align-items:center;justify-content:space-between;padding:0 16px}.workspace-head strong{font-size:13px}.zoom-controls{display:flex;align-items:center;gap:6px}.zoom-controls button{padding:5px 9px}.zoom-controls span{font-size:11px;color:#697386;min-width:42px;text-align:center}.canvas-wrap{flex:1;min-height:520px;position:relative;overflow:auto;background-color:#f0f2f5;background-image:linear-gradient(45deg,#e8ebef 25%,transparent 25%),linear-gradient(-45deg,#e8ebef 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8ebef 75%),linear-gradient(-45deg,transparent 75%,#e8ebef 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;display:flex;align-items:center;justify-content:center;padding:24px}.welcome{text-align:center;color:#8791a0}.welcome-icon{font-size:48px;color:#aab5c5}.welcome h2{font-size:16px;color:#586579}.welcome p{font-size:12px;max-width:360px;line-height:1.6}.canvas-wrap canvas{display:block;max-width:none;box-shadow:0 5px 25px #17233a25;cursor:crosshair}.statusbar{height:31px;border-top:1px solid #e8ebf0;padding:0 13px;display:flex;justify-content:space-between;align-items:center;color:#8791a0;font-size:10px}#toast{position:fixed;right:20px;bottom:20px;background:#25364e;color:white;padding:11px 15px;border-radius:8px;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;z-index:20}#toast.show{opacity:1;transform:translateY(0)}@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.workspace{min-height:65vh}.canvas-wrap{min-height:420px}}@media(max-width:560px){.topbar{height:auto;padding:12px;gap:10px;align-items:flex-start}.top-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.language-label{display:none}.layout{padding:8px}.sidebar{display:flex}.statusbar span:last-child{display:none}.canvas-wrap{min-height:340px;padding:10px}}

#editorCanvas{touch-action:none;user-select:none}.dimension-choice{margin-top:10px}.dimension-choice label{display:block;font-size:11px;color:#5e6878;margin:10px 0 5px}.dimension-choice select{width:100%}

.dimension-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.dimension-type{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:8px 5px;border:1px solid #d8dee8;border-radius:8px;background:#fff;color:#334155}
.dimension-type svg{width:100%;height:30px;stroke:#d94343;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.dimension-type span{font-size:10px;text-align:center;line-height:1.25}
.dimension-type.active{border:2px solid #4777b7;background:#edf4ff;color:#244d7d;padding:7px 4px}
.dimension-type:hover{border-color:#7897bf;background:#f5f8fd}

.tool-grid-single{grid-template-columns:1fr}.tool-grid-single .tool{max-width:150px}

#properties[hidden]{display:none}
.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.tool-grid .tool{min-height:76px}

.version-label{display:inline-flex;align-items:center;gap:5px;padding:7px 9px;border:1px solid #dce3ed;border-radius:7px;background:#f8faff;color:#667085;font-size:11px;white-space:nowrap}
.version-label strong{color:#244d7d;font-size:11px}

.size-range{width:100%;margin:7px 0 0;accent-color:#315f96;cursor:pointer}

/* V1.5.0 – photo upload lives in the workspace */
.workspace-upload{width:min(100%,520px);min-height:190px;margin:0 auto;padding:22px}
.welcome{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.workspace-upload strong{max-width:420px;line-height:1.5}
.workspace-head .zoom-controls{gap:7px}
@media(max-width:560px){.workspace-upload{min-height:160px;padding:14px}}

/* Respect the hidden attribute for workspace upload and canvas states */
[hidden]{display:none !important}

/* Okotuj brand header and navigation */
.brand-mark{background:#39aeea;color:#102a43;font-size:13px;display:grid;place-items:center;box-shadow:0 2px 6px #102a4322}.brand-mark svg{width:29px;height:29px;display:block}
.brand strong{font-size:18px;letter-spacing:-.2px}
.brand small{font-size:12px;color:#53657e}
.site-menu{position:relative}
.site-menu summary{list-style:none;cursor:pointer;border:1px solid #d8dee8;border-radius:7px;padding:8px 13px;color:#303b4e;background:#fff}
.site-menu summary::-webkit-details-marker{display:none}
.site-menu summary:after{content:" ▾";color:#7b8493}
.site-menu[open] .site-menu-items{position:absolute;right:0;top:calc(100% + 6px);min-width:190px;padding:6px;background:#fff;border:1px solid #e0e5ed;border-radius:9px;box-shadow:0 8px 24px #17233a20;display:flex;flex-direction:column;gap:3px;z-index:30}
.site-menu-items button{text-align:left;border:0;background:transparent;padding:9px 10px}
.site-menu-items button:hover{background:#f1f6fc}
.info-dialog{width:min(440px,calc(100% - 32px));border:1px solid #dce3ed;border-radius:12px;padding:18px;box-shadow:0 18px 50px #17233a30;color:#273348}
.info-dialog::backdrop{background:#17233a66}
.info-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.info-dialog-head strong{font-size:16px}
.info-dialog-head button{font-size:20px;line-height:1;padding:4px 9px}
.info-dialog p{line-height:1.6;color:#596579;margin-bottom:2px}
@media(max-width:650px){.topbar{padding:0 12px}.top-actions{gap:6px}.brand{gap:7px}.brand-mark{width:34px;height:34px}.brand small{font-size:10px}.version-label{display:none}}

/* V1.5.5 logo refinement */
.brand{gap:12px}.brand-mark{flex:0 0 38px}

/* Use supplied Okotuj brand mark */
.brand-mark{padding:0;overflow:hidden}.brand-mark img{width:100%;height:100%;object-fit:contain;display:block}
