.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);min-height:100vh;padding-bottom:92px;font-family:PingFang SC,Noto Sans SC,Arial,sans-serif}.poster-app *{box-sizing:border-box}.poster-app button,.poster-app input,.poster-app textarea,.poster-app select{font:inherit}.poster-app button{cursor:pointer;white-space:nowrap;border:0}.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{z-index:20;background:var(--surface);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:16px;padding:16px 24px;display:flex;position:sticky;top:0}.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{gap:18px;max-width:1440px;margin:0 auto;padding:24px;display:grid}.poster-app .stepper{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.poster-app .step{border:1px solid var(--line);color:var(--muted);background:#fff;border-radius:999px;padding:8px 14px;font-weight:700}.poster-app .step.active{background:var(--teal);color:#fff;border-color:var(--teal)}.poster-app .stage{gap:18px;display:grid}.poster-app .panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;overflow:hidden}.poster-app .panel-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding:18px 22px;display:flex}.poster-app .panel-body{padding:22px}.poster-app .panel-title{font-size:24px;line-height:1.2}.poster-app .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.poster-app .field{align-content:start;gap:9px;display:grid}.poster-app .field.full,.poster-app .settings-row.full{grid-column:1/-1}.poster-app .field-label{align-items:center;gap:8px;font-size:15px;font-weight:750;display:flex}.poster-app .tag{color:var(--muted);background:#edf2ef;border-radius:999px;align-items:center;padding:3px 8px;font-size:12px;font-weight:700;line-height:1;display:inline-flex}.poster-app .tag.required{color:var(--red);background:#fff0ed}.poster-app .tag.optional{color:#526071;background:#eef2f6}.poster-app .tag.condition{color:#516173;background:#eef4fb;font-size:11px}.poster-app textarea,.poster-app input[type=number],.poster-app input[type=text],.poster-app select{border:1px solid var(--line);background:#fff;border-radius:8px;width:100%;padding:12px 13px}.poster-app select{min-height:47px;font-weight:700}.poster-app textarea{resize:vertical;min-height:128px;line-height:1.6}.poster-app textarea::placeholder,.poster-app input::placeholder{color:#7c8580}.poster-app .upload-zone{background:var(--soft);text-align:center;cursor:pointer;border:1px dashed #9facaa;border-radius:8px;place-items:center;gap:6px;min-height:138px;padding:18px;display:grid}.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{gap:8px;margin-top:2px;display:grid}.poster-app .file-item{border:1px solid var(--line);background:#fff;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex}.poster-app .file-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:650;overflow:hidden}.poster-app .image-list{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;display:grid}.poster-app .image-item{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px;display:grid}.poster-app .thumb{background:var(--soft);object-fit:cover;border:1px solid var(--line);border-radius:6px;width:56px;height:56px}.poster-app .settings-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.poster-app .toolbar,.poster-app .metrics{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.poster-app .btn{background:var(--teal);color:#fff;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:10px 15px;font-weight:800;text-decoration:none;display:inline-flex}.poster-app .btn.secondary{color:var(--ink);border:1px solid var(--line);background:#fff}.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);color:#dce7e2;white-space:pre-wrap;background:#101816;padding:12px 18px;font-size:13px}.poster-app .review-table-wrap{max-height:calc(100vh - 250px);overflow:auto}.poster-app table{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1040px}.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);vertical-align:top;text-align:left;word-break:normal;writing-mode:horizontal-tb;padding:13px 12px;font-size:14px}.poster-app th{background:var(--soft-2);color:var(--muted);z-index:2;white-space:nowrap;font-weight:800;position:sticky;top:0}.poster-app td.compact,.poster-app th.compact{text-align:center;white-space:nowrap}.poster-app .name-cell{word-break:break-word;font-weight:800;line-height:1.45}.poster-app .prompt-cell{color:#24302c;word-break:break-word;line-height:1.62}.poster-app .prompt-edit{min-height:150px}.poster-app .badge{color:#344054;white-space:nowrap;writing-mode:horizontal-tb;background:#eef2f6;border-radius:999px;justify-content:center;align-items:center;padding:5px 10px;font-size:12px;font-weight:800;display:inline-flex}.poster-app .badge.success{color:var(--green);background:#e8f6ee}.poster-app .badge.fail{color:var(--red);background:#fff0ed}.poster-app .badge.running{color:var(--blue);background:#e8f1ff}.poster-app .badge.waiting{color:#5f6670;background:#f4f4f4}.poster-app .progress-layout{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:18px;display:grid}.poster-app .metric{border:1px solid var(--line);background:var(--soft);border-radius:8px;flex:1;min-width:150px;padding:13px}.poster-app .metric span{color:var(--muted);font-size:12px;display:block}.poster-app .metric strong{margin-top:6px;font-size:24px;display:block}.poster-app .progress{background:#e5ebe7;border-radius:999px;height:10px;overflow:hidden}.poster-app .progress div{background:var(--teal);height:100%;transition:width .2s}.poster-app .progress-text{color:var(--muted);margin-top:8px;font-size:13px}.poster-app .result-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;display:grid}.poster-app .result-card,.poster-app .queue-card{border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden}.poster-app .preview{aspect-ratio:9/16;border-bottom:1px solid var(--line);color:var(--muted);background:linear-gradient(145deg,#087c6d1f,#0000 45%),#f8faf8;place-items:center;font-weight:800;display:grid}.poster-app .preview.compact{aspect-ratio:4/3;border-bottom:0;border-radius:6px}.poster-app .preview img{object-fit:contain;background:#f8faf8;width:100%;height:100%}.poster-app .preview.compact img{object-fit:cover}.poster-app .spinner{border:3px solid #d9e4df;border-top-color:var(--teal);border-radius:50%;width:22px;height:22px;animation:.9s linear infinite poster-spin}@keyframes poster-spin{to{transform:rotate(360deg)}}.poster-app .result-body,.poster-app .queue-body{gap:9px;padding:12px;display:grid}.poster-app .queue-panel{max-height:calc(100vh - 190px);position:sticky;top:96px;overflow:auto}.poster-app .queue-list{gap:10px;display:grid}.poster-app .queue-card{grid-template-columns:92px minmax(0,1fr);align-items:center;gap:10px;padding:10px;display:grid}.poster-app .queue-title{word-break:break-word;font-size:14px;font-weight:700;line-height:1.4}.poster-app .queue-index{color:var(--muted);margin-right:6px;font-size:12px;font-weight:700;display:inline}.poster-app .queue-body{gap:8px}.poster-app .action-bar{z-index:30;border-top:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;padding:14px 24px;position:fixed;bottom:0;left:0;right:0}.poster-app .action-inner{justify-content:space-between;align-items:center;gap:12px;max-width:1440px;margin:0 auto;display:flex}.poster-app .action-left,.poster-app .action-right{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.poster-app .footer-group{justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}@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{max-height:none;position:static}}@media(max-width:640px){.poster-app main,.poster-app header,.poster-app .panel-body,.poster-app .panel-head{padding-left:14px;padding-right:14px}.poster-app .footer-group{flex-direction:column;align-items:stretch}.poster-app .action-left,.poster-app .action-right,.poster-app .btn{width:100%}}.poster-app .regen-editor{flex-direction:column;gap:8px;width:100%;margin-top:8px;display:flex}.poster-app .regen-textarea{border:1px solid var(--border,#d1d5db);width:100%;min-height:120px;font:inherit;resize:vertical;background:var(--surface,#fff);color:inherit;border-radius:8px;padding:10px 12px;font-size:13px;line-height:1.55}.poster-app .regen-textarea:focus{border-color:var(--accent,#2563eb);outline:none;box-shadow:0 0 0 2px #2563eb2e}.poster-app .regen-actions{justify-content:flex-end;gap:8px;display:flex}.poster-app .history-btn{border:1px solid var(--border,#d1d5db);background:var(--surface,#fff);font:inherit;cursor:pointer;color:inherit;border-radius:8px;margin-left:auto;padding:8px 14px;font-size:13px}.poster-app .history-btn:hover{border-color:var(--accent,#2563eb);color:var(--accent,#2563eb)}.history-drawer-overlay{z-index:9999;background:#0f172a73;justify-content:flex-end;display:flex;position:fixed;inset:0}.history-drawer{background:#fff;flex-direction:column;width:min(460px,100%);animation:.18s ease-out history-slide-in;display:flex;box-shadow:-8px 0 32px #0000002e}@keyframes history-slide-in{0%{transform:translate(100%)}to{transform:translate(0)}}.history-drawer__header{border-bottom:1px solid #e5e7eb;align-items:flex-start;gap:12px;padding:16px 20px;display:flex}.history-drawer__header h2{margin:0;font-size:16px}.history-drawer__hint{color:#6b7280;margin:4px 0 0;font-size:12px}.history-drawer__close{cursor:pointer;color:#6b7280;background:0 0;border:none;margin-left:auto;font-size:18px;line-height:1}.history-drawer__body{flex-direction:column;flex:1;gap:14px;padding:12px 16px 24px;display:flex;overflow-y:auto}.history-drawer__empty,.history-drawer__error{text-align:center;color:#6b7280;padding:24px 0;font-size:13px}.history-drawer__error{color:#dc2626}.history-batch{background:#fafafa;border:1px solid #e5e7eb;border-radius:10px;padding:12px}.history-batch__head{justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:10px;display:flex}.history-batch__time{font-size:13px;font-weight:600}.history-batch__meta{color:#6b7280;margin-top:2px;font-size:12px}.history-batch__zip{color:#fff;white-space:nowrap;background:#2563eb;border-radius:6px;padding:5px 10px;font-size:12px;text-decoration:none}.history-batch__zip:hover{background:#1d4ed8}.history-batch__grid{grid-template-columns:repeat(3,1fr);gap:6px;display:grid}.history-thumb{aspect-ratio:3/4;color:#6b7280;background:#e5e7eb;border-radius:6px;justify-content:center;align-items:center;font-size:11px;display:flex;position:relative;overflow:hidden}.history-thumb img{object-fit:cover;width:100%;height:100%}.history-thumb--failed{color:#b91c1c;background:#fee2e2}.history-thumb--queued,.history-thumb--generating,.history-thumb--retrying{color:#92400e;background:#fef3c7}
