:root{color-scheme:dark;--bg:#18191c;--panel:#292b30;--edge:#393b42;--text:#f4f4f6;--muted:#a0a1a9;--blue:#63a7ff;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font:14px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overscroll-behavior:none}button,input,select{font:inherit}button{cursor:pointer;color:inherit;background:transparent;border:0;border-radius:8px;touch-action:manipulation}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}button:hover{background:#ffffff0b}button:disabled{opacity:.35;cursor:default}input,select{color:inherit;background:#202126;border:1px solid #44454e;border-radius:8px;padding:12px;min-width:0}input[type=range]{accent-color:#e4e6ed;padding:0;cursor:pointer}input[type=color]{padding:2px;cursor:pointer}input[type=checkbox]{accent-color:var(--blue)}[hidden]{display:none!important}.screen{height:100dvh;width:100%;position:absolute;inset:0}.brand{font-size:12px;font-weight:600;letter-spacing:3px;color:#b9bac6}.primary,.secondary{padding:11px 16px;font-weight:600;border-radius:10px;white-space:nowrap}.primary{background:#e8e8f1;color:#17181b}.primary:hover{background:#fff}.secondary{background:#ffffff0b;border:1px solid #ffffff20}.textbutton{padding:12px 0;color:#aabfff}.muted{color:var(--muted);font-size:12px}.login{display:grid;grid-template-columns:1.15fr 1fr;background:#15151a}.login-art{background:linear-gradient(180deg,#0d0d1712,#090910a8),url('assets/hero-art.webp') center/cover no-repeat;position:relative;min-width:0}.art-label{position:absolute;bottom:8%;left:8%;right:5%;display:grid;gap:14px;text-shadow:0 2px 20px #000}.art-label span,.art-label small{letter-spacing:3px;font-size:11px}.art-label strong{font-size:clamp(34px,6vw,86px);line-height:.98;letter-spacing:-.06em}.login-side{display:grid;place-items:center;overflow:auto;padding:32px;background:radial-gradient(ellipse at 75% 0%,#28233d 0%,transparent 55%),#17171d}.login-inner{width:min(360px,100%)}.app-icon{width:76px;height:76px;margin-bottom:20px;filter:drop-shadow(0 10px 24px #0006)}h1,h2,p{margin:0}h1{font-size:34px;letter-spacing:-1.5px;margin:12px 0 8px}p{line-height:1.55;color:#b9bac6}.login form{display:grid;gap:14px;margin-top:30px}.login label{display:grid;gap:8px;font-size:12px;color:#c5c6cf}.login footer{margin-top:22px;font-size:11px;color:#777985;line-height:1.7}.gallery{background:#1b1c20;overflow:auto;padding:calc(30px + var(--safe-top)) clamp(16px,5vw,70px) calc(30px + var(--safe-bottom))}.gallery-head{display:flex;justify-content:space-between;align-items:flex-end;gap:15px;flex-wrap:wrap;border-bottom:1px solid #35363c;padding-bottom:24px}.gallery-head h1{font-size:42px;margin-bottom:0}.gallery-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.gallery-sub{display:flex;justify-content:space-between;color:var(--muted);padding:24px 0 18px;font-size:13px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:24px}.project-card{min-width:0}.project-preview{width:100%;height:170px;background:#28292e;border:1px solid #41434b;display:grid;place-items:center;overflow:hidden;padding:0;border-radius:9px;box-shadow:0 5px 15px #0003}.project-preview img{max-width:100%;max-height:100%;object-fit:contain}.project-meta{display:flex;align-items:center;gap:6px;padding-top:10px}.project-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;font-weight:600}.project-meta small{color:var(--muted);display:block;font-weight:400;font-size:11px;margin-top:4px}.gallery-bottom{color:#858792;font-size:12px;margin-top:36px}.empty{height:190px;border:1px dashed #55565f;display:grid;place-items:center;color:#bbb}.editor{display:flex;flex-direction:column;background:#202125;padding-top:var(--safe-top);padding-bottom:var(--safe-bottom)}.toolbar{height:54px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0 12px;background:#202125;border-bottom:1px solid #34353a;z-index:5}.toolgroup{display:flex;align-items:center;gap:4px}.ico{height:40px;width:40px;display:inline-grid;place-items:center;padding:0;color:#c9cbd2;flex-shrink:0}.ico svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.ico.active{color:var(--blue);background:#4975a51b}.ico.small{width:34px;height:34px}.ico.small svg{width:19px;height:19px}.gallery-link{font-weight:600;color:#d0d1d9;padding:10px 7px}.sep{width:1px;height:22px;background:#3e4047;margin:0 5px}.doc-title{color:#8f919d;max-width:30%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}#colorButton{width:40px;height:40px;display:grid;place-items:center}#colorButton span{width:28px;height:28px;border-radius:50%;background:#27202b;border:2px solid #777984;box-shadow:0 0 0 2px #15161a}#workspace{position:relative;flex:1;min-height:0;overflow:hidden;background:#151619}#viewport{position:absolute;inset:0;overflow:hidden;touch-action:none;outline:none;background:radial-gradient(ellipse at center,#25262b,#191a1d 75%);cursor:crosshair}#paper{position:absolute;left:50%;top:50%;transform-origin:0 0;box-shadow:0 8px 45px #0008;background-color:#fff;background-image:conic-gradient(#ddd 25%,#fff 0 50%,#ddd 0 75%,#fff 0);background-size:20px 20px;touch-action:none}#paper canvas{display:block;width:100%;height:100%;position:absolute;inset:0;pointer-events:none}.left-controls{position:absolute;z-index:2;left:9px;top:50%;transform:translateY(-50%);background:#292a2fdd;backdrop-filter:blur(16px);border:1px solid #3b3d43;border-radius:12px;display:flex;flex-direction:column;align-items:center;width:45px;padding:7px 4px;gap:5px;box-shadow:0 4px 18px #0005}.left-controls input[type=range]{writing-mode:vertical-lr;direction:rtl;width:27px;height:clamp(44px,15vh,112px);margin:3px 0}.range-label{font-size:10px;color:#bfc0c8;padding:3px 0;text-align:center}.quicktools{position:absolute;right:9px;bottom:12px;background:#292a2fdd;border:1px solid #3b3d43;border-radius:10px;display:flex;padding:3px;z-index:2}.statusbar{height:29px;display:flex;align-items:center;gap:10px;padding:0 12px;color:#8e909a;background:#202125;font-size:11px;flex:none}.statusbar button{padding:2px 7px;color:#c0c2ca}.statusbar #saveStatus{flex:1}.status-extra{margin-left:4px;letter-spacing:1.5px}#popover{position:absolute;top:8px;right:10px;width:min(330px,calc(100% - 65px));max-height:calc(100% - 16px);overflow:auto;background:#292b30f5;backdrop-filter:blur(20px);border:1px solid #4b4d55;border-radius:12px;box-shadow:0 10px 35px #0008;z-index:10;padding:12px;overscroll-behavior:contain}.pop-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #41434a;margin-bottom:10px;padding:0 0 7px}.pop-head strong{font-size:18px}.pop-head .ico{width:30px;height:30px}.panel-row{display:flex;align-items:center;gap:8px;margin:8px 0}.panel-row label{flex:1;color:#bbbcc6;font-size:12px}.panel-row input[type=range]{flex:1;min-width:50px}.panel-row input[type=number]{width:75px}.panel-row select{flex:1;padding:7px}.action-list{display:grid;gap:5px}.action-list button{background:#35373e;padding:12px;text-align:left}.brush-list{display:grid;gap:5px}.brush-item{display:flex;align-items:center;gap:12px;padding:9px;background:#33353b;text-align:left;border-radius:7px}.brush-item.active{background:#285b8f}.brush-item img{width:70px;height:35px;object-fit:contain;filter:invert(1)}.brush-item .stroke{width:70px;height:35px;display:grid;place-items:center}.brush-item small{display:block;color:#b9bdc9;font-size:11px;margin-top:4px}.layer-list{display:grid;gap:4px}.layer{display:flex;align-items:center;gap:7px;background:#36383f;padding:7px;border-radius:7px}.layer.active{background:#295e99}.layer .thumb{width:40px;height:40px;object-fit:contain;border:1px solid #ffffff26;background:#17181a;border-radius:4px}.layer .lname{flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:7px 2px}.layer button{padding:5px}.layer input{width:17px;height:17px;margin:0}.swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;margin:12px 0}.swatch{aspect-ratio:1;border:1px solid #ffffff20;border-radius:6px}.color-wheel{width:190px;height:190px;margin:8px auto;border-radius:50%;background:conic-gradient(red,#ff0,lime,cyan,blue,magenta,red);position:relative;touch-action:none;cursor:crosshair}.color-wheel:after{content:'';position:absolute;inset:14%;background:#292b30;border-radius:50%;pointer-events:none}.color-square{width:124px;height:124px;position:absolute;inset:0;margin:auto;z-index:1;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,red);border-radius:8px;touch-action:none}.color-dot{width:14px;height:14px;border:2px solid white;box-shadow:0 0 0 1px #000;position:absolute;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.color-wheel>.color-dot{z-index:2}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}dialog{border:1px solid #50525b;border-radius:16px;background:#292b31;color:var(--text);padding:22px;width:min(420px,92vw);box-shadow:0 18px 90px #0009}dialog::backdrop{background:#08090eb0;backdrop-filter:blur(6px)}dialog label{display:grid;gap:6px;margin:12px 0;color:#c2c3cc;font-size:12px}#modalActions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.modal-presets{display:grid;gap:6px}.modal-presets button{background:#35373e;text-align:left;padding:10px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}#toast{position:fixed;bottom:44px;left:50%;transform:translateX(-50%);background:#35373e;border:1px solid #53555e;color:#fff;z-index:99;padding:10px 16px;border-radius:9px;box-shadow:0 6px 20px #0007;max-width:90vw;text-align:center}.danger{color:#ffacaa}.hint{font-size:11px;color:#a6a8b2;line-height:1.5;margin:10px 0}@media(max-width:700px){.login{grid-template-columns:1fr}.login-art{display:none}.login-side{background:linear-gradient(#15151ce8,#15151cf5),url('assets/dark.webp') center/cover}.toolbar{padding:0 4px;gap:0;height:48px}.toolgroup{gap:0}.ico{width:34px;height:36px}.ico svg{width:21px;height:21px}.doc-title{display:none}.gallery-link{font-size:12px;padding:7px 4px}.sep{margin:0 2px}.left-controls{left:4px;width:37px}.status-extra{display:none}.statusbar{gap:4px;padding:0 6px}.project-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}.project-preview{height:130px}.gallery-actions .primary,.gallery-actions .secondary{font-size:12px;padding:9px}.gallery-head{align-items:flex-start}}@media(max-height:500px){.login-inner{margin:auto}.left-controls{gap:0;padding:3px}.left-controls input[type=range]{height:60px}.left-controls .ico{height:25px}.toolbar{height:44px}.statusbar{height:23px}}

/* Artist 0.2 – floating navigation, same visual system as brush controls */
.view-controls{position:absolute;z-index:3;right:9px;top:50%;transform:translateY(-50%);width:53px;padding:5px 4px;display:flex;flex-direction:column;align-items:center;gap:3px;background:#292a2fed;backdrop-filter:blur(16px);border:1px solid #3b3d43;border-radius:12px;box-shadow:0 4px 18px #0005;touch-action:none;user-select:none;max-height:100%}.view-controls input[type=range]{writing-mode:vertical-lr;direction:rtl;width:27px;height:clamp(34px,13vh,106px);margin:2px 0;touch-action:none}.view-controls .range-label{min-height:23px;width:100%;font-variant-numeric:tabular-nums;white-space:nowrap;padding:3px 0}.view-controls .ico.small{width:35px;height:30px}.view-grip{width:100%;height:22px;display:grid;place-items:center;cursor:grab;touch-action:none;color:#9799a3;padding:0}.view-grip:active{cursor:grabbing}.view-grip svg{width:20px;height:14px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}.view-sep{height:1px;width:28px;background:#45464c;margin:1px 0}.view-controls .actual{color:#d5d7e0;border-top:1px solid #45464c;border-radius:0}.view-controls .ico.active{color:var(--blue)}.quicktools [data-tool=hand],.quicktools [data-action=fit]{display:none}
@media(max-height:590px){.view-controls{gap:0;padding:2px}.view-controls input[type=range]{height:clamp(26px,9vh,60px);margin:0}.view-controls .ico.small{height:25px}.view-controls .range-label{min-height:17px;font-size:10px;padding:1px 0}.view-grip{height:17px}}
@media(max-height:360px){.view-controls{width:46px}.view-controls input[type=range]{height:25px}.view-controls .ico.small{height:22px}.view-controls .actual{display:none}}
@media(max-width:700px){.view-controls{right:4px;width:45px}.view-controls .range-label{font-size:10px}}

/* Fill belongs to the color tools. */
.color-fill-action{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:11px 8px;background:#383a42;border:1px solid #52545e;border-radius:8px;color:#f2f2f5;font-size:13px}.color-fill-action:hover{background:#444650}.color-fill-action svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}#fillButton{border-left:1px solid #3b3d43;border-radius:0 6px 6px 0}
@media(max-width:480px){.toolbar .ico{width:29px}.toolbar .ico svg{width:19px;height:19px}#colorButton{width:32px}#colorButton span{width:24px;height:24px}.toolbar .sep{display:none}}

/* Artist 0.3 — color palette library */
.palette-library{margin:12px 0;display:grid;gap:8px;font-size:12px}.pal-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;background:#1f2025;border:1px solid #3b3d43;border-radius:9px}.pal-action{padding:7px 8px;min-height:31px;background:#35373e;border:1px solid #464852;border-radius:6px;color:#e3e4e9;font-size:12px;line-height:1.2;white-space:nowrap;cursor:pointer}.pal-action:hover{background:#454751}.pal-action:disabled{opacity:.35;cursor:default}.pal-tabs .pal-action{background:transparent;border-color:transparent}.pal-tabs .pal-action.active{background:#474952;color:#fff;border-color:#565964}.pal-bar,.pal-tools,.pal-io{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.pal-bar .pal-select{flex:1;min-width:0}.pal-select{background:#1e2025;border:1px solid #4b4d55;border-radius:6px;color:#e9e9ee;padding:7px;font-size:12px;max-width:100%}.pal-swatches{margin:0;gap:5px;grid-template-columns:repeat(8,minmax(0,1fr))}.pal-swatches .swatch{min-width:0;min-height:0;padding:0;aspect-ratio:1;border:1px solid #ffffff26;border-radius:5px}.pal-swatches .swatch.selected{outline:2px solid #7bb8ff;outline-offset:1px}.pal-swatches .pal-add{background:#363841;border:1px dashed #737781;color:#dedfe7;font-size:19px}.pal-info,.pal-help{font-size:11px;color:#b5b7c1;margin:0;line-height:1.4}.pal-tools .danger{color:#ffacaa}.pal-io{border-top:1px solid #464852;padding-top:8px}.pal-io .pal-select{flex:1;min-width:72px}.pal-backup{width:100%;text-align:center}.palette-library button:focus-visible,.palette-library select:focus-visible{outline:2px solid #80b9ff;outline-offset:2px}

/* iPad touch ergonomics: desktop design unchanged. */
.ipad #viewport,.ipad #paper,.ipad #paper canvas{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}.ipad .screen{height:100vh;height:100dvh}.ipad .login-side{padding-top:calc(24px + var(--safe-top));padding-bottom:calc(24px + var(--safe-bottom))}.ipad .toolbar{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));height:52px}.ipad .toolbar .ico,.ipad #colorButton{width:44px;height:44px}.ipad .toolbar .toolgroup{gap:2px}.ipad .toolbar .doc-title{min-width:0;flex:0 1 auto}.ipad #popover{width:min(380px,calc(100% - 65px));-webkit-overflow-scrolling:touch;touch-action:pan-y}.ipad .pal-action{min-height:40px}.ipad input:not([type=range]):not([type=checkbox]):not([type=color]),.ipad select{font-size:16px}.ipad .view-controls{width:57px}.ipad .view-controls .ico.small{width:42px;height:35px}.ipad .view-controls input[type=range],.ipad .left-controls input[type=range]{appearance:none;-webkit-appearance:none;writing-mode:vertical-lr;direction:rtl;background:transparent}.ipad input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#e4e6ed;border:1px solid #676a75}.ipad input[type=range]::-webkit-slider-runnable-track{background:#454750;border-radius:9px}.ipad .view-controls input[type=range]::-webkit-slider-runnable-track,.ipad .left-controls input[type=range]::-webkit-slider-runnable-track{width:8px}.ipad .view-controls input[type=range]::-webkit-slider-thumb,.ipad .left-controls input[type=range]::-webkit-slider-thumb{margin-left:-8px}.ipad .statusbar{padding-bottom:0}.ipad dialog{max-height:calc(100dvh - 50px);overflow:auto}.ipad .palette-library .swatch{min-height:30px}.ipad .login,.ipad .gallery{overscroll-behavior:contain}@media(max-width:650px){.ipad .doc-title{display:none}.ipad .toolbar .ico,.ipad #colorButton{width:32px;height:40px}.ipad .toolbar .toolgroup{gap:0}}@media(max-height:650px){.ipad .view-controls .ico.small{height:27px}.ipad .view-controls input[type=range]{height:clamp(28px,10vh,65px)}}

.update-link{color:inherit;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;min-height:32px}.update-link:hover,.update-link:focus-visible{text-decoration:underline}

/* 0.6 – frosted glass, preserve existing layout and target sizes */
:root{--blue:#8ebeff;--glass-line:#ffffff24;--glass-bg:linear-gradient(155deg,#ffffff13,#ffffff04 56%,#00000012);--glass-shadow:inset 0 1px 0 #ffffff17,0 5px 15px #00000025}
.toolbar,.statusbar{background:linear-gradient(180deg,#383b45e8,#25272ee8);border-color:#ffffff14;-webkit-backdrop-filter:blur(20px) saturate(135%);backdrop-filter:blur(20px) saturate(135%)}
.ico,.primary,.secondary,.pal-action,.brush-cat,.brush-item,.gallery-link,.range-label{border:1px solid var(--glass-line);background:var(--glass-bg);box-shadow:var(--glass-shadow);border-radius:11px;transition:background .15s,border-color .15s,box-shadow .15s;}
.ico{border-color:#ffffff14;color:#e0e5ef}.ico:hover,.secondary:hover,.pal-action:hover,.brush-cat:hover{background:#ffffff1a;border-color:#ffffff36}.ico.active,.brush-cat.active,.brush-item.active{color:#eaf4ff;background:linear-gradient(150deg,#6a99d85c,#425c9d38);border-color:#94c8ff85;box-shadow:inset 0 1px 0 #ffffff30,0 0 12px #61aaff16}.ico.active svg{color:#b4d7ff}.primary{color:#101729;background:linear-gradient(160deg,#f9fbff,#cbd9ee);border-color:#f6f8ff99;box-shadow:inset 0 1px 0 #fff,0 4px 16px #91b6ff25}.primary:hover{background:#e8f1ff}
.left-controls,.view-controls,.quicktools,#popover,dialog{background:linear-gradient(145deg,#424652ed,#24262eea);border:1px solid #ffffff2d;box-shadow:inset 0 1px 0 #ffffff21,0 10px 32px #0006;-webkit-backdrop-filter:blur(24px) saturate(140%);backdrop-filter:blur(24px) saturate(140%);border-radius:16px}.view-controls .actual{border-radius:8px}.view-controls .range-label,.left-controls .range-label{box-shadow:none;border-color:transparent}.login input,.panel-row select,.brush-library input,.pal-select{background:#151823a8;border-color:#ffffff26;box-shadow:inset 0 1px 5px #0002;border-radius:11px}.login-side{background:radial-gradient(ellipse at 75% 0%,#343050 0%,transparent 60%),#181a22}.project-preview{border-radius:14px}.brush-library{display:grid;gap:10px}.brush-summary{color:#c7cddd;font-size:12px;letter-spacing:.03em}.brush-cats{display:flex;flex-wrap:wrap;gap:5px}.brush-cat{padding:7px 9px;font-size:11px;white-space:nowrap}.brush-list{gap:7px}.brush-item{min-height:54px;padding:8px 9px;gap:10px}.brush-item canvas{width:100px;height:40px;object-fit:contain;flex-shrink:0;background:#191c24;border-radius:7px;border:1px solid #ffffff10}.brush-item small{font-size:11px;line-height:1.3;color:#c3c9d8}.brush-library .hint{font-size:11px;line-height:1.5}.brush-library input{width:100%;padding:10px}.brush-item.active small{color:#e2ebff}@media(prefers-reduced-motion:reduce){.ico,.primary,.secondary,.pal-action,.brush-cat,.brush-item{transition:none}}

/* 0.7: compact brush controls, no changes to workspace geometry */
.artist-toolbar-logo{width:28px;height:28px;flex:none;display:block;margin-right:2px}.brush-options{display:grid;gap:12px;padding:4px 0}.brush-options h3{margin:0;font-size:17px}.brush-option{display:grid;gap:5px;padding:8px 0;border-bottom:1px solid #ffffff19}.brush-option>span{display:flex;justify-content:space-between;align-items:center;gap:8px}.brush-option output{color:#b4d7ff;font-variant-numeric:tabular-nums}.brush-option input{width:100%;margin:2px 0;accent-color:var(--blue)}.brush-option small{font-size:11px;color:var(--muted);line-height:1.35}.brush-options-link{text-align:left;padding:10px;font-size:12px}.ipad .toolbar,.ipad .left-controls,.ipad .view-controls,.ipad .quicktools,.ipad .statusbar{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:#292b32}.ipad #popover{ -webkit-backdrop-filter:none;backdrop-filter:none;background-color:#292b32}

/* Artist 0.8 – grouped brush packs and text layers */
.pack-controls{display:flex;gap:6px}.pack-controls button{flex:1;padding:7px;font-size:11px}.brush-pack{display:grid;gap:5px}.pack-heading{display:flex;align-items:center;text-align:left;gap:8px;min-height:62px;padding:7px 8px;border:1px solid #ffffff20;border-radius:12px;background:linear-gradient(145deg,#424653,#282b33);width:100%;color:#f4f4f6}.pack-heading[aria-expanded=true]{border-color:#94c8ff85;background:linear-gradient(145deg,#43556b,#292e3a)}.pack-badge{width:50px;height:46px;object-fit:cover;border-radius:8px;flex:none}.pack-icon,.pack-arrow{width:18px;height:18px;flex:none;color:#b9d1ee}.pack-icon svg,.pack-arrow svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.pack-info{flex:1;min-width:0}.pack-info b{display:block;font-size:13px}.pack-info small{display:block;font-size:10px;color:#bfc8d7;line-height:1.3;margin-top:3px}.pack-count{background:#12182290;border:1px solid #ffffff24;border-radius:12px;padding:3px 6px;font-size:11px;flex:none}.pack-items{display:grid;gap:5px;padding:2px 0 7px 10px;border-left:1px solid #a7b9d44a;margin-left:10px}.pack-items .brush-item{width:100%}.text-editor{display:grid;gap:12px}.text-editor textarea,.text-editor select,.text-editor input:not([type=checkbox]){width:100%;min-width:0;background:#171a22;color:#eef0f7;border:1px solid #ffffff28;border-radius:8px;padding:9px;font:inherit}.text-editor textarea{resize:vertical;min-height:80px}.text-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.text-grid label{display:grid;gap:4px}.text-grid .text-check{display:flex;align-items:center;gap:8px}.text-preview{white-space:pre-wrap;overflow-wrap:anywhere;min-height:65px;max-height:160px;overflow:auto;padding:12px;border-radius:8px}.text-editor small{color:#bfc8d7;line-height:1.4}.text-grid input[type=color]{height:38px;padding:4px}#modal:has(.text-editor){max-height:90dvh;overflow:auto}.artist-toolbar-logo{flex:none}

/* 0.8.4: popovers follow their toolbar group; original size belongs to zoom. */
#popover[data-side="left"]{left:max(10px,env(safe-area-inset-left));right:auto}
#popover[data-side="right"]{right:max(10px,env(safe-area-inset-right));left:auto}
#viewControls #viewActual{display:block;width:100%;min-height:27px;font-size:12px;font-weight:650;line-height:1.15;padding:4px 0;color:#e8eaf2;background:#ffffff0b;border:1px solid #ffffff25;border-radius:7px;flex-shrink:0}
#viewControls #viewActual[aria-pressed="true"]{background:#63a7ff25;color:#a8cfff;border-color:#63a7ff90}
@media(max-height:590px){#viewControls #viewActual{min-height:23px;padding:2px 0}}
@media(max-height:360px){#viewControls #viewActual{min-height:19px;font-size:10px;padding:1px 0}#viewControls input[type=range]{height:20px}}

/* Lightbox and compact layer rows */
.layer .lname{min-width:0;max-width:100%}.layer .thumb,.layer input{flex-shrink:0}.layer-list{min-width:0;grid-template-columns:minmax(0,1fr)}.lightbox-row label{flex:1;min-width:62px}.lightbox-row input[type=range]{flex:1;min-width:50px;width:0}.lightbox-row span{min-width:36px;text-align:right;font-size:12px;font-variant-numeric:tabular-nums}.lightbox-row{margin-top:5px;margin-bottom:8px}
