*{box-sizing:border-box} :root{--ink:#263e35;--muted:#768176;--green:#3f6653;--light:#edf2e8;--line:#dde3d8;--paper:#fbfcf8;--amber:#ad7645}body{margin:0;background:#f6f7f2;color:var(--ink);font:14px/1.6 "Microsoft YaHei","PingFang SC",sans-serif}button,input{font:inherit}button,a,label.file-button{ -webkit-tap-highlight-color:transparent}button{border:0;cursor:pointer;color:inherit}button:disabled{opacity:.38;cursor:default}button:focus-visible,input:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #b89558;outline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.35;font-weight:650;letter-spacing:.02em}h2{font-size:17px;line-height:1.5}h3{font-size:14px}small,.small{font-size:12px}.muted{color:var(--muted)}header{max-width:1320px;margin:auto;display:flex;justify-content:space-between;align-items:center;padding:20px 32px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:18px;font-weight:600}.brand-mark{background:var(--green);color:#f6f5e5;border-radius:12px;width:42px;height:42px;text-align:center;font-size:29px;font-weight:400;line-height:40px}.brand small{display:block;font-size:10px;color:var(--muted);font-weight:400;letter-spacing:.08em}.quiet,.file-button{background:#fff;border:1px solid var(--line);border-radius:8px;padding:9px 14px;font-size:12px;white-space:nowrap}.primary{background:var(--green);color:white;border-radius:9px;padding:12px 24px;font-weight:600}.text-button{background:transparent;color:var(--muted);font-size:12px;padding:8px}.badge{display:inline-block;background:var(--light);color:var(--green);padding:3px 9px;border-radius:5px;font-size:11px;white-space:nowrap}main{max-width:1180px;padding:25px 28px 120px;margin:auto}.steps-nav{display:flex;align-items:center;max-width:640px;margin:0 auto 32px}.steps-nav button{display:flex;align-items:center;gap:9px;background:none;color:#96a08f;padding:6px}.steps-nav b{display:grid;place-items:center;background:#e9ede3;width:29px;height:29px;border-radius:50%;font-size:13px}.steps-nav span{font-size:13px;white-space:nowrap}.steps-nav small{font-size:10px;margin-left:4px}.steps-nav .active{color:var(--green);font-weight:600}.steps-nav .active b{background:var(--green);color:white}.steps-nav .done b{background:#dbe8d5;color:var(--green)}.steps-nav i{height:1px;flex:1;background:var(--line);margin:0 12px}.page-heading{margin:0 0 24px}.page-heading>p:last-child,.page-heading>div>p:last-child{color:var(--muted);margin-top:9px;font-size:13px}.eyebrow{font-size:11px;color:var(--green);letter-spacing:.16em;margin-bottom:8px}.product-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);gap:24px;align-items:start}.panel{padding:23px;background:white;border:1px solid var(--line);border-radius:16px}.category-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.category-tabs button{display:grid;grid-template-columns:70px 1fr;grid-template-rows:1fr 1fr;text-align:left;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px}.category-tabs button>span{grid-row:span 2;height:55px}.category-tabs svg{width:65px;height:55px}.category-tabs strong{align-self:end;font-size:16px}.category-tabs small{align-self:start;color:var(--muted);font-size:10px}.category-tabs .active{background:#eaf1e4;border-color:#75936c;box-shadow:inset 0 0 0 1px #75936c}.search-row{display:flex;gap:10px;margin-bottom:14px}.search{display:flex;gap:8px;align-items:center;flex:1;min-width:0;background:#fff;border:1px solid var(--line);border-radius:9px;padding:7px 12px}.search>span{font-size:23px;color:#889782;line-height:1}.search input{width:100%;min-width:0;background:transparent;border:0;outline:none;font-size:12px;color:var(--ink);padding:3px}.template-options{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:13px}.template-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 6px 11px;text-align:center;transition:border-color .15s}.template-card:hover{border-color:#88a578}.template-card.selected{background:#edf3e7;border:2px solid #6d8c61;padding:12px 5px 10px}.template-card.selected:after{content:'✓';position:absolute;top:5px;right:8px;color:var(--green);font-size:12px}.template-card svg{width:100%;height:66px;display:block}.template-card strong{display:block;font-size:13px;margin:7px 0 3px}.template-card small{font-size:9px;display:block;color:var(--muted);line-height:1.5}.empty{grid-column:1/-1;padding:25px;border:1px dashed var(--line);border-radius:10px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.chosen{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:15px}.chosen button{border:1px solid var(--line);background:white;border-radius:7px;padding:5px 8px;font-size:11px}.chosen button.active{color:white;background:var(--green);border-color:var(--green)}.chosen i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:4px}.adjust-body{display:flex;align-items:center;justify-content:center;gap:17px;background:var(--paper);border-radius:10px;padding:16px 12px}.model-side{width:220px;min-width:0}.model{height:170px;display:grid;place-items:center}.model svg{width:100%;height:100%}.range-label{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;align-items:center}output{color:var(--green);font-size:11px;white-space:nowrap;font-weight:600}input[type=range]{accent-color:var(--green);width:100%;height:23px;margin:6px 0 0;cursor:grab}.height-slider{display:flex;flex-direction:column;align-items:center;font-size:11px;color:var(--muted);gap:4px}.height-slider input{writing-mode:vertical-lr;direction:rtl;height:140px;width:22px}.height-slider output{font-size:10px}.depth-row{padding:15px 10px 2px}.editor>.small{margin:10px 0}.optional{border-top:1px solid var(--line);padding-top:13px;margin-top:14px;font-size:12px;color:var(--muted)}summary{cursor:pointer}.rename{display:block;margin:12px 0}.rename input{display:block;width:100%;border:1px solid var(--line);border-radius:7px;padding:7px;margin-top:5px}.colors{display:flex;gap:12px;margin:14px 0}.colors button{width:22px;height:22px;border-radius:50%;border:2px solid white;outline:1px solid #d1d7ca}.colors .active{outline:2px solid var(--green)}.check{display:flex;gap:8px;align-items:flex-start;font-size:12px}.check input{accent-color:var(--green);margin:4px 0 0}.product-actions{display:flex;justify-content:space-between;gap:10px;padding-top:18px;margin-top:17px;border-top:1px solid var(--line)}.scene-options{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.scene-card{background:white;border:1px solid var(--line);border-radius:14px;padding:18px 12px}.scene-card svg{width:100%;height:115px;display:block}.scene-card strong{display:block;font-size:17px;margin-top:8px}.scene-card small{color:var(--muted);font-size:11px}.scene-card.active{background:#edf3e7;border:2px solid #6d8c61;padding:17px 11px}.environment-editor{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-top:22px}.environment-editor svg{width:100%;height:250px}.scene-sliders h3{margin-bottom:22px}.scene-sliders .range-label{margin-top:15px}.scene-sliders p{margin-top:14px}.skip-card{display:flex;align-items:center;gap:18px;width:100%;padding:22px;text-align:left;border:1px dashed #a9b69c;background:#f0f4e9;border-radius:12px;margin-top:22px}.skip-symbol{display:grid;place-items:center;width:42px;height:42px;border:1px solid #a9b69c;border-radius:50%;font-size:22px;color:var(--green)}.skip-card strong{font-size:14px;display:block}.skip-card small{display:block;color:var(--muted);margin-top:4px;font-size:11px}.result-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.result-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.result-settings{display:grid;gap:18px}.preview .section-heading{align-items:flex-start;margin-bottom:10px}.preview h2{font-size:24px;margin-top:7px}#reason{font-size:12px;margin-bottom:16px}.view-switch{display:flex;gap:3px;background:#f1f4ec;padding:3px;border-radius:7px}.view-switch button{font-size:11px;background:none;padding:5px 9px;border-radius:5px;white-space:nowrap}.view-switch .active{background:white;box-shadow:0 1px 4px #223d2910}#diagram{background:#f7f8f2;border-radius:12px;overflow:hidden}#diagram svg{display:block;width:100%}#group-sequence{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:14px 0 9px}#group-sequence small{font-size:10px;color:var(--muted);margin-right:5px}#group-sequence span{background:#f7f9f2;border:1px solid var(--line);border-radius:5px;padding:3px 10px;font-size:11px}#group-sequence i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:4px}.counts{text-align:center;font-size:11px;color:var(--muted);margin-bottom:16px}.status-wrap{background:#edf4e6;padding:13px 15px;border-radius:9px;color:#506d42;font-size:12px}.status-wrap:has(.warn){background:#fbf1e3;color:#906034}.status-wrap button{margin-top:10px;border-color:#ddc6a4}.stack-check{padding:14px;background:#faf4e8;border-radius:8px;margin-top:12px}.stack-check small{display:block;margin:7px 0 0 22px;color:var(--muted);font-size:10px}.motif-options{display:grid;gap:10px}.motif-card{background:var(--paper);border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;gap:12px;padding:12px;text-align:left}.motif-card>span{min-width:0}.motif-card svg{width:68px;height:46px;flex-shrink:0}.motif-card strong{font-size:13px;display:block}.motif-card small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.motif-card.active{border-color:#78956c;background:#ecf2e5;box-shadow:inset 0 0 0 1px #78956c}.result-settings .small{margin-top:14px}.count-control{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:12px;gap:10px}.count-control small{display:block;font-size:9px;color:var(--muted)}.counter{display:flex;gap:10px;align-items:center}.counter button{width:29px;height:29px;background:var(--light);border:1px solid var(--line);border-radius:6px;font-size:19px;line-height:1}.counter output{min-width:29px;text-align:center}.order-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.order-options button{padding:8px;background:var(--paper);border:1px solid var(--line);border-radius:7px;font-size:10px}.order-options .active{color:var(--green);border-color:var(--green);background:var(--light)}.howto{margin-top:20px}.instruction-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:20px}.instruction-card svg{height:60px;width:100%;display:block}.instruction-card b{font-size:12px;display:block;margin:10px 0 5px}.instruction-card p{font-size:11px;color:var(--muted)}#shape-tip{background:var(--paper);padding:13px;border-radius:8px;font-size:11px;color:#647455;margin-top:18px}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.boundary{font-size:10px;color:var(--muted);line-height:1.8;margin-top:15px;max-width:850px}.file-button{cursor:pointer}.file-button input,.upload-zone input{display:none}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:center;gap:20px;border-top:1px solid var(--line);background:#fcfdf9f2;backdrop-filter:blur(8px);padding:14px 24px;z-index:3}.bottom-nav>span{font-size:12px;color:var(--muted);max-width:350px;flex:1}dialog{width:min(720px,92vw);max-height:85vh;border:1px solid var(--line);border-radius:16px;padding:26px;color:var(--ink)}dialog::backdrop{background:#203c3066}dialog p{font-size:12px;color:var(--muted);margin:15px 0;line-height:1.8}.source{border-top:1px solid var(--line);padding:15px 0}.source h3{font-size:13px}.source small,.source a{font-size:11px;color:var(--muted)}.source a{color:var(--green)}.upload-zone{display:block;padding:25px;border:1px dashed #a5b797;text-align:center;margin:20px 0;border-radius:10px;background:var(--paper);cursor:pointer}#photo{display:block;max-height:350px;max-width:100%;margin:auto auto 15px}#toast{position:fixed;bottom:95px;left:50%;transform:translateX(-50%);max-width:90vw;background:var(--green);color:white;border-radius:8px;padding:13px 20px;font-size:12px;z-index:10}[hidden]{display:none!important}
@media(max-width:1000px){.template-options{grid-template-columns:repeat(3,1fr)}.product-layout{grid-template-columns:minmax(0,1fr) 300px;gap:18px}.category-tabs button{grid-template-columns:1fr;text-align:center}.category-tabs button>span{display:none}.result-layout{grid-template-columns:minmax(0,1fr) 260px}.panel{padding:20px}.scene-card small{font-size:10px}.instruction-cards{gap:12px}}
@media(max-width:760px){header{padding:14px 18px}.brand{font-size:16px}.brand small{font-size:9px}.brand-mark{width:36px;height:36px;line-height:34px;font-size:25px}main{padding:19px 18px 110px}.steps-nav{margin-bottom:26px}.steps-nav span{font-size:12px}.steps-nav small{display:block;margin-left:0;font-size:9px;line-height:1.2}.steps-nav i{margin:0 5px}.steps-nav button{gap:6px;padding:2px}.steps-nav b{width:25px;height:25px;font-size:11px}.page-heading{margin-bottom:20px}h1{font-size:25px}.page-heading>p:last-child,.page-heading>div>p:last-child{font-size:11px}.product-layout{display:block}.category-tabs button{grid-template-columns:64px 1fr;text-align:left;padding:12px 8px}.category-tabs button>span{display:block}.category-tabs strong{font-size:14px}.category-tabs svg{width:58px}.category-tabs small{font-size:9px}.template-options{grid-template-columns:repeat(4,1fr);gap:8px}.template-card{padding:10px 4px}.template-card.selected{padding:9px 3px}.template-card svg{height:55px}.template-card strong{font-size:12px}.template-card small{font-size:8px}.search-row{gap:8px}.search-row .quiet{font-size:10px;padding:8px}.search input{font-size:11px}.editor{margin-top:22px}.adjust-body{padding:15px 28px;gap:30px}.model-side{width:270px}.model{height:160px}.scene-options{grid-template-columns:1fr 1fr;gap:12px}.scene-card{padding:13px 10px}.scene-card.active{padding:12px 9px}.scene-card svg{height:98px}.scene-card strong{font-size:15px}.environment-editor{grid-template-columns:1fr;gap:10px}.environment-editor svg{height:210px}.scene-sliders h3{margin-bottom:16px}.skip-card{padding:17px;gap:13px}.result-heading{align-items:start}.result-heading>.quiet{font-size:10px;padding:7px 9px;margin-top:22px}.result-layout{display:flex;flex-direction:column;gap:18px}.result-main,.result-settings{width:100%}.result-settings{grid-template-columns:1fr;gap:18px}.preview h2{font-size:22px}.preview{padding:19px 15px}.preview .section-heading{margin-bottom:8px}.counts{font-size:10px}.instruction-cards{gap:12px}.instruction-card b{font-size:11px}.instruction-card p{font-size:10px}.instruction-card svg{height:48px}.bottom-nav{padding:12px 16px;gap:10px}.bottom-nav .primary{font-size:12px;padding:11px 16px}.bottom-nav>span{font-size:10px}.bottom-nav .quiet{font-size:11px;padding:9px 12px}.howto{padding:20px 16px}.motif-options{grid-template-columns:1fr 1fr}.motif-card{padding:10px;display:block}.motif-card svg{width:100%;height:55px}.motif-card strong{margin-top:7px}.toolbar{gap:8px}.toolbar .quiet{font-size:11px;padding:8px 10px}dialog{padding:22px}}
@media(max-width:380px){.template-options{grid-template-columns:repeat(3,1fr)}.category-tabs button{grid-template-columns:1fr;text-align:center}.category-tabs button>span{display:none}.brand small{display:none}.bottom-nav>span{display:none}.bottom-nav{justify-content:space-between}.adjust-body{padding:12px}.instruction-cards{gap:8px}}
@media print{@page{size:A4 portrait;margin:12mm}body{background:#fff}header,.steps-nav,#step-1,#step-2,.bottom-nav,.result-settings,.toolbar,.result-heading>button,dialog,#toast,.view-switch,#fit,.stack-check{display:none!important}#step-3{display:block!important}main{padding:0}.result-layout{display:block}.panel{border:0;padding:10px 0}.preview{break-inside:avoid}.howto{break-inside:avoid}.page-heading{margin-bottom:10px}body{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.preview-switches{display:grid;gap:7px;justify-items:end}@media print{.preview-switches{display:none}}
.repetition-panel{margin-bottom:20px}.repetition-panel #count-controls{display:flex;gap:30px;flex-wrap:wrap}.repetition-panel .count-control{flex:1;min-width:220px;margin-top:14px}.repetition-panel .count-control:not(:first-child){border-left:1px solid var(--line);padding-left:25px}.repetition-panel:has(.count-control:only-child){display:flex;align-items:center;gap:35px;flex-wrap:wrap}.repetition-panel:has(.count-control:only-child) #count-controls{flex:1}.repetition-panel:has(.count-control:only-child) .count-control{margin:0}.repetition-panel details{flex-basis:100%;width:100%}@media(max-width:760px){.repetition-panel:has(.count-control:only-child){display:block}.repetition-panel:has(.count-control:only-child) .count-control{margin-top:15px}.repetition-panel #count-controls{display:block}.repetition-panel .count-control:not(:first-child){padding-left:0;border-left:0}}@media print{.repetition-panel{display:none!important}}
.composition-bar{margin:0 0 20px;display:flex;gap:15px;align-items:center;flex-wrap:wrap}.composition-bar>span{font-size:12px;color:var(--muted)}#composition-options{display:flex;gap:9px;flex:1}#composition-options button{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:10px;font-size:12px}#composition-options button>span{font-size:20px;color:#8da37c}#composition-options .active{background:#e8efdf;border:2px solid #708f60;padding:9px}.compact-status{display:block;margin:10px auto 0;font-size:11px;background:#edf1e6;color:#69805a;padding:5px 12px;border-radius:20px}.compact-status.warn{color:#956131;background:#faf0df}.visual-mode:not(.show-notes) .brand small,.visual-mode:not(.show-notes) .eyebrow,.visual-mode:not(.show-notes) .page-heading p,.visual-mode:not(.show-notes) .picker>.small,.visual-mode:not(.show-notes) #dimension-note,.visual-mode:not(.show-notes) .scene-sliders>h3,.visual-mode:not(.show-notes) #scene-note,.visual-mode:not(.show-notes) .skip-card small,.visual-mode:not(.show-notes) #reason,.visual-mode:not(.show-notes) .howto,.visual-mode:not(.show-notes) .status-wrap,.visual-mode:not(.show-notes) .boundary,.visual-mode:not(.show-notes) .result-settings .small,.visual-mode:not(.show-notes) .motif-card small,.visual-mode:not(.show-notes) .count-control small,.visual-mode:not(.show-notes) #progress-note,.visual-mode:not(.show-notes) .stack-check small{display:none}.visual-mode #diagram{border:2px solid #96ad80;border-radius:13px;box-shadow:0 8px 22px #557a3b10}.visual-mode .preview{border:2px solid #c1d0b0;padding:20px}.visual-mode .preview .section-heading{margin-bottom:20px}.visual-mode .page-heading{margin-bottom:20px}.visual-mode .bottom-nav{justify-content:space-between}.visual-mode .repetition-panel:has(.count-control:only-child){padding:18px 23px}.visual-mode .steps-nav{margin-bottom:22px}.visual-mode .preview h2{font-size:24px}.visual-mode .result-heading>.quiet{margin-top:0}.visual-mode .counts{margin:12px 0 3px}.visual-mode .stack-check .check{font-size:10px}.visual-mode .motif-card strong{font-size:13px}.visual-mode .motif-card{padding:13px}.visual-mode .result-main .howto{margin-top:18px}@media(max-width:760px){.composition-bar{display:block} .composition-bar>span{display:none}#composition-options button{font-size:10px;padding:9px 5px;gap:5px}#composition-options .active{padding:8px 4px}#composition-options button>span{font-size:15px}.visual-mode .preview{padding:17px 12px}.visual-mode .page-heading{margin-bottom:18px}.visual-mode .repetition-panel{padding:18px}.visual-mode .preview h2{font-size:22px}.visual-mode:not(.show-notes) .scene-card small{display:none}}@media print{.composition-bar,.compact-status,#toggle-notes{display:none!important}.visual-mode .status-wrap{display:block!important}.visual-mode .howto{display:block!important}}
body:has(#step-3:not([hidden])) .bottom-nav{position:static;backdrop-filter:none;background:transparent;border:0;max-width:1180px;margin:auto;padding-top:0;padding-bottom:24px}body:has(#step-3:not([hidden])) main{padding-bottom:25px}
