:root{font-family:Inter,'Segoe UI',system-ui,sans-serif;color:#24405b;background:#eef3f8;--line:#dce6f1;--blue:#165da6;--navy:#162e4d;--muted:#7b90a4}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid #d6e1eb;background:white;color:#385979;border-radius:9px;padding:9px;font-size:12px;font-weight:700}button:disabled{opacity:.4;cursor:not-allowed}.primary,.accent{background:var(--blue)!important;color:white;border-color:var(--blue)}.accent{background:#1a987d!important;border-color:#1a987d!important}.wide{width:100%}a{text-decoration:none;color:inherit}.topbar{background:white;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding:8px 15px;gap:10px;position:relative;z-index:4}.brand{display:flex;align-items:center;gap:9px;font-size:18px;font-weight:800;white-space:nowrap}.brand small{display:block;color:#7690a6;font-size:9px;letter-spacing:1.3px;text-transform:uppercase}.brandlogo{position:relative;border-radius:10px;background:var(--blue);padding:8px 11px;color:white;font-size:21px}.brandlogo sup{position:absolute;top:1px;right:3px;font-size:10px;color:#e8bd66}.header-actions{display:flex;gap:7px;flex-wrap:wrap}.shell{height:calc(100dvh - 58px);min-height:550px;display:grid;grid-template-columns:275px minmax(0,1fr) 278px}.left-pane,.right-pane{overflow:auto;background:white;padding:15px;border-right:1px solid var(--line)}.right-pane{border-right:0;border-left:1px solid var(--line)}.section-title span{font-size:10px;color:#2384b4;letter-spacing:1.2px;font-weight:800}.section-title h2{font-size:17px;margin:5px 0;color:var(--navy)}.section-title p{font-size:11px;line-height:1.6;color:var(--muted);margin:0 0 15px}.upload-button{display:block;background:#eaf5fe;border:1px dashed #7eafd1;border-radius:10px;padding:13px;text-align:center;font-size:12px;font-weight:800;color:#186ca5;cursor:pointer}.muted{color:#72869c;font-size:11px;line-height:1.5;margin:9px 0}.panel{border:1px solid var(--line);border-radius:12px;padding:12px;margin:15px 0;background:#fcfdff}.panel h3{font-size:12px;color:#254c71;margin:2px 0 10px}.panel p{font-size:10px;color:var(--muted);line-height:1.5}.panel label{display:grid;gap:5px;margin:8px 0;font-size:11px;font-weight:700;color:#526e87}.panel input:not([type=range]):not([type=checkbox]),.panel select{width:100%;min-width:0;border:1px solid var(--line);padding:9px 6px;border-radius:8px;color:#264862;background:white}.panel input[type=range]{width:100%;accent-color:var(--blue)}.panel output{float:right;color:#1b72a6}.panel .check{display:flex;align-items:center;gap:8px}.panel .two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.panel .two button{min-width:0;font-size:11px}.stage{min-width:0;min-height:0;display:flex;flex-direction:column}.stagebar{display:flex;align-items:center;justify-content:space-between;background:#f8fbfe;border-bottom:1px solid var(--line);gap:12px;padding:11px 14px}.stagebar b{font-size:13px;display:block}.stagebar span{display:block;color:#7f93a8;font-size:10px;margin-top:4px}.mode-group{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.mode-group button{font-size:11px;padding:8px}.mode-group button.selected{background:#1b6bb0;border-color:#1b6bb0;color:white}.canvas-space{min-height:0;flex:1;overflow:auto;padding:18px;display:grid;place-items:center;background:repeating-conic-gradient(#eaf0f6 0 25%,#f2f6fa 0 50%) 0 0/22px 22px}.canvas-space #canvasShell{display:grid;place-items:center;max-width:100%;max-height:100%}#canvas{display:block;max-width:100%;max-height:calc(100dvh - 165px);width:auto;height:auto;object-fit:contain;background:white;box-shadow:0 10px 35px #112e4b3d;touch-action:none;cursor:crosshair}#placeholder{text-align:center;color:#73889b;padding:35px}#placeholder span{font-size:60px;color:#a1c6df}#placeholder h3{font-size:16px;color:#3e5b77}#placeholder p{font-size:12px}.stagefooter{background:#fff;display:flex;gap:18px;align-items:center;justify-content:space-between;padding:12px 15px;font-size:10px;color:#8295a9;border-top:1px solid var(--line)}#editStatus{white-space:nowrap;color:#227ba7;font-weight:800}.panel.note{background:#eff7ff;font-size:11px;color:#647d92;line-height:1.6}.toast{position:fixed;bottom:18px;right:18px;background:#183e63;color:#fff;padding:12px 15px;border-radius:9px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:10;max-width:450px}.toast.visible{opacity:1}
@media(max-width:1050px){.shell{grid-template-columns:240px minmax(0,1fr) 240px}.left-pane,.right-pane{padding:10px}}
@media(max-width:780px){.topbar{flex-wrap:wrap}.header-actions{width:100%;justify-content:space-between}.header-actions button{flex:1;font-size:10px}.shell{height:auto;min-height:0;display:flex;flex-direction:column}.left-pane,.right-pane{overflow:visible}.stage{min-height:420px}.stagebar{flex-wrap:wrap}.canvas-space{min-height:300px;padding:10px}.canvas-space #canvas{max-height:660px}.stagefooter{flex-wrap:wrap}.left-pane .panel,.right-pane .panel{max-width:700px}}
@media print{@page{size:A4;margin:0}body{background:white}.topbar,.left-pane,.right-pane,.stagebar,.stagefooter,#placeholder{display:none!important}.shell,.stage,.canvas-space,#canvasShell{display:block!important;height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important}#canvas{width:100%!important;max-width:100%!important;max-height:none!important;box-shadow:none!important}}
