:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;background:#f5f7fb;color:#1f2937;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{border:0}button,a{-webkit-tap-highlight-color:transparent}.app{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;flex-direction:column;gap:28px;padding:24px;background:#111827;color:#f9fafb}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brandMark{display:grid;width:42px;height:42px;place-items:center;border-radius:8px;background:#0f766e;color:#ecfeff}.brand strong,.brand span{display:block;overflow-wrap:anywhere}.brand span{margin-top:2px;color:#9ca3af;font-size:13px}.steps{display:grid;gap:8px}.step{display:grid;grid-template-columns:28px 20px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:46px;padding:10px 12px;border-radius:8px;background:transparent;color:#cbd5e1;text-align:left;cursor:pointer}.step:hover:not(:disabled),.step.active{background:#1f2937;color:#fff}.step:disabled{cursor:not-allowed;opacity:.42}.step.done .stepNumber{color:#5eead4}.stepNumber{display:grid;width:26px;height:26px;place-items:center;border:1px solid #374151;border-radius:999px;font-size:13px}.stepProgress{grid-column:1 / -1;display:block;width:100%;height:4px;overflow:hidden;border-radius:999px;background:#263244}.stepProgress span{display:block;height:100%;border-radius:inherit;background:#14b8a6;transition:width .24s ease}.providerBox{display:grid;gap:12px;margin-top:auto;padding:14px;border:1px solid #263244;border-radius:8px;background:#172033}.providerTitle,.statusLine,.summaryItem,.panelHeader,.variantHeader,.artifact>div,.linkRow{display:flex;align-items:center}.providerTitle{gap:8px;color:#e5e7eb;font-weight:700}.currentStep{display:grid;gap:6px;padding-top:12px;border-top:1px solid #263244}.currentStep span{color:#9ca3af;font-size:13px}.currentStep strong{color:#fff;font-size:14px;line-height:1.45;overflow-wrap:anywhere}.statusLine,.summaryItem{justify-content:space-between;gap:12px;min-width:0;color:#9ca3af;font-size:13px}.statusLine strong,.summaryItem strong{color:#e5e7eb;white-space:nowrap}.statusLine strong.ok{color:#5eead4}.statusLine strong.muted{color:#fbbf24}.main{min-width:0;padding:28px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.topbar h1{margin:0;color:#111827;font-size:26px;line-height:1.25}.topbar p{margin:5px 0 0;color:#64748b}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.singleColumnWorkspace{grid-template-columns:minmax(0,1fr)}.workPanel,.previewPanel{border:1px solid #dbe3ef;border-radius:8px;background:#fff;box-shadow:0 18px 50px #0f172a14}.workPanel{min-height:720px}.previewPanel{position:sticky;top:28px;display:grid;gap:18px;padding:18px}.stepContent{display:flex;flex-direction:column;gap:18px;min-height:720px;padding:22px}.panelHeader{justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid #e5eaf2}.panelHeader>div{display:flex;align-items:center;gap:10px;min-width:0}.panelHeader h2{margin:0;color:#111827;font-size:20px;line-height:1.3}.panelHeader span{color:#64748b;font-size:13px;font-weight:700;white-space:nowrap}.field{display:grid;gap:8px;min-width:0;color:#475569;font-size:14px;font-weight:700}.fieldHeader{display:flex;align-items:center;justify-content:space-between;gap:10px}.field.grow{flex:1}.inputRow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.shareInputRow{align-items:start}.shareField{gap:12px;padding:16px;border:1px solid #dbe3ef;border-top:3px solid #0f766e;border-radius:8px;background:#fff;box-shadow:0 12px 28px #0f172a14}.shareField>span{color:#0f172a;font-size:15px}.shareActionRow{display:grid;gap:12px}.shareUtilityRow{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}.shareExtractButton{width:100%;min-height:50px;font-size:16px;box-shadow:0 10px 20px #0f766e2e}input,select,textarea{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#111827;font-weight:500;outline:none}input::placeholder,textarea::placeholder{color:#94a3b8;font-weight:500}input,select{height:42px;padding:0 12px}textarea{min-height:150px;resize:vertical;padding:12px;line-height:1.6}.shareInput{min-height:108px;border-color:#cbd5e1}.field.grow textarea{min-height:210px}.rewriteOriginalField textarea{min-height:160px}input:focus,select:focus,textarea:focus{border-color:#0f766e;box-shadow:0 0 0 3px #0f766e1f}.twoColumns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.scriptActions{display:grid;grid-template-columns:repeat(2,minmax(0,150px))}.rewriteActions .primaryButton{min-width:180px}.primaryButton,.secondaryButton,.ghostButton,.textButton{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:8px;cursor:pointer;font-weight:800;line-height:1.2;text-decoration:none}.primaryButton,.secondaryButton,.ghostButton{padding:0 14px}.primaryButton{background:#0f766e;color:#fff}.secondaryButton{background:#111827;color:#fff}.ghostButton{border:1px solid #cbd5e1;background:#fff;color:#334155}.textButton{min-height:32px;padding:0 10px;background:#e6fffb;color:#0f766e}button:disabled{cursor:not-allowed;opacity:.5}.alert,.warning,.notice{display:flex;align-items:flex-start;gap:10px;border-radius:8px;line-height:1.5}.alert{margin-bottom:16px;padding:12px 14px;border:1px solid #fecaca;background:#fff1f2;color:#991b1b}.warning{padding:10px 12px;border:1px solid #fde68a;background:#fffbeb;color:#92400e}.notice{padding:10px 12px;border:1px solid #bbf7d0;background:#f0fdf4;color:#166534}.wechatDownloadNotice{border-color:#dbe3ef;background:#fff;color:#475569;font-size:13px}.stageProgress,.singleProgress{display:grid;gap:8px;padding:12px 14px;border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc}.stageProgressHeader,.stageMeta{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}.stageProgressHeader strong,.stageMeta span{color:#111827;font-weight:800;overflow-wrap:anywhere}.stageProgressHeader span,.stageMeta strong{color:#64748b;font-size:13px;white-space:nowrap}.stageProgress.done .stageMeta strong,.singleProgress.done .stageMeta strong{color:#0f766e}.stageProgress.running .stageMeta strong,.singleProgress.running .stageMeta strong{color:#2563eb}.stageProgress.failed .stageMeta strong,.singleProgress.failed .stageMeta strong{color:#dc2626}.progressBar{width:100%;height:7px;overflow:hidden;border-radius:999px;background:#e2e8f0}.progressBar span{display:block;height:100%;border-radius:inherit;background:#0f766e;transition:width .26s ease}.progressBar.running span{background:#2563eb}.progressBar.failed span{background:#dc2626}.metaGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.metaGrid .summaryItem,.summary .summaryItem{min-height:48px;padding:12px;border:1px solid #e5eaf2;border-radius:8px;background:#f8fafc}.metaGrid .summaryItem strong,.summary .summaryItem strong{color:#111827;overflow:hidden;text-overflow:ellipsis}.variantList{display:grid;gap:10px}.variant{display:grid;gap:10px;padding:14px;border:1px solid #dbe3ef;border-radius:8px;background:#fbfdff}.variant.selected{border-color:#0f766e;background:#f0fdfa}.variantHeader{align-items:flex-start;justify-content:space-between;gap:12px}.variantHeader strong{min-width:0;overflow-wrap:anywhere}.variantHeaderActions{display:flex;flex-shrink:0;align-items:center;gap:8px;justify-content:flex-end}.variantHeaderActions .textButton{min-width:96px}.variantHeader span{color:#64748b;font-size:13px;white-space:nowrap}.variant p,.scriptPreview p,.artifact p{margin:0;color:#334155;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.artifact{display:grid;gap:12px;padding:14px;border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc}.artifactHeader,.artifactActions{display:flex;align-items:center}.artifactHeader{justify-content:space-between;gap:12px}.artifactActions{flex-wrap:wrap;justify-content:flex-start;gap:10px}.downloadButton{width:fit-content}.downloadHint{color:#64748b;font-size:13px;line-height:1.5}.artifact span{color:#64748b;font-size:13px;font-weight:800}.artifact .downloadHint{font-weight:500}.artifact audio,.artifact video{width:100%}.videoArtifact video{max-height:460px;border-radius:8px;background:#111827}.linkRow{flex-wrap:wrap;justify-content:flex-start;gap:12px}.linkRow a{display:inline-flex;align-items:center;gap:6px;color:#0f766e;font-weight:800;text-decoration:none}.scriptPreview{display:grid;gap:12px;min-height:260px;padding:16px;border:1px solid #e5eaf2;border-radius:8px;background:#f8fafc}.scriptPreviewHeader{display:flex;align-items:center;gap:8px;color:#0f766e}.scriptPreviewHeader strong{color:#111827}.summary{display:grid;gap:10px}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1080px){.app{grid-template-columns:1fr}.sidebar{position:static;gap:16px;padding:18px 22px}.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.providerBox{margin-top:0}.workspace{grid-template-columns:1fr}.previewPanel{position:static}}@media(max-width:720px){body{background:#f6f8fb}.app{display:block}.sidebar{display:none}.main{padding:0 0 12px}.topbar{margin:0;padding:14px 16px 10px;border-bottom:1px solid #e5eaf2;background:#fff;align-items:flex-start;flex-direction:column;gap:4px}.topbar h1{font-size:18px;font-weight:800;letter-spacing:0}.topbar .ghostButton{display:none}.topbar p{display:block;margin:0;color:#64748b;font-size:13px}.topbar .ghostButton,.inputRow .primaryButton,.shareActionRow .primaryButton,.shareUtilityRow .ghostButton,.actions:not(.scriptActions) .primaryButton,.actions:not(.scriptActions) .secondaryButton,.actions:not(.scriptActions) .ghostButton,.downloadButton{width:100%;min-height:46px}.scriptActions{grid-template-columns:repeat(2,minmax(0,1fr))}.scriptActions .secondaryButton,.scriptActions .ghostButton{width:100%;min-height:46px}.twoColumns,.metaGrid{grid-template-columns:1fr}.metaGrid{display:none}.workspace{gap:10px}.inputRow{grid-template-columns:1fr}.shareActionRow{gap:10px}.workPanel,.previewPanel{border:0;border-radius:0;background:transparent;box-shadow:none}.stepContent{gap:10px;min-height:auto;padding:12px}.workPanel{min-height:auto}.panelHeader{display:none}.panelHeader h2{font-size:18px}input,select{height:46px}textarea{min-height:120px;font-size:16px;line-height:1.55}.shareInput{min-height:116px}.shareField{gap:10px;padding:14px;border-top-width:2px;box-shadow:0 8px 20px #0f172a12}.shareField>span{font-size:15px}.shareExtractButton{min-height:48px;font-size:15px;box-shadow:none}.shareUtilityRow{gap:8px}.field.grow textarea{min-height:180px}.rewriteOriginalField textarea{min-height:140px}.rewriteActions .primaryButton{width:100%;min-height:48px}.stageProgress,.singleProgress,.artifact,.variant,.scriptPreview{padding:12px;background:#fff}.stageProgress{gap:7px;border-color:#e5eaf2;box-shadow:0 6px 18px #0f172a0d}.stageProgressHeader strong{font-size:14px}.progressBar{height:5px}.stageMeta{align-items:flex-start}.stageMeta span{line-height:1.45}.variantHeader{align-items:flex-start}.variantHeaderActions{width:100%;justify-content:space-between}.variantHeaderActions .textButton{min-height:38px}.fieldHeader{align-items:flex-start;flex-direction:column}.fieldHeader .textButton{width:100%;min-height:40px}.previewPanel{padding:12px}.scriptPreview{min-height:150px}.summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.main{padding:0 0 12px}.sidebar{padding:10px}.summary{grid-template-columns:1fr}.stageProgressHeader,.artifactHeader,.variantHeader{align-items:flex-start;flex-direction:column}.stageProgressHeader span,.stageMeta strong,.artifact span,.variantHeader span{white-space:normal}}
