*{box-sizing:border-box}body{margin:0;color:#20272a;font:13px system-ui,sans-serif;background:#fff}button,input,select{font:inherit;color:inherit}button{cursor:pointer;background:#fff;border:1px solid #cbd2d1;border-radius:5px;padding:7px 10px}button:hover{background:#e8f4f1}button:disabled{opacity:.45;cursor:default}button.primary{background:#198f80;color:#fff;border-color:#198f80}input,select{border:1px solid #cbd2d1;border-radius:4px;padding:6px;min-width:0;background:#fff}header{height:54px;display:flex;align-items:center;gap:8px;padding:7px 12px;overflow-x:auto;border-bottom:1px solid #d9dedd}header strong{font-size:18px;white-space:nowrap;margin-right:10px}header #title{width:200px;min-width:100px}#language{font:inherit;min-width:0}#save-status{color:#667176;white-space:nowrap;margin:auto 8px}main{display:flex;height:calc(100vh - 84px)}nav{width:76px;flex:none;border-right:1px solid #d9dedd;overflow:auto;padding:5px}.tool{width:100%;border:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;padding:5px 2px;min-height:54px;font-size:11px}.tool [aria-hidden=true]{font-size:22px;line-height:25px}#cursor-key{position:absolute;z-index:1;pointer-events:none;padding:1px 4px;border:1px solid #afbfbb;border-radius:3px;background:#fffffff0;color:#32564e;font:11px/1.3 monospace}.shortcut-lists{display:flex;flex-wrap:wrap;gap:0 2rem}.shortcut-lists dl div{display:flex;justify-content:space-between;gap:1rem;padding:2px 0}.shortcut-lists dd{margin:0}.selected,.layer.active{background:#d9eeea}#workspace{position:relative;flex:1;overflow:hidden;background:#fbfaf6;touch-action:none;min-width:0}#map,#overlay{position:absolute;inset:0;width:100%;height:100%}#map svg{width:100%;height:100%;display:block}#overlay{pointer-events:none;fill:#198f8033;stroke:#198f80;stroke-width:.08;stroke-dasharray:.2 .12}#hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#667176;text-align:center;width:max-content;max-width:calc(100% - 24px)}#hint button{color:#198f80}aside{width:270px;flex:none;overflow:auto;padding:14px;border-left:1px solid #d9dedd}h2{font-size:16px;margin:0 0 10px}label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:7px 0}label input:not([type=checkbox]),label select{width:130px}label input[type=color]{height:32px;padding:2px}hr{border:0;border-top:1px solid #d9dedd;margin:16px 0}.section-title,.button-row,.pair{display:flex;align-items:center;gap:5px}.section-title h2{margin:0;flex:1}.section-title button{border:0;font-size:20px;padding:0 5px}.layers{margin:10px 0}.layer{display:flex;border-bottom:1px solid #e4e8e7;border-radius:4px}.layer button{border:0;background:transparent;padding:7px}.layer-name{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis}.pair label{width:50%}.pair input{width:65px!important}footer{height:30px;border-top:1px solid #d9dedd;display:flex;align-items:center;gap:12px;padding:0 12px;color:#667176}footer #help{flex:1}footer button{padding:2px 8px}#error,#export-error{color:#a33;max-width:45%;overflow:hidden;text-overflow:ellipsis}dialog{border:1px solid #d9dedd;border-radius:8px;box-shadow:0 8px 40px #0003;max-width:min(850px,95vw);max-height:90vh}dialog::backdrop{background:#16252266}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.export-options{display:flex;gap:14px;flex-wrap:wrap}.export-options fieldset{display:flex;gap:10px;flex-wrap:wrap;border:1px solid #ddd}.export-options label{justify-content:start}#clean-preview{width:min(760px,80vw);height:min(55vh,500px);background:#eee;overflow:auto}#clean-preview svg{width:100%;height:100%}@media(max-width:1000px){header{gap:4px}header strong{font-size:15px}header #title{width:130px}aside{width:230px}}@media(max-width:700px){header{overflow:auto}header button{white-space:nowrap}main{position:relative;flex-direction:column}nav{width:100%;height:60px;display:flex;overflow:auto;border-bottom:1px solid #ddd}.tool{min-width:62px}aside{position:absolute;right:0;top:60px;bottom:0;width:210px;background:#fff;opacity:.96}#workspace{margin-right:210px}footer #help{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}@media(min-width:701px){#inspector.collapsed{display:none}}@media(max-width:700px){#panel-toggle{display:block;white-space:nowrap}aside{display:none;box-shadow:-5px 0 18px #0002;z-index:2}aside.open{display:block}#workspace{margin-right:0}}@media(max-width:700px){body{height:100dvh;display:flex;flex-direction:column}header{height:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;overflow:visible;flex:none}header strong{grid-column:1;margin:0;font-size:13px;white-space:normal}header #title{grid-column:3 / 5;width:100%;min-width:0}header button{padding:7px 3px;min-height:36px;font-size:12px}#save-status{margin:0;white-space:normal;font-size:11px}#recovery-actions{grid-column:1 / -1}main{height:auto;flex:1;min-height:0}footer{flex:none}}@media(max-width:700px){#app{height:100dvh;display:flex;flex-direction:column}#workspace{min-height:0}}@media(max-width:700px){header strong,header #title{order:0}#undo{order:1}#redo{order:2}#new-map{order:3}#open{order:4}#save{order:5}#preview{order:6}#export{order:7}#panel-toggle,#reference-guide-toggle{order:8}#language{order:0;grid-column:2;width:100%;min-height:36px;font-size:12px}#save-status{order:9;grid-column:1 / -1}#recovery-actions{order:10}}.palette-heading{font-weight:600;margin:12px 0 6px}.style-palette,.detail-palette{display:grid;gap:5px}.style-palette{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-palette{grid-template-columns:repeat(3,minmax(0,1fr))}.style-swatch,.detail-swatch{min-width:0;padding:4px;line-height:1.15;font-size:11px}.style-swatch[aria-pressed=true],.detail-swatch[aria-pressed=true]{border-color:#198f80;background:#d9eeea;box-shadow:inset 0 0 0 1px #198f80}.style-swatch:focus-visible,.detail-swatch:focus-visible{outline:2px solid #075e56;outline-offset:2px}.style-art,.detail-swatch span{display:block;background:#f8f8f6;border-radius:2px}.style-art svg{width:100%;height:42px;display:block}.detail-swatch svg{width:100%;height:37px;display:block}.detail-swatch small{display:block;font-size:inherit}#polygon-guide{position:absolute;z-index:1;top:10px;left:10px;max-width:calc(100% - 20px);display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 8px;background:#ffffffed;border:1px solid #d9dedd;border-radius:5px;color:#34413f;font-size:12px}#polygon-feedback:not(:empty){flex-basis:100%;color:#435c56;line-height:1.35}#polygon-guide[hidden]{display:none}#polygon-guide button{white-space:nowrap;min-height:36px}@media(max-width:700px){#polygon-guide{flex-wrap:wrap}#polygon-guide button{min-height:40px}}.detail-help{color:#667176;font-size:12px;line-height:1.4}#reference-guide-layer{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}#overlay{z-index:2}#reference-guide-panel{position:absolute;z-index:4;top:8px;right:8px;width:245px;max-height:calc(100% - 16px);overflow:auto;padding:12px;border:1px solid #cbd2d1;border-radius:6px;background:#fff;box-shadow:0 3px 12px #0002}#reference-guide-panel[hidden]{display:none}#reference-guide-panel label{display:block;margin:7px 0}#reference-guide-panel input:not([type=checkbox]):not([type=range]){display:block;width:100%}#reference-guide-panel p{margin:6px 0;color:#596563;font-size:12px}#reference-guide-status{display:block;color:#425653}#reference-guide-pick-banner{position:absolute;z-index:4;top:8px;left:50%;transform:translate(-50%);max-width:calc(100% - 16px);padding:7px 10px;background:#fff;border:1px solid #cbd2d1;border-radius:6px;box-shadow:0 3px 12px #0002}#reference-guide-pick-banner[hidden]{display:none}@media(max-width:700px){#reference-guide-panel{width:min(245px,calc(100% - 16px))}}.object-category{margin:8px 0;border:1px solid #d7dfdc;border-radius:6px}.object-category summary{cursor:pointer;font-weight:600;padding:9px}.object-category summary:focus-visible{outline:2px solid #075e56;outline-offset:2px}.object-category .detail-palette{padding:0 6px 6px}
