#dialog:has(#view-zine:not([hidden])){width:min(1120px,calc(100vw - 28px))}
#dialog:has(#view-zine:not([hidden])) .dialog-body{padding-inline:clamp(18px,3vw,38px)}
.collection-shell{color:#203bad}.collection-intro{padding:5px 0 12px}.collection-eyebrow{font-size:13px;letter-spacing:.15em;color:#7e73a5}.collection-intro h3{font-size:clamp(29px,4vw,44px);margin:8px 0 7px}.collection-intro .small-note{max-width:650px}
.collection-filters{display:flex;flex-wrap:wrap;gap:12px;margin:13px 0 21px}.collection-field{display:flex;flex-direction:column;gap:7px;min-width:min(230px,100%);font-size:14px;font-weight:650}.collection-field select,.collection-field input:not([type=range]){width:100%;font-size:16px}.collection-selection{font-size:16px;font-weight:700;margin:0 0 11px}.collection-sheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:16px;background:#eee8fa;border:2px dashed #c9bcec;border-radius:29px;padding:18px;min-height:205px;box-shadow:6px 7px 0 #e1d5f3}.collection-card{min-width:0}.collection-sticker{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:166px;padding:18px;border:2px solid #c9bcec;border-radius:20px;background:#fffdf5;box-shadow:3px 4px 0 #d9cbe9;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.collection-sticker:hover,.collection-sticker:focus-visible{transform:translateY(-6px) rotate(-1deg);box-shadow:6px 9px 0 #d9cbe9;border-color:#203bad}.collection-sticker[aria-pressed=true]{background:#fff8db;border-color:#203bad;transform:rotate(2deg)}.collection-sticker img{display:block;max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 5px 5px #5f549d2b);pointer-events:none}.collection-check{position:absolute;top:7px;left:7px;background:#fffdf5e8;border-radius:99px;padding:2px 7px;font-size:11px;color:#6c6592;z-index:1}.collection-sticker[aria-pressed=true] .collection-check{background:#203bad;color:#fff}.collection-card-line{display:flex;align-items:center;justify-content:space-between;gap:3px;font-size:12px;padding:8px 3px 0;color:#716a9d}.collection-card-line button{font-size:12px;padding:2px 0;white-space:nowrap}.collection-empty{grid-column:1/-1;align-self:center;text-align:center;margin:0;color:#71749e}.collection-actions{display:flex;flex-wrap:wrap;gap:11px;margin:26px 0 5px}.collection-actions button{font-size:16px}.collection-status{min-height:1.5em;color:#72749d;font-size:14px}.collection-editor{margin:30px 0 28px;border:2px solid #203bad;border-radius:27px;padding:clamp(15px,3vw,28px);background:#f5effe;box-shadow:7px 8px 0 #d9c5eb}.collection-editor[hidden]{display:none}.collection-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.collection-editor-heading h4{font-size:clamp(24px,3vw,32px);margin:0}.collection-editor .small-note{margin:10px 0 17px}.collection-page{position:relative;width:min(100%,590px);aspect-ratio:1;margin:0 auto 23px;border:3px solid #c7b9e8;border-radius:18px;background:#fffdf5;box-shadow:5px 7px 0 #ded4ed;overflow:hidden;touch-action:none}.collection-page::before{content:'MEOW MOOD · 贴一页';position:absolute;left:5%;top:4%;color:#8582a8;font-size:12px;letter-spacing:.1em;pointer-events:none}.collection-page-sticker{position:absolute;z-index:2;border:2px solid transparent;border-radius:12px;background:transparent;padding:4px;cursor:grab;touch-action:none;aspect-ratio:1}.collection-page-sticker:active{cursor:grabbing}.collection-page-sticker.active,.collection-page-sticker:focus-visible{border:2px dashed #203bad;background:#fffdf533}.collection-page-sticker img{width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(1px 5px 4px #293b9540)}.collection-page-stamp{position:absolute;color:#f0a5cb;font-size:clamp(27px,6vw,58px);transform:translate(-50%,-50%);pointer-events:none}.collection-tools{display:flex;align-items:end;justify-content:center;flex-wrap:wrap;gap:15px;margin:0 0 20px}.collection-tools[hidden]{display:none}.collection-tools .collection-field{min-width:130px;max-width:200px}.collection-tools input[type=range]{accent-color:#203bad}.collection-editor>.collection-field{max-width:590px;margin:0 auto 18px}.collection-stamp-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin:13px 0 22px}.collection-stamp-actions span{font-size:13px}.collection-stamp-actions button{font-size:13px;padding:7px 11px}.collection-editor>button.primary{display:block;margin:0 auto}.collection-peel{margin:22px auto}.collection-peel[hidden]{display:none}
@media(max-width:600px){.collection-sheet{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.collection-sticker{height:150px;padding:13px}.collection-actions button{flex:1 1 100%}.collection-card-line{display:block}.collection-card-line button{display:block}.collection-editor-heading{align-items:start}.collection-editor-heading button{font-size:13px}.collection-page{width:100%}}
@media(prefers-reduced-motion:reduce){.collection-sticker{transition:none}.collection-sticker:hover{transform:none}}
.collection-page-stamp{z-index:3;border:0;background:transparent;padding:0;box-shadow:none;cursor:pointer;pointer-events:auto}
.collection-page-stamp:hover{transform:translate(-50%,-50%) scale(1.13)}
.collection-export-hint{margin:4px 0 0;font-size:12px}
.collection-page-caption{position:absolute;z-index:4;left:5%;right:5%;bottom:3%;min-height:1em;margin:0;padding:5px 9px;background:#fffdf5df;color:#203bad;font-size:clamp(12px,2.8vw,20px);line-height:1.4;pointer-events:none}.collection-page-caption:empty{display:none}
.collection-workspace{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:21px;align-items:start}.collection-workspace .collection-page{width:100%;margin:0;cursor:crosshair}.collection-side-tray{min-width:0;background:#fffdf8;border:2px solid #c9bcec;border-radius:21px;padding:13px;box-shadow:4px 5px 0 #e3d8f2}.collection-side-tray h5{font-size:14px;margin:8px 0 10px}.collection-tray{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:250px;overflow:auto}.collection-tray-item{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;min-height:90px;border:2px solid #cbbdea;border-radius:12px;padding:7px 3px;background:#fffdf5;color:#203bad;font-size:11px;cursor:pointer}.collection-tray-item:hover,.collection-tray-item:focus-visible{transform:translateY(-3px);box-shadow:2px 4px 0 #e0d2eb}.collection-tray-item img{width:70%;height:62px;object-fit:contain}.collection-tray-item.is-placed{opacity:.7}.collection-editor-peel{margin:13px 0;border:2px dashed #bdb2e8;border-radius:18px;padding:11px;text-align:center}.collection-editor-peel[hidden]{display:none}.collection-editor-peel h4{margin:4px 0 10px;font-size:14px}.collection-peel-stage{height:160px;max-width:190px;margin:auto;touch-action:none}.collection-peel-fallback{display:block;width:110px;height:110px;object-fit:contain;margin:5px auto}.collection-peel-fallback[hidden]{display:none}.collection-peel-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}.collection-peel-buttons button{font-size:12px;padding:8px}.collection-peel-buttons button[hidden]{display:none}.collection-doodles{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:13px}.collection-doodle-choice{display:flex;flex-direction:column;align-items:center;gap:2px;padding:5px 2px;border:1.5px solid #d1c4ed;border-radius:10px;background:#fffdf5;color:#203bad;font-size:10px;cursor:pointer}.collection-doodle-choice img{width:33px;height:33px}.collection-doodle-choice:hover{transform:translateY(-2px);background:#f4ebff}.collection-side-tray>button{width:100%}.collection-editor-status{min-height:1.5em;margin:12px 0;color:#6d6b9b;font-size:13px}.collection-page-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}.collection-page-actions button[hidden]{display:none}.collection-page-sticker{height:auto;border:0;aspect-ratio:1;cursor:pointer;overflow:visible}.collection-page-sticker.active{border:2px dashed #203bad;background:#fffdf577}.collection-page-sticker.just-landed{animation:collection-land .45s cubic-bezier(.2,1.6,.4,1)}@keyframes collection-land{from{opacity:.55;scale:1.18}to{opacity:1;scale:1}}.collection-transform-handle{position:absolute;z-index:8;display:grid;place-items:center;width:25px;height:25px;border:2px solid #203bad;border-radius:50%;background:#fffdf5;box-shadow:2px 3px 0 #d7caee;color:#203bad;font-size:18px;line-height:1;cursor:grab;touch-action:none;user-select:none}.collection-transform-handle.resize{right:-14px;bottom:-14px}.collection-transform-handle.rotate{left:50%;top:-35px;transform:translateX(-50%)}.collection-page-deco{position:absolute;z-index:3;aspect-ratio:1;cursor:grab;touch-action:none}.collection-page-deco img{display:block;width:100%;height:100%;pointer-events:none}.collection-page-deco.active{outline:2px dashed #203bad;outline-offset:3px}.collection-page-text{position:absolute;z-index:4;padding:5px;border:2px solid transparent;border-radius:8px;background:#fffdf5b8;min-width:20%;touch-action:none}.collection-page-text.active{border-color:#203bad}.collection-text-drag{display:block;position:absolute;left:0;top:-24px;background:#203bad;color:#fff;border-radius:7px;padding:3px 7px;font-size:10px;white-space:nowrap;cursor:grab;touch-action:none}.collection-page-text textarea{display:block;width:100%;height:75px;padding:4px;border:0;background:transparent;color:#203bad;font:clamp(12px,2vw,20px)/1.35 "PingFang SC",sans-serif;resize:vertical;touch-action:auto}.collection-page-text textarea:focus{outline:0}
@media(max-width:750px){.collection-workspace{grid-template-columns:1fr}.collection-side-tray{display:flex;flex-wrap:wrap;gap:7px}.collection-side-tray h5{width:100%;margin:4px 0}.collection-tray{display:flex;overflow-x:auto;max-width:100%;max-height:none}.collection-tray-item{flex:0 0 96px}.collection-editor-peel{width:100%}.collection-doodles{display:flex;overflow-x:auto;width:100%}.collection-doodle-choice{flex:0 0 63px}.collection-side-tray>button{width:auto}}
@media(prefers-reduced-motion:reduce){.collection-page-sticker.just-landed{animation:none}.collection-tray-item:hover{transform:none}}
.collection-page-sticker.peeling{visibility:hidden}.collection-repeel{position:absolute;z-index:9;left:50%;bottom:-42px;transform:translateX(-50%);white-space:nowrap;padding:5px 10px;border:2px solid #203bad;border-radius:99px;background:#fff8d8;box-shadow:2px 3px 0 #d8c9ee;color:#203bad;font-size:12px;font-weight:700;cursor:pointer;touch-action:manipulation}.collection-page-peel{position:absolute;z-index:20;transform:translate(-50%,-50%);box-sizing:border-box;max-width:78%;border:2px dashed #b6a8e4;border-radius:18px;padding:10px;background:#fffdf5f5;box-shadow:4px 6px 0 #d9caed;text-align:center}.collection-page-peel[hidden]{display:none}.collection-page-peel h4{margin:2px 0 7px;font-size:13px}.collection-page-peel .collection-peel-stage{height:135px;max-width:160px}.collection-page-peel .collection-peel-fallback{width:85px;height:85px}.collection-page-peel .small-note{font-size:11px;line-height:1.3;margin:6px 0}.collection-page-peel .collection-peel-buttons button{font-size:11px;padding:6px 8px}
.collection-repeel.above{top:-42px;bottom:auto}
.collection-inline-peel{position:absolute;inset:0;z-index:5;touch-action:none}.collection-inline-peel[hidden]{display:none}.collection-inline-peel .collection-peel-stage{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;touch-action:none}.collection-inline-peel .collection-peel-fallback{position:absolute;inset:0;width:100%;height:100%;margin:0;object-fit:contain;cursor:pointer;pointer-events:auto}.collection-page-sticker.forge-ready>img{visibility:hidden}
.collection-doodle-choice canvas{display:block;width:42px;height:42px;max-width:100%;object-fit:contain}.collection-page-deco canvas{display:block;width:100%;height:100%;pointer-events:none}.collection-doodles{max-height:360px;overflow:auto}.collection-page-sticker.active{cursor:grab}
.collection-frame-choices{grid-template-columns:repeat(2,minmax(0,1fr));max-height:410px}.collection-frame-choices .collection-doodle-choice{min-height:104px;font-size:11px}.collection-frame-choices .collection-doodle-choice canvas{width:68px;height:68px}
@media(max-width:750px){.collection-frame-choices .collection-doodle-choice{flex-basis:88px}}
.collection-frame-picker{margin:16px 0 22px}.collection-frame-picker h5{font-size:17px;margin:0 0 10px}.collection-frame-options{display:flex;gap:10px;overflow-x:auto;padding:3px 2px 12px;scroll-snap-type:x proximity}.collection-frame-option{flex:0 0 105px;display:flex;flex-direction:column;align-items:center;gap:5px;min-height:122px;padding:8px 5px;border:2px solid #d2c4eb;border-radius:14px;background:#fffdf8;color:#203bad;font-size:11px;cursor:pointer;scroll-snap-align:start}.collection-frame-option canvas{width:75px;height:75px;object-fit:contain}.collection-frame-option[aria-pressed=true]{border-color:#203bad;background:#fff7d7;box-shadow:3px 4px 0 #dfd3ef}.collection-frame-option:hover{transform:translateY(-2px)}
.collection-workspace[hidden],.collection-page-actions[hidden]{display:none}.collection-workspace .collection-photo-paper{width:min(100%,var(--frame-width));aspect-ratio:var(--frame-ratio);height:auto;margin:0 auto;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none;filter:drop-shadow(6px 9px 5px #9a87c366)}.collection-photo-paper::before{display:none}.collection-frame-backdrop,.collection-frame-content,.collection-frame-overlay{position:absolute;inset:0;width:100%;height:100%}.collection-frame-backdrop{z-index:0;pointer-events:none}.collection-frame-content{z-index:1;mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat}.collection-frame-overlay{z-index:6;pointer-events:none}
.collection-remove-handle{position:absolute;z-index:10;right:-14px;top:-14px;display:grid;place-items:center;width:28px;height:28px;padding:0;border:2px solid #203bad;border-radius:50%;background:#fffdf5;box-shadow:2px 3px 0 #d7caee;color:#203bad;font-size:21px;line-height:1;cursor:pointer;touch-action:manipulation}.collection-remove-handle:hover,.collection-remove-handle:focus-visible{background:#ffe1eb;transform:scale(1.08)}
.collection-frame-options{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));max-height:290px;overflow-y:auto;overflow-x:hidden;padding:4px 5px 10px;align-content:start;scroll-snap-type:none}.collection-frame-option{min-width:0;min-height:122px;scroll-snap-align:none}.collection-bling{max-height:225px;overflow-y:auto}.collection-bling .collection-doodle-choice{background:#fbf8ff}
@media(max-width:750px){.collection-frame-options{grid-template-columns:repeat(auto-fill,minmax(90px,1fr));max-height:260px}.collection-bling{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-height:240px;overflow-y:auto}.collection-bling .collection-doodle-choice{min-width:0}}
.collection-photo-paper .collection-frame-content{z-index:7}
.collection-material-tabs{display:none}
@media(max-width:750px){
 .collection-workspace{gap:12px}
 .collection-side-tray{order:-1;position:sticky;top:4px;z-index:22;display:block;max-height:205px;overflow:auto;padding:9px 10px;background:#fffdf8f5;backdrop-filter:blur(8px)}
 .collection-material-tabs{display:flex;gap:6px;margin-bottom:7px}
 .collection-material-tab{flex:1;padding:7px 5px;border:1.5px solid #c9bcec;border-radius:11px;background:#fffdf8;color:#203bad;font-size:12px}
 .collection-material-tab[aria-pressed=true]{background:#e8e0fa;border-color:#203bad;font-weight:700}
 .collection-side-tray h5{display:none}
 .collection-side-tray .collection-tray,.collection-side-tray .collection-doodles{width:100%;margin:0 0 7px;max-height:95px;overflow:auto}
 .collection-side-tray[data-tab=cat] .collection-doodles,.collection-side-tray[data-tab=doodle] .collection-tray,.collection-side-tray[data-tab=doodle] .collection-bling,.collection-side-tray[data-tab=bling] .collection-tray,.collection-side-tray[data-tab=bling] .collection-doodles:not(.collection-bling){display:none}
 .collection-side-tray .collection-editor-peel:not([hidden]){display:block;max-height:165px;overflow:auto;margin:7px 0}
 .collection-side-tray .collection-editor-peel:not([hidden]) .collection-peel-stage{height:105px}
 .collection-side-tray>button{font-size:12px;padding:7px 12px}
 .collection-workspace .collection-photo-paper{scroll-margin-top:215px}
}
