:root{--navy:#243d37;--navy2:#2c4a45;--teal:#cdde66;--teal2:#b7ca4f;--cream:#f3ebd9;--bg:#edf1ec;--line:#d5ddd6;--text:#243d37;--muted:#718078;--white:#fff;--danger:#c8463d}
*{box-sizing:border-box}html,body{height:100%;margin:0;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);overflow:hidden}button,.button,input{font:inherit}button,.button{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:7px;padding:8px 11px;cursor:pointer;transition:.15s}button:hover,.button:hover{border-color:#9eb0b9;background:#f8fafb}button:disabled{opacity:.45;cursor:default}.primary{background:var(--teal);border-color:var(--teal);color:#fff}.primary:hover{background:var(--teal2);border-color:var(--teal2)}.topbar{height:64px;background:var(--navy);display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#fff;box-shadow:0 2px 10px #001a2733;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:10px}.brand-mark{width:32px;height:32px;border-radius:8px;background:var(--teal);display:grid;place-items:center;font-weight:800}.brand div{display:flex;flex-direction:column}.brand small{color:#a9bcc6;font-size:11px;margin-top:2px}.file-actions{display:flex;align-items:center;gap:7px}.file-actions button,.file-actions .button{background:var(--navy2);border-color:#31566a;color:#fff}.file-actions .primary{background:var(--teal);border-color:var(--teal)}.divider{height:26px;width:1px;background:#426073;margin:0 3px}.export-wrap{position:relative}.menu{position:absolute;right:0;top:42px;width:165px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 30px #102c3d33;border-radius:8px;padding:5px;z-index:20}.menu button{width:100%;border:0;color:var(--text);background:#fff;text-align:left}.hidden{display:none!important}main{height:calc(100vh - 100px);display:grid;grid-template-columns:76px minmax(0,1fr) 258px}.tools{background:#fff;border-right:1px solid var(--line);padding:10px 8px;display:flex;flex-direction:column;gap:5px;overflow-y:auto}.tool{height:56px;padding:5px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;border-color:transparent;color:#46616e}.tool span{font-size:20px;line-height:22px}.tool small{font-size:10px}.tool:hover,.tool.active{background:#e7f7f6;color:var(--teal2);border-color:#bce6e3}.tool-rule{height:1px;background:var(--line);margin:3px 8px}.workspace-shell{position:relative;overflow:hidden;background:#dfe7ea;background-image:linear-gradient(45deg,#d8e1e4 25%,transparent 25%),linear-gradient(-45deg,#d8e1e4 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d8e1e4 75%),linear-gradient(-45deg,transparent 75%,#d8e1e4 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0}.empty-state{position:absolute;inset:0;margin:auto;width:min(450px,80%);height:max-content;text-align:center;padding:48px;background:#f8fbfcd9;backdrop-filter:blur(8px);border:1px dashed #a8bac2;border-radius:16px}.empty-icon{font-size:52px;color:var(--teal)}.empty-state h1{font-size:24px;margin:15px 0 7px}.empty-state p{color:var(--muted);margin:0 0 22px}.large{display:inline-block;padding:11px 18px}.viewport{width:100%;height:100%;position:relative;overflow:hidden;cursor:crosshair}.stage{position:absolute;transform-origin:0 0;box-shadow:0 5px 22px #17344355;background:white;user-select:none}.stage img,.stage svg{position:absolute;inset:0;width:100%;height:100%;display:block}.stage svg{overflow:visible;touch-action:none}.drop-hint{position:absolute;inset:20px;border:3px dashed var(--teal);background:#e5fbf9df;z-index:30;display:grid!important;place-items:center;font-size:22px;font-weight:700;color:var(--teal2);border-radius:16px}.properties{background:#fff;border-left:1px solid var(--line);padding:17px 16px;overflow-y:auto}.panel-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:15px}.panel-head span{font-size:11px;color:var(--muted);background:#eef3f5;padding:4px 7px;border-radius:10px}.properties label{display:block;font-size:12px;font-weight:650;margin:15px 0;color:#46616e}.properties output{float:right;color:var(--muted);font-weight:500}.properties input[type=range]{width:100%;accent-color:var(--teal);margin-top:10px}.colour-row{display:flex;margin-top:8px}.colour-row input[type=color]{width:42px;height:36px;border:1px solid var(--line);padding:3px;border-radius:7px 0 0 7px;background:#fff}.colour-row input[type=text],#colourText{width:100%;height:36px;border:1px solid var(--line);border-left:0;border-radius:0 7px 7px 0;padding:0 9px;text-transform:uppercase;color:var(--text)}.danger{width:100%;color:var(--danger);border-color:#e8bfc4;margin:13px 0}.help-card{background:#e8f7f6;border-left:3px solid var(--teal);border-radius:6px;padding:12px;margin-top:8px}.help-card strong{font-size:12px}.help-card p,.tips p{font-size:11px;line-height:1.5;margin:5px 0 0;color:#58717d}.tips{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}.tips strong{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#7b8e98}footer{height:36px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 15px;font-size:11px;color:var(--muted)}#imageInfo{text-align:right}.zoom-controls{display:flex;align-items:center;gap:4px}.zoom-controls button{padding:2px 8px;border:0}.zoom-controls span{width:44px;text-align:center}#toast{position:fixed;bottom:50px;left:50%;translate:-50% 20px;background:var(--navy);color:#fff;padding:9px 15px;border-radius:7px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:50}#toast.show{opacity:1;translate:-50% 0}.object{cursor:pointer}.selected-outline{filter:drop-shadow(0 0 2px #fff)}.vertex{cursor:move}.midpoint{cursor:copy}.handle-label{font-size:9px;font-weight:700;fill:#fff;pointer-events:none;text-anchor:middle;dominant-baseline:central}.text-object{paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}.pin-shape{filter:drop-shadow(0 1px 1px #0005)}
@media(max-width:800px){.properties{display:none}main{grid-template-columns:67px 1fr}.file-actions button:not(.primary),.file-actions .button:not(.primary),.divider{display:none}.brand small{display:none}}
.drop-hint.hidden{display:none!important}
.object-actions{grid-template-columns:1fr}
.layer-style{width:17px;height:17px;border:4px solid;border-radius:4px;box-shadow:0 0 0 1px #9eaaa3}.layer-row.dragging{opacity:.45}.layer-row.drop-target,.group-head.drop-target{outline:2px solid var(--teal);outline-offset:1px}.layer-row.moved{animation:layerMoved .65s ease}.layer-group{border:1px solid #bfcac2;border-radius:8px;background:#f5f7f3;padding:4px}.group-head{display:grid;grid-template-columns:25px 1fr 25px;gap:3px;align-items:center;margin-bottom:4px}.group-head button{border:0;padding:3px;background:transparent}.group-head input{height:28px!important;margin:0!important;border:0!important;background:transparent!important;font-size:11px;font-weight:700}.group-members{display:flex;flex-direction:column;gap:3px;padding-left:7px;border-left:3px solid var(--teal)}
@keyframes layerMoved{0%{transform:translateY(-8px);background:#cdde66}100%{transform:translateY(0);background:#fff}}
.tool-svg{width:23px;height:23px;display:grid!important;place-items:center}.tool-svg svg{width:22px;height:22px;fill:currentColor;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}.tool-svg circle{fill:#fff;stroke:none}.multi-selected{animation:selectionPulse 1.15s ease-in-out infinite;filter:drop-shadow(0 0 3px #cdde66) drop-shadow(0 0 7px #243d37)}.multi-selected .pin-shape,.multi-selected circle{filter:drop-shadow(0 0 4px #cdde66)}
@keyframes selectionPulse{0%,100%{opacity:1}50%{opacity:.68}}
.tool-section{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:#899991;text-align:center;border-top:1px solid var(--line);padding-top:7px;margin:3px 3px 0}.properties>#selectionOptions{background:#f5f7ee;border:1px solid #dbe4ad;border-radius:8px;padding:0 10px 10px;margin-bottom:14px}.properties>#selectionOptions label:first-child{margin-top:10px}.name-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.properties>#selectionOptions .name-actions button{width:100%;font-size:16px;padding:5px}.properties>#selectionOptions .name-actions button:first-child{background:var(--teal);border-color:var(--teal);color:var(--navy)}

/* HSG palette and compact polygon controls */
.brand-mark,.primary,.file-actions .primary{color:var(--navy);font-weight:750}.brand small{color:#c5d1c9}.file-actions button,.file-actions .button{border-color:#49645e}.primary:hover,.file-actions .primary:hover{background:var(--teal2);border-color:var(--teal2);color:var(--navy)}
.polygon-group{border:1px solid #dce4dd;border-radius:9px;padding:3px;background:#f7f9f6}.polygon-group .polygon-main{width:100%;border:0}.polygon-modes{display:grid;grid-template-columns:1fr 1fr;gap:3px}.polygon-modes button{padding:5px 2px;border:0;border-radius:5px;background:#e8eee9;color:#40554f;font-size:9px}.polygon-modes button:hover,.polygon-modes button.active{background:var(--teal);color:var(--navy)}
.palette-section{margin:10px 0}.palette-section>span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:6px}.swatches{display:flex;gap:6px;flex-wrap:wrap;min-height:25px}.swatch{width:25px;height:25px;padding:0;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #c7d1ca}.swatch.active{box-shadow:0 0 0 2px var(--navy)}.swatch.empty{background:repeating-linear-gradient(45deg,#edf1ec,#edf1ec 4px,#fff 4px,#fff 8px);cursor:default}
.toggle-row{display:flex!important;align-items:center;justify-content:space-between}.toggle-row input{accent-color:var(--navy);width:17px;height:17px}.properties input[type=text]{width:100%;height:36px;border:1px solid var(--line);border-radius:7px;padding:0 9px;margin-top:7px;color:var(--text)}
.tool:hover,.tool.active{background:#eef3d5;color:var(--navy);border-color:#d5df96}.polygon-modes button:hover,.polygon-modes button.active{background:var(--teal);color:var(--navy)}
.finish-draft{position:absolute;z-index:35;width:38px;height:38px;border-radius:50%;padding:0;background:var(--teal);color:var(--navy);font-size:20px;font-weight:800;border:3px solid #fff;box-shadow:0 3px 12px #243d3766}
.properties select{width:100%;height:36px;margin-top:7px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);padding:0 8px}.properties input[type=color]:not(#colour){width:100%;height:36px;margin-top:7px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:3px}.range-stepper{display:grid;grid-template-columns:30px 1fr 30px;align-items:center;gap:5px;margin-top:8px}.range-stepper input{margin:0!important}.range-stepper button{padding:3px 0;height:28px;font-weight:800}.field-note{font-size:10px;color:var(--muted);line-height:1.4;margin:-7px 0 12px}.object-actions{display:grid;grid-template-columns:1fr;gap:6px;margin-top:14px}.image-actions{display:grid;grid-template-columns:1fr auto auto;gap:5px;align-items:center;border-top:1px solid var(--line);padding:14px 0}.image-actions strong{font-size:12px}.layers-panel{border-top:1px solid var(--line);padding-top:14px;margin-top:3px}.layers-panel .panel-head{margin-bottom:8px}.layer-bulk-actions{display:grid;grid-template-columns:1fr repeat(4,30px);gap:4px;margin-bottom:7px}.layer-bulk-actions button{height:29px;padding:2px;font-size:11px}.layer-bulk-actions .danger{width:auto;margin:0;color:var(--danger)}.layers-list{display:flex;flex-direction:column;gap:4px;max-height:260px;overflow:auto}.layer-row{display:grid;grid-template-columns:22px minmax(54px,1fr) repeat(5,22px);gap:2px;align-items:center;border:1px solid var(--line);border-radius:6px;padding:4px 3px;background:#fff}.layer-row.selected{background:#f2f6da;border-color:#c4d467}.layer-row.grouped{border-left:4px solid var(--navy)}.layer-row.layer-hidden{opacity:.55}.layer-style{display:grid;place-items:center;color:#fff;font-size:11px;font-weight:800;text-shadow:0 1px 2px #000}.layer-name{border:0;background:transparent;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 2px;font-size:11px}.layer-row>button:not(.layer-name){padding:2px 0;border:0;font-size:11px;background:transparent}.layer-row .layer-delete{color:var(--danger);font-size:16px!important}.layer-edit{display:grid;grid-template-columns:minmax(42px,1fr) 21px 21px;gap:2px;grid-column:2/-1}.layer-edit input{width:100%;min-width:0;height:25px;border:1px solid var(--teal2);border-radius:4px;padding:2px 5px;font-size:11px}.layer-edit button{border:0;padding:0;height:25px}.layer-check{accent-color:var(--navy)}.empty-layers{font-size:11px;color:var(--muted);text-align:center}.pin-label{paint-order:stroke;stroke:#fff;stroke-width:3px;font-weight:700}.annotation-label{paint-order:stroke;stroke:#fff;stroke-width:3px;font-weight:700}.swatch-menu{position:fixed;z-index:80;background:#fff;border:1px solid var(--line);box-shadow:0 5px 20px #243d3744;padding:4px;border-radius:6px}.swatch-menu button{border:0;color:var(--danger);font-size:11px}.crop-draft{fill:#243d3720;stroke:#cdde66;stroke-width:3;stroke-dasharray:8 5}
.modal{position:fixed;inset:0 0 36px;z-index:100;background:#152d2866;display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}.modal-card{width:min(430px,100%);max-height:calc(100vh - 76px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px;box-shadow:0 18px 55px #172f2966}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:14px}.modal-head>div{display:flex;flex-direction:column;gap:3px}.modal-head small,.settings-note,.settings-label span{font-size:11px;color:var(--muted)}.modal-head button{border:0;padding:1px 7px;font-size:23px;line-height:1;background:transparent}.modal-card>label{display:block;font-size:12px;font-weight:700;color:#46616e}.settings-note{line-height:1.45;margin:7px 0 19px}.settings-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:12px}.favourite-editor{display:flex;flex-wrap:wrap;gap:8px;min-height:35px;padding:10px;background:#f5f7f3;border:1px solid var(--line);border-radius:8px}.favourite-chip{position:relative;width:31px;height:31px}.favourite-chip .swatch{width:31px;height:31px}.favourite-chip .remove-favourite{position:absolute;right:-5px;top:-6px;width:16px;height:16px;border:0;border-radius:50%;padding:0;background:var(--navy);color:#fff;font-size:11px;line-height:16px}.add-favourite{display:grid;grid-template-columns:44px 1fr;gap:7px;margin-top:10px}.add-favourite input{width:44px;height:36px;padding:3px;border:1px solid var(--line);border-radius:7px;background:#fff}.quiet-button{width:100%;margin-top:10px;background:#f8faf7}.modal-actions{display:flex;justify-content:flex-end;gap:7px;border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.modal-actions .primary{color:var(--navy)}#toast{z-index:130}
.palette-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;margin:-4px 0 8px;padding:7px 9px;background:#f5f7f3;border-color:#dde4de;font-size:11px;font-weight:700}.option-label{display:block;font-size:12px;font-weight:650;color:#46616e;margin:14px 0 7px}.pin-types{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.pin-types button{height:42px;padding:5px;color:#536b64}.pin-types button.active{background:#eef3d5;border-color:var(--teal2);color:var(--navy)}.pin-types svg{width:24px;height:28px;fill:currentColor;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.pin-types svg circle{fill:#fff}.pin-types button[data-pin-type=flag] svg,.pin-types button[data-pin-type=target] svg{fill:none}.pin-types button[data-pin-type=target] svg circle:first-child{fill:currentColor}.pin-types button[data-pin-type=target] svg circle:nth-child(2){fill:#fff}
.layer-style{width:20px;height:20px;border-width:2px}
.icon-label{display:inline-flex;align-items:center;justify-content:center;gap:6px}.action-icon{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.rotate-icon{width:20px;height:20px}.rotate-icon rect{stroke-width:1.6}
.layer-eye-icon{width:16px;height:16px;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.edge-bypassed{color:var(--muted);opacity:.72}.edge-bypassed span::after{content:' (Shift)';font-weight:500}
.select-group{border:1px solid transparent;border-radius:9px;padding:3px}.select-group .select-main{width:100%;border:0}.select-actions{display:grid;grid-template-columns:1fr 1fr;gap:3px}.select-actions button{padding:5px 2px;border:0;border-radius:5px;background:#e8eee9;color:var(--navy);font-size:14px;font-weight:800}.select-actions button:first-child{background:var(--teal)}.select-actions button:last-child{background:#faecee;color:var(--danger)}
.select-actions button.confirm-delete{background:var(--danger);color:#fff;animation:selectionPulse .8s ease-in-out infinite}
.rotation-handle{cursor:grab}.rotation-handle:active{cursor:grabbing}

/* Hawk Services Group masthead */
.brand{gap:11px;min-width:245px}
.brand-logo-panel{width:96px;height:48px;display:grid;place-items:center;padding:5px 8px;border:1px solid #4b665d;border-radius:9px;background:#1c332e;box-shadow:inset 0 1px 0 #ffffff10}
.brand-logo-panel img{display:block;width:100%;height:100%;object-fit:contain}
.brand-copy{display:flex;flex-direction:column;padding-left:11px;border-left:1px solid #4b665d}
.brand-copy strong{font-size:14px;line-height:1.1}
.brand-copy small{color:#c5d1c9;font-size:10px;margin-top:3px}
@media(max-width:1040px){.brand-copy{display:none}.brand{min-width:auto}.brand-logo-panel{width:88px}}
@media(max-width:800px){.brand-logo-panel{width:80px}}
