.poster-app{--bg: #f6f7f4;--surface: #fff;--soft: #eef4f2;--soft-2: #f8faf8;--ink: #17201d;--muted: #64716b;--line: #d7ded9;--teal: #087c6d;--blue: #2867b2;--red: #b42318;--green: #157347;background:var(--bg);color:var(--ink);font-family:PingFang SC,Noto Sans SC,Arial,sans-serif;min-height:100vh;padding-bottom:92px}.poster-app *{box-sizing:border-box}.poster-app button,.poster-app input,.poster-app textarea,.poster-app select{font:inherit}.poster-app button{border:0;cursor:pointer;white-space:nowrap}.poster-app button:disabled{opacity:.48;cursor:not-allowed}.poster-app h1,.poster-app h2,.poster-app h3,.poster-app p{margin:0}.poster-app header{position:sticky;top:0;z-index:20;background:var(--surface);border-bottom:1px solid var(--line);padding:16px 24px;display:flex;justify-content:space-between;gap:16px;align-items:center}.poster-app h1{font-size:24px;line-height:1.2}.poster-app .muted{color:var(--muted);font-size:13px}.poster-app .field-note{color:var(--muted);font-size:13px;line-height:1.6}.poster-app main{max-width:1440px;margin:0 auto;padding:24px;display:grid;gap:18px}.poster-app .stepper{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.poster-app .step{padding:8px 14px;border:1px solid var(--line);border-radius:999px;color:var(--muted);background:#fff;font-weight:700}.poster-app .step.active{background:var(--teal);color:#fff;border-color:var(--teal)}.poster-app .stage{display:grid;gap:18px}.poster-app .panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}.poster-app .panel-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.poster-app .panel-body{padding:22px}.poster-app .panel-title{font-size:24px;line-height:1.2}.poster-app .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.poster-app .field{display:grid;gap:9px;align-content:start}.poster-app .field.full,.poster-app .settings-row.full{grid-column:1 / -1}.poster-app .field-label{display:flex;align-items:center;gap:8px;font-weight:750;font-size:15px}.poster-app .tag{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:12px;line-height:1;background:#edf2ef;color:var(--muted);font-weight:700}.poster-app .tag.required{background:#fff0ed;color:var(--red)}.poster-app .tag.optional{background:#eef2f6;color:#526071}.poster-app .tag.condition{background:#eef4fb;color:#516173;font-size:11px}.poster-app textarea,.poster-app input[type=number],.poster-app input[type=text],.poster-app select{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px 13px;background:#fff}.poster-app select{min-height:47px;font-weight:700}.poster-app textarea{min-height:128px;resize:vertical;line-height:1.6}.poster-app textarea::placeholder,.poster-app input::placeholder{color:#7c8580}.poster-app .upload-zone{min-height:138px;border:1px dashed #9facaa;border-radius:8px;background:var(--soft);padding:18px;display:grid;place-items:center;text-align:center;gap:6px;cursor:pointer}.poster-app .upload-zone:not(.disabled):hover{border-color:var(--teal);background:#eef7f4}.poster-app .upload-zone.disabled{opacity:.55;cursor:not-allowed}.poster-app .upload-main{font-size:16px;font-weight:800}.poster-app .file-input{display:none}.poster-app .file-list{display:grid;gap:8px;margin-top:2px}.poster-app .file-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--line);background:#fff;border-radius:8px;padding:10px 12px}.poster-app .file-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650}.poster-app .image-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}.poster-app .image-item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid var(--line);background:#fff;border-radius:8px;padding:9px}.poster-app .thumb{width:56px;height:56px;border-radius:6px;background:var(--soft);object-fit:cover;border:1px solid var(--line)}.poster-app .settings-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.poster-app .toolbar,.poster-app .metrics{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.poster-app .btn{min-height:40px;border-radius:8px;padding:10px 15px;background:var(--teal);color:#fff;font-weight:800;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.poster-app .btn.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}.poster-app .btn.blue{background:var(--blue)}.poster-app .btn.red{background:var(--red)}.poster-app .btn.small{min-height:34px;padding:7px 11px;font-size:13px}.poster-app .error{color:var(--red);font-size:13px;line-height:1.5}.poster-app .status-strip{border-top:1px solid var(--line);background:#101816;color:#dce7e2;padding:12px 18px;font-size:13px;white-space:pre-wrap}.poster-app .review-table-wrap{overflow:auto;max-height:calc(100vh - 250px)}.poster-app table{width:100%;min-width:1040px;border-collapse:collapse;table-layout:fixed}.poster-app col.select-col{width:48px}.poster-app col.index-col{width:64px}.poster-app col.name-col{width:300px}.poster-app col.prompt-col{width:auto}.poster-app col.set-col{width:82px}.poster-app col.type-col{width:112px}.poster-app col.action-col{width:150px}.poster-app th,.poster-app td{border-bottom:1px solid var(--line);padding:13px 12px;vertical-align:top;text-align:left;font-size:14px;word-break:normal;writing-mode:horizontal-tb}.poster-app th{background:var(--soft-2);color:var(--muted);font-weight:800;position:sticky;top:0;z-index:2;white-space:nowrap}.poster-app td.compact,.poster-app th.compact{text-align:center;white-space:nowrap}.poster-app .name-cell{font-weight:800;line-height:1.45;word-break:break-word}.poster-app .prompt-cell{line-height:1.62;color:#24302c;word-break:break-word}.poster-app .prompt-edit{min-height:150px}.poster-app .badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;background:#eef2f6;color:#344054;font-size:12px;font-weight:800;white-space:nowrap;writing-mode:horizontal-tb}.poster-app .badge.success{background:#e8f6ee;color:var(--green)}.poster-app .badge.fail{background:#fff0ed;color:var(--red)}.poster-app .badge.running{background:#e8f1ff;color:var(--blue)}.poster-app .badge.waiting{background:#f4f4f4;color:#5f6670}.poster-app .progress-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.poster-app .metric{flex:1;min-width:150px;border:1px solid var(--line);background:var(--soft);border-radius:8px;padding:13px}.poster-app .metric span{display:block;color:var(--muted);font-size:12px}.poster-app .metric strong{display:block;margin-top:6px;font-size:24px}.poster-app .progress{height:10px;border-radius:999px;overflow:hidden;background:#e5ebe7}.poster-app .progress div{height:100%;background:var(--teal);transition:width .2s}.poster-app .progress-text{margin-top:8px;color:var(--muted);font-size:13px}.poster-app .result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.poster-app .result-card,.poster-app .queue-card{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}.poster-app .preview{aspect-ratio:9 / 16;background:linear-gradient(145deg,rgba(8,124,109,.12),transparent 45%),#f8faf8;border-bottom:1px solid var(--line);display:grid;place-items:center;color:var(--muted);font-weight:800}.poster-app .preview.compact{aspect-ratio:4 / 3;border-bottom:0;border-radius:6px}.poster-app .preview img{width:100%;height:100%;object-fit:contain;background:#f8faf8}.poster-app .preview.compact img{object-fit:cover}.poster-app .spinner{width:22px;height:22px;border:3px solid #d9e4df;border-top-color:var(--teal);border-radius:50%;animation:poster-spin .9s linear infinite}@keyframes poster-spin{to{transform:rotate(360deg)}}.poster-app .result-body,.poster-app .queue-body{padding:12px;display:grid;gap:9px}.poster-app .queue-panel{position:sticky;top:96px;max-height:calc(100vh - 190px);overflow:auto}.poster-app .queue-list{display:grid;gap:10px}.poster-app .queue-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;padding:10px}.poster-app .queue-title{font-weight:800;line-height:1.4;word-break:break-word}.poster-app .queue-index{color:var(--muted);font-weight:800;font-size:12px}.poster-app .action-bar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:#fffffff5;border-top:1px solid var(--line);padding:14px 24px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.poster-app .action-inner{max-width:1440px;margin:0 auto;display:flex;justify-content:space-between;gap:12px;align-items:center}.poster-app .action-left,.poster-app .action-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.poster-app .footer-group{display:flex;width:100%;justify-content:space-between;gap:12px;align-items:center}@media(max-width:980px){.poster-app header{display:grid}.poster-app .stepper{justify-content:flex-start}.poster-app .form-grid,.poster-app .settings-row,.poster-app .progress-layout{grid-template-columns:1fr}.poster-app .queue-panel{position:static;max-height:none}}@media(max-width:640px){.poster-app main,.poster-app header{padding-left:14px;padding-right:14px}.poster-app .panel-body,.poster-app .panel-head{padding-left:14px;padding-right:14px}.poster-app .footer-group{align-items:stretch;flex-direction:column}.poster-app .action-left,.poster-app .action-right,.poster-app .btn{width:100%}}
