/* Print797 Wizard UI v44 */
:root{--wiz-bg:#eef5fb;--wiz-card:#ffffff;--wiz-soft:#f7fbff;--wiz-text:#06152b;--wiz-muted:#5a6b80;--wiz-line:#d7e5f1;--wiz-blue:#0876d7;--wiz-blue2:#005dab;--wiz-shadow:0 18px 45px rgba(0,45,90,.10)}
[data-theme="dark"]{--wiz-bg:#07111f;--wiz-card:#111f31;--wiz-soft:#0b1727;--wiz-text:#f7fbff;--wiz-muted:#bad0e5;--wiz-line:#29415d;--wiz-blue:#0984e3;--wiz-blue2:#0b5cad;--wiz-shadow:0 18px 45px rgba(0,0,0,.35)}
body{background:var(--wiz-bg)!important;color:var(--wiz-text)!important;margin:0!important;font-family:var(--p797-font,system-ui,-apple-system,Segoe UI,sans-serif)!important}.app-header,.topbar{min-height:auto!important;margin:8px!important;padding:14px 18px!important;border-radius:18px!important;background:linear-gradient(135deg,#0876d7,#005dab)!important;color:#fff!important;display:flex!important;align-items:center!important;gap:16px!important;box-shadow:var(--wiz-shadow)!important}.app-header h1,.topbar h1{font-size:clamp(1.55rem,4vw,2.6rem)!important;line-height:1!important;margin:0!important}.app-header p,.topbar p{margin:4px 0 0!important;font-size:.95rem!important;color:#dff1ff!important}.home-link{background:rgba(255,255,255,.16)!important;color:#fff!important;border:1px solid rgba(255,255,255,.22)!important;border-radius:999px!important;padding:9px 13px!important;text-decoration:none!important;font-weight:800!important;white-space:nowrap}.save-top{margin-left:auto!important}.wizard-shell{max-width:1240px;margin:14px auto 28px;padding:0 14px}.wizard-card{background:var(--wiz-card);border:1px solid var(--wiz-line);border-radius:24px;box-shadow:var(--wiz-shadow);overflow:hidden}.wizard-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--wiz-line);background:linear-gradient(180deg,rgba(8,118,215,.08),transparent)}.wizard-title small{display:block;text-transform:uppercase;letter-spacing:.08em;color:#69b7ff;font-weight:900}.wizard-title h2{font-size:clamp(1.5rem,4vw,2.4rem);margin:4px 0 0}.wizard-progress{display:flex;gap:8px;align-items:center}.progress-dot{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:var(--wiz-soft);border:1px solid var(--wiz-line);font-weight:900;color:var(--wiz-muted)}.progress-dot.active{background:var(--wiz-blue);color:#fff;border-color:var(--wiz-blue)}.wizard-step{display:none;padding:18px}.wizard-step.active{display:block}.step-grid{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:18px;align-items:start}.choice-grid{display:grid;gap:12px}.big-choice,.size-option{border:1px solid var(--wiz-line)!important;background:var(--wiz-soft)!important;color:var(--wiz-text)!important;border-radius:18px!important;padding:18px!important;text-align:left!important;font-size:1rem!important;font-weight:900!important;box-shadow:none!important}.big-choice.active,.size-option.active,.segmented button.active{background:linear-gradient(135deg,var(--wiz-blue),var(--wiz-blue2))!important;color:white!important;border-color:transparent!important}.big-choice span,.size-option span{display:block;margin-top:5px;color:inherit;opacity:.78;font-weight:700;font-size:.85rem}.control-card{background:var(--wiz-card);border:1px solid var(--wiz-line);border-radius:22px;padding:16px;margin-bottom:14px}.control-card h3{margin:0 0 12px;font-size:1.25rem}.control-card label{display:block;margin:12px 0;font-weight:800;color:var(--wiz-text)}.control-card input,.control-card select,.control-card textarea{width:100%;box-sizing:border-box;background:var(--wiz-soft)!important;color:var(--wiz-text)!important;border:1px solid var(--wiz-line)!important;border-radius:14px!important;padding:12px!important;font:inherit;font-weight:750}.control-card input[type=color]{padding:3px;height:48px}.control-card input[type=checkbox]{width:auto;transform:scale(1.2);margin-right:10px}.check-row{display:flex!important;align-items:center;gap:8px;background:var(--wiz-soft);border:1px solid var(--wiz-line);border-radius:14px;padding:12px!important}.button-row,.wizard-actions,.preset-row,.template-grid{display:flex;gap:10px;flex-wrap:wrap}.wizard-actions{justify-content:space-between;align-items:center;padding:16px 18px;border-top:1px solid var(--wiz-line);background:var(--wiz-soft)}button.primary,.primary,.large-action{background:linear-gradient(135deg,#0a86e8,#006bc4)!important;color:white!important;border:0!important;border-radius:14px!important;padding:13px 18px!important;font-weight:900!important;box-shadow:0 10px 24px rgba(0,116,211,.24)!important}button.secondary,.ghost,.secondary-action,.wizard-back{background:var(--wiz-soft)!important;color:var(--wiz-text)!important;border:1px solid var(--wiz-line)!important;border-radius:14px!important;padding:13px 18px!important;font-weight:900!important}.danger{background:#e11d48!important;color:white!important}.preview-panel{background:var(--wiz-card);border:1px solid var(--wiz-line);border-radius:24px;padding:16px;box-shadow:var(--wiz-shadow)}.preview-panel h3{margin:0 0 8px;font-size:1.35rem}.preview-panel .hint{color:var(--wiz-muted)!important;font-weight:700}.stage-tabs{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.preview-help{display:flex;justify-content:center;gap:16px;color:var(--wiz-muted);font-weight:800;margin-top:10px}.poster-stage,.sheet-stage{background:var(--wiz-soft)!important;border:1px solid var(--wiz-line)!important;border-radius:22px!important;min-height:420px;display:grid;place-items:center;overflow:hidden}.sheet-stage{min-height:520px}.poster,.banner.preview-banner{box-shadow:0 18px 38px rgba(0,0,0,.22)!important}.wizard-step[data-step="size"] .preview-panel.size-sheet{display:block}.sheet-card,.preview-card,.panel{background:var(--wiz-card)!important;border:1px solid var(--wiz-line)!important;border-radius:22px!important;color:var(--wiz-text)!important}.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.poster-sheet{background-color:#fff!important}.status-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 12px;background:rgba(8,118,215,.12);color:#68b9ff;font-weight:900}.modal{background:var(--wiz-card)!important;color:var(--wiz-text)!important;border:1px solid var(--wiz-line)!important;border-radius:22px!important}.privacy-disclaimer{background:var(--wiz-card)!important;border-color:var(--wiz-line)!important;color:var(--wiz-muted)!important}.legacy-hidden,.help-icon,.help-bubble,[class*="help"]:empty{display:none!important}@media(max-width:860px){.app-header,.topbar{position:sticky;top:0;z-index:10;border-radius:0 0 18px 18px!important;margin:0!important}.app-header p,.topbar p{display:none!important}.save-top{display:none!important}.wizard-shell{padding:0 10px;margin:12px auto}.wizard-top{align-items:flex-start;flex-direction:column}.wizard-progress{width:100%;justify-content:space-between}.step-grid{grid-template-columns:1fr}.wizard-step{padding:12px}.poster-stage{min-height:360px}.sheet-stage{min-height:420px}.preview-help{font-size:.78rem;flex-direction:column;gap:4px}.button-row,.wizard-actions{display:grid;grid-template-columns:1fr 1fr}.wizard-actions .primary:last-child{grid-column:auto}.control-card{padding:14px}.big-choice,.size-option{padding:16px!important}.poster-stage .poster{max-width:90vw}.sheet-stage .poster-sheet{max-width:84vw!important;max-height:70vh!important}.wizard-card{border-radius:20px}}@media(max-width:520px){.wizard-title h2{font-size:1.55rem}.progress-dot{width:26px;height:26px}.button-row,.wizard-actions{grid-template-columns:1fr}.poster-stage{min-height:300px}.sheet-stage{min-height:360px}.app-header h1,.topbar h1{font-size:1.45rem!important}.home-link{padding:8px 10px!important}}

/* v51 Poster wizard polish */
.stacked-editor-step{grid-template-columns:1fr!important;}
.stacked-editor-step>div:first-child{max-width:880px;width:100%;margin:0 auto;}
.stacked-editor-step>.preview-panel{max-width:980px;width:100%;margin:0 auto;}
.big-choice.active,.size-option.active,.segmented button.active{
  background:linear-gradient(135deg,#0095ff,#005ecb)!important;
  color:#fff!important;
  border-color:#7dd3fc!important;
  box-shadow:0 0 0 3px rgba(14,165,233,.34),0 0 28px rgba(0,149,255,.55)!important;
  transform:translateY(-1px);
}
button.ai-background-action,.ai-background-action{
  background:linear-gradient(135deg,#a855f7,#7c3aed)!important;
  color:#050816!important;
  border:0!important;
  border-radius:14px!important;
  padding:13px 18px!important;
  font-weight:950!important;
  min-height:48px!important;
  box-shadow:0 12px 28px rgba(168,85,247,.38)!important;
}
button.ai-background-action:hover,.ai-background-action:hover{filter:brightness(1.06);transform:translateY(-1px);}
@media(max-width:860px){
  .stacked-editor-step>div:first-child,.stacked-editor-step>.preview-panel{max-width:100%;}
}
