.app{max-width:1280px;margin:0 auto;padding:28px 24px 48px}.topbar{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.brand{display:flex;gap:14px;align-items:center}.brand-mark{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#2563eb,#7c3aed);box-shadow:var(--shadow)}.brand h1{margin:0;font-size:1.35rem;font-weight:600}.brand p{margin:4px 0 0;color:var(--muted);font-size:.9rem}.key-field{display:flex;flex-direction:column;gap:6px;min-width:min(420px,100%);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.key-field input{padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:var(--panel)}.model-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:20px}.model-pill{text-align:left;padding:12px 14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--panel);box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px;transition:border-color .15s,box-shadow .15s}.model-pill strong{font-size:.95rem}.model-pill span{font-size:.8rem;color:var(--muted)}.model-pill.active{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}@media (max-width: 960px){.workspace{grid-template-columns:1fr}}.panel{background:var(--panel);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:18px 18px 16px;min-height:520px;display:flex;flex-direction:column}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head h2{margin:0;font-size:1.05rem;font-weight:600}.toggle{display:flex;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#f1f3f7}.toggle button{border:none;background:transparent;padding:6px 12px;font-size:.82rem;color:var(--muted)}.toggle button.on{background:var(--panel);color:var(--text);font-weight:500}.form-body{flex:1;overflow:auto;display:flex;flex-direction:column;gap:14px;padding-right:4px}.field{display:flex;flex-direction:column;gap:8px}.field>span:first-child{font-size:.8rem;font-weight:500;color:var(--muted)}.field-hint{margin:-4px 0 0;font-size:.78rem;line-height:1.45;color:var(--muted)}.wait-progress{width:100%;max-width:420px;display:flex;flex-direction:column;gap:10px;text-align:left}.wait-progress-title{margin:0;font-size:1rem;font-weight:600;color:var(--text)}.wait-progress-line,.wait-progress-note,.wait-progress-times{margin:0;font-size:.88rem;line-height:1.45;color:var(--muted)}.wait-progress-note{font-size:.82rem}.progress-track{width:100%;height:10px;border-radius:999px;background:#2563eb1f;overflow:hidden;border:1px solid var(--border)}.progress-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--accent),#7c3aed);transition:width .2s ease-out}.field textarea,.field input[type=text],.field input[type=password],.field input[type=number]{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fafbfc;resize:vertical}.field input[type=range]{width:100%}.row-inline{flex-direction:row;align-items:center;gap:10px}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip{padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:#fff;font-size:.85rem;color:var(--muted)}.chip.active{border-color:var(--accent);color:var(--accent);font-weight:600;background:#2563eb0f}.json-editor{flex:1;width:100%;min-height:360px;padding:12px;border-radius:12px;border:1px solid var(--border);font-family:ui-monospace,monospace;font-size:12px;line-height:1.45;background:#0f172a;color:#e2e8f0;resize:vertical}.panel-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:12px;border-top:1px solid var(--border)}button.primary{padding:10px 22px;border-radius:10px;border:none;background:var(--accent);color:#fff;font-weight:600;font-size:.95rem}button.primary:hover:not(:disabled){background:var(--accent-hover)}button.primary:disabled{opacity:.65;cursor:not-allowed}button.ghost{padding:10px 16px;border-radius:10px;border:1px solid var(--border);background:#fff;color:var(--text)}button.ghost.small{padding:6px 10px;font-size:.82rem}.alert.error{margin-top:12px;padding:10px 12px;border-radius:10px;background:#fef2f2;color:#b91c1c;font-size:.9rem}.preview-body{flex:1;display:flex;flex-direction:column;gap:12px}.meta-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.badge{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;padding:4px 8px;border-radius:6px;background:#e8efff;color:#1e40af;font-weight:600}.muted{color:var(--muted);font-size:.85rem}.video{width:100%;border-radius:12px;background:#000;max-height:420px}.placeholder{flex:1;min-height:240px;border:1px dashed var(--border);border-radius:12px;display:grid;place-items:center;color:var(--muted);font-size:.95rem;padding:24px;text-align:center}.preview-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:var(--accent);color:#fff;text-decoration:none;font-size:1.1rem}.json-out{flex:1;margin:0;padding:12px;border-radius:12px;background:#0f172a;color:#e2e8f0;font-size:12px;line-height:1.45;overflow:auto;min-height:360px}:root{color-scheme:light;--bg: #f6f7f9;--panel: #ffffff;--border: #e4e7ec;--text: #1a1d24;--muted: #5c6578;--accent: #2563eb;--accent-hover: #1d4ed8;--radius: 12px;--shadow: 0 1px 3px rgba(15, 23, 42, .06)}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:IBM Plex Sans,system-ui,sans-serif;background:var(--bg);color:var(--text)}#root{min-height:100vh}button{font-family:inherit;cursor:pointer}textarea,input,select{font-family:inherit;font-size:14px}
