:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#173b3b;background:#f2f5f4;font-size:16px;line-height:1.55;--green:#163d3b;--orange:#d36a3b;--line:#dce5e2;--muted:#6c817b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{touch-action:manipulation}button{border:1px solid var(--line);background:white;color:var(--green);border-radius:9px;padding:.65rem 1rem;cursor:pointer;font-weight:600}button:hover{background:#edf4f0;border-color:#aac0b7}button:disabled{opacity:.5;cursor:wait}button.primary{background:var(--orange);color:#fff;border-color:var(--orange)}button.primary:hover{background:#bc5731}button.dark{background:var(--green);color:white;border-color:var(--green)}button.quiet{border-color:transparent;background:transparent}a{color:#c25d35;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin:0}h1{font-size:1.8rem;font-weight:650;letter-spacing:-.04em;line-height:1.3}h2{font-size:1.2rem;line-height:1.4}h3{font-size:1rem}small,.muted{color:var(--muted)}small{font-size:.82rem}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--green);color:#eaf2ed;padding:30px 20px;position:fixed;inset:0 auto 0 0;width:238px;display:flex;flex-direction:column}.brand{background:white;border-radius:8px;padding:10px 14px;display:block}.brand img{display:block;width:168px;height:56px;object-fit:contain}.studio-label{font-size:.88rem;letter-spacing:.12em;margin:19px 12px 28px;color:#b8cfc7}.nav{display:grid;gap:7px}.nav button{background:transparent;border:0;color:#c7d9d2;display:flex;gap:12px;text-align:left;align-items:center;padding:12px 15px;font-size:.95rem;font-weight:500}.nav button span{font-size:1.2rem;width:24px;text-align:center}.nav button.active{color:#fff;background:#315653;box-shadow:inset 3px 0 #e78958}.nav button:hover{background:#2b514e}.side-bottom{margin-top:auto;padding:25px 12px 0;border-top:1px solid #40615c;color:#a9c3b9;font-size:.85rem}.side-bottom a{color:#e9be9d}.main{grid-column:2;min-width:0}.topbar{height:82px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 36px;gap:12px}.breadcrumb{color:var(--muted);font-size:.9rem}.top-actions{display:flex;gap:12px;align-items:center}.top-actions button{font-size:.88rem;padding:.5rem .85rem}.chip{font-size:.83rem;padding:5px 10px;border-radius:6px;background:#edf3ef;color:#476b5e;display:inline-block}.chip.orange{background:#fff0e6;color:#a6532e}.chip.red{background:#fbe8e5;color:#ab3c33}.content{padding:30px 36px 60px;max-width:1760px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.eyebrow{font-size:.8rem;color:#a15d3b;letter-spacing:.12em;margin-bottom:7px}.page-head p{color:var(--muted);margin-top:9px;font-size:.93rem}.workspace{display:grid;grid-template-columns:minmax(420px,1.3fr) minmax(300px,.85fr);gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.panel-pad{padding:23px}.panel-title{padding:20px 23px;border-bottom:1px solid #e5ece8;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-title small{font-size:.85rem}.section{padding:23px;border-bottom:1px solid #e7ede9}.section:last-child{border-bottom:0}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.number{width:26px;height:26px;border-radius:50%;background:#f1e8df;color:#a35735;display:inline-grid;place-items:center;font-size:.82rem;margin-right:9px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.fields.three{grid-template-columns:1fr 1fr 1fr}.field{display:grid;gap:6px;margin-bottom:14px;min-width:0}.field:last-child{margin-bottom:0}label,.label{font-size:.88rem;font-weight:600}input,select,textarea{width:100%;background:#f9fbfa;border:1px solid #d8e3dc;border-radius:7px;color:#244b44;padding:10px 11px;min-width:0}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#71847c 50%),linear-gradient(135deg,#71847c 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:32px}textarea{resize:vertical;min-height:90px;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:#5f8c78;outline:2px solid #d6e9dc}.subtle{font-size:.86rem;color:var(--muted);margin-top:8px}.segmented{display:flex;gap:8px;flex-wrap:wrap}.segmented button{font-size:.85rem;padding:.45rem .8rem;font-weight:500}.segmented button.selected{border-color:#346752;background:#eaf3ec;color:#285542}.chosen{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.chosen-card{position:relative;min-width:0}.chosen-card img{width:100%;height:95px;object-fit:cover;border-radius:7px;background:#eef3ef}.chosen-card button{position:absolute;top:4px;right:4px;border-radius:50%;padding:0;width:24px;height:24px;background:#fff}.chosen-card small{display:block;font-size:.77rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty-assets{background:#f7faf7;border:1px dashed #bacebe;border-radius:9px;display:flex;justify-content:space-between;align-items:center;padding:18px;gap:20px}.empty-assets p{font-size:.9rem;color:#668071}.empty-assets button{white-space:nowrap}.checks{display:grid;gap:8px}.check{display:flex;gap:9px;align-items:start;font-size:.87rem;font-weight:400}.check input{width:17px;height:17px;margin:4px 0 0;accent-color:#315f4d}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.actions.end{justify-content:flex-end}.preview-top{background:#e7eee8;padding:22px}.preview-grid{height:200px;display:grid;gap:8px;grid-template-columns:1.5fr 1fr;grid-template-rows:1fr 1fr}.preview-grid img{width:100%;height:100%;object-fit:cover;border-radius:7px;min-height:0}.preview-grid img:first-child{grid-row:span 2}.preview-placeholder{height:200px;display:grid;place-items:center;text-align:center;color:#66836e;border:1px dashed #abc3b2;border-radius:9px}.preview-caption{display:flex;justify-content:space-between;font-size:.8rem;margin-top:13px;color:#63806b}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.summary-item small{display:block;margin-bottom:3px}.summary-item strong{font-size:.9rem;font-weight:600}.notice{border-radius:8px;padding:13px 15px;background:#f3f7f3;color:#44634f;font-size:.87rem;line-height:1.65}.notice.warning{background:#fff4e9;color:#91552e}.notice.error{background:#fcecea;color:#973e35}.prompt{white-space:pre-wrap;font-size:.82rem;line-height:1.7;background:#f4f7f5;border:1px solid #e1e9e4;border-radius:8px;padding:15px;max-height:360px;overflow:auto;color:#486150;margin-top:14px;word-break:break-word}.sticky{position:sticky;top:22px}.stack{display:grid;gap:18px}.footer-note{font-size:.82rem;color:#799086;margin-top:18px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat{padding:19px 22px;background:white;border:1px solid var(--line);border-radius:10px}.stat strong{display:block;font-size:1.7rem;font-weight:600;line-height:1.25;margin-bottom:6px}.stat span{font-size:.84rem;color:var(--muted)}.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:18px 0}.toolbar input{max-width:320px}.toolbar select{max-width:180px}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:17px}.asset{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:white;min-width:0}.asset.selected{outline:3px solid #cb7952}.asset-image{display:block;width:100%;height:155px;object-fit:cover;background:#edf2ef;cursor:pointer}.asset-body{padding:13px}.asset h3{font-size:.88rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.asset .meta{display:flex;justify-content:space-between;margin:8px 0;font-size:.8rem;color:var(--muted)}.asset button{padding:5px 9px;font-size:.8rem}.asset .actions{justify-content:space-between}.asset .kind{position:absolute;top:9px;left:9px;font-size:.76rem;background:#fffffff0;border-radius:5px;padding:3px 8px}.asset-visual{position:relative}.template-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}.template{padding:23px;background:#fff;border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column;gap:11px}.template p{font-size:.88rem;color:var(--muted);flex:1}.template h2{font-size:1.1rem}.template .actions{margin-top:8px}.jobs{display:grid;gap:15px}.job{background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px}.job-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.job h3{font-size:1.05rem}.job .actions{margin-top:17px}.progress{height:5px;background:#e8eeea;border-radius:5px;margin:17px 0;overflow:hidden}.progress i{display:block;height:100%;background:#6d9278}.job-progress{font-size:.86rem;color:var(--muted);max-height:100px;overflow:auto;white-space:pre-wrap;margin-top:8px;word-break:break-word}.rules-list{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rule-card{background:white;border:1px solid var(--line);border-radius:9px;padding:21px}.rule-card p{font-size:.9rem;color:#557264;margin:12px 0}.history{margin-top:24px}.history-row{padding:14px 0;border-bottom:1px solid #e4eae6;display:flex;justify-content:space-between;gap:15px}.history-row span{font-size:.9rem}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr;background:#fff}.login-story{background:#143c39;color:#fff;padding:9vw 8vw;display:flex;flex-direction:column;justify-content:center}.login-story h1{font-size:3rem;line-height:1.25;margin-bottom:25px}.login-story p{color:#b9d0c5;line-height:1.9}.login-form{align-self:center;max-width:470px;margin:auto;padding:40px;width:100%}.login-form img{width:180px;height:65px;object-fit:contain;margin-bottom:36px}.login-form h2{font-size:1.7rem;margin-bottom:12px}.login-form p{color:var(--muted);font-size:.9rem;margin-bottom:30px}.login-form button{width:100%;margin-top:8px}.settings{max-width:850px;display:grid;gap:20px}.connect-state{display:flex;gap:16px;align-items:center;margin:18px 0}.connect-icon{height:54px;width:54px;background:#e4eee7;border-radius:13px;display:grid;place-items:center;font-size:1.5rem}.code{font-family:monospace;font-size:1.8rem;letter-spacing:.15em;background:#edf4ed;border-radius:8px;padding:16px;text-align:center;margin:15px 0}.loading{min-height:80vh;display:grid;place-items:center;color:#6f887b}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#183d36;color:white;padding:13px 22px;border-radius:9px;max-width:85vw;z-index:100;display:none;box-shadow:0 6px 22px #1238}dialog{padding:0;border:0;border-radius:14px;width:min(1050px,95vw);max-height:92vh;box-shadow:0 20px 70px #1235}dialog::backdrop{background:#092e2b99}dialog .modal-head{position:sticky;top:0;z-index:1;background:white;padding:20px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}dialog .modal-body{padding:24px}dialog .view-image{width:100%;max-height:58vh;object-fit:contain;background:#edf2ee}.modal-fields{margin-top:20px;display:grid;grid-template-columns:1fr 1fr;gap:20px}.wide{grid-column:1/-1}.pagination{display:flex;justify-content:center;gap:12px;margin:24px}.mobile-menu{display:none}pre{max-width:100%}hr{border:0;border-top:1px solid var(--line);margin:20px 0}@media(min-width:1500px){.workspace{grid-template-columns:minmax(500px,1.4fr) minmax(360px,.8fr)}}@media(max-width:1150px){.shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{width:205px;padding:25px 14px}.brand img{width:148px}.content{padding:25px 24px}.topbar{padding:0 24px}.workspace{grid-template-columns:1fr}.sticky{position:static}.preview-grid{height:230px}.rules-list{grid-template-columns:1fr}.chosen{grid-template-columns:repeat(5,1fr)}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:auto;padding:14px 16px;display:block}.brand{display:inline-block;padding:3px 10px}.brand img{width:120px;height:40px}.studio-label,.side-bottom{display:none}.nav{display:flex;overflow:auto;margin-top:12px;gap:3px}.nav button{white-space:nowrap;padding:8px 10px;font-size:.83rem;gap:5px}.nav button span{font-size:1rem;width:17px}.topbar{height:64px;padding:0 17px}.breadcrumb{display:none}.top-actions{width:100%;justify-content:space-between;gap:4px}.top-actions button{font-size:.8rem;padding:.4rem .55rem}.content{padding:23px 16px 40px}.page-head{align-items:start}.page-head p{font-size:.86rem}.page-head .actions{display:none}h1{font-size:1.5rem}.workspace{display:block}.workspace>.stack{margin-top:18px}.section,.panel-pad{padding:18px}.panel-title{padding:17px}.fields{gap:10px}.fields.three{grid-template-columns:1fr 1fr}.fields.three .field:last-child{grid-column:1/-1}.chosen{grid-template-columns:repeat(3,1fr)}.chosen-card img{height:82px}.empty-assets{display:block}.empty-assets button{margin-top:12px}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:15px}.stat strong{font-size:1.4rem}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.asset-image{height:125px}.asset-body{padding:10px}.asset button{font-size:.75rem}.toolbar input,.toolbar select{max-width:none}.toolbar select{flex:1;min-width:130px}.template-grid{grid-template-columns:1fr}.login{display:block}.login-story{padding:32px 28px}.login-story h1{font-size:1.8rem;margin-bottom:14px}.login-story p{font-size:.86rem}.login-form{padding:30px 26px}.login-form img{margin-bottom:20px}.job-head{display:block}.job-head .chip{margin-top:10px}.modal-fields{grid-template-columns:1fr}.history-row{display:block}.history-row small{display:block;margin-top:4px}.preview-grid{height:180px}.page-head{gap:8px}.summary-grid{gap:10px}}
