:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,system-ui,sans-serif;color:#2e2724;background:#fcfaf8;font-synthesis:none;--muted: #716762;--line: #ede5df;--accent: #b44113;--soft: #fff0e6}*{box-sizing:border-box}body{margin:0;overflow:hidden}diagram-editor{display:grid;grid-template-rows:70px minmax(0,1fr) 37px;height:100dvh}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,svg.board:focus-visible{outline:2px solid #c75925;outline-offset:2px}.icon{width:18px;height:18px;display:block;flex:none}.topbar,.identity,.actions,.brand,.button{display:flex;align-items:center}.topbar{position:relative;z-index:5;justify-content:space-between;padding:0 21px;gap:18px;background:#fff;border-bottom:1px solid var(--line)}.identity{gap:20px;min-width:0}.brand{gap:10px;font-weight:800;font-size:16px;letter-spacing:-.45px;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;color:#fff;background:#bc4517;box-shadow:0 3px 8px #b64b1d3b}.brand-mark .icon{width:22px;height:22px}.top-divider{width:1px;height:31px;background:var(--line);flex:none}.document-title{min-width:0}.document-title label{display:block;margin:0 6px;color:var(--muted);font-size:11px;font-weight:600}.document-title input{border:1px solid transparent;border-radius:6px;width:min(29vw,310px);max-width:100%;padding:2px 5px;background:transparent;font-size:14px;font-weight:700;color:#2e2724;text-overflow:ellipsis}.document-title input:hover{border-color:var(--line)}.actions{gap:8px}.language-select{height:35px;padding:0 6px;border:1px solid #eae0da;border-radius:8px;background:#fff;color:inherit;font-size:13px;font-weight:650;cursor:pointer}.save-status{display:flex;align-items:center;gap:5px;white-space:nowrap;font-weight:600;color:var(--muted);font-size:12px;margin-right:7px}.save-status .icon{width:14px;height:14px}.save-status.saved{color:#08785e}.button{justify-content:center;gap:7px;height:35px;padding:0 11px;border:1px solid transparent;border-radius:8px;font-weight:650;white-space:nowrap;font-size:13px}.button .icon{width:16px;height:16px}.button.quiet{background:#fff;border-color:#eae0da}.button.quiet:hover,.icon-button:hover:not(:disabled){background:#fcf2eb}.button.primary{background:var(--accent);color:#fff;box-shadow:0 2px 5px #aa3b172c;padding-inline:13px}.button.primary:hover:not(:disabled){background:#95340f}.export-menu,.save-menu{position:relative}.export-menu .button .icon:last-child,.save-menu .button .icon:last-child{width:12px;height:12px;margin-left:1px}.dropdown{position:absolute;top:43px;right:0;width:max-content;min-width:156px;max-width:75vw;background:#fff;padding:5px;border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 35px #2f1e5e22}.dropdown button{display:block;border:0;background:transparent;border-radius:5px;width:100%;text-align:left;padding:8px;font-size:13px}.dropdown button:hover{background:var(--soft)}.workspace{display:grid;grid-template-columns:246px minmax(0,1fr) 252px;min-height:0}.shelf,.inspector{display:flex;flex-direction:column;min-height:0;background:#fff;z-index:3}.shelf{border-right:1px solid var(--line)}.inspector{border-left:1px solid var(--line)}.panel-heading{height:65px;padding:0 17px;display:flex;justify-content:space-between;align-items:center;flex:none}.panel-heading>div{display:flex;align-items:center;gap:9px}.panel-heading h1,.panel-heading h2{font-size:15px;margin:0;font-weight:800}.section-symbol{width:27px;height:27px;display:grid;place-items:center;border-radius:7px;background:var(--soft);color:var(--accent)}.section-symbol .icon{width:15px;height:15px}.searchbox{display:flex;align-items:center;gap:7px;height:36px;margin:0 15px 15px;padding:0 9px;border:1px solid #eee4dd;border-radius:8px;background:#fbf8f5;color:#77728b;flex:none}.searchbox .icon{width:16px;height:16px}.searchbox input{min-width:0;width:100%;border:0;outline:0;background:transparent;font-size:13px;color:#2e2724;padding:5px 0}.searchbox:focus-within{border-color:#c67548}.searchbox input:focus-visible{outline:0}.searchbox .clear{min-width:22px;width:22px;height:22px;padding:0}.categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 15px 17px}.categories button{display:flex;align-items:center;gap:4px;min-height:32px;border:1px solid #f0e7e1;border-radius:7px;background:#fff;padding:4px;font-size:12px;font-weight:650;color:#675a52;text-align:left;overflow-wrap:anywhere}.categories .icon{width:14px;height:14px}.categories button:hover,.categories button.current{color:var(--accent);border-color:#f3cfb7;background:#fdf0e7}.catalog{min-height:0;flex:1;overflow:auto;border-top:1px solid #f3ece7;padding:0 15px 18px}.category-heading{display:flex;align-items:center;justify-content:space-between;margin:16px 0 10px}.category-heading h2,.property-section h3{margin:0;font-size:13px;font-weight:750}.category-heading span{font-size:11px;color:var(--muted)}.component-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.component{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:6px;min-width:0;min-height:62px;padding:5px 3px;border:1px solid #eee4dc;background:#fff;border-radius:8px;color:#49445e;font-size:11px;font-weight:650;text-align:center;line-height:1.16}.component:hover{background:#fff5ed;border-color:#efc1a2}.component>span:last-child{max-width:100%;overflow-wrap:anywhere}.component[draggable=true]{cursor:grab}.component[draggable=true]:active{cursor:grabbing}.component-icon{height:25px;display:grid;place-items:center}.component-icon .icon{width:24px;height:24px}.component-icon img,.object-icon img{display:block;width:25px;height:25px;object-fit:contain}.component-icon.wide-art img{width:60px}.shelf-foot{border-top:1px solid var(--line);padding:12px 15px;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:6px}.shelf-foot .icon{width:14px;height:14px}.empty-search{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.stage{position:relative;overflow:hidden;background:#fcfaf8}.board{display:block;width:100%;height:100%;outline-offset:-3px!important;touch-action:none;-webkit-user-select:none;user-select:none}.board.grid{background-image:radial-gradient(circle,#e0d5ce 1px,transparent 1.25px)}.board text{pointer-events:none}.diagram-element{cursor:move}.diagram-edge{cursor:pointer}.resize-handle{cursor:nwse-resize}.marquee{fill:#d75e2325;stroke:#bf4816;stroke-width:1.25}.board.panning,.board.panning *{cursor:grab}.board.panning:active,.board.panning:active *{cursor:grabbing}.board.connecting:not(.panning),.board.connecting:not(.panning) .diagram-element{cursor:crosshair}.toolbar,.view-controls{position:absolute;z-index:2;display:flex;align-items:center;gap:3px;background:#fff;padding:5px;border:1px solid #ede2da;border-radius:11px;box-shadow:0 4px 14px #33236212}.toolbar{top:17px;left:50%;transform:translate(-50%)}.icon-button{width:33px;height:33px;padding:0;border:0;display:grid;place-items:center;border-radius:7px;background:transparent;color:#655751;flex:none}.icon-button.selected-tool{color:var(--accent);background:var(--soft)}.toolbar-divider{flex:none;width:1px;height:22px;background:#eee4de;margin:0 2px}.view-controls{bottom:15px;left:16px;gap:2px}.view-controls>span:not(.toolbar-divider){min-width:43px;text-align:center;font-weight:700;font-size:12px}.view-controls .icon-button{width:29px;height:28px}.minimap{position:absolute;z-index:2;bottom:15px;right:16px;display:block;width:117px;height:80px;border:1px solid #ede2da;padding:6px;background:#fff;border-radius:10px;box-shadow:0 4px 14px #33236212}.minimap:hover{border-color:#e7b48c}.minimap svg{display:block;width:100%;height:100%}.connection-hint{position:absolute;top:68px;left:50%;transform:translate(-50%);z-index:2;background:#fff;border:1px solid var(--line);border-radius:7px;padding:6px 9px;white-space:nowrap;font-size:12px}.connection-hint kbd{margin-left:7px}.empty-board{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:14px;text-align:center;padding:25px;pointer-events:none}.empty-board button{pointer-events:auto}.empty-board strong{color:#2e2724;font-size:19px}.empty-icon{border-radius:11px;background:var(--soft);color:var(--accent);display:grid;place-items:center;width:42px;height:42px}.inspector-content{overflow:auto;min-height:0}.object-heading{margin:0 15px 16px;display:flex;align-items:center;gap:9px;padding:9px;border:1px solid #ede8f4;background:#fcf9f6;border-radius:9px}.object-heading>div:last-child{min-width:0}.object-icon{display:grid;place-items:center;width:34px;height:34px;flex:none;color:var(--accent);background:var(--soft);border-radius:8px}.object-heading strong{display:block;font-size:13px;overflow-wrap:anywhere}.object-heading small{color:var(--muted);display:block;margin-top:2px;font-size:11px}.property-section{padding:14px 15px 15px;border-top:1px solid #f0e7e1}.property-section h3{margin-bottom:11px}.property-section label:not(.checkbox){display:grid;gap:5px;margin-bottom:9px;color:#5e5974;font-size:12px;font-weight:600}.property-section label:last-child{margin-bottom:0}.property-section input:not([type=checkbox]),.property-section select{border:1px solid #e9e4f0;background:#fff;border-radius:7px;min-width:0;width:100%;padding:7px 8px;color:#29253f;font-size:13px;font-weight:550}.field-caption{color:#5e5974;font-size:12px;font-weight:600}.swatches{display:flex;gap:6px;margin-top:7px;flex-wrap:wrap}.swatches button{width:24px;height:24px;border:1px solid transparent;border-radius:50%;background:transparent;display:grid;place-items:center;padding:0}.swatches button:hover,.swatches button.active{border-color:var(--swatch)}.swatches button span{width:15px;height:15px;border-radius:50%;background:var(--swatch)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.field-grid label{margin:0!important}.property-actions{padding:12px 15px;display:flex;justify-content:space-between;border-top:1px solid #f0e7e1}.danger{color:#ad345a}.empty-inspector{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;padding:24px 17px}.empty-inspector strong{font-size:14px}.empty-inspector p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}.checkbox{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}.checkbox input{accent-color:var(--accent)}.visibility-option{margin-bottom:12px;cursor:pointer}.statusbar{z-index:4;padding:0 17px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid var(--line);color:var(--muted);font-size:11px}.statusbar>div{display:flex;align-items:center;gap:9px}.statusbar strong{color:#49445e}.status-dot{width:7px;height:7px;border-radius:50%;background:#c9652f}.footer-divider{width:1px;height:12px;background:var(--line)}.footer-help{display:flex;align-items:center;gap:6px;padding:4px 0;background:transparent;border:0;color:inherit}.footer-help .icon{width:15px;height:15px}.toast{position:fixed;bottom:86px;left:50%;transform:translate(-50%);z-index:8;background:#442b20;color:#fff;border-radius:9px;padding:10px 15px;font-size:13px;max-width:90vw;box-shadow:0 5px 20px #442b2034}dialog{width:min(450px,calc(100vw - 30px));border:1px solid #e9e4f3;border-radius:15px;padding:17px 20px 20px;color:#2e2724;box-shadow:0 16px 70px #2f1e5e40;max-height:78vh}dialog::backdrop{background:#27203c55}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.modal-header h2{font-size:19px;margin:0}.modal-actions{display:flex;flex-wrap:wrap;gap:9px}.documents-heading{margin:16px 0 5px;font-size:14px}.modal-status{margin:5px 0 0;color:var(--muted);font-size:14px}.documents-list{display:grid;gap:6px;margin-top:12px}.documents-list:empty{margin-top:0}.documents-list button{display:flex;align-items:center;width:100%;gap:8px;padding:9px;background:#fcf9f6;border:1px solid var(--line);border-radius:8px;text-align:left}.documents-list button:hover{background:var(--soft)}.documents-list button span{flex:1;overflow-wrap:anywhere}.shortcuts{display:grid;grid-template-columns:1fr 1.25fr;margin:0;gap:9px;font-size:13px;align-items:center}.shortcuts dd{margin:0}kbd{display:inline-block;border:1px solid #e8e2f0;border-radius:4px;background:#f9f7fc;padding:1px 4px;font-size:11px;color:#57516a}.mobile-only{display:none}@media(max-width:1030px){.workspace{grid-template-columns:209px minmax(0,1fr) 216px}.identity{gap:11px}.topbar{padding-inline:13px}}@media(max-width:920px){.save-status{display:none}}@media(max-width:840px){.workspace{position:relative;display:block}.stage{height:100%}.shelf,.inspector{position:absolute;height:100%;width:min(250px,90vw);box-shadow:0 8px 18px #442b2026;display:none}.shelf{top:0;left:0}.inspector{top:0;right:0}.panel-open{display:flex}.mobile-only{display:grid}.button.mobile-only{display:flex}}@media(max-width:740px){.actions .button span,.export-menu .button .icon:last-child,.save-menu .button .icon:last-child{display:none}}@media(max-width:570px){diagram-editor{grid-template-rows:57px minmax(0,1fr) 33px}.topbar{padding-inline:8px;gap:4px}.identity{gap:5px}.brand>span:last-child,.top-divider,.document-title label,.footer-help span{display:none}.brand-mark{width:31px;height:31px}.document-title input{width:min(37vw,225px);font-size:13px}.button,.button.primary{padding-inline:7px}.actions{gap:4px}.toolbar{gap:1px}.toolbar .icon-button{width:29px;height:31px}.minimap{width:83px;height:59px}}@media(max-width:380px){.topbar{padding-inline:7px}.document-title input{width:max(70px,calc(100vw - 253px))}.actions{gap:3px}.actions .button{width:29px;padding:0}.language-select{width:65px;padding-inline:3px;font-size:11px}}.municipality-picker{margin:0 15px 12px;flex:none}.municipality-dialog{width:min(620px,calc(100vw - 30px))}.municipality-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.municipality-filters label{display:grid;gap:5px;font-size:13px;color:var(--muted)}.municipality-filters input,.municipality-filters select{min-width:0;width:100%;height:35px;padding:4px 8px;background:#fff;border:1px solid var(--line);border-radius:7px;color:inherit}.municipality-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(144px,1fr));gap:5px}.municipality-list button{display:flex;text-align:left;gap:6px;align-items:center;padding:5px;font-size:13px;border:1px solid var(--line);border-radius:6px;background:#fff}.municipality-list button:hover{background:var(--soft)}.municipality-list img{width:19px;height:19px;object-fit:contain;flex:none}.municipality-list small{color:var(--muted)}.more-municipalities,.clear-canton{margin-top:10px}.canton-settings input[type=color]{height:34px;cursor:pointer;padding:3px}.board:not(.panning):not(.connecting) .canton-region{cursor:pointer}
