/* canvas.css */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#29292d;background:#f5f5f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button{border:0;background:transparent;color:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;transition:background .18s,color .18s,transform .18s}button:hover{background:#00000007}button:active{transform:scale(.92)}button:focus-visible,input:focus-visible{outline:3px solid #a9c9ff;outline-offset:3px}button:disabled{opacity:.25;cursor:default}svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}header{height:74px;padding:0 30px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:11px;font-size:18px;letter-spacing:-.6px}.brand img{width:29px;height:29px;object-fit:contain}.brand span{font-weight:600}.brand b{font-weight:400;color:#89898e}.actions{display:flex;align-items:center;gap:5px}.divider{width:1px;height:23px;background:#00000010;margin:0 6px;flex-shrink:0}.export{width:auto;border-radius:20px;padding:0 18px;background:#29292d;color:white;font-size:14px;gap:15px;margin-left:10px}.export:hover{background:#444449}#paper{position:absolute;inset:88px 28px 45px;border-radius:14px;background:white;box-shadow:0 2px 4px #00000003,0 15px 65px #29294308;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}#empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;color:#a0a0a7;font-size:20px;letter-spacing:-.45px}#empty small{font-size:14px;color:#b1b1b8;margin-top:12px;letter-spacing:0}#dock{position:fixed;z-index:5;display:flex;align-items:center;gap:5px;padding:8px 12px 8px 5px;background:#fffffff0;backdrop-filter:blur(22px);border:1px solid #ffffff;box-shadow:0 3px 9px #00000006,0 14px 40px #20203015;border-radius:40px;transition:left .38s cubic-bezier(.22,1,.36,1),top .38s cubic-bezier(.22,1,.36,1);user-select:none}#dock.vertical{flex-direction:column;padding:5px 8px 12px}#dock.vertical .divider{width:23px;height:1px;margin:6px 0}#dock.dragging{transition:none;box-shadow:0 20px 60px #20203028}.grip{width:24px;color:#aaaab2;font-size:24px;cursor:grab;touch-action:none}.grip:active{cursor:grabbing}.txt{font-size:13px;font-weight:650;letter-spacing:-.7px}button.selected{color:#7954d9;background:#7954d910}button.selected::after{content:"";position:absolute;width:3px;height:3px;background:currentColor;border-radius:50%;transform:translateY(17px)}.color{display:flex;align-items:center;justify-content:center;width:42px;height:42px}.color input{width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;border-radius:50%;overflow:hidden}.color input::-webkit-color-swatch-wrapper{padding:0}.color input::-webkit-color-swatch{border:0;border-radius:50%}.popover{position:fixed;z-index:6;padding:15px;background:#fffffff5;backdrop-filter:blur(25px);border:1px solid #eeeeef;box-shadow:0 12px 40px #00000015;border-radius:20px;animation:reveal .18s ease-out}.popover[hidden]{display:none}.caption{font-size:10px;font-weight:650;color:#98989e;letter-spacing:1.5px;margin:0 0 8px 9px}.shape-row{display:flex;gap:4px}.settings{width:248px}.settings label{display:block;font-size:13px;margin:5px 0 20px}.settings output{float:right;color:#8b8b93}.settings input[type=range]{display:block;width:100%;margin-top:15px;accent-color:#7954d9}.settings .check{display:flex;align-items:center;gap:8px;margin-bottom:4px}footer{position:absolute;bottom:14px;left:32px;right:32px;display:flex;justify-content:space-between;color:#98989f;font-size:12px}#textEntry{position:absolute;max-width:80%;padding:8px 12px;border:1px solid #b6a2e0;border-radius:8px;background:#ffffffef;outline:none}#toast{position:fixed;bottom:52px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#28282de8;color:white;padding:11px 18px;border-radius:22px;font-size:13px;transition:.2s;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}@keyframes reveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){header{padding:0 14px;height:64px}.brand{font-size:15px;gap:7px}.brand img{width:24px;height:24px}.actions{gap:0}.actions button{width:34px}.actions .export{width:auto;padding:0 12px;margin-left:4px}.export span{display:none}#paper{inset:76px 10px 35px}#dock{gap:0;padding-right:6px}#dock button{width:38px;height:38px}#dock .grip{width:20px}#dock .divider{margin:0 3px}.color{width:34px}footer{left:16px;right:16px;font-size:11px;bottom:10px}footer span:nth-child(2){display:none}#empty{font-size:17px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* workspace.css */
/* Extend the original shell, preserving its typography, icons and spacing. */
/* The workspace is a drawing surface; editable fields keep native selection. */
body,body *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input:not([type=range]):not([type=color]):not([type=checkbox]),textarea,[contenteditable=true]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
#paper,#canvas{touch-action:none;-webkit-user-drag:none}
button{touch-action:manipulation}
button{position:relative}
#paper{background:#eeeff2;box-shadow:none}
#paper canvas{outline:none}
#dock,#dock.vertical{display:block;padding:0;box-sizing:border-box;transition:width .3s cubic-bezier(.22,1,.36,1),height .3s cubic-bezier(.22,1,.36,1),left .3s cubic-bezier(.22,1,.36,1),top .3s cubic-bezier(.22,1,.36,1),opacity .16s ease,transform .22s cubic-bezier(.22,1,.36,1),filter .18s ease;overflow:visible;transform:scale(1);transform-origin:center;will-change:opacity,transform,filter}
#dock.tool-active{opacity:0;transform:scale(.96);filter:blur(3px);pointer-events:none}
#dock.dragging{transition:width .3s cubic-bezier(.22,1,.36,1),height .3s cubic-bezier(.22,1,.36,1)}
#dock>*{position:absolute!important;left:0;top:0;margin:0!important;transition:transform .3s cubic-bezier(.22,1,.36,1),width .3s,height .3s,opacity .2s,background .2s}
#dock .divider{background:none}
#dock .divider::before{content:"";position:absolute;left:50%;top:25%;width:1px;height:50%;background:#00000010}
#dock.vertical .divider::before{left:25%;top:50%;width:50%;height:1px}
#dock.collapsed>:not(#grip):not(#collapse){display:none}
#collapse{font-size:25px;color:#888}
#help{width:22px;height:22px;font-size:12px;border:1px solid #d8d8dc;color:#8c8c94;margin-left:2px}
#canvasSize{width:auto;padding:0 10px;font-size:13px;color:#666}
.zoom-controls{display:flex;gap:3px;align-items:center}
.zoom-controls button{height:24px;width:28px;font-size:15px;background:#e9e9ed}
.zoom-controls #zoomReset{width:54px;font-size:12px}
footer{align-items:center;gap:12px}
#dimensions{margin-left:auto}
.popover{max-height:calc(100dvh - 24px);overflow:auto}
#toolMenu{max-height:calc(100dvh - 96px)}
.popover p{font-size:12px;line-height:1.6;color:#82828c;margin-bottom:2px}
.settings input[type=number]{display:block;width:100%;border:1px solid #dcdce2;border-radius:9px;margin-top:8px;padding:8px;background:white}
#brushTypes{display:grid;grid-template-columns:1fr 1fr;gap:4px;margin:10px 0 20px;padding:4px;background:#eeeef1;border-radius:13px}
#brushTypes[hidden],#tiltControl[hidden],#eraserOpacityControl[hidden],#inkOpacityControl[hidden]{display:none}
#brushTypes button{flex:1;min-width:0;width:auto;height:64px;flex-direction:column;gap:7px;border-radius:10px;font-size:12px}
#brushTypes button[aria-pressed=true]{background:white;color:#6349a4;box-shadow:0 1px 5px #0000000b}
#brushTypes svg{width:24px;height:24px}
#tiltControl{font-size:13px;gap:8px;margin:16px 0 8px}
.expand-actions{display:flex;gap:8px}
.expand-actions button{width:auto;flex:1;border-radius:10px;background:#f1eff8;font-size:13px}
.segments{position:relative;display:flex;padding:3px;border-radius:10px;background:#eeeef1;margin:12px 0 8px}
.segments[hidden]{display:none}
.segments button{z-index:1;flex:1;width:auto;height:33px;font-size:13px;border-radius:8px;background:transparent}
.segment-indicator{position:absolute;width:calc((100% - 6px)/3);height:33px;left:3px;top:3px;background:white;border-radius:8px;box-shadow:0 1px 4px #00000009;transition:transform .22s ease}
.segments[data-mode=stroke] .segment-indicator{transform:translateX(100%)}
.segments[data-mode=pressure] .segment-indicator{transform:translateX(200%)}
#palette{display:flex;align-items:center;justify-content:center;gap:4px}
#paletteMenu .palette-actions #eyedropper{display:grid;margin:0}
.palette-swatches{display:flex;align-items:center;gap:6px;max-width:164px;overflow:auto;scrollbar-width:none;flex-shrink:1;min-width:0}.palette-swatches::-webkit-scrollbar{display:none}#palette #paletteAdd{font-size:22px;color:#86818f;padding:0;border-radius:50%;flex-shrink:0}#dock.vertical .palette-swatches{flex-direction:column;max-width:none;max-height:164px}#paletteMenu #eyedropper{display:flex;align-items:center;gap:9px;margin-top:12px}#eyedropper svg,.selection-transform svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#selectionActions{max-width:calc(100vw - 16px);flex-wrap:wrap}#selectionActions .selection-transform{width:36px;padding:6px;display:flex;align-items:center;justify-content:center}#lassoMenu .selection-transform{display:inline-flex;padding:10px;margin:8px 4px 0;border:1px solid #ded9e9;border-radius:10px}
#palette button{width:28px;height:28px;padding:4px;flex-shrink:0;border:1px solid transparent}
#palette button span{width:100%;aspect-ratio:1;height:auto;border-radius:50%;background:var(--slot-color);box-shadow:inset 0 0 0 1px #00000018}
#palette button[aria-pressed=true]{border-color:#8970d5;background:#7954d910}
#dock.vertical #palette{flex-direction:column}
#slotColor{display:block;width:100%;height:44px;border:0;margin-top:10px;padding:0;background:none}
.lasso-types{display:flex;gap:6px;background:#eeeef1;border-radius:12px;padding:4px}
.lasso-types button{width:auto;flex:1;font-size:13px;border-radius:8px}
.lasso-types button[aria-pressed=true]{background:white;color:#6349a4}
.quiet-action{width:auto;height:34px;font-size:13px;border-radius:8px;padding:0 12px;background:#eeeef1;margin-top:12px}
#selectionActions{position:fixed;z-index:4;display:flex;gap:2px;padding:4px;background:#29292deb;color:white;backdrop-filter:blur(16px);box-shadow:0 5px 24px #00000018;border:1px solid #ffffff15;border-radius:14px}
#selectionActions[hidden]{display:none}
#selectionActions button{width:auto;min-width:36px;height:32px;padding:0 12px;font-size:13px;border-radius:10px}
.segments button[aria-pressed=true]{color:#6349a4;font-weight:600}
#layersMenu{width:315px}
.layer-heading{display:flex;align-items:center;justify-content:space-between;font-size:14px;font-weight:600}
.layer-heading button{font-size:23px;width:30px;height:30px}
.layer-row{display:flex;align-items:center;border-radius:10px;margin:5px 0;padding:4px}
.layer-row.active{background:#7954d910}
.layer-row{flex-wrap:wrap}
.layer-opacity{display:flex;align-items:center;gap:10px;width:100%;padding:2px 7px 5px;font-size:12px;color:#777}
.layer-opacity input{flex:1;min-width:0;accent-color:#7954d9}
.layer-opacity output{width:34px;text-align:right}
.document-actions{display:flex;gap:8px;margin-top:16px}
.document-actions button{flex:1;width:auto;height:34px;border-radius:9px;background:#eeeef1;font-size:13px}
.layer-row button{width:27px;height:34px;border-radius:7px;font-size:14px;flex-shrink:0}
.layer-row .layer-name{flex:1;justify-content:flex-start;min-width:0;padding:0 6px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#helpOverlay{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:22px;background:#12131bbb;backdrop-filter:blur(12px);color:#fff;overflow:auto;animation:reveal .2s ease}
#helpOverlay[hidden]{display:none}
#helpOverlay section{width:min(640px,100%);padding:32px;background:#24252de8;border:1px solid #ffffff14;box-shadow:0 24px 80px #00000025;border-radius:24px}
#helpOverlay h2{font-size:25px;letter-spacing:-.6px;font-weight:500;margin:10px 0 24px}
#helpOverlay .caption{color:#bcbcc7}
#shortcutList{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}
#shortcutList>div{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#dfdfe7}
#shortcutList kbd{font-family:inherit;color:#aaaab8;font-size:12px}
#helpOverlay p{font-size:12px;color:#9292a0;margin:24px 0 0}
#textEntry{z-index:2;min-width:180px;font-size:16px}
@media(max-width:600px){
 #palette{gap:0}#palette button{width:20px;height:26px;padding:3px}#dock.vertical #palette button{height:20px;width:26px}
 header{padding:0 9px}.brand{font-size:14px;gap:5px}.brand b{display:none}.brand img{width:22px;height:22px}#help{width:20px;height:20px}
 .actions{gap:0}.actions button{width:30px;height:36px}#canvasSize{font-size:12px;padding:0 5px;width:auto}.actions .export{font-size:12px;padding:0 10px}
 #dock svg{width:20px;height:20px}#dock .txt{font-size:11px}#dock .color input{width:23px;height:23px}
 footer span:nth-child(2){display:none}#dimensions{font-size:10px}
 #helpOverlay section{padding:22px}#shortcutList{gap:10px 18px}#helpOverlay h2{font-size:22px}
}
@media(max-width:370px){.brand span{display:none}#dock{max-width:calc(100vw - 8px)}}
@media(prefers-reduced-motion:reduce){#dock,#dock>*{transition:none!important}#dock.tool-active{filter:none}}
/* Circular color picker */
#paletteMenu{width:320px}
.color-wheel-picker{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:8px}
#colorWheel{width:280px;height:280px;max-width:100%;aspect-ratio:1;touch-action:none;cursor:crosshair}
.color-values{width:100%;display:flex;align-items:center;gap:10px}
.color-preview{width:34px;height:34px;border-radius:50%;border:1px solid #0002;box-shadow:inset 0 0 0 1px #fff5;flex:0 0 auto}
.color-values label{flex:1;font-size:11px;color:#7a7a83;letter-spacing:.05em}
.color-values input{width:100%;box-sizing:border-box;margin-top:4px;padding:8px 10px;border:1px solid #dcdce2;border-radius:9px;background:white;font:13px ui-monospace,SFMono-Regular,Consolas,monospace;text-transform:uppercase}
.palette-actions{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:10px;border-top:1px solid #00000008}#paletteMenu .palette-actions button{display:grid;place-items:center;width:40px;height:40px;padding:9px;margin:0;border-radius:12px;background:transparent;color:#77727f}#paletteMenu .palette-actions button:hover{background:#7954d90c}#paletteMenu .palette-actions #paletteApply{margin-left:auto;color:#7954d9;background:#7954d90d}#paletteMenu .palette-actions #paletteRemove:hover{color:#c74747;background:#c747470a}.palette-actions svg,#palette #paletteAdd svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#palette #paletteAdd{display:grid;place-items:center;padding:0;margin:0;line-height:0;align-self:center}#paletteMenu .palette-actions button[hidden]{display:none}
.native-color-fallback{display:none!important}
/* Language selector */
.language-control{display:flex;align-items:center;margin:0 2px}
.language-control select{height:30px;padding:0 24px 0 9px;border:1px solid #dddde2;border-radius:9px;background:#fff;font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#555;cursor:pointer}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:600px){.language-control select{width:64px;padding-left:5px;padding-right:12px;font-size:11px}}
.editor-dialog{width:min(420px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;padding:24px;border:1px solid #e4e4e9;border-radius:20px;background:#fff;color:#28282c;box-shadow:0 20px 80px #0003}
.editor-dialog::backdrop{background:#15152155;backdrop-filter:blur(4px)}
.editor-dialog h2{font-size:19px;font-weight:600;margin:0 0 18px}.editor-dialog label{display:block;font-size:14px;margin:12px 0}
.editor-dialog input:not([type=checkbox]),.editor-dialog select,.preset-controls select,#selectionAngle{box-sizing:border-box;display:block;width:100%;min-height:38px;margin-top:7px;border:1px solid #dcdce2;border-radius:9px;padding:8px;background:#fff;color:#28282c;font:inherit;font-size:14px}
.editor-dialog [hidden]{display:none!important}
.editor-dialog .check{display:flex;gap:8px;align-items:center}.editor-dialog p{font-size:13px;line-height:1.5;color:#74747e}
.editor-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.editor-actions button{width:auto;min-height:38px;padding:0 14px;border-radius:10px;background:#eeeef1;font-size:14px}.editor-actions .export{background:#28282c;color:white}
.layer-edit-actions{display:flex;gap:4px;width:100%;padding:4px 6px}.layer-edit-actions button{flex:1;width:auto;height:32px;font-size:12px;background:#fff8}
.preset-controls{border-top:1px solid #e4e4e9;margin-top:14px;padding-top:12px}.preset-controls .editor-actions{margin-top:8px;justify-content:stretch}.preset-controls .editor-actions button{flex:1;font-size:12px;padding:0 7px}
.popover{max-height:calc(100dvh - 32px);overflow-y:auto}#draftStatus{font-size:12px;color:#777;max-width:290px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:700px){#draftStatus{max-width:150px;font-size:10px}footer>span:nth-child(2){display:none}.editor-dialog{padding:18px}}
.mobile-tool-label,.mobile-quick-actions,#mobileFit{display:none}
.mobile-panel{width:268px;box-sizing:border-box}
.mobile-panel .caption{margin:8px 4px 12px}
.mobile-gesture-hint{font-size:12px;line-height:1.5;color:#72727c;margin:14px 8px 4px}
@media(max-width:760px){
 body.mobile-layout header{height:108px;padding:8px 16px 0;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px 48px;gap:0 8px}
 .mobile-layout .brand{font-size:16px;white-space:nowrap;min-width:0;gap:8px}.mobile-layout .brand b{display:none}.mobile-layout .brand img{width:26px;height:26px}
 .mobile-layout .brand>span{display:inline}
 .mobile-layout .actions{gap:3px}.mobile-layout .actions button{width:44px;height:44px;flex-shrink:0}
 .mobile-layout #mobileMenuButton{display:flex;width:56px;flex-direction:column;justify-content:center;gap:2px;font-size:11px}
 .mobile-layout #mobileMenuButton .mobile-tool-label{display:block;font-size:10px;line-height:12px}
 .mobile-menu-symbol{font-size:22px;line-height:22px}
 .mobile-quick-actions{display:flex;grid-column:1 / -1;justify-content:space-between;align-items:center;border-top:1px solid #e6e6eb;gap:8px}
 .mobile-quick-actions button{height:44px;min-width:44px;width:auto!important;padding:0 12px;font-size:13px;white-space:nowrap;border-radius:12px;display:flex;gap:6px;align-items:center;justify-content:center}
 .mobile-quick-actions .mobile-tool-label{display:inline;font-size:13px}.mobile-quick-actions svg{width:21px;height:21px}
 .mobile-quick-actions #save{height:44px;background:#28282c;color:#fff}
 .mobile-layout #paper{inset:118px 10px 86px;border-radius:18px}
 .mobile-layout footer{left:16px;right:16px;bottom:8px;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:22px 44px;gap:2px 12px;align-items:center;font-size:12px}
 .mobile-layout footer>span:nth-child(2),.mobile-layout #dimensions{display:none}
 .mobile-layout #toolName{white-space:nowrap;max-width:125px;overflow:hidden;text-overflow:ellipsis}
 .mobile-layout #draftStatus{max-width:none;font-size:12px;text-align:right;color:#62626c}
 .mobile-layout .zoom-controls{grid-column:1 / -1;justify-self:center;display:flex;gap:8px;align-items:center}
 .mobile-layout .zoom-controls button{height:44px;min-width:44px;font-size:13px}
 .mobile-layout #zoomReset{min-width:64px}.mobile-layout #mobileFit{display:block;width:auto;padding:0 14px;border:1px solid #ddddE5;border-radius:12px;background:#fff;color:#45454f}
 #dock.mobile .mobile-tool-label{display:block;font-size:10px;line-height:13px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #dock.mobile button:not(.grip):not(#collapse){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
 #dock.mobile.collapsed>:not(#grip):not(#collapse){display:none}
 #dock.mobile button svg{width:23px;height:23px}#dock.mobile #grip,#dock.mobile #collapse{font-size:22px}
 .mobile-color-dot{display:block;width:23px;height:23px;border-radius:50%;box-shadow:0 0 0 2px #fff,0 0 0 3px #d8d8e2}
 .mobile-layout .mobile-panel{max-width:calc(100vw - 24px);padding:14px;border-radius:18px}
 #mobileToolsMenu .mobile-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .mobile-tool-grid button{position:static!important;transform:none!important;width:100%!important;height:66px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#f5f5f8;border-radius:12px}
 .mobile-panel .mobile-tool-label{display:block;font-size:12px;line-height:16px}.mobile-tool-grid svg{width:22px;height:22px}
 #mobileAppMenu{display:flex;flex-direction:column;gap:8px}#mobileAppMenu[hidden]{display:none}
 #mobileAppMenu>.caption{order:-1}#mobileAppMenu>button,#mobileAppMenu>.language-control{min-height:44px;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;background:#f5f5f8;border-radius:10px;font-size:14px}
 #mobileAppMenu #clear{color:#b33e49}#mobileAppMenu #help{font-size:18px}
 #mobileAppMenu .language-control select{font-size:16px;width:100%;height:44px;border:0;background:transparent;padding:0 12px}
 #mobileColorMenu #palette{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;height:auto;min-height:56px;transform:none!important;padding:6px}
 #mobileColorMenu .palette-swatches{flex:1 1 auto;max-width:none;min-width:0;overscroll-behavior-x:contain}
 #mobileColorMenu #palette .palette-slot{width:48px;height:48px;flex-shrink:0}
 #mobileColorMenu #palette #paletteAdd{width:44px;height:44px}
 .mobile-layout .popover{max-width:calc(100vw - 16px);box-sizing:border-box}
 .mobile-layout input:not([type=range]):not([type=checkbox]):not([type=color]),.mobile-layout select{font-size:16px}
 .mobile-layout #empty{font-size:18px;width:100%;padding:0 20px;box-sizing:border-box}.mobile-layout #empty small{font-size:14px}
}
@media(min-width:560px) and (max-width:760px) and (max-height:500px){.mobile-layout header{height:60px;display:flex}.mobile-quick-actions{border:0;flex:1;justify-content:flex-end}.mobile-layout #paper{top:68px;bottom:76px}.mobile-layout .brand{font-size:14px}.mobile-layout .actions{order:2}.mobile-quick-actions button{padding:0 8px}}

/* cloud-library.css */
#myDrawings{font-size:13px;width:auto;padding:0 12px;white-space:nowrap}
#cloudLibrary{border:1px solid #e4e4e9;border-radius:24px;padding:26px;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 48px);box-sizing:border-box;color:#28282c;background:#fafafc;box-shadow:0 24px 90px #0003;overflow:auto;font:14px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;user-select:text;-webkit-user-select:text}
#cloudLibrary::backdrop{background:#15151d66;backdrop-filter:blur(6px)}
#cloudLibrary .cloud-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
#cloudLibrary h2{font-size:24px;letter-spacing:-.6px;margin:0}
#cloudLibrary button{width:auto;height:auto;border-radius:10px;padding:9px 14px;font:inherit;cursor:pointer}
#cloudLibrary #cloudClose{font-size:25px;padding:0 8px;background:transparent}
#cloudLibrary p{color:#6b6b75;margin:12px 0}
#cloudStatus{min-height:1.5em}
#cloudSaveForm{padding:16px 0;border-block:1px solid #e4e4e9}
#cloudSaveForm label{display:block}
#cloudDrawingName{display:block;width:100%;box-sizing:border-box;margin:7px 0 12px;padding:12px;border:1px solid #dddde4;border-radius:10px;background:white;color:#28282c;font:inherit;user-select:text;-webkit-user-select:text}
.cloud-save-actions{display:flex;gap:8px}
#cloudSave{background:#28282c;color:white}
#cloudSaveForm p{font-size:12px;margin-bottom:0}
.cloud-item{display:flex;gap:10px;align-items:center;border-bottom:1px solid #e7e7ec;padding:7px 0}
#cloudLibrary .cloud-open{flex:1;min-width:0;text-align:left;background:transparent}
.cloud-open strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.cloud-open small{display:block;color:#777780;font-size:12px;margin-top:3px}
#cloudLibrary button:disabled{opacity:.45;cursor:wait}
#cloudLibrary #cloudSignOut{margin-top:16px;color:#777780;background:transparent}
#cloudLibrary [hidden]{display:none!important}
@media(max-width:650px){#myDrawings{font-size:12px;padding:0 8px}#cloudLibrary{padding:20px}}
@media(prefers-reduced-motion:no-preference){#cloudLibrary[open]{animation:cloud-open .18s ease-out}@keyframes cloud-open{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}}

/* project-home.css */
#projectHome{position:fixed;inset:0;background:#f7f7fa;z-index:80;overflow:auto;color:#25252c}#projectHome[hidden]{display:none}.home-top{height:80px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100% - 1120px)/2))}.home-top .brand{display:flex;align-items:center;gap:10px}.home-top img{width:32px}.home-top button{padding:11px 18px;border:1px solid #dedee7;border-radius:12px;background:white;font-size:14px}.home-content{max-width:1120px;margin:60px auto;padding:0 24px 60px}.home-eyebrow{font-size:11px;letter-spacing:2px;color:#8456df;font-weight:600}.home-content h1{font-size:clamp(28px,4vw,42px);letter-spacing:-1.2px;margin:15px 0}.home-subtitle{font-size:16px;color:#787883;margin-bottom:34px}.start-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.start-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:28px;border:1px solid #e5e5ec;border-radius:22px;background:white;min-height:245px;transition:transform .18s,box-shadow .18s;font:inherit;color:inherit;cursor:pointer}.start-card:hover{transform:translateY(-3px);box-shadow:0 12px 32px #3333440c;border-color:#c6b4ef}.start-card:focus-visible,.recent-open:focus-visible{outline:3px solid #aa83ff;outline-offset:3px}.card-icon{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:15px;background:#f1ebfe;color:#8051dd;font-size:29px;margin-bottom:22px}.pdf-card .card-icon{font-size:15px;font-weight:700;background:#fceee9;color:#bf7151}.start-card strong{font-size:20px}.start-card>span:not(.card-icon){font-size:14px;color:#74747f;line-height:1.6;margin:10px 0 22px}.start-card small{font-size:12px;color:#7950be;margin-top:auto}.recent-heading{display:flex;align-items:center;gap:14px;margin-top:44px}.recent-heading h2{font-size:20px;margin-bottom:12px}.recent-heading>span{font-size:12px;color:#92929d}.home-storage{font-size:12px;color:#858590;line-height:1.6;margin:0 0 20px}.recent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.recent-card{position:relative;background:white;border:1px solid #e5e5ec;border-radius:16px;overflow:hidden}.recent-open{display:flex;flex-direction:column;text-align:left;width:100%;padding:0 0 16px;background:none;border:0;cursor:pointer;color:inherit}.recent-open img{width:100%;height:150px;object-fit:contain;background:#eeeff2}.recent-open strong{margin:5px 16px;font-size:14px;max-width:calc(100% - 32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.recent-open small{margin:0 16px;color:#90909b;font-size:10px}.recent-tag{font-size:9px;letter-spacing:1px;margin:14px 16px 4px;color:#8d63cd}.recent-remove{position:absolute;right:8px;top:8px;border:1px solid #dedee7;border-radius:50%;width:28px;height:28px;background:#fff;color:#666;font-size:18px;cursor:pointer}.recent-empty{grid-column:1/-1;padding:36px;text-align:center;border:1px dashed #dddde6;border-radius:16px;color:#92929c;font-size:14px}#homeStatus{font-size:13px;color:#ad5454}.project-home>header,.project-home>#paper,.project-home>#dock,.project-home>footer,.project-home>#projectBar,.project-home>#pdfPages{visibility:hidden;pointer-events:none}.project-home .popover,.project-home #selectionActions{display:none!important}
#projectBar{position:fixed;top:60px;left:24px;right:24px;height:46px;display:flex;align-items:center;gap:12px;z-index:12}#projectBar button{height:36px;padding:0 14px;background:white;border:1px solid #e2e2e8;border-radius:10px;color:#555560;cursor:pointer;font-size:12px}#projectBar .project-primary{background:#8052da;border-color:#8052da;color:white}#projectTitle{width:240px;min-width:0;padding:8px 4px;background:transparent;border:1px solid transparent;border-radius:6px;font:inherit;font-size:14px;color:#393942}#projectTitle:focus{background:white;border-color:#c6b4ef;outline:none}#projectKind{font-size:9px;letter-spacing:1px;color:#aaa;flex:1}body:not(.project-home) #paper{top:114px}#pdfPages{position:fixed;bottom:60px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;border:1px solid #e5e5ed;border-radius:14px;padding:7px 12px;background:#fffE;box-shadow:0 5px 20px #2221;z-index:14;font-size:12px;backdrop-filter:blur(12px)}#pdfPages[hidden]{display:none}#pdfPages button{width:30px;height:30px;background:#f4f1fa;border:0;border-radius:8px;font-size:22px;color:#8052da}#pdfPages select{border:1px solid #dedee5;border-radius:6px;padding:4px;background:white}#pdfPages small{font-size:10px;color:#999;border-left:1px solid #e5e5ed;padding-left:10px}.new-project-size{display:flex;gap:16px}.new-project-size label{min-width:0;flex:1}.open-choice{display:block;width:100%;text-align:left;padding:16px!important;margin:10px 0;background:#f4f1fa!important;color:#6d489e!important;border:1px solid #e3d9f3!important;border-radius:12px!important;font-size:14px!important}#saveProjectDialog p{font-size:13px;line-height:1.7;color:#777}
@media(max-width:760px){.home-top{height:70px;padding:0 20px}.home-top .brand{font-size:16px}.home-top button{font-size:12px;padding:9px 12px}.home-content{margin:28px auto;padding:0 20px 35px}.home-content h1{font-size:28px;line-height:1.3}.home-subtitle{font-size:14px;line-height:1.6;margin-bottom:24px}.start-cards{grid-template-columns:1fr;gap:12px}.start-card{padding:20px 20px 20px 86px;min-height:132px;position:relative;border-radius:18px}.start-card .card-icon{position:absolute;left:20px;top:23px;width:46px;height:46px}.start-card strong{font-size:17px}.start-card>span:not(.card-icon){font-size:12px;margin:8px 0 12px}.start-card small{font-size:10px}.recent-heading{margin-top:30px}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.recent-open img{height:110px}.recent-open strong{font-size:12px}.recent-open small{font-size:9px}.home-storage{font-size:11px}.recent-empty{padding:25px 12px}#projectBar{top:113px;left:12px;right:12px;height:44px;gap:7px}#projectBar button{height:34px;padding:0 10px;font-size:11px}#projectTitle{width:0;flex:1;font-size:13px}#projectKind{display:none}#projectBar #backHome span{display:none}#projectBar #addImage span{font-size:10px}body.mobile-layout:not(.project-home) #paper{top:164px}#pdfPages{bottom:94px;padding:5px 8px;gap:7px;white-space:nowrap}#pdfPages small{display:none}.editor-dialog{max-width:calc(100vw - 28px)}.new-project-size{gap:10px}}
@media(prefers-reduced-motion:reduce){.start-card{transition:none}}
.recent-open{height:auto!important}.start-card:hover{background:#fcfaff}.start-card{word-break:keep-all}
#selectionActions button[hidden]{display:none}
#projectBar button{width:auto;display:flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0;white-space:nowrap}.home-top button{width:auto;white-space:nowrap}.start-card{width:100%}#homeLanguage{margin-left:auto;margin-right:12px;padding:9px;border:1px solid #dedee7;border-radius:10px;background:white;color:#676772;font-size:12px}.open-choice{height:auto!important;min-height:48px}.pdf-project #empty{display:none!important}

/* usability.css */
#projectMeta{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}#projectMeta #projectTitle{width:100%;max-width:420px;box-sizing:border-box;padding:3px 4px}#projectKind{flex:0;margin-right:auto}#projectSaveInfo{display:flex;align-items:center;gap:8px;padding-left:4px;font-size:10px;color:#777;min-width:0}#projectSaveState{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#projectSaveTime{font-variant-numeric:tabular-nums;white-space:nowrap}#projectSaveInfo[data-state=pending]{color:#9a702b}#projectSaveInfo[data-state=error]{color:#b33944}#projectBar #focusMode{background:#f3effb;color:#704caa}#exitFocus{position:fixed;top:12px;right:16px;z-index:18;width:auto;height:36px;padding:0 13px;border:1px solid #ddd6ea;border-radius:12px;background:#fffffff0;color:#704caa;cursor:pointer;box-shadow:0 3px 15px #3331;font-size:12px}#exitFocus[hidden]{display:none}body.focus-mode>header,body.focus-mode>#projectBar{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-12px)}body.focus-mode:not(.project-home) #paper,body.mobile-layout.focus-mode:not(.project-home) #paper{top:12px}body.focus-mode>footer>span:nth-child(2){display:none}body>header,#projectBar{transition:opacity .18s ease,transform .18s ease}body.focus-mode #pdfPagePanel{top:60px}#pdfPagePanel{position:fixed;z-index:20;top:170px;left:24px;bottom:105px;width:240px;border:1px solid #e2dce9;border-radius:18px;background:#faf9fdf5;box-shadow:0 8px 35px #28203c20;display:flex;flex-direction:column;overflow:hidden;backdrop-filter:blur(14px)}#pdfPagePanel[hidden]{display:none}.page-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 14px 2px}.page-panel-heading h2{font-size:15px;margin:0}.page-panel-heading button{width:32px;height:32px;border:0;border-radius:10px;background:#eee9f6;font-size:22px;color:#70519d}#pdfPagePanel>p{font-size:10px;line-height:1.6;color:#85808e;margin:6px 14px 10px}#pageJumpForm{display:flex;align-items:end;gap:8px;margin:0 14px 12px}#pageJumpForm label{font-size:10px;flex:1;min-width:0;color:#777}#pageJump{display:block;width:100%;box-sizing:border-box;height:32px;border:1px solid #ded7e8;border-radius:8px;padding:5px 9px;background:white;font:inherit;font-size:13px}#pageJumpForm button{width:auto;height:32px;padding:0 14px;border:0;border-radius:8px;background:#8052da;color:white;font-size:12px}#pageThumbnails{list-style:none;margin:0;padding:0 12px 14px;overflow:auto;min-height:0;display:grid;grid-template-columns:1fr;gap:12px}#pageThumbnails li{min-width:0}#pageThumbnails button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:100%;height:180px;padding:10px;border:2px solid transparent;border-radius:12px;background:#eeeaf3;color:#736a80;cursor:pointer;font-size:12px}#pageThumbnails button[aria-current=page]{border-color:#8c62df;background:#eee6fd;color:#6940af}#pageThumbnails img{object-fit:contain;max-width:100%;height:140px;border-radius:2px;box-shadow:0 2px 8px #25203015}#pageThumbnails img[hidden]{display:none}#pageThumbnails button:focus-visible,#exitFocus:focus-visible{outline:3px solid #ac8de8;outline-offset:-3px}#pdfPages #pdfPageList{font-size:11px;width:auto;padding:0 10px;white-space:nowrap}body.project-home #exitFocus,body.project-home #pdfPagePanel{display:none}
@media(max-width:760px){#projectBar{height:48px;gap:5px}#projectMeta #projectTitle{font-size:12px}#projectSaveInfo{font-size:9px;gap:4px}#projectSaveTime{display:none}#projectBar #focusMode{font-size:10px;padding:0 9px}#projectBar #addImage{font-size:12px;padding:0 8px}#projectBar #addImage span{display:none}#projectBar #addImage::after{content:'+'}#projectKind{display:none}#pdfPages{max-width:calc(100vw - 24px);box-sizing:border-box;gap:5px}#pdfPagePanel,body.focus-mode #pdfPagePanel{left:12px;right:12px;top:155px;bottom:100px;width:auto}#pageThumbnails{grid-template-columns:repeat(2,minmax(0,1fr))}#pageThumbnails button{height:172px}#exitFocus{top:16px;right:12px;height:34px}body.focus-mode #pdfPages{bottom:94px}}
#projectKind{flex:0 0 auto;white-space:nowrap;margin-right:0}
#projectBar #addImage::after{content:none}
@media(min-width:761px){body.pages-open:not(.project-home) #paper{left:280px}body.pages-open #pdfPages{left:calc(50% + 126px)}}
@media(max-width:760px){#projectSaveTime{display:inline;font-size:8px}.page-panel-heading button{width:44px;height:44px}#pageJump,#pageJumpForm button{height:44px}}
@media(prefers-reduced-motion:reduce){body>header,#projectBar{transition:none}}

/* quiet-shell.css */
/* A quiet, native-feeling studio. No changes to canvas pixels or geometry. */
:root{--studio-ink:#242426;--studio-muted:#8b8b90;--studio-line:#0000000b;--studio-accent:#7856c8;--studio-glass:#ffffffd9;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI Variable","Segoe UI",sans-serif;background:#f5f5f7;color:var(--studio-ink);-webkit-font-smoothing:antialiased}
body>header{position:fixed;inset:0 0 auto;height:68px;padding:0 24px;display:flex;align-items:center;justify-content:initial;gap:14px;z-index:16;background:#f5f5f7e8;border-bottom:1px solid #00000004;backdrop-filter:blur(20px)}
header>.brand{flex-shrink:0;gap:0}header>.brand>span{display:none}header>.brand img{width:27px;height:27px}header>.brand #help{display:none}
header>.brand .brand-home{width:32px;height:38px;border-radius:9px;padding:0}header>.brand .brand-home img{pointer-events:none}
@media(max-width:760px){body.focus-mode:has(#dock[data-edge=top]) #exitFocus.quiet-icon{top:104px}}
#projectBar{position:static;inset:auto;height:auto;flex:1;min-width:0;gap:6px;display:flex;align-items:center}#projectBar #projectMeta{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:2px;min-width:0}#projectMeta #projectTitle{field-sizing:content;width:auto;max-width:360px;min-width:45px;flex:0 1 auto;padding:8px 6px;font-size:14px;font-weight:550;letter-spacing:-.25px;border-radius:8px;color:#363638}#projectTitle:focus{background:#fff;border-color:#0000000c;box-shadow:0 2px 8px #00000004}#projectKind{display:none}
#projectBar button.quiet-icon,header .actions button.quiet-icon,#exitFocus.quiet-icon{width:38px;height:38px;min-width:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;background:transparent;color:#5f5f66;flex-shrink:0;box-shadow:none}header .actions{gap:3px;flex-shrink:0}header .actions button:disabled{opacity:.22}header .actions #save{background:transparent;color:#424247;margin:0}#projectBar button:hover,header .actions button:hover{background:#e9e9ed;color:#252528}#projectBar #saveProject{color:#7251bb}#projectBar #focusMode[aria-pressed=true]{background:#ebe5f5;color:#7251bb}
.quiet-icon>svg{width:21px;height:21px;stroke-width:1.5}.quiet-icon>.control-label{display:none}#projectBar .save-state-icon{width:24px;min-width:24px;height:30px;color:#929298;margin-right:auto}#saveStatusButton svg{width:15px;height:15px;stroke-width:1.4}#saveStatusButton[data-state=error]{color:#c44747}#saveStatusButton[data-state=pending]{color:#a08c64}
body:not(.project-home) #paper,body.mobile-layout:not(.project-home) #paper{inset:76px 16px 40px;border-radius:18px;background:#ececef;box-shadow:inset 0 0 0 1px #00000002}body.pages-open:not(.project-home) #paper{left:252px}body.focus-mode:not(.project-home) #paper,body.mobile-layout.focus-mode:not(.project-home) #paper{top:12px}body.focus-mode>header{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-10px)}#exitFocus.quiet-icon{background:var(--studio-glass);border:1px solid #ffffffa0;box-shadow:0 2px 10px #00000008;width:40px;right:24px;top:24px}#exitFocus[hidden]{display:none}
#dock,#dock.vertical{background:var(--studio-glass);border:1px solid #ffffffdd;box-shadow:0 3px 8px #00000003,0 12px 32px #1717280e;backdrop-filter:blur(28px) saturate(1.25);border-radius:22px}#dock button{border-radius:12px;color:#48484e}#dock button.selected{color:#7856c8;background:#7856c80c}#dock button.selected::after{display:none}#dock #collapse{font-size:20px;color:#a0a0a8}#dock #grip{color:#bcbcc3;font-size:21px}#dock svg{stroke-width:1.55}#dock #palette{gap:6px}#dock #palette button{border-radius:50%}#dock #palette button[aria-pressed=true]{background:transparent;border-color:#a18bd3}#empty{color:#b4b4bc;font-size:18px;letter-spacing:-.6px}#empty small{display:none}
body>footer{left:24px;right:24px;bottom:9px;height:24px;justify-content:flex-end;gap:12px}footer>#toolName,footer>span:nth-child(2),footer>#draftStatus,footer>#dimensions{display:none!important}.zoom-controls{gap:0;border:1px solid #00000003;background:#eaeaee;border-radius:20px;padding:1px}.zoom-controls button{width:28px;height:24px;background:transparent;color:#929299;font-size:12px}.zoom-controls #zoomReset{font-size:10px;width:46px}#mobileFit{display:none!important}
.popover{border:1px solid #ffffffee;background:#fffffff2;box-shadow:0 8px 32px #18182016,0 0 0 1px #00000005;border-radius:18px;backdrop-filter:blur(26px);color:#45454c}.popover .caption{letter-spacing:.03em;font-size:11px;font-weight:500;color:#99999f}.popover p{font-size:11px;color:#929299;line-height:1.55}#brushTypes{background:#f1f1f4;border-radius:12px;gap:2px}#brushTypes button{height:60px;font-size:11px}.settings label{font-size:12px}.settings input[type=range]{accent-color:#81709e}.preset-controls{border-color:#00000008}.layer-row{border-color:#00000008}.layer-edit-actions button{font-size:11px;color:#777781}
#shellMenu{width:240px;z-index:35;padding:7px;display:flex;flex-direction:column;gap:2px}#shellMenu[hidden]{display:none}#shellMenu button{width:100%;height:40px;padding:0 11px;display:flex;align-items:center;justify-content:flex-start;gap:12px;border:0;border-radius:9px;font-size:12px;background:transparent;text-align:left;color:#4b4b53}#shellMenu .control-label,#shellMenu .mobile-tool-label{display:inline;font-size:12px}#shellMenu button:hover{background:#f0f0f4}#shellMenu svg{width:18px;height:18px;stroke-width:1.5}#shellMenu #clear{color:#ad5353}#shellMenu #help{margin:0}#shellMenu .language-control{height:44px;margin:3px 0;padding:0 10px;display:flex;align-items:center;justify-content:space-between;border-block:1px solid #00000006;font-size:12px;color:#777}#shellMenu .language-control select{width:110px;height:32px;border:0;background:#f5f5f7;color:#555;border-radius:7px;font-size:11px}#shellMenu .sr-only{display:none}
#saveStatusMenu{width:260px;padding:18px;z-index:35}#saveStatusMenu strong{display:block;font-size:12px;font-weight:550;line-height:1.5}#saveStatusMenu time{display:block;font-size:11px;color:#a0a0a7;margin-top:3px}#saveStatusMenu p{font-size:11px;margin:13px 0 0}#saveStatusMenu button{width:100%;height:34px;border-radius:8px;background:#f2eff7;margin-top:12px;font-size:12px;color:#7251bb}
.editor-dialog,#cloudLibrary{width:min(390px,calc(100vw - 32px));padding:26px;border-radius:24px;border:1px solid #ffffffbb;background:#fdfdfef7;box-shadow:0 24px 100px #14141e22;font-size:13px}.editor-dialog::backdrop,#cloudLibrary::backdrop{background:#1a1a2429;backdrop-filter:blur(8px)}.editor-dialog h2,#cloudLibrary h2{font-size:19px;letter-spacing:-.55px;font-weight:600;margin-bottom:20px}.editor-dialog label{font-size:12px;color:#77777e}.editor-dialog input:not([type=checkbox]),.editor-dialog select,#cloudDrawingName{border:1px solid #0000000b;background:#f4f4f7;border-radius:11px;min-height:42px;font-size:13px;padding:10px 12px}.editor-dialog p{font-size:11px;color:#999;line-height:1.6}.editor-actions button{font-size:12px;background:#efeff3;border-radius:10px;min-height:36px}.editor-actions .export{background:#303035;color:#fff;margin-left:0}.editor-actions{margin-top:20px;gap:7px}#saveProjectDialog .open-choice,#openProjectDialog .open-choice{margin:0;border:0!important;border-bottom:1px solid #00000007!important;border-radius:0!important;background:transparent!important;color:#51515a!important;min-height:56px;display:flex;align-items:center;gap:15px;font-size:13px!important;padding:14px 4px!important}#saveProjectDialog .open-choice:hover,#openProjectDialog .open-choice:hover{background:#f5f5f8!important}#saveProjectDialog .open-choice svg{width:22px;height:22px;color:#898991;stroke-width:1.4}#saveProjectDialog .save-document-note{font-size:11px;margin-top:-8px;margin-bottom:12px;color:#999}#saveProjectDialog p:last-of-type{font-size:10px;margin-top:18px;color:#a1a1a8}#exportDialog>form>p{font-size:10px}.new-project-size{gap:12px}#cloudLibrary p{font-size:12px;color:#999}#cloudList .cloud-item{border-color:#00000006}
#pdfPages{bottom:49px;background:#ffffffe0;border:1px solid #ffffffbb;border-radius:14px;padding:5px 8px;gap:7px;box-shadow:0 3px 16px #00000006;font-size:11px}#pdfPages small,#pdfPages label>span{display:none}#pdfPages button{background:transparent;border-radius:8px;color:#8b8b92;width:28px;height:28px;font-size:18px}#pdfPages select{border:0;background:transparent;padding:4px;color:#686870;font-size:11px}#pdfPages #pdfPageList{width:30px;padding:0}#pdfPages #pdfPageList svg{width:18px;height:18px}#pdfPageCount{color:#ababaf;font-size:10px}body.pages-open #pdfPages{left:calc(50% + 118px)}#pdfPagePanel{top:88px;left:16px;bottom:54px;width:220px;border:1px solid #ffffffbb;background:#f9f9fbeb;border-radius:17px;box-shadow:0 3px 20px #00000005}.page-panel-heading{padding:10px 12px 0}.page-panel-heading h2{font-size:13px;font-weight:550;color:#77777f}.page-panel-heading button{background:transparent;color:#aaa;font-size:22px}#pageJumpForm{margin:8px 12px 14px;align-items:center}#pageJumpForm label{font-size:0}#pageJump{margin:0;width:100%;height:32px;border:1px solid #00000006;background:#ededf2;border-radius:8px;font-size:11px}#pageJumpForm button{background:#e9e5ef;color:#827193;height:32px;font-size:11px}#pageThumbnails{padding:0 12px 14px;gap:10px}#pageThumbnails button{background:#f0f0f4;border:1.5px solid transparent;border-radius:10px;height:176px;color:#a3a3aa;font-size:10px}#pageThumbnails button[aria-current=page]{background:#f4f1f9;border-color:#bba9d5;color:#8c73ad}#pageThumbnails img{box-shadow:0 2px 7px #0000000a}
#projectHome{background:#fafafa}.home-top{height:84px;max-width:1120px;margin:auto;padding:0 32px}.home-top .brand{font-size:17px;letter-spacing:-.5px}.home-top .brand img{width:29px}.home-top #homeAccount{width:36px;height:36px;border:0;background:transparent;padding:0}.home-top #homeLanguage{border:0;background:transparent;color:#a0a0a6;font-size:11px;margin-right:12px;padding:8px}.home-content{max-width:1000px;margin:58px auto;padding:0 32px 70px}.home-eyebrow,.home-subtitle{display:none}.home-content h1{font-size:32px;font-weight:600;letter-spacing:-1.2px;margin:0 0 38px;color:#333336}.start-cards{gap:16px}.start-card{border:1px solid #00000006;border-radius:18px;min-height:152px;padding:24px;box-shadow:0 2px 10px #00000001;background:#fff;transition:box-shadow .2s,transform .2s,border-color .2s}.start-card:hover{background:#fff;border-color:#ddd7e7;box-shadow:0 8px 26px #00000005;transform:translateY(-2px)}.start-card .card-icon{width:30px;height:30px;background:none;color:#9b8aad;border-radius:0;margin:0 0 22px;font-size:20px}.card-icon svg{width:29px;height:29px;stroke-width:1.25}.pdf-card .card-icon{background:none;color:#a69a94}.start-card strong{font-size:16px;font-weight:550;letter-spacing:-.35px}.start-card>span:not(.card-icon),.start-card small{display:none}.recent-heading{gap:10px;margin-top:48px;align-items:center}.recent-heading h2{font-size:15px;font-weight:550;letter-spacing:-.4px;margin:0}.recent-heading>span{font-size:10px;color:#aaa}.recent-heading #storageHelp{width:24px;height:24px;margin-left:auto;color:#b7b7bd}.recent-heading #storageHelp svg{width:14px;height:14px}.recent-grid{margin-top:20px;gap:16px}.recent-card{border:1px solid #00000005;border-radius:14px;box-shadow:none}.recent-open img{height:155px;background:#f0f0f3}.recent-open strong{font-size:12px;font-weight:550;letter-spacing:-.15px;margin:5px 14px}.recent-open small{font-size:9px;color:#aaa;margin:3px 14px 0}.recent-tag{font-size:8px;color:#aca5b5;letter-spacing:.04em;margin:12px 14px 0}.recent-remove{opacity:0;transition:opacity .15s;background:#fff9;border:0;right:7px;top:7px;color:#aaa}.recent-card:hover .recent-remove,.recent-remove:focus-visible{opacity:1}.recent-empty{border:0;background:transparent;color:#b2b2b9;font-size:12px;padding:40px 0;text-align:left}.home-content #homeStatus{font-size:11px}#selectionActions{background:#34343ae8;box-shadow:0 5px 18px #00000016}#toast{border-radius:14px;font-size:12px;background:#33333bdd;box-shadow:0 6px 24px #0001}
@media(max-width:760px){body.mobile-layout>header{height:64px;padding:0 10px;display:flex;gap:0;border-bottom:0}body.mobile-layout>header>.brand,body.mobile-layout .mobile-quick-actions{display:none!important}body.mobile-layout #projectBar{position:static;height:auto;gap:0;flex:1;min-width:0}body.mobile-layout #projectMeta #projectTitle{font-size:13px;max-width:180px;min-width:0;padding:10px 3px;flex:1}body.mobile-layout #projectBar #backHome{width:36px;min-width:36px;height:44px}body.mobile-layout #projectBar .save-state-icon{width:22px;min-width:22px;height:36px;margin:0}body.mobile-layout .actions{gap:0}body.mobile-layout .actions button.quiet-icon{width:36px;min-width:36px;height:44px;border-radius:9px}body.mobile-layout .actions svg{width:20px;height:20px}body.mobile-layout:not(.project-home) #paper{inset:70px 8px 44px;border-radius:15px}body.mobile-layout.pages-open #paper{left:8px}#dock.mobile .mobile-tool-label{display:none}#dock.mobile{border-radius:20px}body.mobile-layout footer{display:flex;justify-content:flex-end;bottom:10px;left:14px;right:14px;height:26px}.mobile-layout .zoom-controls{gap:0;justify-self:auto}.mobile-layout .zoom-controls button{height:26px;min-width:28px;font-size:11px}.mobile-layout .zoom-controls #zoomReset{min-width:44px}.mobile-layout .mobile-panel .mobile-tool-label{display:block}.mobile-layout .popover{max-width:calc(100vw - 20px)}#shellMenu{width:242px}.quiet-menu button{min-height:44px!important}#pdfPages{bottom:51px;max-width:calc(100vw - 24px);padding:5px 7px}body.pages-open #pdfPages{left:50%}#pdfPagePanel,body.focus-mode #pdfPagePanel{inset:80px 12px 94px;width:auto;box-shadow:0 10px 50px #00000012}#pageThumbnails button{height:172px}#pageJump,#pageJumpForm button{height:40px}#exitFocus.quiet-icon{right:14px;top:18px;width:40px;height:40px}.home-top{height:74px;padding:0 22px}.home-top .brand{font-size:16px}.home-content{margin:32px auto;padding:0 22px 45px}.home-content h1{font-size:29px;margin-bottom:27px}.start-cards{grid-template-columns:1fr;gap:10px}.start-card{min-height:82px;padding:22px 22px 22px 75px;justify-content:center;border-radius:15px}.start-card .card-icon{position:absolute;left:23px;top:25px;width:28px;height:28px;margin:0}.start-card strong{font-size:15px}.recent-heading{margin-top:34px}.recent-grid{gap:12px;margin-top:16px}.recent-open img{height:110px}.recent-remove{opacity:1;background:#fff7}.editor-dialog,#cloudLibrary{padding:23px;border-radius:23px}.mobile-layout .editor-dialog input,.mobile-layout .editor-dialog select{font-size:16px}body.focus-mode #pdfPages{bottom:51px}.mobile-layout #empty{font-size:17px}}
@media(max-width:350px){body.mobile-layout #projectMeta #projectTitle{font-size:12px}.home-top .brand b{display:none}}
.recent-heading>span,.recent-open small{color:#76767e}.recent-open small{font-size:11px;line-height:1.45}.popover p,.editor-dialog p{color:#777780}.home-top #homeLanguage{color:#777780}.recent-empty{color:#777780}
#saveProjectDialog .open-choice,#openProjectDialog .open-choice{justify-content:flex-start;padding-left:8px!important}
/* One typographic scale for the entire page counter; retain native page selection. */
#pdfPages label{display:flex;align-items:center;margin-right:-4px}
#pdfPages #pdfPageSelect,#pdfPages #pdfPageCount{font-family:inherit;font-size:12px;font-weight:500;line-height:28px;font-variant-numeric:tabular-nums;color:#6b6b73;letter-spacing:0}
#pdfPages #pdfPageSelect{appearance:none;-webkit-appearance:none;background-image:none;height:28px;min-width:20px;padding:0 3px;text-align:center;text-align-last:center;border-radius:6px;cursor:pointer}
#pdfPages #pdfPageSelect:hover{background-color:#00000005}
@media(prefers-reduced-motion:reduce){.start-card,body>header,#projectBar,.recent-remove{transition:none}}

/* laser.css */
#laserOverlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}
#laserMenu{width:202px;padding:13px}
#laserMenu .caption{margin:0 0 10px 4px}
.laser-modes{display:flex;gap:6px}
.laser-modes button{display:flex;flex-direction:column;gap:9px;width:84px;height:72px;border-radius:12px;font-size:12px;color:#75757e}
.laser-modes button[aria-pressed=true]{background:#ff35470b;color:#dd3344}
.laser-preview{position:relative;display:block;width:46px;height:18px}
.laser-dot:before{content:"";position:absolute;left:19px;top:5px;width:8px;height:8px;border-radius:50%;background:#ff3547;box-shadow:0 0 0 4px #ff354712,0 0 9px #ff35472b}
.laser-trail:before{content:"";position:absolute;left:4px;top:7px;width:38px;height:4px;border-radius:3px;background:linear-gradient(90deg,#ff354710,#ff3547);transform:rotate(-12deg)}
#dock [data-tool=laser].selected{color:#e53546;background:#ff35470b}
#eraserCursor{position:fixed;z-index:4;pointer-events:none;transform:translate(-50%,-50%);border:1px solid #60606d88;border-radius:50%;background:#9393a31c;box-shadow:0 0 0 1px #ffffffa6;box-sizing:border-box}
#eraserCursor[hidden]{display:none}
#laserCursor{position:fixed;z-index:4;pointer-events:none;transform:translate(-50%,-50%);width:8px;height:8px;border:1px solid #a6495973;border-radius:50%;background:#d64a5a40;box-shadow:0 0 0 1px #ffffff80;box-sizing:border-box}
#laserCursor[hidden]{display:none}
#highlighterCursor{position:fixed;z-index:4;pointer-events:none;transform:translate(-50%,-50%);width:2px;background:#50505fc2;box-shadow:0 0 0 1px #ffffffb3}
#highlighterCursor:before,#highlighterCursor:after{content:"";position:absolute;left:-2px;width:6px;height:1px;background:#50505fc2;box-shadow:0 0 0 1px #ffffff80}
#highlighterCursor:before{top:0}#highlighterCursor:after{bottom:0}
#highlighterCursor[hidden]{display:none}

/* quick-controls.css */
/* Optional edge rail: icons, live values, and native accessible range inputs. */
#quickControls{position:fixed;z-index:15;width:88px;height:min(500px,calc(100dvh - 180px));min-height:220px;padding:8px;display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid #ffffffed;border-radius:24px;background:#fffffff0;box-shadow:0 3px 9px #00000003,0 12px 34px #25253512;backdrop-filter:blur(22px);user-select:none;transition:left .36s cubic-bezier(.22,1,.36,1),top .36s cubic-bezier(.22,1,.36,1),width .3s,height .3s,border-radius .3s;transform-origin:center}
#quickControls[hidden]{display:none}#quickControls .quick-grip{width:42px;height:23px;flex:none;cursor:grab;border-radius:8px;color:#b5b5be;touch-action:none}#quickControls .quick-grip svg{width:16px;height:19px;stroke-width:4;transform:rotate(90deg)}
#quickControls .quick-tool{width:26px;height:25px;color:#8666bc;display:flex;align-items:center;justify-content:center;flex:none}#quickControls .quick-tool svg{width:20px;height:20px;stroke-width:1.5}
.quick-sliders{display:flex;gap:2px;flex:1;min-height:0;width:100%;justify-content:center}.quick-control{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;width:34px;min-width:0;min-height:0;cursor:pointer}
#quickControls input[type=range]{appearance:none;-webkit-appearance:none;writing-mode:vertical-lr;direction:rtl;width:32px;height:155px;min-height:50px;flex:1;background:transparent;cursor:ns-resize;border:0;border-radius:12px;padding:0;margin:0;touch-action:none;outline-offset:0}
#quickControls input[type=range]::-webkit-slider-runnable-track{width:8px;height:100%;border-radius:8px;background:linear-gradient(to top,#9179b0 var(--quick-progress),#eae7ee var(--quick-progress))}
#quickControls input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;height:18px;width:18px;margin-left:-5px;border:1px solid #00000009;border-radius:50%;background:white;box-shadow:0 1px 4px #32214d30;transition:box-shadow .15s,scale .15s}
#quickControls input[type=range]:hover::-webkit-slider-thumb{box-shadow:0 1px 7px #71559744}#quickControls input[type=range]:active::-webkit-slider-thumb{scale:1.14;box-shadow:0 1px 8px #71559755}
#quickControls input[type=range]::-moz-range-track{width:8px;height:100%;border-radius:8px;background:#eae7ee}#quickControls input[type=range]::-moz-range-progress{background:#9179b0;border-radius:8px}#quickControls input[type=range]::-moz-range-thumb{height:18px;width:18px;border:1px solid #00000009;border-radius:50%;background:white;box-shadow:0 1px 4px #32214d30}
#quickControls output{font-size:10px;line-height:18px;font-weight:550;font-variant-numeric:tabular-nums;letter-spacing:-.25px;color:#727079;white-space:nowrap}
#quickControls input:disabled{opacity:.28;cursor:default}#quickControls[data-unavailable=true] .quick-sliders{opacity:.35}#quickControls .quick-hide{width:32px;height:26px;flex:none;border-radius:8px;color:#b6b2bd}#quickControls .quick-hide svg{width:14px;height:14px}
#quickControls[data-edge=bottom]{width:min(700px,calc(100vw - 48px));height:80px;min-height:0;flex-direction:row;gap:12px;padding:10px 12px;border-radius:22px}
#quickControls[data-edge=bottom] .quick-grip{width:22px;height:42px}#quickControls[data-edge=bottom] .quick-grip svg{transform:none}#quickControls[data-edge=bottom] .quick-tool{width:23px}
#quickControls[data-edge=bottom] .quick-sliders{gap:24px;min-width:0;align-items:center}#quickControls[data-edge=bottom] .quick-control{flex:1;width:auto;display:grid;grid-template-columns:1fr;grid-template-rows:36px 18px;gap:0}#quickControls[data-edge=bottom] output{grid-row:2;justify-self:end;padding-right:2px}#quickControls[data-edge=bottom] input[type=range]{grid-column:1;grid-row:1;writing-mode:horizontal-tb;direction:ltr;width:100%;height:36px;min-height:0;cursor:ew-resize}#quickControls[data-edge=bottom] input[type=range]::-webkit-slider-runnable-track{width:100%;height:8px;background:linear-gradient(to right,#9179b0 var(--quick-progress),#eae7ee var(--quick-progress))}#quickControls[data-edge=bottom] input[type=range]::-webkit-slider-thumb{margin-left:0;margin-top:-5px}#quickControls[data-edge=bottom] input[type=range]::-moz-range-track{width:100%;height:8px}
#quickControls.quick-dragging{transition:none;box-shadow:0 16px 42px #25253527;border-color:#d6c6ef}#quickControls.quick-dragging .quick-grip{cursor:grabbing;color:#8e72b6}
#shellMenu #quickControlsToggle{gap:12px}#shellMenu #quickControlsToggle .control-label{flex:1}.quick-switch{width:29px;height:18px;flex:none;border-radius:12px;background:#dad9df;position:relative;transition:background .2s}.quick-switch::after{content:'';position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .24s cubic-bezier(.2,.8,.2,1)}[aria-checked=true]>.quick-switch{background:#9174b7}[aria-checked=true]>.quick-switch::after{transform:translateX(11px)}
body.project-home #quickControls{display:none}
@media(max-width:760px){#quickControls{width:90px;height:min(500px,calc(100dvh - 180px))}.quick-control{width:36px}#quickControls input[type=range]{width:36px}#quickControls[data-edge=bottom]{width:min(650px,calc(100vw - 36px));height:88px;gap:6px}.quick-sliders{gap:2px}#quickControls[data-edge=bottom] .quick-sliders{gap:14px}#quickControls[data-edge=bottom] .quick-hide{width:25px}#quickControls output{font-size:11px}}
@media(max-height:480px){#quickControls:not([data-edge=bottom]){height:calc(100dvh - 136px);min-height:164px}#quickControls:not([data-edge=bottom]) .quick-tool{display:none}}
@media(prefers-reduced-motion:reduce){#quickControls,#quickControls input[type=range]::-webkit-slider-thumb,.quick-switch,.quick-switch::after{animation:none!important;transition:none!important}}

/* text-editing.css */
/* Edit at the object's actual transform, not in a detached modal. */
#textEntry.inline-text{position:absolute;z-index:3;min-width:0;max-width:none;box-sizing:border-box;padding:0;border:0;border-radius:2px;background:transparent;line-height:1.3;transform-origin:0 0;outline:1px solid #a58bd49c;outline-offset:3px;box-shadow:none;caret-color:#7754b3;transition:none;appearance:none}
#textEntry.inline-text[hidden]{display:none}#textEntry.inline-text:focus-visible{outline:1px solid #a58bd4;outline-offset:3px}#textEntry.inline-text::selection{background:#ae92df40}
/* The same quiet glass, spacing and icon scale as the drawing toolbar. */
#selectionActions{z-index:17;gap:3px;padding:6px;border:1px solid #ffffffea;border-radius:17px;background:#fffffff2;color:#625c6e;box-shadow:0 3px 8px #00000004,0 10px 28px #25253513;backdrop-filter:blur(24px) saturate(1.15);align-items:center;justify-content:center}
#selectionActions button,#selectionActions .selection-transform{width:36px;min-width:36px;height:36px;padding:8px;border-radius:10px;font-size:0;color:#625c6e;transition:background .16s,color .16s,transform .16s}
#selectionActions button:hover{background:#7e59b50d;color:#805cb5}#selectionActions button:active{background:#7e59b51b;transform:scale(.93)}#selectionActions button svg{width:19px;height:19px;stroke-width:1.5;fill:none}
#selectionActions #selectionDelete{color:#a46f79}#selectionActions #selectionDelete:hover{background:#ce627b0d;color:#b74361}
#selectionActions #selectionEditText,#selectionActions #selectionflipX,#selectionActions #selectionStackfront{margin-left:4px}#selectionActions button[hidden]{display:none}
@media(max-width:760px){#selectionActions{display:grid;grid-template-columns:repeat(4,38px);width:max-content;gap:2px;padding:5px;max-width:calc(100vw - 20px)}#selectionActions[hidden]{display:none}#selectionActions:has(#selectionEditText:not([hidden])){grid-template-columns:repeat(5,38px)}#selectionActions button,#selectionActions .selection-transform{width:38px;min-width:38px;height:40px;padding:9px}#selectionActions #selectionEditText,#selectionActions #selectionflipX,#selectionActions #selectionStackfront{margin-left:0}}
@media(prefers-reduced-motion:reduce){#selectionActions button{transition:none}}

/* notifications.css */
/* A quiet status capsule, in the same material as the drawing tools. */
#toast{display:flex;align-items:center;gap:10px;width:max-content;max-width:min(480px,calc(100vw - 32px));min-height:44px;bottom:calc(52px + env(safe-area-inset-bottom,0px));padding:11px 17px 11px 13px;border:1px solid #e9e5f0;border-radius:17px;background:#fdfcfff5;color:#56505f;box-shadow:0 3px 9px #28203505,0 10px 30px #28203512;font-size:12px;font-weight:450;line-height:1.55;letter-spacing:-.15px;overflow-wrap:anywhere;text-align:start;z-index:30;visibility:hidden;transform:translate(-50%,8px) scale(.98);transition:opacity .2s ease,transform .28s cubic-bezier(.22,1,.36,1),visibility .2s}
#toast::before{content:"";display:block;flex:0 0 20px;width:20px;height:20px;background:url('/artigo-logo.png?v=17') center/contain no-repeat}
#toast:empty{display:none}#toast.show{visibility:visible;transform:translate(-50%,0) scale(1)}
@media(max-width:600px){#toast{max-width:calc(100vw - 24px);padding:11px 15px 11px 12px;font-size:12px}}
@media(prefers-reduced-motion:reduce){#toast{transition:none;transform:translateX(-50%)}#toast.show{transform:translateX(-50%)}}

/* tooltips.css */
#artigoTooltip{position:fixed;z-index:50;width:max-content;max-width:min(260px,calc(100vw - 16px));padding:8px 12px;border:1px solid #e9e5f0;border-radius:11px;background:#fdfcfff7;color:#62576f;box-shadow:0 3px 8px #28203505,0 8px 24px #28203512;font-size:11px;font-weight:450;line-height:1.5;letter-spacing:-.1px;overflow-wrap:anywhere;pointer-events:none;user-select:none;opacity:0;transform:translateY(3px);transition:opacity .16s,transform .2s cubic-bezier(.22,1,.36,1)}
#artigoTooltip[hidden]{display:none}#artigoTooltip.show{opacity:1;transform:translateY(0)}
#dock #settings[aria-pressed=true],#mobileToolsMenu #settings[aria-pressed=true]{background:#7954d910;color:#7954d9}
#lassoMenu{width:236px;padding:14px}#lassoMenu .lasso-types{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;margin:0;background:#f1f0f5;border-radius:12px}#lassoMenu .lasso-types button{width:auto;height:40px;padding:0 12px;border-radius:9px;font-size:12px}#lassoMenu .lasso-types button[aria-pressed=true]{background:#fff;color:#7954b3;box-shadow:0 2px 7px #28203507}
#lassoMenu .lasso-angle{display:flex;align-items:center;gap:8px;margin:12px 0}#lassoMenu .lasso-angle label{position:relative;flex:1;margin:0}#lassoMenu #selectionAngle{width:100%;height:40px;min-height:40px;margin:0;padding:8px 30px 8px 12px;border:1px solid #e9e5ef;border-radius:10px;background:#f8f7fa;font-size:13px;color:#56505f;font-variant-numeric:tabular-nums}#lassoMenu .lasso-degree{position:absolute;right:12px;top:10px;color:#99909f;font-size:14px;pointer-events:none}
#lassoMenu #lassoTransforms{display:flex;justify-content:space-between;gap:6px;padding-top:10px;border-top:1px solid #eeeaf3}#lassoMenu #lassoTransforms button,#lassoMenu #rotateSelection{width:40px;height:40px;padding:10px;margin:0;border:0;border-radius:10px;color:#746681;background:#f4f1f8}#lassoMenu #lassoTransforms button:hover,#lassoMenu #rotateSelection:hover{background:#ebe4f4;color:#7954b3}#lassoMenu #deselect{margin-left:auto;background:transparent}#lassoMenu svg{width:20px;height:20px;stroke-width:1.5}
#lassoMenu #selectionAngle{appearance:textfield}#lassoMenu #selectionAngle::-webkit-inner-spin-button,#lassoMenu #selectionAngle::-webkit-outer-spin-button{appearance:none;margin:0}
@media(max-width:760px){#lassoMenu .lasso-types button,#lassoMenu #selectionAngle{height:44px}#lassoMenu #lassoTransforms button,#lassoMenu #rotateSelection{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){#artigoTooltip{transition:none;transform:none}}

/* shape-trim.css */
#shapeTrimPreview{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2}#shapeTrimPreview[hidden]{display:none}#shapeMenu [data-tool=trim]{color:#9b6581}

/* shortcut-settings.css */
#shortcutSettingsDialog{width:min(610px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px}.shortcut-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.shortcut-heading h2{margin:0}.shortcut-heading button{width:34px;height:34px;color:#8a7a9f}.shortcut-heading svg{width:19px;height:19px}
#bindingRows{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}.binding-row{display:flex;align-items:center;gap:5px;padding:7px 0;border-bottom:1px solid #eeeaf2;min-width:0}.binding-tool{display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:11px;color:#71677e}.binding-tool>svg{width:18px;height:18px;flex-shrink:0;color:#9b87b5}.binding-tool>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.binding-key{height:32px;min-width:54px;width:auto;max-width:132px;border-radius:9px;background:#f1eef6;color:#7d659b;font-size:10px;padding:0 8px;overflow-wrap:anywhere;transition:background .18s,box-shadow .18s}.binding-key[aria-pressed=true]{background:#eae0f7;box-shadow:0 0 0 2px #b69bd6}.binding-clear{width:24px;height:28px;flex-shrink:0;color:#aa9db8}.binding-clear svg{width:13px;height:13px}#bindingNotice{min-height:32px;margin:16px 0 0;font-size:11px;color:#978aa3;line-height:1.5}#shortcutSettingsDialog .editor-actions{position:sticky;bottom:-24px;margin-top:12px;padding:12px 0 2px;background:#fdfdfef7}
@media(max-width:540px){#shortcutSettingsDialog{padding:20px}#bindingRows{grid-template-columns:1fr}.binding-tool{font-size:12px}.binding-key{font-size:11px;min-width:70px}.binding-row{padding:8px 0}#shortcutSettingsDialog .editor-actions{bottom:-20px}}
@media(prefers-reduced-motion:reduce){.binding-key{transition:none}}

/* ai-assistant.css */
/* Opt-in AI: no sidebar or model work is reserved while closed. */
#aiPanel{position:fixed;z-index:29;right:20px;top:78px;width:350px;max-height:calc(100dvh - 104px);overflow:auto;padding:17px;border:1px solid #eeebf3;border-radius:22px;background:#fffffff5;box-shadow:0 10px 46px #29203914;backdrop-filter:blur(24px);animation:ai-appear .24s cubic-bezier(.2,.8,.2,1);color:#44414c;font-size:12px;line-height:1.5}
#aiPanel[hidden],#aiPanel [hidden]{display:none!important}.ai-heading{display:flex;align-items:center;gap:8px;margin-bottom:17px}.ai-heading h2{flex:1;font-size:14px;letter-spacing:-.3px;font-weight:600;margin:0}.ai-heading h2 small{font-size:9px;color:#a59aae;font-weight:500;margin-left:5px}.ai-mark{color:#9372bd;display:flex}.ai-mark svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.4}.ai-heading button{width:28px;height:28px;background:transparent;border-radius:9px;color:#97909f}.ai-heading button svg{width:17px;height:17px;stroke-width:1.4}
#aiPanel button{width:auto;height:auto;min-width:0;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:12px;border:0;transition:background .16s,color .16s,opacity .16s,transform .16s}#aiPanel .ai-heading button{width:28px;height:28px}#aiPanel button:hover:not(:disabled){background:#f0eaf8}#aiPanel button:active:not(:disabled){transform:scale(.97)}#aiPanel button:disabled{opacity:.4;cursor:default}#aiPanel .ai-primary{border:1px solid #eee6f8;border-radius:11px;background:#f3eefb;color:#8060aa;min-height:36px;padding:8px 14px;font-weight:550}.ai-link{background:transparent!important;color:#a098a9;font-size:10px!important;padding:5px 0}#aiSetup{display:flex;flex-direction:column;gap:9px;padding-bottom:16px;border-bottom:1px solid #f0edf4;margin-bottom:14px}#aiPrivacy{color:#827a8c;font-size:11px;margin:0 0 3px}#aiPanel select{border:1px solid #eeebf2;border-radius:9px;background:#f9f8fb;color:#746b7e;padding:8px 10px;font-size:11px;max-width:100%}#aiRecommendation{font-size:10px;color:#a29aa9;margin:0}#aiClearCache{align-self:center}
.ai-context{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:12px}#aiScope{max-width:68%;padding:6px 9px!important}#aiDevice{color:#aaa3b0;font-size:10px}.ai-modes{display:flex;padding:3px;background:#f5f3f8;border-radius:11px;gap:3px;margin-bottom:12px}.ai-modes button{flex:1;background:transparent;color:#aaa1b4;border-radius:8px;padding:7px}.ai-modes button[aria-pressed=true]{background:white!important;color:#8e6fb5;box-shadow:0 1px 5px #34264107}.ai-presets{display:flex;gap:6px;margin-bottom:9px}.ai-presets button{padding:5px 9px;background:#faf9fc;color:#a398b0;border-radius:8px;font-size:10px!important}
#aiPanel #aiSource{width:38px;height:30px;min-width:38px;padding:2px;border:1px solid #eeeaf3;border-radius:6px;background:#fff;margin-left:auto;overflow:hidden}#aiSource canvas{width:100%;height:100%;object-fit:contain}.ai-context:has(#aiSource[aria-expanded=true]){flex-wrap:wrap}#aiPanel #aiSource[aria-expanded=true]{order:3;flex-basis:100%;width:100%;height:auto;padding:8px;border-radius:12px}#aiSource[aria-expanded=true] canvas{max-height:230px;height:auto}
#aiPanel textarea{font:12px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.1px;color:#55505e;background:#fbfafc;border:1px solid #eeeaf3;border-radius:12px;padding:11px;display:block;width:100%;resize:vertical;outline:none;max-height:250px;box-sizing:border-box}#aiPanel textarea:focus{border-color:#d6c7e8;box-shadow:0 0 0 3px #9c7abc09}#aiPanel textarea::placeholder{color:#b5acbf}#aiReply{background:white!important;min-height:130px}.ai-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:9px}.ai-form-actions #aiStop{border-radius:10px;padding:8px 13px;color:#a285b2;background:#f7f4fa}.ai-result-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:10px}#aiCaution{font-size:9px;color:#b0a7bb;max-width:50%}#aiResult{border-top:1px solid #f0edf5;margin-top:16px;padding-top:15px}.ai-footer{display:flex;align-items:center;gap:6px;margin-top:16px;font-size:10px;color:#a79caf}.ai-dot{width:5px;height:5px;background:#cdc6d5;border-radius:50%;flex:none}#aiPanel[data-state=ready] .ai-dot{background:#9b83b7}#aiPanel[data-state=running] .ai-dot,#aiPanel[data-state=loading] .ai-dot{background:#a68abb;animation:ai-pulse 1.2s ease-in-out infinite}#aiStatus{flex:1;overflow-wrap:anywhere;line-height:1.5}#aiProgress{width:100%;height:3px;border:0;margin-top:7px;appearance:none}#aiProgress::-webkit-progress-bar{background:#f0ebf6;border-radius:3px}#aiProgress::-webkit-progress-value{background:#b79aca;border-radius:3px;transition:width .3s}#aiDiagramPreview{width:100%;height:auto;background:#fcfbfd;border:1px solid #f2eef7;border-radius:12px}#canvasAI{color:#9980b7}#canvasAI[aria-expanded=true]{background:#f1eafa}body.project-home #aiPanel{display:none}body.focus-mode #aiPanel{top:65px}
@keyframes ai-appear{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:none}}@keyframes ai-pulse{50%{opacity:.35}}
#aiPanel #aiMemory{width:27px;height:27px;flex:none;border-radius:8px;background:transparent;color:#b5aebd}#aiPanel #aiMemory[aria-pressed=true]{background:#f3eef9;color:#9674b9}#aiMemory svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.5;fill:none}#aiConversation{position:relative;margin:10px 0 12px;border:1px solid #f0edf5;border-radius:11px;background:#fcfbfd;padding:8px 11px}#aiConversation summary{cursor:pointer;color:#a196ac;font-size:10px;padding-right:25px}#aiConversation>div{max-height:200px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}#aiConversation p{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0;padding:8px 10px;border-radius:9px;line-height:1.6}.ai-history-user{background:#f2edf8;color:#806c96;margin-left:15px!important}.ai-history-assistant{background:#fff;border:1px solid #f0edf5;color:#77707e;margin-right:15px!important}#aiPanel #aiForget{position:absolute;right:6px;top:4px;width:24px;height:24px;padding:5px;background:transparent;color:#b7afbf}#aiForget svg{width:13px;height:13px}
@media(max-width:760px){#aiPanel{right:10px;top:76px;width:min(350px,calc(100vw - 20px));max-height:calc(100dvh - 130px);box-sizing:border-box;padding:16px}#aiPanel textarea{font-size:16px}#aiPanel .ai-primary{min-height:42px}#aiPanel .ai-heading button,#aiPanel #aiMemory,#aiPanel #aiSource{height:40px;width:40px;min-width:40px}#aiPanel .ai-modes button,#aiPanel .ai-presets button{min-height:34px}}
@media(prefers-reduced-motion:reduce){#aiPanel,#aiPanel *,#aiPanel ::before,#aiPanel ::after{animation:none!important;transition:none!important}}
