[hidden]{display:none!important}
body{background:#eceeeb;color:#29332f}
.studio-topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;background:#fff;border-bottom:1px solid #dce2dc;position:sticky;top:0;z-index:100;gap:16px}
.studio-logo{font-family:'Songti SC',serif;font-size:28px;font-weight:700;white-space:nowrap;color:#294b3e}.studio-logo small{font:12px 'PingFang SC',sans-serif;color:#777e77;margin-left:16px;letter-spacing:2px}
.top-actions{display:flex;align-items:center;gap:8px}.top-actions button,.dialog-head button,.apply-design{border:1px solid #d8ded8;border-radius:8px;padding:10px 16px;background:#fff;font:inherit;cursor:pointer}.top-actions select{width:150px;font-size:12px}.top-actions #downloadPng,.apply-design{background:#294b3e;color:#fff;border-color:#294b3e}
.app{grid-template-columns:270px minmax(0,1fr) 270px;min-height:calc(100vh - 72px)}
.controls,.inspector{height:calc(100vh - 72px);position:sticky;top:72px;overflow:auto;padding:24px 18px;background:#fafbf8;box-shadow:none}.controls{border-right:1px solid #dce2dc}.inspector{border-left:1px solid #dce2dc}
.brand{font-size:18px;margin-bottom:8px}.hint{font-size:11px;margin-bottom:20px}.studio-tabs{display:flex;gap:4px;padding:4px;background:#e9eee8;border-radius:9px;margin-bottom:24px}.studio-tabs button{flex:1;background:transparent;border:0;border-radius:6px;padding:9px;color:#69736a;cursor:pointer}.studio-tabs button.active{background:#fff;color:#294b3e;box-shadow:0 1px 4px #0001;font-weight:600}
.inspector h2{font-size:16px;margin:0 0 8px}.selection-hint{font-size:12px;color:#778078;line-height:1.7}.inspector-empty{font-size:13px;line-height:2;text-align:center;padding:48px 12px;border:1px dashed #d4ddd2;border-radius:10px;margin-top:24px;color:#6c786e}.inspector-empty small{font-size:11px;color:#929b92}.inspector .group{border-top:0}.group{padding:16px 0}.group label{font-size:12px}.group input,.group select{font-size:13px}.actions button{font-size:12px}.actions button:hover,.top-actions button:hover{filter:brightness(.96)}button:focus-visible,summary:focus-visible{outline:3px solid #a0b8aa;outline-offset:3px}
.stage{padding:24px 24px 70px;overflow:hidden}.stage-guide{max-width:640px;margin:0 auto 16px;display:flex;justify-content:space-between;font-size:12px;color:#5b6b60}.stage-guide small{color:#879187;font-size:11px}.poster-wrap{box-shadow:0 12px 40px #24382c18}.poster{transform:scale(var(--poster-scale,1));transform-origin:top left;min-height:0}.poster-wrap{height:calc(var(--poster-height,0px) * var(--poster-scale,1));overflow:hidden}.reference-template{min-height:0}
.group-title{font-size:13px;font-weight:600;margin-bottom:14px}.group-title span{float:right;font-size:10px;color:#879187;font-weight:400}.design-gallery{display:grid;gap:14px}.design-card{text-align:left;display:grid;grid-template-columns:1fr auto;width:100%;background:#fff;border:1px solid #dce3da;padding:10px;border-radius:12px;cursor:pointer;gap:5px 2px;color:#283d30}.design-card:hover{border-color:#748e79;box-shadow:0 5px 16px #24412a0d}.design-card strong{font-size:13px;margin-top:5px}.design-card small{grid-column:1/-1;font-size:10px;color:#7b857c}.card-cta{font-size:10px;grid-column:2;grid-row:2;color:#6b806e;align-self:center}.card-art{grid-column:1/-1;display:block;height:160px;background:#f5f4ef;overflow:hidden;padding:12px;position:relative;border-radius:5px;color:#254b40}.art-image{display:block;height:70px;background:linear-gradient(150deg,#c0cdbb,#859f90);border-radius:2px}.art-title{font-family:'Songti SC',serif;display:block;font-size:17px;padding:10px 0 6px}.art-line{display:block;width:40%;height:2px;background:currentColor;opacity:.3}.art-grid{display:flex;gap:6px;margin-top:10px}.art-grid i{height:24px;width:50%;background:#d7ded1}.card-city .card-art{background:#edf0f3;color:#25394a}.card-city .art-image{background:linear-gradient(120deg,#8b9caa,#c8d0d5);width:65%;height:85px;float:right;margin-left:8px}.card-city .art-title{padding-top:18px;font-family:inherit;font-weight:700;width:40%}.card-city .art-grid{clear:both}.card-family .card-art{background:#fff3df;color:#805238}.card-family .art-image{background:linear-gradient(145deg,#e6c59b,#c99e79);border-radius:40px 40px 4px 4px;height:75px}.card-family .art-grid i{background:#ecd5b7;border-radius:6px}.legacy-templates{margin-top:20px;font-size:12px;color:#708071}.legacy-templates summary{cursor:pointer;padding:12px 0}.legacy-templates .group{padding:12px 0}
.template-dialog{border:1px solid #dde3da;border-radius:16px;width:650px;max-width:95vw;padding:22px;background:#fafbf8;color:#2e4034}.template-dialog::backdrop{background:#15281f80;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{font-size:18px}.template-dialog>p{font-size:12px;color:#798479}.template-scroll{height:55vh;overflow:auto;background:#e7ebe5;padding:20px;}.template-sheet{zoom:.78;margin:auto}.apply-design{width:100%;margin-top:18px}
.studio-design{--ref-accent:var(--accent);color:#293831;background:var(--paper);padding-bottom:0}.studio-design .ref-hero{padding:0 0 50px;background:transparent}.studio-design .ref-hero>.photo{height:480px}.studio-design .ref-hero-copy{text-align:left;padding:38px 44px 0}.studio-design .ref-kicker{font-size:13px;letter-spacing:.12em;color:var(--accent-2);margin:0 0 18px}.studio-design .ref-title{font-size:44px;line-height:1.3;letter-spacing:.03em;color:var(--accent);margin:0 0 18px}.studio-design .ref-subtitle{margin:0;font-size:17px;line-height:1.8;color:#637067}.studio-design .ref-section{padding:38px 44px 18px}.studio-design .ref-section-title{font-size:30px;letter-spacing:.02em;line-height:1.4}.studio-design .ref-copy{font-size:16px;line-height:1.9;color:#69736b;margin:14px 0 24px}.studio-design .gallery{margin-top:22px;gap:14px}.studio-design .gallery .photo{height:300px}.studio-design .layout-single .photo{height:350px}.studio-design .footer{padding:60px 44px;background:var(--accent);color:var(--paper);margin-top:42px}.studio-design .footer h2{font-size:30px;letter-spacing:.05em}.studio-design .footer p{font-size:15px;color:inherit}.studio-design .photo:empty{background:linear-gradient(145deg,#e4e8df,#cbd5c8);border:0}.studio-design .photo:empty::after{font-size:14px;color:#596b5a}.design-city .ref-hero-copy{padding-bottom:35px;border-bottom:2px solid var(--accent);margin:0 44px;padding-left:0;padding-right:0}.design-city .ref-title{font-family:'PingFang SC',sans-serif;font-weight:700;font-size:50px}.design-city .ref-hero>.photo{height:420px}.design-city .ref-section:nth-child(odd){background:#e5eaee}.design-city .photo:empty{background:linear-gradient(145deg,#dce3e8,#a8bac6)}.design-family .ref-hero{padding:30px 30px 12px}.design-family .ref-hero>.photo{height:430px;border-radius:170px 170px 12px 12px}.design-family .ref-hero-copy{padding:30px 14px;text-align:center}.design-family .ref-title{font-size:40px}.design-family .photo{border-radius:16px}.design-family .photo:empty{background:linear-gradient(145deg,#efdac0,#dec09d)}.design-family .ref-section-title{color:#805238}.design-family .footer{border-radius:44px 44px 0 0}
body.preview-mode .studio-topbar,body.preview-mode .inspector,body.preview-mode .stage-guide{display:none}body.preview-mode .poster{transform:none}body.preview-mode .poster-wrap{height:auto}
@media(max-width:1350px){.app{grid-template-columns:235px minmax(0,1fr) 235px}.controls,.inspector{padding:20px 14px}.stage{padding:20px 16px}.stage-guide small{display:none}}
@media(max-width:980px){.app{display:block}.studio-topbar{padding:10px 14px;height:auto;min-height:64px;flex-wrap:wrap}.studio-logo small{font-size:10px}.top-actions{flex-wrap:wrap;gap:5px}.top-actions button{padding:8px;font-size:11px}.top-actions select{width:130px;padding:7px}.controls{top:0;height:100vh;z-index:120;width:min(340px,88vw);padding:24px 18px}.inspector{position:relative;top:auto;height:auto;border-top:1px solid #dce2dc;padding:20px;margin-bottom:70px}.inspector-empty{padding:15px}.stage{padding:20px 12px 30px}.mobile-panel-toggle{z-index:130}.template-sheet{zoom:.48}.template-scroll{padding:10px}.studio-design .ref-title{overflow-wrap:anywhere}}
@media print{.studio-topbar,.inspector,.stage-guide{display:none!important}.poster-wrap{height:auto;overflow:visible}.poster{transform:none}.stage{overflow:visible}.app{display:block}}

.context-tabs{display:flex;gap:5px;margin:18px 0}.context-tabs button{flex:1;padding:8px 4px;border:1px solid #dce2dc;border-radius:6px;background:#fff;color:#506455;font:inherit;font-size:11px;cursor:pointer}
.template-sheet{transform:none!important}
input[type="range"]{accent-color:#416451}
@media(max-width:980px){.controls{position:fixed;inset:0 auto 0 0;transform:translateX(-105%)}body.mobile-panel-open .controls{transform:translateX(0)}.stage{width:100%}.studio-topbar{position:relative}.template-dialog{padding:14px}.template-scroll{max-width:100%}}
@media(max-width:980px){body.mobile-panel-open .mobile-panel-toggle{left:auto;right:12px}}
