:root{font-family:"Segoe UI",Arial,sans-serif;color:#203c48;background:#f4f7f8;--teal:#087878;--line:#dfe8eb;--muted:#738891}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{background:white;color:inherit;border:1px solid var(--line);border-radius:7px;min-height:36px;padding:8px 11px;font-size:13px;cursor:pointer}button:hover{border-color:#97c6bf;background:#f0f7f5}button:disabled{opacity:.38;cursor:default}.primary{background:var(--teal);border-color:var(--teal);color:white}.primary:hover{background:#066363;color:white}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #40a99c;outline-offset:2px}input,select{min-width:0}input[type=text],input[type=number],select{border:1px solid var(--line);background:#f8fafb;border-radius:6px;padding:9px 10px;width:100%;color:#23414b;font-size:13px}input[type=color]{border:0;padding:0;background:none;width:32px;height:30px;cursor:pointer;flex:none}input[type=checkbox],input[type=range]{accent-color:var(--teal)}input[type=range]{width:100%}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border-bottom:1px solid var(--line);padding:17px 24px;min-height:82px}.brand{display:flex;gap:13px;align-items:center}.brand svg{width:36px;fill:var(--teal)}.brand .gold{fill:#e9ac52}.brand h1{font-size:24px;letter-spacing:-.7px;margin:0;font-weight:650}.brand p{font-size:12px;color:var(--muted);margin:4px 0 0}.header-actions{display:flex;gap:7px;align-items:center}#saveStatus{font-size:11px;color:var(--muted);margin-right:12px;max-width:160px}.studio{display:grid;grid-template-columns:200px minmax(350px,1fr) 278px;height:calc(100dvh - 123px);min-height:770px}.panel{min-width:0;background:white;padding:22px 17px;overflow:auto}.tools-panel{border-right:1px solid var(--line)}.reference-panel{border-left:1px solid var(--line)}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#6c838c;font-weight:700;margin-bottom:16px}.tools{display:grid;gap:5px}.tools button{display:flex;align-items:center;text-align:left;gap:10px;border-color:transparent;background:transparent;padding:10px 8px;font-size:14px}.tool-icon{font-family:Arial;font-size:24px;width:24px;text-align:center;line-height:23px}kbd{margin-left:auto;color:#92a3aa;font:10px Arial}.tools button.active,.segmented button.active{background:#e4f2ee;border-color:#b9dbd2;color:#006c64}.field-label{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;font-weight:600;margin:16px 0 9px}.field-label span,.field-label output{font-size:10px;color:var(--muted);font-weight:400}.segmented{display:flex;gap:6px}.segmented button{flex:1}.board-settings{border-block:1px solid var(--line);padding:20px 0 10px;margin:23px 0 18px}.board-settings .eyebrow{margin-bottom:13px}.field-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px;margin:11px 0}.field-pair label{font-size:11px;color:#637d87}.field-pair input,.field-pair select{display:block;margin-top:6px}.wide{width:100%}.helper{font-size:11px;color:#7b8e96;line-height:1.65;margin:9px 0 12px}.check{display:flex;gap:8px;align-items:center;font-size:12px;line-height:1.5;margin:13px 0;cursor:pointer}.check input{margin:0;width:15px;height:15px;flex:none}.color-value{display:flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:white}.color-value output{font-size:12px;letter-spacing:.6px}.color-value input[type=text]{border:0;background:transparent;letter-spacing:.5px;padding:5px;width:93px}.guide{font-size:12px;line-height:1.65;margin-top:22px;color:#6d858e}.guide summary{color:#284954;cursor:pointer}.workspace{min-width:0;display:flex;flex-direction:column;padding:15px 20px 17px;background:radial-gradient(#d1dde1 .65px,transparent .65px) 0 0/13px 13px}.workspace-top{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:12px;min-height:34px}.workspace-top strong{font-weight:600}.workspace-top span{color:#7b929a;font-size:11px}.selection-bar{display:flex;gap:8px;align-items:center;justify-content:space-between;min-height:42px;margin-bottom:7px}.selection-bar>span{font-size:11px;color:#78909a;white-space:nowrap}.selection-bar>div{display:flex;flex-wrap:wrap;gap:3px}.selection-bar button{padding:5px 7px;min-height:29px;font-size:11px;background:#ffffffc9}.viewport{position:relative;flex:1;min-height:270px;overflow:hidden;touch-action:none;overscroll-behavior:contain}#board{display:block;width:100%;height:100%;touch-action:none;outline:none;cursor:crosshair}#emptyHint{position:absolute;bottom:6px;left:0;right:0;text-align:center;font-size:11px;color:#91a0a7;pointer-events:none}.view-bar{display:flex;justify-content:space-between;align-items:center;min-height:48px;gap:8px}#toolHint{font-size:11px;color:#6f8790;max-width:320px}.zoom-controls{display:flex;align-items:center;background:#fff;border:1px solid var(--line);border-radius:7px;padding:2px;flex:none}.zoom-controls button{padding:5px 8px;border:0;min-height:28px;font-size:11px}.zoom-controls output{font-size:11px;min-width:40px;text-align:center}.colors-panel{display:flex;gap:18px;flex-wrap:wrap;align-items:center;background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px 15px}.active-color>label,.palette-heading>label,.small-label{display:block;font-size:9px;color:#7a8b92;letter-spacing:1.1px;font-weight:700;margin-bottom:7px}.palette-area{flex:1;min-width:215px}.palette-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.palette-heading>label{margin:0}.palette-heading select{width:140px;border:0;background:#eff6f4;padding:4px 7px;font-size:11px}.swatches{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.swatches button{width:29px;height:29px;min-height:29px;padding:0;border:3px solid white;box-shadow:0 0 0 1px #d7e0e2;border-radius:6px}.swatches button[aria-pressed=true]{box-shadow:0 0 0 2px #244e58}.small.swatches button{width:20px;height:20px;min-height:20px;border-width:2px}.quick-colors{display:flex;gap:17px;width:100%;border-top:1px solid #edf1f2;padding-top:10px}.quick-colors>div{display:flex;align-items:center;gap:10px}.small-label{margin:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:13px}.section-heading h2{font-size:14px;font-weight:600;margin:0}.section-heading span{font-size:10px;color:#8b9ba2}.preview-frame{height:174px;background:#f2f6f7;border:1px solid var(--line);border-radius:8px;padding:10px;display:flex;align-items:center;justify-content:center}#preview{max-width:100%;max-height:100%;image-rendering:pixelated;box-shadow:0 2px 7px #173e4b10}.reference-section{margin-top:25px;border-top:1px solid var(--line);padding-top:22px}.reference-viewport{height:226px;border:1px dashed #c6d6dc;border-radius:8px;background:#f6f9fa;position:relative;overflow:hidden;touch-action:none}#referenceCanvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}#referenceEmpty{text-align:center;padding:20px 6px}#referenceEmpty>span{font-size:30px;color:#9cb2ba}#referenceEmpty>p{font-size:13px;margin:7px 0}#referenceEmpty .helper{font-size:11px;line-height:1.6;margin:7px 0 13px}.reference-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:9px}.reference-actions button{min-height:29px;padding:5px 7px;font-size:11px}.ref-color input[type=color]{width:100%;border:1px solid var(--line);border-radius:5px}.reference-note{font-size:10px;color:#85969d;line-height:1.7;padding:10px 0 0}#alignment{font-size:11px;line-height:1.6;color:#516f79;margin-top:12px}#alignment summary{cursor:pointer}.groups-section{border-top:1px solid var(--line);padding-top:15px;margin-top:20px}#groupChips{display:flex;flex-wrap:wrap;gap:5px}#groupChips button{font-size:11px;min-height:28px;padding:5px 7px}#groupChips button.active{background:#e3f1ed;border-color:#62a89d}.transform-bar{display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #b1d6cc;background:#edf7f3;border-radius:7px;font-size:12px}.transform-bar span{flex:1}.transform-bar button{font-size:12px;padding:5px 10px;min-height:30px}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:41px;border-top:1px solid var(--line);background:white;padding:11px 24px;font-size:10px;color:#8b9da4}#toast{position:fixed;left:50%;bottom:65px;transform:translateX(-50%);z-index:80;background:#204852;color:white;border-radius:9px;padding:13px 20px;font-size:13px;max-width:90vw;box-shadow:0 5px 25px #173c4a25;opacity:0;pointer-events:none}#toast.visible{opacity:1}dialog{border:1px solid var(--line);border-radius:14px;color:inherit;width:420px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:26px;box-shadow:0 20px 80px #173c4a25}dialog::backdrop{background:#173b4a55;backdrop-filter:blur(3px)}dialog h2{font-size:23px;letter-spacing:-.5px;margin:8px 0 18px}dialog p{font-size:13px;line-height:1.65;color:#70878f}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.export-dialog{width:850px;padding:0}.export-dialog form{display:grid;grid-template-columns:330px 1fr}.export-settings{padding:27px}.export-settings>label{display:block;font-size:12px;margin:13px 0 7px}.export-settings>.check{display:flex}.export-settings label select{display:block;margin-top:7px}.export-preview{background:#eaf0f1;padding:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-left:1px solid var(--line)}#exportPreview{max-width:100%;max-height:520px;width:auto;box-shadow:0 5px 30px #163b491a}#resizePreview{display:block;max-width:100%;height:180px;object-fit:contain;margin:15px auto;border:1px solid var(--line);image-rendering:pixelated}[hidden]{display:none!important}
.transform-bar{min-height:46px}.transform-bar[hidden]{display:flex!important;visibility:hidden;pointer-events:none}
.reference-dialog{width:1200px;padding:0;overflow:hidden;height:min(850px,92dvh);max-height:92dvh}.reference-dialog[open]{display:flex;flex-direction:column}.reference-editor-header{padding:20px 24px 14px;display:flex;gap:25px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.reference-editor-header .eyebrow{margin:0}.reference-editor-header h2{margin:8px 0 0}.reference-editor-body{display:grid;grid-template-columns:minmax(0,1fr) 265px;min-height:0;flex:1}.reference-editor-main{display:flex;flex-direction:column;min-height:0;padding:15px;background:#eef3f4}.editor-toolbar{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.editor-toolbar .segmented button{white-space:nowrap}.editor-toolbar button[aria-pressed=true]{background:#e0f1eb;border-color:#087878;color:#08645d}#referenceEditorViewport{flex:1;min-height:160px;overflow:hidden;background:#e2e9ec;border-radius:8px;touch-action:none;overscroll-behavior:contain}#referenceEditorCanvas{display:block;width:100%;height:100%;touch-action:none;cursor:move}.reference-editor-main>.helper{margin:10px 0 0}.reference-editor-settings{padding:18px;overflow:auto;overscroll-behavior:contain}.reference-editor-settings .eyebrow{margin-bottom:10px}.reference-editor-settings button{font-size:12px}.reference-editor-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid var(--line);padding:12px 24px}.reference-editor-footer .dialog-actions{margin:0}.reference-editor-footer .helper{margin:0}.header-actions{flex-wrap:wrap;justify-content:flex-end}.topbar{flex-wrap:wrap}#saveStatus{display:inline-block!important}
@media(max-width:800px){.header-actions #saveStatus{order:2;max-width:none;flex-basis:100%;margin:0}.header-actions button{flex:1 1 auto}.reference-editor-header{padding:15px}.reference-editor-header h2{font-size:19px}.reference-editor-header>p{display:none}.reference-editor-body{grid-template-columns:1fr;overflow:auto;display:block}.reference-editor-main{height:46dvh;min-height:290px}.reference-editor-settings{overflow:visible;padding:16px}.reference-editor-settings>.field-pair{margin-top:0}.reference-editor-footer{padding:12px 15px}.reference-editor-footer>.helper{font-size:10px;max-width:50%}.reference-dialog{height:94dvh;max-height:94dvh}.editor-toolbar{gap:6px}.editor-toolbar button{font-size:11px;padding:6px 8px}.reference-editor-main>.helper{font-size:10px}}
@media(min-width:1600px){.studio{grid-template-columns:220px minmax(350px,1fr) 305px}.panel{padding:25px 21px}}
@media(max-width:1150px){.studio{grid-template-columns:175px minmax(300px,1fr) 235px}.panel{padding:18px 12px}.workspace{padding-inline:12px}.topbar{padding-inline:17px}.brand h1{font-size:21px}.header-actions #saveStatus{display:none}.tools kbd{display:none}.tools button{font-size:13px}.selection-bar{flex-direction:column;align-items:flex-start;gap:5px}.view-bar{flex-wrap:wrap;justify-content:center;padding:6px 0}.colors-panel{gap:11px;padding:11px}.quick-colors{flex-wrap:wrap;gap:8px}.active-color{flex:1}.palette-area{min-width:215px}.reference-viewport{height:206px}}
@media(max-width:800px){.topbar{flex-wrap:wrap;gap:14px}.header-actions{width:100%}.header-actions button{flex:1}.studio{display:flex;flex-direction:column;height:auto;min-height:0}.tools-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;overflow:visible;border:0;border-bottom:1px solid var(--line)}.tools-panel>.eyebrow{display:none}.tools{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.tools button{flex-direction:column;gap:5px;padding:8px 3px;font-size:11px}.tool-icon{font-size:23px}.tools-panel section{min-width:0}.board-settings{grid-column:1/-1;margin:0;padding:15px 0 8px;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;align-items:center}.board-settings .eyebrow{grid-column:1/-1;margin:0}.board-settings .field-label{margin:0}.board-settings .field-pair{grid-row:2/4;grid-column:2;margin:0}.board-settings .wide{grid-column:1}.board-settings .helper{margin:0}.board-settings .check{margin:3px 0}.tools-panel>section:nth-last-of-type(1){grid-column:2;grid-row:2}.guide{grid-column:1/-1;margin:0}.workspace{height:780px;min-height:680px;padding:14px 12px}.selection-bar{align-items:center;min-height:49px}.selection-bar>div{justify-content:center}.workspace-top span{font-size:10px}.view-bar #toolHint{display:none}.colors-panel{justify-content:center}.colors-panel .active-color{flex:none}.palette-area{flex:1}.reference-panel{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding:22px;border:0;border-top:1px solid var(--line);overflow:visible}.reference-section{margin:0;border:0;padding:0}.groups-section{grid-column:1/-1;grid-row:2}.reference-viewport{height:220px}.reference-panel>section:first-child{min-width:0}.preview-frame{height:220px}footer{flex-direction:column;gap:5px;text-align:center}.export-dialog form{grid-template-columns:1fr}.export-preview{border:0;padding:18px}#exportPreview{max-height:380px}.export-settings{padding:22px}.export-dialog .dialog-actions{position:sticky;bottom:0;background:white;padding:9px 0}#toast{bottom:18px}}
@media(max-width:480px){.tools{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-panel{grid-template-columns:1fr}.reference-section{grid-row:3}.workspace{height:775px}.palette-area{flex:none;width:100%}.palette-heading{justify-content:center}.palette-area .swatches{justify-content:center}.quick-colors{justify-content:center}.active-color>label{text-align:center}.brand svg{width:32px}.brand h1{font-size:22px}.header-actions button{padding-inline:8px}.selection-bar button{padding-inline:6px}.workspace-top #positionLabel{max-width:145px;text-align:right}.reference-viewport{height:280px}.preview-frame{height:220px}}
