.create-canvas-dialog{border:1px solid var(--line);background:var(--surface);width:min(480px,100% - 32px);max-height:calc(100dvh - 32px);color:var(--text-main);border-radius:20px;margin:auto;padding:28px;overflow:auto;box-shadow:0 24px 80px #28204247}.create-canvas-dialog::backdrop{background:#2820428c}.create-canvas-dialog form{gap:18px;display:grid}.create-canvas-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.create-canvas-heading h2{font-size:22px}.create-canvas-heading button{width:44px;min-height:44px;padding:0}.create-canvas-dialog label{color:var(--text-sub);gap:7px;display:grid}.create-canvas-dialog input{width:100%;min-height:44px}.create-canvas-presets{border:0;min-width:0;margin:0;padding:0}.create-canvas-presets legend{color:var(--text-sub);margin-bottom:8px}.create-canvas-presets>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.create-canvas-presets button{min-height:44px;padding:8px 4px}.create-canvas-presets button[aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-strong)}.create-canvas-size{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:12px;display:grid}.create-canvas-size>span{color:var(--text-sub);padding-bottom:10px}.create-canvas-hint,.create-canvas-error{margin:-8px 0 0;font-size:13px}.create-canvas-hint{color:var(--text-sub)}.create-canvas-error{color:#c74646}.create-canvas-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.create-canvas-actions button{min-height:44px}@media (max-width:480px){.create-canvas-dialog{padding:20px}.create-canvas-actions button{flex:1}}
.home-workbench{--wb-ink:#292737;--wb-muted:#77718d;--wb-purple:#8353e6;--wb-purple-deep:#5131bd;--wb-line:#ece5fa;--wb-card:#fff;--wb-soft:#f6f2fd;min-height:100dvh;color:var(--wb-ink);background:radial-gradient(58% 450px at 82% 80px,#e3d8ffb3,#0000),radial-gradient(45% 420px at 5% 160px,#eee4ff99,#0000),linear-gradient(#f5f1ff 0,#faf9ff 700px,#f8f7fd 100%)}.home-workbench button,.home-workbench a,.home-workbench summary{-webkit-tap-highlight-color:transparent}.home-workbench :focus-visible{outline-offset:4px;outline:3px solid #a488ef}.workbench-account{flex:none}.workbench-account-menu{position:relative}.workbench-account-menu>summary{color:#807099;cursor:pointer;border-radius:25px;align-items:center;gap:7px;min-height:46px;list-style:none;display:flex}.workbench-account-menu>summary::-webkit-details-marker{display:none}.workbench-card-menu>summary::-webkit-details-marker{display:none}.workbench-account-menu>summary img{object-fit:cover;background:#e7ddfa;border:2px solid #d9c8fa;border-radius:50%;width:42px;height:42px}.workbench-account-popover{border:1px solid var(--wb-line);background:var(--wb-card);border-radius:16px;gap:5px;width:210px;padding:12px;display:grid;position:absolute;top:calc(100% + 13px);right:0;box-shadow:0 12px 40px #54368e20}.workbench-account-popover strong{text-overflow:ellipsis;white-space:nowrap;padding:7px 10px 10px;font-size:14px;overflow:hidden}.workbench-account-popover a,.workbench-account-popover button{min-height:42px;color:var(--wb-muted);background:0 0;border:0;border-radius:8px;justify-content:flex-start;align-items:center;gap:8px;padding:8px 10px;font-size:13px;display:flex}.workbench-account-popover a:hover,.workbench-account-popover button:hover{background:var(--wb-soft);color:var(--wb-purple)}.workbench-layout{width:calc(100% - 112px);max-width:1440px;margin:0 auto}.workbench-main{min-width:0}.workbench-welcome{isolation:isolate;align-items:center;min-height:320px;padding:27px 26px;display:flex;position:relative}.workbench-welcome:after{content:"";z-index:-1;filter:blur(5px);background:#c7affc37;border-radius:50%;width:48%;height:25px;position:absolute;bottom:8px;right:0}.workbench-welcome-copy{z-index:1;position:relative}.workbench-welcome h1{color:var(--wb-ink);letter-spacing:-.035em;font-size:clamp(32px,3.8vw,50px);font-weight:800;line-height:1.28}.workbench-heading-heart{color:#a976ef;vertical-align:middle;stroke-width:2.5px;margin:0 0 3px 11px;display:inline-block;transform:rotate(-17deg)}.workbench-welcome-copy>p{color:#6e6383;margin-top:16px;font-size:clamp(14px,1.45vw,19px)}.workbench-primary{color:#fff;background:linear-gradient(110deg,#6941dd,#a16af0);border:0;border-radius:999px;min-height:44px;padding:10px 23px;font-size:14px;font-weight:650;box-shadow:0 6px 15px #8055d826}.workbench-primary:hover{background:linear-gradient(110deg,#5e35d2,#945be6);border:0;box-shadow:0 7px 20px #8055d83d}.workbench-start{gap:10px;min-width:170px;min-height:54px;margin-top:25px;font-size:17px}.workbench-welcome-art{z-index:0;object-fit:contain;width:51.5%;max-width:650px;height:auto;position:absolute;bottom:4px;right:-10px}.workbench-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:18px;display:grid}.workbench-shortcut{text-align:left;border:1px solid #ead8fd;border-radius:24px;justify-content:flex-start;align-items:center;gap:18px;min-width:0;min-height:140px;padding:22px 26px;transition:border-color .18s,box-shadow .18s;display:flex;position:relative;overflow:hidden;box-shadow:0 4px 12px #9a6ade09}.shortcut-create{background:linear-gradient(120deg,#fdf4ff,#f8efff 72%,#f0dfff)}.shortcut-library{background:linear-gradient(120deg,#eef5ff,#edf5ff 72%,#dcecff);border-color:#d6e4ff}.workbench-shortcut:after{content:"";background:#a782ee0a;width:170px;height:200px;position:absolute;bottom:-100px;right:-28px;transform:rotate(42deg)}.workbench-shortcut:hover{border-color:#bfa1ef;box-shadow:0 6px 22px #9161ce14}.shortcut-create:hover{background:linear-gradient(120deg,#fbf0ff,#f5e9ff)}.shortcut-library:hover{background:linear-gradient(120deg,#edf2ff,#e4efff)}.workbench-shortcut-icon{color:#9361ed;background:#edddff9c;border-radius:50%;flex:none;place-items:center;width:78px;height:78px;display:grid}.shortcut-library .workbench-shortcut-icon{color:#8d64f0;background:#dfe8ff}.workbench-shortcut-copy{z-index:1;gap:5px;display:grid;position:relative}.workbench-shortcut-copy strong{color:#4a299e;font-size:23px;font-weight:700}.shortcut-library .workbench-shortcut-copy strong{color:#363258}.workbench-shortcut-copy>span{color:#8b69b2;font-size:15px}.shortcut-library .workbench-shortcut-copy>span{color:#757298}.workbench-shortcut>img{object-fit:contain;pointer-events:none;width:145px;height:104px;position:absolute;right:16px}.workbench-library{background:#ffffffc9;border:1px solid #eee7fb;border-radius:26px;margin-top:26px;padding:0 16px 20px;scroll-margin-top:105px;box-shadow:0 8px 35px #8c6ab108}.workbench-library-head{border-bottom:1px solid var(--wb-line);justify-content:space-between;align-items:center;gap:18px;min-height:82px;margin-inline:-16px;padding:18px 24px;display:flex}.workbench-library-title{flex:none;align-items:center;gap:10px;display:flex}.workbench-library-title h2{font-size:23px;font-weight:750}.workbench-library-star{fill:#ffd16f;color:#bc68db;stroke-width:2px;transform:rotate(-10deg)}.workbench-count{color:var(--wb-muted);white-space:nowrap;margin-left:4px;font-size:13px}.workbench-library-actions{justify-content:flex-end;align-items:center;gap:9px;min-width:0;display:flex}.workbench-search{align-items:center;width:210px;min-width:100px;display:flex;position:relative}.home-workbench .workbench-library .workbench-search input[type=search]{background:var(--wb-soft);width:100%;height:40px;color:var(--wb-ink);border:1px solid #f1ebfc;border-radius:24px;padding:8px 37px 8px 18px;font-size:12px}.workbench-search input::placeholder{color:#9b8cae}.workbench-search>svg{color:#a391c2;pointer-events:none;position:absolute;right:13px}.workbench-sort{align-items:center;display:flex;position:relative}.workbench-sort select{appearance:none;background:var(--wb-soft);color:#786691;cursor:pointer;border:1px solid #f1ebfc;border-radius:24px;width:106px;height:40px;padding:7px 25px 7px 13px;font-size:12px}.workbench-sort>svg{color:#8c77a5;pointer-events:none;position:absolute;right:10px}.workbench-refresh{background:var(--wb-soft);color:#9680b6;border:0;border-radius:50%;width:36px;min-height:36px;padding:7px}.workbench-refresh:hover{color:var(--wb-purple);background:#ece1fd}.workbench-view-toggle{background:var(--wb-soft);border:1px solid #f1ebfc;border-radius:24px;flex:none;gap:4px;padding:4px;display:flex}.workbench-view-toggle button{color:#9a87b5;background:0 0;border:0;border-radius:50%;width:30px;min-height:30px;padding:5px}.workbench-view-toggle button:hover{background:#e9defa}.workbench-view-toggle button[aria-pressed=true]{color:#fff;background:linear-gradient(135deg,#9c6af1,#8653e4)}.is-spinning{animation:.8s linear infinite spin}.workbench-pattern-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:18px;display:grid}.workbench-pattern-card{border:1px solid var(--wb-line);background:var(--wb-card);border-radius:19px;min-width:0;transition:border-color .18s,box-shadow .18s;position:relative;box-shadow:0 2px 6px #61448c05}.workbench-pattern-card:hover,.workbench-pattern-card:focus-within{border-color:#d1b9f2;box-shadow:0 6px 18px #8659be12}.workbench-pattern-card:has(details[open]){z-index:5}.workbench-pattern-open{border-radius:18px;display:block}.workbench-pattern-preview{aspect-ratio:1.05;background:linear-gradient(140deg,#f8f6fb,#f3f0fc);border-radius:18px 18px 0 0;place-items:center;width:100%;display:grid;position:relative;overflow:hidden}.workbench-pattern-card:nth-child(4n+2) .workbench-pattern-preview{background:linear-gradient(140deg,#fbf6fa,#f5f1fc)}.workbench-pattern-card:nth-child(4n+3) .workbench-pattern-preview{background:linear-gradient(140deg,#fff8f2,#f7f5fd)}.workbench-pattern-card:nth-child(4n+4) .workbench-pattern-preview{background:linear-gradient(140deg,#f5efff,#f9f5fd)}.workbench-pattern-preview>img{object-fit:contain;width:100%;height:100%;image-rendering:pixelated;position:absolute}.workbench-pattern-edit{background:var(--wb-card);color:var(--wb-purple);opacity:0;border-radius:20px;align-items:center;gap:5px;padding:6px 10px;font-size:11px;transition:opacity .18s;display:flex;position:absolute;bottom:12px;right:12px;box-shadow:0 2px 10px #6e49941a}.workbench-pattern-open:hover .workbench-pattern-edit,.workbench-pattern-open:focus-visible .workbench-pattern-edit{opacity:1}.workbench-pattern-open h3{color:var(--wb-ink);text-overflow:ellipsis;white-space:nowrap;margin:14px 17px 3px;font-size:15px;font-weight:650;line-height:1.65;overflow:hidden}.workbench-pattern-placeholder{color:#a18bbf;justify-items:center;gap:10px;font-size:12px;display:grid}.workbench-pattern-meta{justify-content:space-between;align-items:center;gap:8px;min-height:37px;padding:0 11px 10px 17px;display:flex}.workbench-pattern-meta>span{color:#8d819f;font-variant-numeric:tabular-nums;font-size:12px}.workbench-card-menu{position:relative}.workbench-card-menu>summary{color:#a092b6;cursor:pointer;border-radius:50%;place-items:center;width:30px;min-height:28px;list-style:none;display:grid}.workbench-card-menu>summary:hover{background:var(--wb-soft);color:var(--wb-purple)}.workbench-card-menu>div{z-index:10;border:1px solid var(--wb-line);background:var(--wb-card);border-radius:12px;gap:3px;width:145px;padding:7px;display:grid;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 8px 28px #59338b20}.workbench-card-menu a,.workbench-card-menu button{min-height:38px;color:var(--wb-muted);background:0 0;border:0;border-radius:6px;justify-content:flex-start;align-items:center;gap:8px;padding:7px 10px;font-size:12px;display:flex}.workbench-card-menu a:hover{background:var(--wb-soft);color:var(--wb-purple)}.workbench-card-menu .workbench-pattern-delete:hover{color:#b84565;background:#fceff2}.workbench-pattern-grid.is-list{grid-template-columns:minmax(0,1fr);gap:10px}.is-list .workbench-pattern-card{border-radius:14px;align-items:center;gap:16px;padding:10px;display:flex}.is-list .workbench-pattern-open{flex:1;align-items:center;gap:20px;min-width:0;display:flex}.is-list .workbench-pattern-preview{border-radius:9px;flex:0 0 86px;width:86px;height:76px}.is-list .workbench-pattern-open h3{margin:0}.is-list .workbench-pattern-meta{gap:30px;padding:0 12px 0 0}.is-list .workbench-pattern-edit{display:none}.workbench-search-result{color:var(--wb-muted);align-items:center;gap:12px;margin:14px 4px 0;font-size:12px;display:flex}.workbench-search-result button{background:var(--wb-soft);min-height:30px;color:var(--wb-purple);border:0;border-radius:12px;padding:3px 8px;font-size:12px}.workbench-pagination{border-top:1px solid var(--wb-line);color:var(--wb-muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-top:24px;padding:18px 6px 0;font-size:12px;display:flex}.workbench-pagination>div{align-items:center;gap:15px;display:flex}.workbench-pagination>div>span{text-align:center;min-width:43px;color:var(--wb-purple-deep);font-variant-numeric:tabular-nums;font-size:13px}.workbench-pagination>div>span>span{color:var(--wb-muted)}.workbench-pagination button{border:1px solid var(--wb-line);background:var(--wb-card);width:35px;min-height:35px;color:var(--wb-purple);border-radius:12px;padding:7px}.workbench-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:310px;padding:32px 20px;display:flex}.workbench-empty-icon{background:var(--wb-soft);width:64px;height:64px;color:var(--wb-purple);border-radius:22px;place-items:center;margin-bottom:7px;display:grid}.workbench-empty h3{font-size:18px;font-weight:600}.workbench-empty p{color:var(--wb-muted);font-size:13px}.workbench-empty button{margin-top:9px}.workbench-skeleton{border:1px solid var(--wb-line);background:var(--wb-card);border-radius:19px;overflow:hidden}.workbench-skeleton>div{aspect-ratio:1.05;background:var(--wb-soft);animation:1.4s ease-in-out infinite alternate workbench-pulse}.workbench-skeleton>span{background:var(--wb-soft);border-radius:5px;width:65%;height:12px;margin:16px;display:block}.workbench-skeleton>span:last-child{width:35%;margin-top:0}.is-list .workbench-skeleton{align-items:center;padding:10px;display:flex}.is-list .workbench-skeleton>div{border-radius:9px;flex:0 0 86px;height:76px}@keyframes workbench-pulse{to{opacity:.4}}.workbench-footer{color:#9b8cb1;justify-content:center;align-items:center;gap:7px;padding:30px 16px;font-size:11px;display:flex}html[data-theme=dark] .home-workbench{--wb-ink:#f0eaf8;--wb-muted:#b4a7c8;--wb-purple:#bba0f7;--wb-purple-deep:#c9b2ff;--wb-line:#40354f;--wb-card:#292332;--wb-soft:#352b43;background:radial-gradient(70% 500px at 80% 70px,#47306166,#0000),#211c2b}html[data-theme=dark] .shortcut-create{background:linear-gradient(120deg,#382740,#3e2c53);border-color:#573c70}html[data-theme=dark] .shortcut-library{background:linear-gradient(120deg,#283347,#30334d);border-color:#3f4867}html[data-theme=dark] .workbench-shortcut-icon{background:#ffffff0d}html[data-theme=dark] .workbench-shortcut-copy strong{color:#e3d2fc}html[data-theme=dark] .workbench-shortcut-copy>span{color:#b4a2cb}html[data-theme=dark] .workbench-library{border-color:var(--wb-line);background:#292332cc}html[data-theme=dark] .workbench-pattern-preview{background:#332b40}html[data-theme=dark] .workbench-search input,html[data-theme=dark] .workbench-sort select,html[data-theme=dark] .workbench-view-toggle{border-color:var(--wb-line);color:var(--wb-muted)}html[data-theme=dark] .workbench-pattern-delete:hover{color:#f1a9bc;background:#502c3b}@media (min-width:1350px){.workbench-welcome{min-height:350px}.workbench-shortcut{min-height:150px}}@media (max-width:1100px){.workbench-layout{width:calc(100% - 64px)}.workbench-welcome{min-height:292px;padding-left:16px}.workbench-welcome h1{font-size:36px}.workbench-welcome-copy>p{font-size:14px}.workbench-shortcut{gap:12px;min-height:126px;padding:20px}.workbench-shortcut-icon{width:64px;height:64px}.workbench-shortcut-icon svg{width:36px;height:36px}.workbench-shortcut-copy strong{font-size:20px}.workbench-shortcut-copy>span{font-size:13px}.workbench-shortcut>img{width:112px;height:90px;right:8px}.workbench-library-head{flex-wrap:wrap;gap:14px;padding:18px 20px}.workbench-library-title h2{font-size:21px}.workbench-count{font-size:12px}.workbench-search{width:165px}.workbench-pattern-grid{gap:16px}}@media (max-width:850px){.workbench-account{margin-left:auto}.workbench-welcome{min-height:275px}.workbench-welcome h1{font-size:31px}.workbench-welcome-art{width:48%;bottom:18px;right:-15px}.workbench-welcome-copy>p{max-width:300px;line-height:1.8}.workbench-start{min-width:155px;min-height:48px;margin-top:18px;font-size:15px}.workbench-shortcuts{gap:15px;margin-top:8px}.workbench-shortcut{gap:11px;min-height:114px;padding:17px}.workbench-shortcut-icon{width:48px;height:48px}.workbench-shortcut-icon svg{width:30px;height:30px}.workbench-shortcut-copy strong{font-size:18px}.workbench-shortcut-copy>span{font-size:11px}.workbench-shortcut>img{opacity:.65;width:80px;right:-9px}.workbench-shortcut-copy{max-width:calc(100% - 75px)}.workbench-pattern-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench-library{scroll-margin-top:145px}.workbench-library-actions,.workbench-search{flex:1}}@media (max-width:600px){.workbench-account .workbench-primary{min-height:38px;padding:8px 16px;font-size:12px}.workbench-account-menu>summary img{width:36px;height:36px}.workbench-layout{width:calc(100% - 32px)}.workbench-welcome{align-items:flex-start;min-height:390px;padding:27px 9px 0}.workbench-welcome h1{font-size:30px;line-height:1.3}.workbench-heading-heart{width:23px;height:23px}.workbench-welcome-copy>p{max-width:310px;margin-top:12px;font-size:12px}.workbench-start{min-width:134px;min-height:44px;margin-top:16px;padding:9px 17px;font-size:14px}.workbench-welcome-art{width:80%;max-width:345px;bottom:0;right:-5px}.workbench-welcome:after{width:74%;bottom:0}.workbench-shortcuts{gap:12px;margin-top:16px}.workbench-shortcut{border-radius:18px;min-height:132px;padding:15px;display:block}.workbench-shortcut-icon{width:37px;height:37px;margin-bottom:9px}.workbench-shortcut-icon svg{width:26px;height:26px}.workbench-shortcut-copy{gap:3px;max-width:none}.workbench-shortcut-copy strong{font-size:17px}.workbench-shortcut-copy>span{font-size:10px}.workbench-shortcut>img{opacity:1;width:75px;height:62px;top:10px;right:2px}.workbench-library{border-radius:21px;margin-top:20px;padding:0 11px 16px}.workbench-library-head{gap:15px;margin-inline:-11px;padding:17px 14px 15px}.workbench-library-title{gap:7px}.workbench-library-title h2{font-size:20px}.workbench-library-title>svg{width:23px}.workbench-count{margin-left:2px;font-size:11px}.workbench-library-actions{flex-basis:100%;gap:5px}.workbench-search{min-width:80px}.home-workbench .workbench-library .workbench-search input[type=search]{height:36px;padding-left:11px;padding-right:26px;font-size:10px}.workbench-search>svg{width:14px;right:9px}.workbench-sort select{width:83px;height:36px;padding-left:9px;padding-right:20px;font-size:10px}.workbench-sort>svg{right:6px}.workbench-refresh{width:30px;min-height:30px;padding:6px}.workbench-view-toggle{gap:2px;padding:3px}.workbench-view-toggle button{width:27px;min-height:27px}.workbench-pattern-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:14px}.workbench-pattern-card{border-radius:14px}.workbench-pattern-preview{border-radius:13px 13px 0 0}.workbench-pattern-open h3{margin:10px 11px 1px;font-size:12px}.workbench-pattern-meta{gap:4px;min-height:34px;padding:0 5px 6px 11px}.workbench-pattern-meta>span{font-size:10px}.workbench-card-menu>summary{width:26px;min-height:28px}.is-list .workbench-pattern-card{gap:8px;padding:8px}.is-list .workbench-pattern-open{gap:10px}.is-list .workbench-pattern-preview{flex-basis:58px;width:58px;height:58px}.is-list .workbench-pattern-meta{flex-direction:column;align-items:flex-end;gap:2px;padding:0}.is-list .workbench-pattern-open h3{font-size:11px}.workbench-pagination{gap:10px;padding-top:15px;font-size:10px}.workbench-page-range{display:none}.workbench-pagination>div{gap:8px}.workbench-empty{min-height:290px;padding-inline:12px}.workbench-empty p{font-size:11px}}@media (pointer:coarse){.workbench-card-menu>summary{min-width:40px;min-height:40px}.workbench-library-actions{flex-wrap:wrap}.workbench-library-actions input[type=search],.workbench-library-actions select{min-height:44px}.workbench-refresh,.workbench-view-toggle button,.workbench-pagination button{min-width:40px;min-height:40px}}
