/* 拾影 — warm paper, printed ink and playful cut-paper accents. */
:root { --retro-ink:#242019; --retro-paper:#f0e4c8; --retro-pink:#df8171; --retro-yellow:#edbd43; --retro-blue:#3c93aa; --retro-green:#3c7c65; --retro-texture:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'320'%20height%3D'320'%3E%3Cfilter%20id%3D'grain'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'.75'%20numOctaves%3D'3'%20stitchTiles%3D'stitch'%20seed%3D'7'%2F%3E%3CfeColorMatrix%20type%3D'saturate'%20values%3D'0'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23grain)'%20opacity%3D'.09'%2F%3E%3C%2Fsvg%3E"); }
.again-product { background:#d8c39c; --ink-on-dark:#242019; --ink-on-dark-soft:#746548; }
.product-screen,.study-screen { color:var(--retro-ink); background-color:#e8d6af; background-image:var(--retro-texture); background-size:720px; background-blend-mode:multiply; }
.product-header { height:64px; flex-basis:64px; padding:0 28px; border-bottom:1px dashed #9f8b63; color:var(--retro-ink); }
.product-brand { color:var(--retro-ink); font-weight:800; font-size:23px; gap:9px; }
.product-brand small { font:italic 10px 'Segoe Print',Georgia,serif; letter-spacing:.12em; }
.brand-icon { background:none; color:#cb683e; font-size:29px; width:27px; height:27px; border-radius:0; }
.home-header-note { color:#756545; font-size:11px; }
.quiet-button { color:#4d402c; font-weight:500; }
.action-button { background:#252019; border-color:#252019; color:#fff5dc; border-radius:999px; font-size:14px; box-shadow:0 3px 0 #bca377; }
.action-button:hover { background:#3e3020; transform:translateY(-2px) rotate(-.3deg); }
.product-kicker,.product-status,.result-caption { color:#786747; }
.mode-tab { color:#5d4c33; border-radius:999px; font-weight:700; }
.mode-tab.is-on { background:#29231c; color:#fff4d9; }
.shiying-home { align-items:stretch; text-align:left; padding:0; }
.shiying-home-content { width:100%; max-width:1530px; margin:auto; padding:20px 24px 28px; }
.retro-main-grid { display:grid; grid-template-columns:.82fr 1.25fr 1.07fr; gap:14px; align-items:stretch; }
.retro-paper { position:relative; background-color:#f6eace; background-image:var(--retro-texture); background-size:560px; background-blend-mode:multiply; border:1px solid #dac7a0; border-radius:13px; padding:23px; box-shadow:0 4px 0 #bda37435; overflow:hidden; }
.retro-kicker { font-size:8px; letter-spacing:.10em; color:#65563c; }
.retro-intro { display:flex; flex-direction:column; padding:26px 22px 18px; }
.retro-wordmark { margin:20px 0 10px; font:900 clamp(63px,6.3vw,103px)/1.05 'Microsoft YaHei','SimHei',sans-serif; letter-spacing:-.10em; transform:rotate(-6deg) skew(-5deg); text-shadow:1px 1px 0 #252019,-1px 0 0 #252019; }
.retro-handnote { align-self:flex-end; margin:8px 0 16px; font:bold italic 13px 'Segoe Print',Georgia,serif; transform:rotate(-6deg); letter-spacing:.04em; }
.retro-intro>p { font-size:15px; line-height:1.7; margin:0 0 16px; }
.retro-intro-art { position:relative; margin:auto -22px 0; min-height:135px; padding:4px 0 9px; }
.retro-intro-art::before { content:''; position:absolute; inset:8px -5px 6px; background:#4ca0b3; clip-path:polygon(0 10%,19% 4%,39% 8%,68% 0,100% 4%,96% 96%,62% 93%,41% 100%,0 92%); transform:rotate(-5deg); }
.retro-intro-art img { position:relative; display:block; width:100%; height:175px; object-fit:cover; clip-path:polygon(0 7%,24% 3%,53% 5%,77% 0,100% 6%,97% 94%,68% 96%,39% 92%,2% 100%); transform:rotate(2deg); }
.retro-intro-art img { object-position:50% 7%; }
.retro-star { position:absolute; right:8px; top:-18px; font-size:44px; color:#efbd39; transform:rotate(13deg); }
.retro-intro-bottom { font:italic 23px/1.18 'KaiTi','STKaiti','Segoe Print',serif!important; margin:18px 0 0!important; transform:rotate(-3deg); }
.retro-intro-bottom strong { font-weight:700; }
.paper-tape { position:absolute; z-index:2; display:block; pointer-events:none; }
.paper-tape--pink { width:89px; height:26px; bottom:4px; left:-3px; background:#e688798f; transform:rotate(-14deg); clip-path:polygon(2% 2%,100% 0,98% 95%,0 100%); }
.paper-tape--green { top:-13px; right:5px; width:72px; height:70px; background:#3e7d679c; transform:rotate(13deg); clip-path:polygon(0 0,100% 2%,95% 90%,30% 100%,3% 75%); }
.retro-step { font:700 19px/1.1 var(--sans); margin-bottom:6px; }
.retro-upload h2,.retro-styles h2 { font:800 26px/1.25 'Microsoft YaHei',sans-serif; margin:0 0 11px; letter-spacing:-.035em; }
.retro-panel-copy { font-size:12px; line-height:1.7; margin:0 0 13px; }
.retro-upload { display:flex; flex-direction:column; }
.retro-upload .image-comparison { height:280px; width:100%; aspect-ratio:auto; border-radius:11px; box-shadow:none; background:#cfba91; }
.retro-upload .compare-image { object-position:50% 16%; }
.retro-upload .hero-compare-caption { font-size:9px; color:#776849; margin:10px 0 14px; }
.retro-upload .home-upload { width:100%; min-width:0; min-height:48px; margin-top:auto; }
.retro-upload .home-upload-note { color:#81704b; font-size:9px; margin:12px 0 0; }
.compare-label { background:#f8e9c8e8; border:1px solid #c4ac7c; border-radius:2px; color:#31291d; font-size:10px; }
.compare-divider { background:#f7e6be; box-shadow:0 0 4px #42301c33; }
.compare-divider span { background:#f7e6be; border:1px solid #b49a66; color:#2e261b; }
.retro-style-tabs { display:flex; gap:5px; margin:0 0 13px; }
.retro-style-tab { border:0; background:#e4d1a881; color:#4d402a; border-radius:999px; padding:6px 11px; font:inherit; font-size:11px; cursor:pointer; }
.retro-style-tab.is-on { background:#29231b; color:#faedd0; }
.retro-style-grid { display:grid; grid-template-columns:1fr 1fr; gap:11px 10px; }
.retro-style-card { border:1px solid transparent; background:none; padding:0; text-align:left; font:inherit; color:#3e3222; cursor:pointer; border-radius:7px; }
.retro-style-card img { width:100%; height:87px; object-fit:cover; border-radius:7px; display:block; transition:transform .2s; }
.retro-style-card img,.rescue-screen .effect-choice img { object-position:50% 25%; }
.retro-style-card span { display:block; font-size:10px; margin:5px 0 0; padding:0 2px; }
.retro-style-card:hover img { transform:rotate(-2deg) scale(1.025); }
.retro-style-card.is-on { outline:2px solid #9f5139; outline-offset:4px; }
.retro-style-foot { font-size:9px; color:#887249; line-height:1.6; margin:15px 0 0; }
.shiying-home .mode-section-heading { margin:19px 1px 12px; }
.shiying-home .mode-section-heading h2 { font-size:17px; font-weight:700; }
.shiying-home .mode-section-heading>span { color:#746345; }
.shiying-home .again-mode-cards { gap:13px; }
.shiying-home .again-mode-card { background:#f4e6c7; border:1px solid #cab58c; border-radius:10px; min-height:130px; padding:17px 19px; overflow:hidden; position:relative; }
.shiying-home .again-mode-card::after { content:''; position:absolute; right:-8px; top:-9px; width:44px; height:43px; background:#e6ad4480; transform:rotate(14deg); clip-path:polygon(0 0,100% 0,100% 93%,30% 100%,3% 77%); }
.shiying-home .again-mode-card.is-on { background:#e9cb7390; border-color:#735535; }
.shiying-home .mode-card--manual { background:#efcab5; }.shiying-home .mode-card--free { background:#cbd4b7; }
.shiying-home .again-mode-card:hover { padding-left:19px; transform:translateY(-2px) rotate(-.2deg); background:#f3dda9; }
.shiying-home .again-mode-card h3 { margin:9px 0 5px; font-size:22px; font-weight:800; }
.shiying-home .again-mode-card p { color:#746044; font-size:11px; }
.shiying-home .mode-card-top,.shiying-home .mode-card-bottom { color:#806a47; }
.shiying-home .mode-card-top>span { color:#3e3222; }.shiying-home .mode-card-bottom { font-size:9px; margin-top:10px; }
.retro-bottom-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:14px; margin-top:17px; }
.retro-pink-note { min-height:154px; background-color:#e99c88; padding:22px; }
.retro-pink-note>strong { position:relative; font:700 31px 'KaiTi','STKaiti',serif; z-index:1; transform:rotate(-4deg); display:inline-block; }
.retro-pink-note p { font-size:12px; position:relative; z-index:1; margin:17px 0 0; }
.retro-pink-note img { position:absolute; right:20px; top:13px; width:40%; height:131px; object-fit:cover; border:7px solid #f4e6c7; transform:rotate(4deg); }
.retro-yellow-note { min-height:154px; background-color:#eac350; padding:20px 25px; }
.retro-yellow-note::after { content:''; position:absolute; right:-5px; bottom:-15px; width:150px; height:125px; background:#3d93ac; clip-path:polygon(25% 0,100% 9%,93% 86%,44% 100%,0 74%,6% 17%); transform:rotate(7deg); opacity:.85; }
.retro-yellow-note strong { position:relative; z-index:1; font:700 29px/1.2 'KaiTi','STKaiti',serif; }
.retro-yellow-note>span { display:block; margin-top:12px; font:italic 9px 'Segoe Print',Georgia,serif; letter-spacing:.1em; position:relative; z-index:1; }
.shiying-home .home-secondary { color:#715e3f; }.shiying-home .again-samples { color:#806a46; justify-content:flex-start; gap:15px; }
.shiying-home .again-samples button { color:#40311f; font-weight:600; }
.shiying-home .home-resume { background:#eee0bd; color:#524126; border-color:#c4ae7f; border-radius:6px; }
.product-main { background-color:#dac59e; background-image:var(--retro-texture); background-size:620px; background-blend-mode:multiply; }
.product-side { background-color:#f4e8cd; background-image:var(--retro-texture); background-size:620px; background-blend-mode:multiply; border-left:1px dashed #a68e5f; padding:28px 23px 20px; }
.product-side h1 { font:800 29px/1.26 'Microsoft YaHei',sans-serif; letter-spacing:-.04em; margin:15px 0 11px; }
.product-description { color:#7d6947; font-size:11px; line-height:1.8; }
.workspace-caption { color:#716044; }.result-frame canvas { border:8px solid #fff1d4; border-radius:4px; box-shadow:0 8px 15px #74562d28; }
.rescue-screen .effect-choices { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.rescue-screen .effect-choice { padding:5px 5px 8px; border:1px solid #c3aa7b; background:#edddb7; color:#3e3020; border-radius:7px; gap:5px; }
.rescue-screen .effect-choice img { width:100%; height:70px; object-fit:cover; border-radius:4px; }
.rescue-screen .effect-choice b { font-size:11px; padding:0 3px; }.rescue-screen .effect-choice span { font-size:9px; color:#85704d; padding:0 3px; line-height:1.4; }
.rescue-screen .effect-choice.is-on { border-color:#74472e; background:#e6b958; box-shadow:0 0 0 1px #74472e; }
.product-tip { background:#e7c76a54; border-left:3px solid #d9a531; color:#78623f; }
.product-slider,.coloring-note,.coloring-settings,.film-style-panel,.film-hint { color:#77623f; }
.product-slider input,.film-options input { accent-color:#262018; }
.film-switch { border-color:#bba57b; background:#e3cfa4; border-radius:999px; }
.film-switch-button.is-on { background:#2b231a; color:#f9ebcc; border-radius:999px; }
.film-options select { background:#eddfbd; color:#59462d; border-color:#bba57b; border-radius:5px; }
.coloring-tools .effect-choice,.coloring-auto-color { background:#eee0bd; color:#625035; border-color:#bfa77d; border-radius:6px; }
.coloring-tools .effect-choice.is-on,.coloring-auto-color.is-on { background:#e8bb4b; border-color:#7b5832; }.coloring-tools .effect-choice span { color:#7d6947; }
.coloring-color { border-color:#eddfbd; outline-color:#b6a079; }.coloring-color.is-on { outline-color:#a6593b; }
.coloring-help { background:#ebbaa57d; border:1px dashed #a5674e; color:#5e422a; border-radius:999px; font-weight:700; }
.product-side .product-save { background:#f2e5c7; border-top:1px dashed #c2ad82; bottom:-20px; }
.studio .free-product-header { background-color:#f1e3c4; background-image:var(--retro-texture); background-size:600px; background-blend-mode:multiply; color:#32271b; }
.free-film-menu .film-style-panel { background-color:#f2e4c4; border-color:#bda57b; border-radius:8px; }
.study-screen .study-header { border-color:#bda67c; }.study-side,.study-main { background:transparent; }
.study-side h1 { font:800 28px/1.35 'Microsoft YaHei',sans-serif; }.study-side h2 { color:#6c5739; }
.study-level { border-color:#c0a979; color:#665335; background:#edddb966; }.study-level.is-on { background:#e8bd4c; border-color:#8b632b; }
.study-screen .btn--primary { background:#252019; border-color:#252019; color:#fff1d4; border-radius:999px; }
.study-actions { background:#f0e1bf; }.study-screen .study-intro,.study-caption,.study-progress,.study-recipe,.study-detail-hint { color:#82704e; }
.study-screen select { background:#e9d9b1; border-color:#bca475; color:#6d5635; }
.retro-advanced-button { border:1px dashed #ae8057; background:#e6c69180; padding:11px; border-radius:6px; font:700 11px var(--sans); color:#5e3f25; cursor:pointer; margin:16px 0 0; }
.gallery.product-screen .work__frame { background:#f6e8c5; border:1px solid #c4a77d; border-radius:5px; }.gallery.product-screen .work__label { color:#56432c; }
.again-product .panel { background:#f0e0bc; color:#35281b; border-color:#b8a071; }.again-product .panel__body,.again-product .panel__title { color:#35281b; }
@media(max-height:800px) and (min-width:851px){
  .product-header{height:54px;flex-basis:54px}.shiying-home-content{padding:16px 20px 22px}.retro-paper{padding:18px}
  .retro-upload .image-comparison{height:195px}.retro-upload h2,.retro-styles h2{font-size:24px;margin-bottom:8px}.retro-panel-copy{font-size:11px;margin-bottom:10px}
  .retro-style-card img{height:68px}.retro-style-grid{gap:9px}.retro-style-tabs{margin-bottom:11px}.retro-style-foot{margin-top:11px;font-size:8px}
  .retro-wordmark{font-size:78px;margin:17px 0 7px}.retro-intro-art img{height:144px}.retro-intro>p{font-size:13px}.retro-intro-bottom{font-size:20px!important;margin-top:13px!important}
  .shiying-home .mode-section-heading{margin:13px 0 9px}.shiying-home .again-mode-card{min-height:107px;padding:13px 17px}.shiying-home .again-mode-card h3{font-size:19px;margin:7px 0 4px}.shiying-home .mode-card-bottom{margin-top:7px}
  .product-side h1{font-size:26px}.rescue-screen .effect-choice img{height:58px}.product-side{padding-top:24px}
}
@media(max-width:1050px){.retro-main-grid{grid-template-columns:.78fr 1.25fr}.retro-styles{grid-column:1/-1}.retro-style-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.retro-style-card img{height:90px}.retro-styles .paper-tape--green{display:none}.retro-style-foot{margin-bottom:0}}
@media(max-width:760px){
  .product-header{padding:0 17px}.product-brand{font-size:21px}.shiying-home-content{padding:14px 13px 22px}.retro-main-grid{display:flex;flex-direction:column;gap:13px}
  .retro-paper{padding:21px}.retro-intro{min-height:220px;padding-right:47%;}.retro-wordmark{font-size:66px;margin:18px 0 9px}.retro-intro-art{position:absolute;right:0;bottom:10px;width:46%;margin:0;min-height:0}.retro-intro-art img{height:175px}.retro-intro-bottom{display:none}.retro-handnote{font-size:10px;margin:4px 0 12px;align-self:flex-start}.retro-intro>p{font-size:12px;margin:0}
  .retro-upload .image-comparison{height:255px}.retro-upload h2,.retro-styles h2{font-size:27px}.retro-panel-copy{font-size:12px}.retro-upload .home-upload{margin-top:3px}
  .retro-style-grid{grid-template-columns:1fr 1fr;gap:13px}.retro-style-card img{height:115px}.retro-style-card span{font-size:11px}.retro-styles{grid-column:auto}
  .shiying-home .again-mode-cards{grid-template-columns:1fr}.shiying-home .again-mode-card{min-height:127px}.retro-bottom-grid{grid-template-columns:1fr}.retro-pink-note img{width:39%}.retro-yellow-note{min-height:145px}.home-header-note{display:none}
  .product-side .product-save{position:static}.product-side h1{font-size:27px}.rescue-screen .effect-choice img{height:105px}.studio .free-product-header{min-height:100px;height:100px}
}
@media(prefers-reduced-motion:reduce){.retro-style-card img,.retro-wordmark{transition:none}.retro-style-card:hover img{transform:none}}

/* A spacious paper collage: real photographs and the supplied small artworks. */
.collage-home{background:#f4ead6 var(--retro-texture);background-size:600px;background-blend-mode:multiply;}
.collage-home .collage-header{height:94px;min-height:94px;padding:0 clamp(24px,4.5vw,80px);border:0;background:transparent;}
.collage-header .product-brand{position:relative;font:900 46px/1 'KaiTi','STKaiti',serif;transform:rotate(-5deg);isolation:isolate;}
.collage-header .product-brand::after{content:'';position:absolute;right:2px;top:9px;width:27px;height:31px;background:#db754a;transform:rotate(18deg);border-radius:50%;z-index:-1;}
.collage-header .product-brand small{display:none;}
.collage-header nav{display:flex;gap:clamp(18px,3.6vw,65px);margin-right:auto;margin-left:7%;}
.collage-header nav button{border:0;background:none;font:600 14px var(--sans);color:#27231c;padding:12px 0;cursor:pointer;position:relative;}
.collage-header nav button.is-on::after{content:'';position:absolute;bottom:3px;left:0;right:0;height:2px;background:#27231c;}
.collage-header .header-create{min-height:44px;padding:12px 24px;font-size:13px;white-space:nowrap;}
.collage-home .shiying-home-content{max-width:1740px;padding:0 clamp(22px,4.5vw,80px) 35px;margin:0 auto;}
.shiying-hero{position:relative;display:grid;grid-template-columns:30% 70%;align-items:center;min-height:490px;}
.shiying-hero::before{content:'';position:absolute;left:-70px;bottom:27px;width:120px;height:90px;background:#e7b637b0;transform:rotate(-16deg);clip-path:polygon(0 5%,93% 0,100% 87%,7% 100%);pointer-events:none;}
.shiying-hero-copy{position:relative;z-index:3;padding:35px 0 40px;}
.hero-eyebrow{font-size:11px;letter-spacing:.2em;color:#816b4c;}
.hero-wordmark{position:relative;isolation:isolate;margin:18px -5px 18px;font:900 clamp(86px,9.4vw,158px)/1.08 'KaiTi','STKaiti',serif;letter-spacing:-.09em;color:#201d17;transform:rotate(-5deg);}
.hero-wordmark::after{content:'';position:absolute;left:61%;top:28%;width:64px;height:74px;background:#edbd43;border-radius:46%;transform:rotate(15deg);z-index:-1;}
.shiying-hero-copy h2{font-size:clamp(17px,1.6vw,25px);line-height:1.5;font-weight:800;margin:25px 0 13px;white-space:nowrap;letter-spacing:-.05em;}
.hero-description{font-size:12px;color:#796347;line-height:1.9;margin:0 0 25px;}
.shiying-hero-copy .home-upload{min-width:224px;min-height:58px;font-size:17px;gap:19px;border:0;}
.shiying-hero-copy .home-upload>span:first-child{font-size:25px;line-height:1;}
.shiying-hero-copy .home-upload-note{font-size:10px;margin-top:14px;}
.hero-try{padding:13px 0;font-size:12px;text-decoration:underline;text-underline-offset:5px;color:#655336;}
.shiying-collage{position:relative;align-self:stretch;min-height:460px;perspective:1500px;}
.collage-art{position:absolute;margin:0;top:0;right:0;width:87%;height:95%;transform:rotate(2deg);filter:drop-shadow(0 13px 14px #70543424);}
.collage-art img{width:100%;height:100%;object-fit:contain;display:block;}
.collage-art figcaption{position:absolute;bottom:5%;right:9%;font-size:9px;letter-spacing:.1em;color:#79684e;}
.collage-original{position:absolute;left:-5%;top:35%;margin:0;width:29%;padding:10px 10px 0;background:#fbf6e9;box-shadow:0 8px 18px #5e452c29;transform:rotate(-6deg);z-index:2;}
.collage-original img{width:100%;aspect-ratio:1/1.2;object-fit:cover;display:block;}
.collage-original figcaption{text-align:center;font:10px/1.5 'KaiTi','STKaiti',serif;padding:12px 0;color:#7b674b;}
.collage-tape{position:absolute;width:76px;height:27px;background:#d4bd93b0;top:-14px;left:30%;transform:rotate(-7deg);clip-path:polygon(2% 0,96% 5%,100% 94%,0 100%);}
.collage-arrow{position:absolute;left:18%;top:65%;font:90px/1 'Segoe Print',serif;color:#f9f1df;filter:drop-shadow(2px 2px 0 #2a514e);transform:rotate(13deg);z-index:3;pointer-events:none;}
.collage-stamp{position:absolute;right:3%;top:8%;font:italic 10px 'Segoe Print',serif;color:#85654b;transform:rotate(7deg);}
.collage-star{position:absolute;right:-3%;bottom:13%;font-size:68px;color:#d78160;transform:rotate(12deg);}
.art-ribbon{position:relative;margin:5px 0 28px;}
.ribbon-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#776146;margin:0 1px 13px;letter-spacing:.06em;}
.ribbon-heading>div{display:flex;gap:8px;}
.ribbon-arrow{border:1px solid #cbb89a;background:#f9f1e1;width:30px;height:30px;border-radius:50%;font-size:15px;cursor:pointer;color:#483e30;}
.art-ribbon-track{display:flex;gap:17px;overflow-x:auto;scrollbar-width:none;padding:7px 4px 14px;scroll-snap-type:x mandatory;}
.art-ribbon-track::-webkit-scrollbar{display:none;}
.art-ribbon-card{flex:0 0 calc((100% - 85px)/6);min-width:135px;scroll-snap-align:start;background:#f8f1e1;border:1px solid #ddceb1;padding:0;text-align:left;cursor:pointer;box-shadow:0 3px 6px #5b412511;transform:rotate(-1deg);transition:transform .35s,box-shadow .35s;}
.art-ribbon-card:nth-child(even){transform:rotate(1deg);}
.art-ribbon-card:hover{transform:translateY(-5px) rotate(0);box-shadow:0 8px 13px #5b412520;}
.art-ribbon-card.is-on{outline:1px solid #947052;outline-offset:3px;}
.art-ribbon-card img{display:block;width:100%;height:140px;object-fit:contain;background:#f2eddd;}
.art-ribbon-card>span{display:flex;align-items:center;gap:8px;padding:8px 9px;font-size:10px;color:#6a563a;}
.art-ribbon-card i{font-size:8px;color:#a49071;font-style:normal;}.art-ribbon-card b{margin-left:auto;font-weight:400;}
.home-style-section{padding:26px 0 12px;border-top:1px dashed #c5ad89;}
.home-preset-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;}
.home-preset{border:0;background:none;text-align:left;padding:0;cursor:pointer;color:#665237;font:inherit;}
.home-preset>span{display:block;font-size:11px;padding:11px 2px;}
.home-preset.is-on>span{font-weight:700;color:#9a4d32;}.home-preset.is-on .preset-paper{outline:1px solid #9a4d32;outline-offset:3px;}
.home-preset.is-on .preset-paper img{animation:paper-open .65s ease-out;}
.preset-paper{width:100%;perspective:700px;position:relative;filter:drop-shadow(0 3px 3px #6a482322);}
.preset-paper img{display:block;width:100%;height:110px;object-fit:contain;background:#f2eddd;transition:transform .45s cubic-bezier(.2,.8,.2,1);transform-origin:50% 90%;border-radius:1px;}
.home-preset:hover .preset-paper img,.effect-choice:hover .preset-paper img{transform:rotateX(6deg) rotate(-1deg) translateY(-3px);}
.home-style-note{font-size:10px;line-height:1.7;color:#806c51;margin:5px 0 14px;}
.home-play-section{scroll-margin:20px;}.collage-home .mode-section-heading h2{font-size:18px;}.collage-home .mode-section-heading>span{font-size:10px;}
.toast{background:#fbf0d9;border:1px solid #b59a6e;color:#473726!important;box-shadow:0 6px 24px #48311b25;border-radius:8px;}
.rescue-screen .effect-choice .preset-paper{width:100%;}.rescue-screen .effect-choice img{height:82px;object-fit:contain;border-radius:1px;}
.rescue-screen .effect-choice.is-on .preset-paper img{animation:paper-open .65s ease-out;}
.paper-controls{margin:7px 0 0;}.paper-controls h2{margin:12px 0 9px;color:#6c5739;}
.paper-choices{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;}
.paper-choice{border:1px solid transparent;background:none;border-radius:4px;padding:4px 2px;cursor:pointer;font:9px var(--sans);color:#7d6849;}
.paper-choice i{display:block;width:100%;height:27px;margin-bottom:5px;border:1px solid #b7a07b;background-image:var(--retro-texture)!important;box-shadow:1px 2px 2px #654b2120;}
.paper-choice.is-on{border-color:#9b6646;background:#dbc28f44;}.paper-controls .product-slider{margin:13px 0 2px;}
.rescue-screen .product-main{padding:20px 30px;}.rescue-screen .result-frame canvas{border:0;border-radius:0;}
.parallel-comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;aspect-ratio:auto;background:none;overflow:visible;width:100%;height:100%;align-items:stretch;}
.comparison-panel{margin:0;position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;align-items:center;justify-content:center;}
.comparison-panel figcaption{font-size:11px;color:#685436;align-self:center;flex:none;padding:8px 14px;margin:0 0 10px;background:#f8eed9;border:1px solid #c2aa82;}
.comparison-panel img{display:block;width:100%;height:auto;min-height:0;max-height:calc(100% - 46px);object-fit:contain;box-shadow:0 8px 18px #75512921;}
.result-frame:has(.parallel-comparison){align-items:stretch;}
@keyframes paper-open{from{transform:rotateX(16deg) scale(.97);filter:brightness(.93)}to{transform:rotateX(0) scale(1);filter:brightness(1)}}
.shiying-collage.is-unfolding .collage-art{animation:collage-open 1s ease-out;}
@keyframes collage-open{from{opacity:.3;transform:rotate(5deg) rotateY(-9deg) scale(.97)}to{opacity:1;transform:rotate(2deg)}}
@media(min-width:1600px){.shiying-hero{min-height:620px}.shiying-collage{min-height:570px}.art-ribbon-card img{height:175px}}
@media(max-width:1000px){.shiying-hero{grid-template-columns:34% 66%;min-height:450px}.shiying-collage{min-height:430px}.hero-wordmark{font-size:90px}.collage-original{width:34%;left:0;top:41%}.collage-art{width:100%}.collage-header nav{margin-left:2%;gap:22px}.hero-description{font-size:11px}.art-ribbon-card{flex-basis:180px}.home-preset-list{grid-template-columns:repeat(3,1fr)}.collage-arrow{left:26%;top:70%;font-size:62px}}
@media(max-width:700px){
 .collage-home .collage-header{height:80px;min-height:80px;padding:0 20px;gap:10px}.collage-header .product-brand{font-size:36px}.collage-header nav{gap:15px;margin-left:auto;margin-right:0}.collage-header nav button{font-size:12px}.collage-header .header-create{display:none}
 .collage-home .shiying-home-content{padding:0 20px 25px}.shiying-hero{display:flex;flex-direction:column;align-items:stretch;min-height:0}.shiying-hero-copy{padding:25px 0 14px}.hero-wordmark{font-size:89px;margin:11px 0 15px}.shiying-hero-copy h2{font-size:21px;margin-top:18px}.hero-description{font-size:12px}.hero-eyebrow{font-size:10px}.shiying-hero-copy .home-upload{min-height:50px}.hero-try{position:absolute;right:0;bottom:22px}.shiying-collage{height:350px;min-height:350px;margin-top:7px}.collage-art{width:87%;right:-10px;height:90%}.collage-original{width:30%;left:0;top:45%}.collage-original figcaption{font-size:8px;padding:7px 0}.collage-original{padding:6px 6px 0}.collage-arrow{top:73%;left:27%;font-size:55px}.collage-star{font-size:40px;right:0;bottom:9%}.collage-stamp{top:4%;font-size:8px}.collage-art figcaption{font-size:8px;right:8%;bottom:3%}
 .art-ribbon{margin-top:15px}.art-ribbon-card{flex-basis:155px}.art-ribbon-card img{height:133px}.home-preset-list{gap:13px}.preset-paper img{height:95px}.collage-home .mode-section-heading{align-items:flex-start;gap:8px}.collage-home .mode-section-heading h2{font-size:17px}.collage-home .mode-section-heading>span{max-width:40%;text-align:right;line-height:1.5}.rescue-screen .product-main{padding:16px}.parallel-comparison{gap:10px}.comparison-panel figcaption{padding:6px 9px;font-size:10px}.rescue-screen .effect-choice img{height:100px}
}
@media(prefers-reduced-motion:reduce){.shiying-collage.is-unfolding .collage-art,.rescue-screen .effect-choice.is-on .preset-paper img,.home-preset.is-on .preset-paper img{animation:none}.preset-paper img,.art-ribbon-card{transition:none}.home-preset:hover .preset-paper img,.effect-choice:hover .preset-paper img,.art-ribbon-card:hover{transform:none}}

.cutout-open{border-style:solid;background:#d7dfc1;color:#3d624c;margin-top:8px;}
.cutout-modal .panel{width:min(1050px,94vw);max-height:94vh;padding:24px;overflow-y:auto;background:#f2e6ca;color:#35281b;}
.cutout-modal .panel__title{font:800 23px var(--sans);margin:0 0 18px;color:#35281b;}.cutout-modal .panel__body{color:#655339;}
.cutout-tools{display:flex;flex-wrap:wrap;gap:8px;}.cutout-tool{padding:9px 12px;border:1px solid #b6a078;background:#f7edd6;color:#655239;font:12px var(--sans);border-radius:5px;cursor:pointer;}
.cutout-tool.is-on{background:#376954;color:#fff4dc;border-color:#376954;}.cutout-tool:disabled{opacity:.4;cursor:default;}
.cutout-help,.cutout-note{font-size:11px;line-height:1.7;color:#806a4a;margin:13px 0;}.cutout-note{min-height:19px;}
.cutout-stage{display:flex;justify-content:center;align-items:center;background:#e6d5b3;min-height:160px;max-height:52vh;padding:12px;}
.cutout-stage canvas{display:block;max-width:100%;max-height:calc(52vh - 24px);width:auto;height:auto;object-fit:contain;cursor:crosshair;touch-action:none;box-shadow:0 3px 13px #76522b20;}
.cutout-stage canvas:focus-visible{outline:2px solid #356c58;outline-offset:3px;}.cutout-same{display:flex;gap:8px;align-items:center;margin-top:14px;font-size:11px;}.cutout-same input{accent-color:#376954;}
.cutout-modal .btn--primary{background:#282219;color:#fff1d4;border-color:#282219;border-radius:999px;}.cutout-modal .btn--quiet{color:#786244;}
@media(min-width:1001px) and (max-height:850px){
 .collage-home .collage-header{height:78px;min-height:78px;flex-basis:78px}.shiying-hero{min-height:0;height:calc(100svh - 288px)}.shiying-collage{min-height:0;height:100%}.shiying-hero-copy{padding:15px 0}.hero-wordmark{font-size:clamp(90px,9.1vw,140px);margin:12px -5px 14px}.shiying-hero-copy h2{margin:16px 0 10px}.hero-description{margin-bottom:19px}.shiying-hero-copy .home-upload{min-height:52px}.art-ribbon{margin:7px 0 24px}.art-ribbon-card img{height:120px}.ribbon-heading{margin-bottom:8px}.collage-original{top:34%}
}
@media(max-width:700px){.cutout-modal .panel{padding:17px}.cutout-tool{padding:8px;font-size:11px}.cutout-modal .panel__title{font-size:20px}.cutout-stage{padding:7px}}

/* V6: sample photographs stay by the upload action; styles sit below the art. */
.home-v6 .shiying-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:28px;height:clamp(480px,calc(100svh - 235px),650px);min-height:0;align-items:stretch;}
.home-v6 .shiying-hero-copy{display:flex;flex-direction:column;align-items:flex-start;padding:25px 0 14px;min-width:0;}
.hero-message{margin:20px 0 23px;position:relative;font:900 clamp(34px,3.3vw,59px)/1.55 'KaiTi','STKaiti',serif;letter-spacing:-.07em;color:#211d17;transform:rotate(-3deg);}
.hero-message>span{position:relative;display:block;isolation:isolate;width:max-content;max-width:100%;white-space:nowrap;}
.hero-message>span::before{content:'';position:absolute;inset:8px -11px 3px;z-index:-1;background:#e4bd53b0;clip-path:polygon(1% 14%,23% 3%,98% 0,100% 78%,79% 98%,0 96%);transform:rotate(-2deg);}
.hero-message>span:nth-child(2)::before{background:#e69b86b5;transform:rotate(2deg);clip-path:polygon(0 9%,34% 5%,91% 0,100% 12%,98% 96%,58% 88%,1% 100%);}
.home-v6 .hero-description{font-size:12px;line-height:1.85;margin-bottom:20px;}
.home-v6 .home-upload{min-height:50px;min-width:218px;font-size:15px;}
.hero-samples{margin-top:auto;padding-top:20px;width:100%;}
.hero-sample-heading{display:flex;justify-content:space-between;gap:5px;align-items:center;margin-bottom:12px;}
.hero-sample-heading>span{font:700 15px 'KaiTi','STKaiti',serif;color:#6b533a;transform:rotate(-5deg);white-space:nowrap;}
.home-v6 .hero-try{position:static;padding:4px 0;font-size:10px;white-space:nowrap;text-underline-offset:4px;}
.hero-sample-list{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;}
.hero-sample{background:#f8f0df;padding:3px;border:1px solid #d1bc96;cursor:pointer;transform:rotate(-2deg);transition:transform .25s;box-shadow:1px 3px 4px #81603d1c;}
.hero-sample:nth-child(even){transform:rotate(2deg)}.hero-sample:hover{transform:translateY(-4px) rotate(0)}.hero-sample.is-on{outline:1px solid #a05a3b;outline-offset:2px;}
.hero-sample img{display:block;width:100%;height:57px;object-fit:cover;}
.hero-right{min-width:0;min-height:0;display:flex;flex-direction:column;gap:4px;}
.home-v6 .shiying-collage{height:auto;min-height:0;flex:1;}
.home-v6 .collage-art{width:84%;height:100%;top:0;right:0;}.home-v6 .collage-original{width:27%;left:-2%;top:28%;}.home-v6 .collage-arrow{left:22%;top:67%;font-size:65px;}.home-v6 .collage-stamp{top:8%;right:1%;font-size:8px;}.home-v6 .collage-star{bottom:10%;right:-3%;font-size:45px;}
.home-v6 .home-style-section{border:0;margin:0;padding:9px 8px 10px;flex:none;background:#f8efdac7;box-shadow:0 4px 6px #7453310a;transform:rotate(.3deg);}
.home-v6 .home-style-section .mode-section-heading{margin:0 0 8px;}.home-v6 .home-style-section h2{font-size:12px;}.home-v6 .home-style-section [role=status]{font-size:9px;}
.home-v6 .home-preset-list{gap:9px;}.home-v6 .preset-paper img{height:49px;}.home-v6 .home-preset>span{font-size:9px;padding:7px 1px 0;text-align:center;}
.home-v6 .art-ribbon{margin:19px 0 24px;padding-top:14px;border-top:1px dashed #c9b18b;}
.home-v6 .ribbon-heading{gap:18px;margin-bottom:7px;}.ribbon-title{font:800 23px 'KaiTi','STKaiti',serif;color:#3f3021;transform:rotate(-5deg);}.ribbon-note{margin-right:auto;font-size:10px;}
.home-v6 .art-ribbon-card img{height:111px;}.home-v6 .art-ribbon-card>span{font-size:9px;padding:6px 8px;}
.export-choice{display:flex;flex-direction:column;gap:7px;font:11px var(--sans);color:#776247;margin:0 0 12px;text-align:left;width:100%;}
.export-choice select{width:100%;min-width:0;padding:9px 10px;border:1px solid #bea77e;border-radius:5px;background:#f6ecd5;color:#4c3a26;font:12px var(--sans);cursor:pointer;}
.product-save .export-choice{margin-bottom:10px;}.finish .export-choice{max-width:310px;margin:20px auto;color:#dcc8a5;}.finish .export-choice select{background:#342a20;color:#f2e4c9;border-color:#8b7452;}
/* Detail images shrink with their grid cell; actions never sit outside the panel. */
.overlay--detail .panel{width:min(1180px,94vw);max-width:94vw;max-height:94svh;overflow-y:auto;overflow-x:hidden;padding:22px 26px 25px;box-sizing:border-box;}
.detail-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px;}.detail-heading h2{font-size:20px;margin:0;color:#372c1e;}
.detail-close{width:34px;height:34px;flex:none;background:#e4d2ac;border:0;border-radius:50%;font-size:24px;color:#665033;cursor:pointer;}
.overlay--detail .detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,285px);gap:25px;align-items:start;min-width:0;}
.overlay--detail .detail__art{min-width:0;display:flex;align-items:center;justify-content:center;background:#ddcbaa33;padding:0;}
.overlay--detail .detail__art img{width:100%;height:auto;max-width:100%;max-height:calc(94svh - 102px);object-fit:contain;box-shadow:0 5px 15px #6c4c2722;}
.overlay--detail .detail__side{min-width:0;gap:12px;}.overlay--detail .detail__ref{max-width:100%;width:auto;height:132px;object-fit:contain;align-self:flex-start;}
.overlay--detail .kv{font-size:11px;color:#695236;border-color:#cab28b;padding-bottom:7px;gap:7px;}.overlay--detail .kv span:first-child{color:#9a805d;}
.detail-actions{display:flex;flex-direction:column;gap:9px;margin-top:7px;}.detail-actions .btn{display:block;width:100%;min-height:40px;white-space:normal;border:1px solid #b9a078;color:#655034;background:#f5e8ca;border-radius:6px;padding:10px 12px;text-align:center;font-size:12px;}
.detail-actions .detail-continue{border-color:#272017;background:#272017;color:#fff0d3;border-radius:999px;min-height:46px;font-weight:700;}.detail-actions .detail-delete{border-color:#b7644e;background:#edbba9;color:#782f23;font-weight:700;}
.detail-actions .export-choice{margin:6px 0 0;}.detail-actions .btn:hover{filter:brightness(.96);}.detail-actions .detail-continue:hover{background:#463726;filter:none;}
.overlay--detail .detail__side .small{color:#8e7251;}
@media(min-width:1600px){.home-v6 .hero-sample img{height:79px}.home-v6 .preset-paper img{height:66px}.home-v6 .art-ribbon-card img{height:154px}}
@media(max-width:1000px){.home-v6 .shiying-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);height:510px;gap:20px}.hero-message{font-size:33px}.home-v6 .home-preset-list{grid-template-columns:repeat(3,1fr)}.home-v6 .preset-paper img{height:38px}.home-v6 .home-style-section{padding:8px}.hero-sample-list{gap:5px}.hero-sample img{height:42px}.hero-sample-heading{flex-wrap:wrap}.home-v6 .collage-arrow{font-size:40px}.home-v6 .art-ribbon-card{flex-basis:160px}}
@media(max-width:700px){
 .home-v6 .shiying-hero{display:flex;height:auto;gap:15px}.home-v6 .shiying-hero-copy{padding:20px 0 0}.hero-message{font-size:clamp(32px,8.2vw,48px);margin:16px 0 20px}.hero-samples{padding-top:23px;margin-top:0}.hero-sample img{height:58px}.hero-right{gap:6px}.home-v6 .shiying-collage{flex:none;height:340px;margin-top:0}.home-v6 .collage-original{left:0;top:34%;width:28%}.home-v6 .collage-arrow{left:23%;top:74%;font-size:45px}.home-v6 .home-preset-list{grid-template-columns:repeat(6,1fr);gap:5px}.home-v6 .preset-paper img{height:43px}.home-v6 .home-preset>span{font-size:8px}.home-v6 .home-style-section .mode-section-heading{align-items:center}.home-v6 .art-ribbon{margin-top:18px}.ribbon-title{font-size:21px}.ribbon-note{display:none}
 .overlay--detail .panel{width:94vw;padding:15px 16px 20px;max-height:94svh}.overlay--detail .detail{grid-template-columns:minmax(0,1fr);gap:19px}.overlay--detail .detail__art img{max-height:47svh}.overlay--detail .detail__side{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.overlay--detail .detail__ref{height:106px;grid-row:span 3}.detail-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:9px}.detail-actions .detail-continue,.detail-actions .export-choice{grid-column:1/-1}.detail-actions .detail-delete{min-width:0}.detail-heading h2{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.hero-sample{transition:none}.hero-sample:hover{transform:none}}
@media(min-width:1001px) and (max-height:850px){
 .home-v6 .shiying-hero{height:clamp(400px,calc(100svh - 270px),550px)}.home-v6 .shiying-hero-copy{padding:18px 0 8px}.home-v6 .hero-message{margin:14px 0 18px;line-height:1.4}.home-v6 .hero-description{margin-bottom:14px}.home-v6 .hero-samples{padding-top:14px}.home-v6 .hero-sample img{height:49px}.home-v6 .art-ribbon{margin-top:12px;padding-top:10px}.home-v6 .art-ribbon-card img{height:85px}.home-v6 .ribbon-heading{margin-bottom:4px}.home-v6 .ribbon-title{font-size:22px}
}

/* V7: a single full-width style row replaces the duplicate artwork ribbon. */
.home-v7 .hero-sample-list{grid-template-columns:repeat(8,minmax(0,1fr));}
.home-v7 .home-style-section{width:100%;margin:19px 0 14px;padding:17px 0 13px;border-top:1px dashed #c9b18b;background:none;box-shadow:none;transform:none;}
.home-v7 .home-style-section .mode-section-heading{margin:0 0 14px;}.home-v7 .home-style-section h2{font-size:19px;}.home-v7 .home-style-section [role=status]{font-size:11px;}
.home-v7 .home-preset-list{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;}
.home-v7 .preset-paper img{height:112px;}.home-v7 .home-preset>span{font-size:11px;padding:10px 2px 0;text-align:left;}
.home-v7 .home-preset{padding:5px;background:#f9f0de;box-shadow:0 3px 7px #78573818;}
.home-v7 .home-preset.is-on .preset-paper{outline:0;}.home-v7 .home-preset.is-on{outline:1px solid #9a4d32;outline-offset:3px;}
.home-v7 .mode-card--auto{background:#edd08c;}.home-v7 .again-mode-card{transition:transform .2s,box-shadow .2s;}
.home-v7 .again-mode-card:hover{box-shadow:0 6px 16px #72552d20;}.home-v7 .mode-card-bottom b{font-size:23px;}
@media(min-width:1600px){.home-v7 .preset-paper img{height:150px;}}
@media(max-width:1000px){.home-v7 .hero-sample-list{grid-template-columns:repeat(4,1fr)}.home-v7 .hero-sample img{height:42px}.home-v7 .home-preset-list{grid-template-columns:repeat(3,minmax(0,1fr))}.home-v7 .preset-paper img{height:100px}}
@media(max-width:700px){.home-v7 .hero-sample img{height:54px}.home-v7 .home-preset-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.home-v7 .preset-paper img{height:115px}.home-v7 .home-style-section h2{font-size:17px}.home-v7 .home-style-section .mode-section-heading{align-items:center}.home-v7 .home-style-section [role=status]{font-size:10px}.home-v7 .again-mode-card{min-height:122px}}
@media(prefers-reduced-motion:reduce){.home-v7 .again-mode-card{transition:none}}

.background-music{position:fixed;bottom:16px;left:18px;z-index:65;display:flex;align-items:center;gap:9px;padding:7px 12px 7px 8px;background:#f5ecd9ed;border:1px solid #c6b18b;border-radius:999px;box-shadow:0 3px 12px #78563118;color:#776044;}
.background-music audio{display:none;}.music-toggle{display:flex;align-items:center;gap:7px;border:0;background:none;padding:4px;color:inherit;font:11px var(--sans);cursor:pointer;white-space:nowrap;}
.music-toggle i{font:20px/1 Georgia,serif;color:#ae724d;font-style:normal;}.background-music.is-playing .music-toggle i{color:#3f765d;}
.music-volume{width:64px;height:12px;accent-color:#7d6b42;cursor:pointer;}.music-percent{font:9px var(--sans);color:#968361;width:27px;}
.music-toggle:focus-visible,.music-volume:focus-visible{outline:2px solid #ab6948;outline-offset:3px;}
body:has(.studio.is-active) .background-music{left:auto;right:20px;bottom:13px;background:#f0e1c9ed;}
@media(max-width:700px){.background-music{left:10px;bottom:10px;gap:5px;padding:5px 9px 5px 6px}.music-toggle{font-size:10px}.music-volume{width:45px}body:has(.studio.is-active) .background-music{right:10px;bottom:9px}}
.cutout-options{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:12px;}.cutout-options .cutout-same{margin:0;}.cutout-softness{display:flex;align-items:center;gap:12px;font-size:11px;}.cutout-softness input{width:110px;accent-color:#376954}.cutout-modal .panel{max-width:94vw;}.cutout-tool:disabled{pointer-events:none;}
.cutout-modal .panel{height:min(960px,94svh);display:flex;flex-direction:column;overflow:hidden;}.cutout-modal .panel__title{flex:none;}.cutout-modal .panel__body{flex:1;min-height:0;overflow-y:auto;}.cutout-modal .panel__actions{flex:none;margin-top:12px;}.cutout-stage{max-height:42svh;}.cutout-stage canvas{max-height:calc(42svh - 24px);}
@media(min-width:1100px){body:has(.home.is-active) .background-music{top:20px;bottom:auto;left:auto;right:clamp(215px,calc(4.5vw + 140px),235px);}body:has(.gallery.is-active) .background-music{top:16px;bottom:auto;left:220px;}}
.home-v7 .collage-header{position:sticky;top:0;z-index:60;background:#f4ead6 var(--retro-texture);background-size:600px;}
@media(min-width:701px) and (max-width:1099px){body:has(.home.is-active) .background-music{top:20px;bottom:auto;left:auto;right:170px;gap:5px}.music-volume{width:35px}.music-toggle{font-size:10px;}}
@media(max-width:700px){body:has(.home.is-active) .background-music{top:79px;bottom:auto;left:auto;right:13px;}.music-volume{width:35px;}}
.rescue-screen .effect-choices+.retro-advanced-button{margin:14px 0 9px;background:#efdcb6;border-style:solid;}
.preset-example-note{font-size:10px;color:#8f7856;margin:13px 2px 0;line-height:1.6;}
.preset-tune .study-side{overflow-y:auto;}.preset-tune .study-side h1{font:800 27px/1.35 var(--sans);margin:15px 0 24px;}.preset-tune .study-side h2{margin:21px 0 12px;}
.tune-current{display:inline-block;border:1px solid #b69b6b;padding:7px 11px;border-radius:5px;font-size:12px;background:#e9cf9055;color:#705230;}
.tune-slider{display:flex;flex-direction:column;gap:9px;margin:20px 0;font-size:12px;color:#6d5736;}.tune-slider>span{display:flex;justify-content:space-between;gap:8px;}.tune-slider>span>span{font-size:10px;color:#9a815b;}.tune-slider input{width:100%;accent-color:#655638;}.tune-slider input:disabled{opacity:.35;}
.tune-hint{color:#907856;font-size:11px;line-height:1.75;margin:12px 0;}.preset-tune .subject-open{width:100%;margin:0;background:#d9e0bd;color:#45654b;border-style:solid;}.preset-tune .study-ground{font-size:11px;color:#715a3b;}.preset-tune .study-actions .export-choice{margin:14px 0 9px;}
.preset-tune .study-preview img{display:block;max-width:100%;max-height:100%;object-fit:contain;}.subject-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px;}.subject-chip{font:11px var(--sans);border:1px solid #87a590;background:#deead7;color:#3e6953;padding:7px 12px;border-radius:999px;cursor:pointer;}

/* Keep local protection prominent and the apply/save actions outside scrolling controls. */
.preset-tune{overflow:hidden;}
.preset-tune .study-workspace{grid-template-columns:minmax(0,1fr) 390px;overflow:hidden;}
.preset-tune .study-side{padding:0;overflow:hidden;background:#f4e8cd;border-color:#bca77c;}
.tune-controls{flex:1;min-height:0;overflow-y:auto;padding:24px 26px 20px;scrollbar-gutter:stable;}
.preset-tune .study-side h1{font-size:25px;margin:14px 0 20px;color:#363c30;}
.preset-tune .study-side h2{font-size:14px;color:#4b3b27;margin:22px 0 12px;}
.preset-tune .detail-open{width:100%;padding:14px 12px;background:#376954;color:#fff5df;border:1px solid #376954;font-size:14px;}
.preset-tune .subject-open{margin-top:14px;font-size:13px;}
.preset-tune .tune-hint{font-size:13px;color:#665338;line-height:1.8;}
.preset-tune .study-ground,.preset-tune .quiet-button,.preset-tune select{font-size:13px;color:#55432d;}
.preset-tune select{padding:9px 10px;background:#fbf3e2;}
.tune-slider{font-size:14px;color:#51402c;gap:12px;margin:20px 0;}
.tune-slider>span>span{font-size:12px;color:#655338;}
.tune-subject-controls{border-top:1px solid #c7b38d;border-bottom:1px solid #c7b38d;padding:14px 0;margin:16px 0;}
.tune-subject-controls summary{font-size:14px;font-weight:600;color:#51402c;cursor:pointer;}
.preset-tune .study-actions{position:static;flex:none;margin:0;padding:12px 26px 18px;background:#f4e8cd;border-top:1px solid #c7b38d;box-shadow:0 -5px 15px #76532c0b;}
.preset-tune .study-progress{font-size:12px;color:#655338;margin-bottom:6px;}
.preset-tune .study-actions .export-choice{margin:10px 0 6px;}
.preset-tune .study-actions>.btn--quiet{width:100%;font-size:13px;padding:9px;}
.preset-tune .study-preview{min-height:0;padding:0;overflow:hidden;}
.preset-tune .study-preview canvas,.preset-tune .study-preview img{max-height:calc(100svh - 210px);max-width:100%;width:auto;height:auto;}
.preset-tune .study-tab{font-size:14px;color:#665338;}
.preset-tune .study-caption{font-size:12px;color:#665338;}
.photo-region-picker .cutout-help,.photo-region-picker .cutout-note{font-size:14px;color:#55432d;}
.photo-region-picker .cutout-tool,.photo-region-picker select{font:13px var(--sans);}
.photo-region-picker select{padding:8px;border:1px solid #b6a078;background:#fff5df;color:#55432d;}
.photo-region-stage{height:42svh;margin-top:16px;overflow:auto;}
.photo-region-stage.is-zoomed{display:block;}
.photo-region-stage.is-zoomed canvas{max-width:none;max-height:none;}
@media(max-width:1000px) and (min-width:721px){.preset-tune .study-workspace{grid-template-columns:minmax(0,1fr) 340px;}.tune-controls{padding:20px;}.preset-tune .study-actions{padding:12px 20px;}}
@media(max-width:720px){.preset-tune{overflow:auto;}.preset-tune .study-workspace{overflow:visible;flex:none;}.preset-tune .study-side{overflow:visible;}.tune-controls{overflow:visible;padding:22px;}.preset-tune .study-actions{padding:16px 22px;}.preset-tune .study-preview{min-height:230px;}.preset-tune .study-preview canvas,.preset-tune .study-preview img{max-height:52svh;}}
