:root{--bg:#faf7f3;--surface:#fff;--ink:#30333b;--muted:#727681;--accent:#bd583b;--accent-hover:#a7482e;--soft:#f6e9df;--line:#e9e5e0;--radius:16px;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);font-synthesis:none;font-size:14px}
*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer}button,a,input,textarea,select{ -webkit-tap-highlight-color:transparent}button{border:0;background:none}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit}button,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}input:focus,textarea:focus,select:focus{outline:2px solid #bd583b45;outline-offset:0;border-color:var(--accent)}button{transition:background .16s,color .16s,transform .16s}button:hover:not(:disabled){color:var(--accent)}svg{width:19px;height:19px;stroke-width:1.7;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:29px;font-weight:650;letter-spacing:-.6px}h2{font-size:19px;font-weight:600}h3{font-size:15px;font-weight:600}small{font-size:12px}textarea{resize:vertical;line-height:1.8}::placeholder{color:#979aa3}label{display:block}.muted,.caption{color:var(--muted)}.caption{font-size:12px;line-height:1.7}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.full{width:100%}.primary,.secondary,.ghost{min-height:40px;padding:9px 15px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:500}.primary{background:var(--accent);color:white}.primary:hover:not(:disabled){background:var(--accent-hover);color:white}.secondary{background:white;border:1px solid var(--line)}.secondary:hover{background:#fcf9f5}.ghost{color:var(--muted)}.icon-btn{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px}.icon-btn:hover{background:var(--soft)}.tag{font-size:11px;color:#985237;background:var(--soft);border-radius:5px;padding:4px 7px;white-space:nowrap}.skip{position:fixed;top:-60px;left:120px;padding:12px;background:white;z-index:100}.skip:focus{top:10px}.sidebar{width:104px;position:fixed;inset:0 auto 0 0;background:#fffdfb;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:22px 12px 16px;z-index:20}.brand{width:44px;height:44px;margin:0 auto 30px;background:var(--accent);border-radius:13px;color:white;display:grid;place-items:center}.brand:hover:not(:disabled){color:white;background:var(--accent-hover)}.brand svg{width:25px;height:25px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{display:flex;flex-direction:column;align-items:center;gap:7px;padding:13px 4px;border-radius:10px;color:#6b6f79;font-size:12px}.nav button svg{width:22px;height:22px}.nav button.active{background:var(--soft);color:var(--accent);font-weight:600}.sidebar-bottom{margin-top:auto;display:grid;gap:12px;text-align:center}.credits{border:1px solid var(--line);padding:11px 4px;border-radius:10px;font-size:12px;line-height:1.8}.credits strong{display:block;font-size:14px;color:var(--accent)}.avatar{display:grid;place-items:center;border-radius:50%;background:#eee4da;width:34px;height:34px;font-size:12px;margin:auto}.main-wrap{margin-left:104px}.topbar{height:76px;background:#fffdfb;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:16px}.brand-name{font-size:17px;font-weight:650}.topbar .caption{margin-top:3px}.topbar-actions{display:flex;align-items:center;gap:15px}.topbar-actions .avatar{margin:0}main{min-height:calc(100vh - 76px)}.home{max-width:1400px;margin:auto;padding:42px 42px 30px;animation:arrive .2s ease-out}.welcome{text-align:center;margin:0 auto 25px}.welcome p{color:var(--muted);margin-top:10px;font-size:14px}.composer{max-width:900px;margin:auto;background:white;border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 20px #63432c05;padding:20px 23px 16px}.compose-input{display:flex;gap:20px}.add-tile{height:72px;width:68px;flex-shrink:0;border:1px dashed #d9c9bb;background:#fcf9f5;border-radius:12px;color:var(--accent);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:11px}.add-tile svg{width:24px;height:24px}.compose-input textarea{border:0;resize:none;min-height:93px;flex:1;min-width:0;padding:4px 0;font-size:15px;background:transparent}.compose-input textarea:focus{outline:0}.compose-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:12px;gap:10px}.compose-bottom select{border:0;background:#faf8f5;border-radius:7px;padding:8px 10px;max-width:160px}.tool-strip{display:flex;justify-content:center;gap:38px;margin:27px 0 36px}.tool-item{display:flex;flex-direction:column;align-items:center;gap:9px;font-size:12px;color:#62636d}.tool-item>span{display:grid;place-items:center;width:45px;height:45px;background:#f3eee7;border:1px solid #ebe4dc;border-radius:13px}.tool-item:hover>span{background:var(--soft)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}.section-heading>div{display:flex;align-items:baseline;gap:13px}.scenes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:34px}.scene{text-align:left;border:1px solid var(--line);border-radius:12px;background:#fffdfb;padding:17px 15px;min-height:120px}.scene svg{color:#ae7357;width:23px;height:23px;margin-bottom:14px}.scene strong{display:block;font-weight:600;font-size:14px}.scene small{display:block;color:var(--muted);font-size:11px;margin-top:6px;white-space:nowrap}.scene:hover,.scene.chosen{background:#fff8f1;border-color:#d9b89f}.tabs{display:flex;gap:24px;align-items:center;border-bottom:1px solid var(--line)}.tabs button{position:relative;padding:12px 0;color:var(--muted);font-size:13px}.tabs button.active{color:var(--accent);font-weight:600}.tabs button.active:after{content:"";height:2px;background:var(--accent);position:absolute;bottom:-1px;left:0;right:0}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}.reference{text-align:left;display:block;padding:0;width:100%}.reference-img{position:relative;aspect-ratio:2/1;overflow:hidden;border-radius:12px;background:#ece7df}.reference img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.reference:hover img{transform:scale(1.025)}.reference-img span{position:absolute;top:11px;left:11px;color:white;background:#302b2690;backdrop-filter:blur(4px);padding:4px 8px;font-size:11px;border-radius:5px}.reference-foot{padding:12px 2px;display:flex;justify-content:space-between;align-items:center}.reference-foot strong{font-size:13px;font-weight:550}.reference-foot small{font-size:11px;color:var(--muted);display:block;margin-top:5px}.page-foot{margin-top:22px;text-align:center;color:#92908c;font-size:11px}.file-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.file-chip{display:flex;gap:7px;align-items:center;background:#f8f5f1;border:1px solid var(--line);border-radius:8px;padding:5px;max-width:100%;font-size:11px}.file-chip img{width:32px;height:32px;object-fit:cover;border-radius:4px}.file-chip span{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chip button{width:25px;height:25px;display:grid;place-items:center}.file-chip svg{width:16px;height:16px}.studio{display:grid;grid-template-columns:minmax(270px,330px) minmax(340px,1fr) 180px;gap:17px;padding:25px;align-items:start;animation:arrive .2s ease-out}.panel{border:1px solid var(--line);background:white;border-radius:14px;min-width:0}.input-panel{padding:21px}.panel-heading{padding-bottom:17px;border-bottom:1px solid var(--line);margin-bottom:20px}.panel-heading h2{font-size:16px}.field-title{font-size:13px;font-weight:550;margin:20px 0 10px}.input-panel select,.parameters select{width:100%;background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px}.upload-area{width:100%;padding:23px 8px;border:1px dashed #d6c6b7;background:#fcfaf7;border-radius:10px;display:flex;flex-direction:column;align-items:center;gap:8px}.upload-area svg{width:25px;height:25px;color:var(--accent)}.upload-area strong{font-weight:500;font-size:13px}.upload-area small{font-size:11px;color:var(--muted)}.input-panel textarea{width:100%;height:138px;border:1px solid var(--line);background:#fdfcfb;border-radius:9px;padding:12px;font-size:13px}.input-actions{margin-top:19px;display:grid;gap:9px}.text-link{color:var(--accent);text-decoration:underline;text-underline-offset:3px;padding:6px 0;text-align:left;font-size:12px}.notice{padding:11px 12px;background:#fbf4ed;color:#88543e;border-radius:8px;font-size:12px;line-height:1.7;margin-top:14px}.work-panel{min-height:630px;display:flex;flex-direction:column}.work-panel>.panel-heading{padding:19px 23px;margin:0}.workspace-empty{padding:45px 26px;text-align:center;flex:1;display:flex;align-items:center;justify-content:center;flex-direction:column}.workspace-empty .empty-icon{background:var(--soft);color:var(--accent);width:58px;height:58px;display:grid;place-items:center;border-radius:17px;margin-bottom:20px}.workspace-empty h2{font-size:21px;margin-bottom:10px}.workspace-empty p{color:var(--muted);font-size:13px;line-height:1.8;max-width:280px}.workspace-empty img{width:min(100%,330px);aspect-ratio:1.8;object-fit:cover;border-radius:12px;margin:26px 0 9px}.workspace-empty>.secondary{margin-top:20px}.editor{padding:0 23px 23px;flex:1}.editor textarea{width:100%;border:1px solid var(--line);border-radius:9px;padding:14px;background:#fdfcfb;min-height:275px;resize:vertical;margin:16px 0 10px;font-size:14px;line-height:1.9}.editor label{font-size:12px;color:var(--muted);margin-top:19px}.editor-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid var(--line);padding:17px 23px}.confirmed{color:#496b50;font-size:12px}.parameters{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px;text-align:left;width:100%;max-width:400px}.parameters label{font-size:12px;color:var(--muted)}.parameters select{margin-top:7px;color:var(--ink)}.queue{padding:18px 15px;min-height:350px}.queue h2{font-size:14px}.queue-empty{text-align:center;color:var(--muted);padding:36px 0;font-size:12px;line-height:1.9}.queue-empty svg{width:27px;height:27px;margin-bottom:7px;color:#b0a398}.draft{display:flex;align-items:center;gap:9px;background:#fbf7f1;border:1px solid #e8d9cb;padding:12px 10px;border-radius:9px;width:100%;text-align:left;margin-top:14px}.draft small{font-size:10px;display:block;margin-top:5px;color:var(--muted)}.queue-note{font-size:11px;line-height:1.8;color:var(--muted);border-top:1px solid var(--line);padding-top:15px;margin-top:22px}.mobile-title{display:none}dialog{border:1px solid var(--line);border-radius:17px;padding:26px;max-width:480px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 100px #382b2425}dialog::backdrop{background:#29252145;backdrop-filter:blur(3px)}dialog h2{font-size:18px}dialog p{font-size:14px;color:var(--muted);line-height:1.9;margin:16px 0 23px}dialog img{width:100%;max-height:280px;object-fit:cover;border-radius:10px;margin-top:15px}#toast{position:fixed;bottom:28px;left:calc(50% + 52px);transform:translate(-50%,12px);background:#34312e;color:white;border-radius:10px;padding:12px 18px;font-size:13px;z-index:100;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;max-width:calc(100vw - 40px)}#toast.visible{opacity:1;transform:translate(-50%,0)}.empty-filter{padding:30px 0;color:var(--muted);grid-column:1/-1;text-align:center;font-size:13px}.saved-label{font-size:11px;color:var(--muted)}
.home{padding-top:30px}.welcome{margin-bottom:20px}.compose-input textarea{min-height:75px}.tool-strip{margin:23px 0 27px}.scenes{margin-bottom:27px}.scene{min-height:110px}.sidebar .avatar{padding:0;white-space:nowrap}
@keyframes arrive{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:1700px){.home{padding-top:58px}.studio{grid-template-columns:380px minmax(420px,1fr) 220px;max-width:1850px;margin:auto;padding:32px}.work-panel{min-height:740px}}
@media(max-width:1250px){.home{padding:30px}.scenes{grid-template-columns:repeat(3,1fr)}.scene{min-height:105px}.scene svg{margin-bottom:9px}.studio{grid-template-columns:300px minmax(0,1fr)}.queue{grid-column:1/-1;min-height:0;display:flex;align-items:center;gap:20px}.queue-empty{padding:0;text-align:left}.queue-empty svg{display:none}.queue-note{border:0;margin:0;padding:0;margin-left:auto}.draft{max-width:230px;margin:0}.tool-strip{gap:30px}}
@media(max-width:760px){.sidebar{width:72px;padding:16px 6px}.brand{width:38px;height:38px;margin-bottom:21px}.nav{gap:4px}.nav button{font-size:10px;padding:11px 3px}.nav button svg{width:20px;height:20px}.credits{font-size:10px}.main-wrap{margin-left:72px}.topbar{height:64px;padding:0 18px}.brand-name{font-size:14px}.topbar-actions{gap:8px}.topbar-actions .ghost,.topbar .caption{display:none}.topbar .tag{font-size:10px}.topbar .avatar{display:none}.home{padding:29px 18px}.welcome h1{font-size:23px}.welcome p{font-size:12px;line-height:1.8}.composer{padding:15px;border-radius:14px}.compose-input{gap:12px}.add-tile{width:48px;height:57px;font-size:10px}.compose-input textarea{font-size:13px;min-height:114px}.compose-bottom{align-items:flex-end;flex-wrap:wrap}.compose-bottom .primary{font-size:12px;padding:9px 11px}.compose-bottom select{max-width:123px;font-size:12px}.compose-bottom .caption{display:none}.tool-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 8px;margin:25px 0 30px}.tool-item{font-size:11px}.tool-item>span{width:39px;height:39px}.section-heading>div{display:block}.section-heading .caption{margin-top:5px}.section-heading h2{font-size:17px}.scenes{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:26px}.scene{padding:14px 12px;min-height:102px}.scene strong{font-size:13px}.scene small{font-size:10px;white-space:normal;line-height:1.5}.gallery{grid-template-columns:1fr}.reference-img{aspect-ratio:1.7}.tabs{gap:20px}.studio{display:flex;flex-direction:column;padding:17px;gap:14px}.input-panel,.work-panel,.queue{width:100%}.input-panel{padding:17px}.work-panel{min-height:430px}.workspace-empty{padding:35px 20px}.queue{display:block}.queue-empty{padding:18px 0;text-align:center}.draft{max-width:none;margin-top:12px}.queue-note{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}.editor{padding:0 17px 17px}.editor-actions{padding:15px 17px;flex-wrap:wrap}.parameters{grid-template-columns:1fr}.page-foot{line-height:1.8}.file-chip span{max-width:105px}#toast{left:50%}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
