:root{color-scheme:dark;font-family:Arial,Helvetica,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--assistant-width: 560px;--pt-bg-1: #08111f;--pt-bg-2: #101827;--pt-bg-3: #090b12;--pt-blue: #2f80ed;--pt-blue-hover: #438fff;--pt-cyan: #59ffd2;--pt-cyan-hover: #7affdf;--pt-text: #f7fbff;--pt-soft: #dbeafe;--pt-muted: #9fb0c7;--pt-muted-2: #b9c8dc;--pt-panel: rgba(9, 17, 31, .88);--pt-panel-strong: rgba(9, 17, 31, .97);--pt-field: rgba(255, 255, 255, .055);--pt-border: rgba(255, 255, 255, .13);--pt-border-soft: rgba(255, 255, 255, .08);--pt-border-cyan: rgba(89, 255, 210, .3);--pt-success: #7dffad;--pt-warning: #ffd36a;--pt-error: #ff7777;--pt-shadow: 0 24px 70px rgba(0, 0, 0, .24);--pt-shadow-strong: 0 34px 120px rgba(0, 0, 0, .52);--pt-radius-sm: 10px;--pt-radius-md: 14px;--pt-radius-lg: 18px;--pt-radius-xl: 30px}*{box-sizing:border-box}html,body{min-width:0;min-height:100%;margin:0}html{background:var(--pt-bg-1)}body{min-height:100vh;overflow:hidden;color:var(--pt-text);background:radial-gradient(circle at 18% 10%,rgba(47,128,237,.34),transparent 34rem),radial-gradient(circle at 82% 4%,rgba(89,255,210,.17),transparent 32rem),linear-gradient(135deg,var(--pt-bg-1),var(--pt-bg-2) 55%,var(--pt-bg-3));-webkit-font-smoothing:antialiased}button,textarea,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{border:0}button:not(:disabled){cursor:pointer}button:disabled{cursor:not-allowed;opacity:.56}a{color:inherit}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--pt-cyan);outline-offset:3px}.skip-link{position:fixed;top:12px;left:12px;z-index:1000;padding:10px 14px;color:#07111f;background:var(--pt-cyan);border-radius:8px;font-weight:900;transform:translateY(-160%);transition:transform .16s ease}.skip-link:focus{transform:translateY(0)}#appShell{display:grid;grid-template-columns:minmax(0,1fr) var(--assistant-width);width:100vw;height:100vh;overflow:hidden}#previewPanel{position:relative;display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;background:radial-gradient(circle at 22% 16%,rgba(47,128,237,.27),transparent 34rem),radial-gradient(circle at 76% 9%,rgba(89,255,210,.11),transparent 31rem),linear-gradient(135deg,#08111ffc,#090b12fc)}.topbar{position:relative;z-index:120;display:flex;min-height:70px;align-items:center;justify-content:space-between;gap:16px;padding:0 20px;border-bottom:1px solid var(--pt-border);background:#09111ff5;box-shadow:0 12px 34px #00000029;pointer-events:none}.topbar-left-group{display:flex;min-width:0;align-items:center;gap:16px;pointer-events:auto}.brand-link,.status-badge{pointer-events:auto}.brand-link{display:inline-flex;width:fit-content;align-items:center;gap:11px;color:var(--pt-text);text-decoration:none}.brand-link:hover{color:#fff}.brand-mark{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;color:#07111f;border-radius:14px;background:linear-gradient(135deg,var(--pt-blue),var(--pt-cyan));box-shadow:0 9px 24px #00000040;font-size:22px;font-weight:900}.brand-copy{display:flex;flex-direction:column;line-height:1.12}.brand-copy b{font-size:16px;letter-spacing:-.02em}.brand-copy small{margin-top:3px;color:var(--pt-muted);font-size:12px}.topbar-divider{width:1px;height:34px;flex:0 0 1px;background:linear-gradient(180deg,transparent,rgba(145,164,190,.42) 18%,rgba(145,164,190,.42) 82%,transparent)}.auth-widget{position:relative;z-index:180;min-width:0}.auth-top-row{display:flex;min-width:0;align-items:center;justify-content:flex-start;gap:8px}.auth-status-button,.credits-badge,.buy-credits-button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;padding:0 12px;color:var(--pt-soft);border:1px solid var(--pt-border);border-radius:10px;background:#050a12c2;backdrop-filter:blur(18px);font-size:12px;font-weight:800;line-height:1;white-space:nowrap}.auth-status-button{max-width:250px;overflow:hidden;text-overflow:ellipsis}.auth-status-button:not(:disabled):hover,.buy-credits-button:not(:disabled):hover{color:var(--pt-text);border-color:var(--pt-border-cyan);background:#192436f0}.auth-status-button.is-authenticated{color:#07111f;border-color:#59ffd257;background:linear-gradient(135deg,var(--pt-blue),var(--pt-cyan))}.auth-status-button.is-authenticated:not(:disabled):hover{color:#07111f;border-color:#59ffd257;background:linear-gradient(135deg,var(--pt-blue-hover),var(--pt-cyan-hover))}.credits-badge{padding:0 10px;color:#bffff0;border-color:#59ffd238;background:#050a12b8;font-weight:900}.buy-credits-button{color:var(--pt-cyan);border-color:#59ffd238;background:#59ffd21a}.buy-credits-button:not(:disabled):hover{color:#bffff0;border-color:#59ffd24d;background:#59ffd22b}.auth-panel,.credits-modal{position:absolute;z-index:190;top:calc(100% + 10px);right:0;color:var(--pt-text);border:1px solid var(--pt-border);background:linear-gradient(145deg,#ffffff17,#ffffff06),var(--pt-panel-strong);box-shadow:var(--pt-shadow-strong);backdrop-filter:blur(18px)}.auth-panel{width:min(310px,calc(100vw - 24px));padding:15px;border-radius:14px}.auth-panel label{display:block;margin-bottom:11px;color:var(--pt-muted-2);font-size:11px;font-weight:800}.auth-panel input{width:100%;min-height:39px;margin-top:5px;padding:9px 10px;color:var(--pt-text);border:1px solid var(--pt-border);border-radius:9px;outline:none;background:#050a12c2}.auth-panel input:focus{border-color:#59ffd285;box-shadow:0 0 0 4px #59ffd214}.auth-forgot-password-row{display:flex;justify-content:flex-end;margin:-4px 0 10px}.auth-forgot-password-link{color:#9fe8ff;font-size:11px;font-weight:800;text-decoration:none}.auth-forgot-password-link:hover{color:#fff;text-decoration:underline}.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.auth-actions button,#authLogoutButton{min-height:38px;padding:8px 10px;color:#07111f;border-radius:9px;background:linear-gradient(135deg,var(--pt-blue),var(--pt-cyan));font-size:11px;font-weight:900}.auth-actions button:not(:disabled):hover,#authLogoutButton:not(:disabled):hover{filter:brightness(1.08)}#authLogoutButton{width:100%;margin-top:11px}.auth-user-email{overflow-wrap:anywhere;color:var(--pt-soft);font-size:12px;font-weight:800;line-height:1.45}.auth-message,.credits-purchase-message{margin-top:10px;color:var(--pt-warning);font-size:11px;line-height:1.4}.credits-modal{width:min(380px,calc(100vw - 24px));max-height:calc(100dvh - 82px);padding:17px;overflow-y:auto;border-radius:16px;text-align:left}.credits-modal h2{margin:0 34px 6px 0;font-size:19px;letter-spacing:-.025em}.credits-modal-subtitle{margin:0 28px 13px 0;color:var(--pt-muted-2);font-size:11.5px;line-height:1.45}.credits-modal-close{position:absolute;top:10px;right:10px;display:grid;width:28px;height:28px;place-items:center;padding:0;color:var(--pt-text);border:1px solid var(--pt-border);border-radius:8px;background:#ffffff12;font-size:17px}.credits-modal-close:hover{border-color:var(--pt-border-cyan);background:#ffffff1f}.credits-terms-row{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px;padding:10px;color:var(--pt-muted-2);border:1px solid var(--pt-border-soft);border-radius:10px;background:#ffffff0a;font-size:10.5px;line-height:1.4;cursor:pointer}.credits-terms-row input{width:15px;height:15px;flex:0 0 auto;margin:1px 0 0;accent-color:var(--pt-cyan)}.credits-terms-row a{color:#9fe8ff;font-weight:900;text-decoration:none}.credits-terms-row a:hover{color:#fff;text-decoration:underline}.credit-bundles{display:grid;gap:8px}.credit-bundle-card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 10px;align-items:center;min-height:56px;padding:10px 12px;color:var(--pt-text);text-align:left;border:1px solid var(--pt-border);border-radius:10px;background:#fff1}.credit-bundle-card:not(:disabled):hover{border-color:var(--pt-border-cyan);background:#59ffd217}.credit-bundle-card strong{grid-column:1;grid-row:1;font-size:12px}.credit-bundle-card span{grid-column:1;grid-row:2;color:var(--pt-muted-2);font-size:10.5px}.credit-bundle-card b{grid-column:2;grid-row:1 / span 2;font-size:13px}.status-badge{display:inline-flex;min-height:34px;align-items:center;gap:8px;padding:7px 12px;color:var(--pt-cyan);border:1px solid rgba(89,255,210,.34);border-radius:999px;background:#050a12c2;backdrop-filter:blur(18px);font-size:12px;font-weight:900;letter-spacing:.01em}.status-dot{width:7px;height:7px;border-radius:50%;background:var(--pt-cyan);box-shadow:0 0 0 4px #59ffd21c}.status-working{color:var(--pt-warning);border-color:#ffd36a6b}.status-working .status-dot{background:var(--pt-warning);box-shadow:0 0 0 4px #ffd36a1c;animation:status-pulse 1.2s ease-in-out infinite}.status-error{color:var(--pt-error);border-color:#ff777775}.status-error .status-dot{background:var(--pt-error);box-shadow:0 0 0 4px #ff77771c}@keyframes status-pulse{50%{opacity:.35}}.icon-button,.modal-close{display:inline-grid;width:36px;height:36px;flex:0 0 auto;place-items:center;padding:0;color:var(--pt-text);border:1px solid var(--pt-border);border-radius:9px;background:#050a12c2;transition:transform .15s ease,border-color .15s ease,background .15s ease}.icon-button:not(:disabled):hover,.modal-close:not(:disabled):hover{border-color:var(--pt-border-cyan);background:#192436f0;transform:translateY(-1px)}.language-button{width:42px;min-width:42px;height:34px;color:#07111f;border-color:transparent;background:linear-gradient(135deg,var(--pt-blue),var(--pt-cyan));font-size:12px;font-weight:900}.language-button:not(:disabled):hover{border-color:transparent;background:linear-gradient(135deg,var(--pt-blue-hover),var(--pt-cyan-hover))}.preview-workspace{position:relative;display:grid;min-height:0;flex:1;place-items:center;padding:clamp(24px,4vw,54px);overflow:auto;scrollbar-color:rgba(159,176,199,.42) transparent}.workspace-glow{position:absolute;pointer-events:none;border-radius:50%}.workspace-glow-one{top:6%;left:5%;width:min(34vw,430px);height:min(34vw,430px);background:radial-gradient(circle,rgba(47,128,237,.2),transparent 68%)}.workspace-glow-two{right:2%;bottom:2%;width:min(38vw,500px);height:min(38vw,500px);background:radial-gradient(circle,rgba(89,255,210,.08),transparent 68%)}.empty-preview{position:relative;z-index:1;width:min(100%,660px);padding:clamp(25px,4vw,42px);text-align:center;border:1px solid var(--pt-border);border-radius:var(--pt-radius-xl);background:linear-gradient(145deg,#ffffff13,#ffffff06),#09111fb8;box-shadow:var(--pt-shadow);backdrop-filter:blur(18px)}.empty-preview-visual{display:flex;align-items:center;justify-content:center;gap:clamp(15px,3vw,32px);margin-bottom:28px}.empty-photo-shape,.empty-icon-shape{display:grid;width:clamp(108px,12vw,148px);aspect-ratio:1;place-items:center;flex:0 0 auto;overflow:hidden;border:1px solid var(--pt-border);border-radius:24px;box-shadow:0 18px 44px #0000004d}.empty-photo-shape{background:#cfe3ff}.empty-icon-shape{border-color:#59ffd23d;background:#cfe3ff}.empty-hero-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center;pointer-events:none;user-select:none}.empty-photo-shape .empty-hero-image{transform:scale(1.16)}.empty-icon-shape .empty-hero-image{transform:translate(4%)}.conversion-arrow{color:var(--pt-cyan);font-size:28px}.eyebrow{margin:0 0 8px;color:var(--pt-cyan);font-size:11px;font-weight:900;letter-spacing:.13em}.empty-preview h1{max-width:610px;margin:0 auto 15px;color:var(--pt-text);font-size:clamp(32px,4vw,52px);line-height:1.04;letter-spacing:-.045em}.empty-preview>p:not(.eyebrow){max-width:570px;margin:0 auto 27px;color:var(--pt-muted-2);font-size:clamp(14px,1.35vw,17px);line-height:1.62}.primary-button,.secondary-button,.ai-button,.step-button{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:999px;font-weight:900;transition:transform .15s ease,filter .15s ease,border-color .15s ease,background .15s ease}.paid-style-button{flex-direction:column;gap:3px;line-height:1.05;white-space:normal}.button-main-label,.button-credit-label{display:block}.button-main-label{display:inline-flex;align-items:center;gap:6px;font-size:11px}.button-credit-label{color:#07111fb8;font-size:9px;font-weight:900}.paid-style-button:disabled .button-credit-label{color:#8fa0b8}.secondary-button.paid-style-button .button-credit-label,.ai-button.paid-style-button .button-credit-label{color:var(--pt-muted)}.primary-button,.step-button{color:#07111f;background:linear-gradient(135deg,var(--pt-blue),var(--pt-cyan));box-shadow:0 10px 24px #2f80ed33}.primary-button:disabled,.step-button:disabled,.secondary-button:disabled,.ai-button:disabled{color:#8fa0b8;border:1px solid var(--pt-border-soft);background:#ffffff13;box-shadow:none}.primary-button:not(:disabled):hover,.step-button:not(:disabled):hover{filter:brightness(1.08);transform:translateY(-1px)}.secondary-button,.ai-button{color:var(--pt-text);border:1px solid var(--pt-border);background:#ffffff12}.secondary-button:not(:disabled):hover,.ai-button:not(:disabled):hover{border-color:var(--pt-border-cyan);background:#59ffd214;transform:translateY(-1px)}.ai-button{color:#cfc4ff;border-color:#977bff4d;background:#7b5cff1f}.sparkle{font-size:15px}.hero-button{min-height:48px;padding-inline:22px}.login-continue-button{display:flex;width:fit-content;min-height:30px;align-items:center;justify-content:center;margin:11px auto 0;padding:5px 12px;color:var(--pt-muted-2);border:1px solid var(--pt-border-soft);border-radius:999px;background:#ffffff0b;font-size:11px;font-weight:800;transition:color .15s ease,border-color .15s ease,background .15s ease}.login-continue-button:hover{color:var(--pt-cyan);border-color:var(--pt-border-cyan);background:#59ffd214}.working-preview{position:relative;z-index:1;display:grid;width:min(100%,790px);align-self:start;gap:13px;margin:auto}.preview-card{padding:clamp(17px,2vw,23px);border:1px solid var(--pt-border);border-radius:var(--pt-radius-lg);background:linear-gradient(145deg,#ffffff14,#ffffff07),var(--pt-panel);box-shadow:var(--pt-shadow);backdrop-filter:blur(16px)}.preview-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.preview-card-heading h2{margin:0;color:var(--pt-text);font-size:20px;letter-spacing:-.025em}.soft-badge,.format-badge{display:inline-flex;min-height:25px;align-items:center;padding:5px 9px;color:#bffff0;border:1px solid rgba(89,255,210,.25);border-radius:999px;background:#59ffd21a;font-size:10px;font-weight:900;letter-spacing:.04em}.result-badges{display:flex;gap:6px}.image-stage{position:relative;display:grid;min-height:280px;place-items:center;padding:17px;overflow:hidden;border:1px solid var(--pt-border);border-radius:var(--pt-radius-md);background-color:#f8fafc;background-image:linear-gradient(45deg,#edf1f6 25%,transparent 25%),linear-gradient(-45deg,#edf1f6 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#edf1f6 75%),linear-gradient(-45deg,transparent 75%,#edf1f6 75%);background-position:0 0,0 12px,12px -12px,-12px 0;background-size:24px 24px}.source-stage{min-height:240px;background:#f8fafc}.image-stage img{display:block;width:100%;max-width:100%;height:100%;max-height:430px;object-fit:contain}.preview-card-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:15px}.preview-flow-arrow{width:32px;height:32px;justify-self:center;color:var(--pt-cyan);font-size:21px;text-align:center}.result-preview-card{border-color:#59ffd23d}.result-preview-card.is-placeholder{border-style:dashed}.result-placeholder{display:grid;min-height:220px;place-items:center;align-content:center;padding:27px;color:var(--pt-muted);text-align:center;border:1px dashed rgba(89,255,210,.23);border-radius:var(--pt-radius-md);background:#050a1275}.placeholder-icon{margin-bottom:9px;color:var(--pt-cyan);font-size:42px}.result-placeholder strong{color:var(--pt-text);font-size:16px}.result-placeholder p{max-width:340px;margin:7px 0 0;font-size:13px;line-height:1.5}.result-tabs{display:inline-flex;gap:4px;margin-bottom:10px;padding:4px;border:1px solid var(--pt-border);border-radius:10px;background:#050a128f}.result-tab{min-width:62px;padding:7px 12px;color:var(--pt-muted);border-radius:7px;background:transparent;font-size:12px;font-weight:900}.result-tab.is-active{color:#07111f;background:var(--pt-cyan)}.result-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0 0}.result-meta div{min-width:0;padding:10px 12px;border:1px solid var(--pt-border);border-radius:10px;background:#ffffff0b}.result-meta dt{margin-bottom:3px;color:var(--pt-muted);font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.result-meta dd{margin:0;overflow:hidden;color:var(--pt-soft);font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}#wizardPanel{position:relative;z-index:130;display:flex;min-width:0;height:100vh;flex-direction:column;padding:20px;overflow-y:auto;border-left:1px solid var(--pt-border);background:linear-gradient(145deg,#fff1,#ffffff06),#09111ff5;box-shadow:-24px 0 80px #0000004d;scrollbar-color:rgba(159,176,199,.42) transparent}.all-tools-link{display:inline-flex;width:fit-content;margin:0 0 10px;color:#9fe8ff;font-size:12px;font-weight:800;text-decoration:none}.all-tools-link:hover{color:#fff;text-decoration:underline}#wizardPanel>h1{margin:0 0 6px;color:var(--pt-text);font-size:30px;line-height:1;letter-spacing:-.045em}.wizard-intro{margin:13px 0 17px;padding:12px 14px;color:var(--pt-muted-2);border:1px solid var(--pt-border);border-radius:var(--pt-radius-sm);background:linear-gradient(145deg,#fff1,#ffffff06),#050a126b;font-size:13px;line-height:1.48}.wizard-panel{margin-bottom:14px}.wizard-progress-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;color:#fff;font-weight:900}.wizard-progress-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.wizard-reset-button{width:auto;min-width:0;margin:0;padding:6px 11px;border:1px solid rgba(89,255,210,.28);border-radius:999px;font-size:11px;font-weight:900;line-height:1;white-space:nowrap}.wizard-reset-button:not(:disabled){color:#bffff0;background:#59ffd21a}.wizard-reset-button:not(:disabled):hover{border-color:#59ffd280;background:#59ffd22e}#wizardProgressBadge{padding:4px 9px;border-radius:999px;background:#59ffd21a;border:1px solid rgba(89,255,210,.22);color:#bffff0;font-size:12px;font-weight:900;text-align:center}.wizard-steps{display:grid;gap:10px}.wizard-step{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;padding:12px;border:1px solid var(--pt-border);border-radius:var(--pt-radius-md);background:linear-gradient(145deg,#ffffff14,#ffffff07),var(--pt-panel);box-shadow:var(--pt-shadow);transition:border-color .16s ease,background .16s ease}.wizard-step.is-active{border-color:#59ffd25c;background:linear-gradient(145deg,#2f80ed2b,#59ffd20d),var(--pt-panel)}.wizard-step.is-complete{border-color:#7dffad61;background:linear-gradient(145deg,#00ff7814,#ffffff06),var(--pt-panel)}.step-number{display:grid;width:30px;height:30px;place-items:center;color:var(--pt-text);border:1px solid var(--pt-border);border-radius:999px;background:#ffffff14;font-size:13px;font-weight:900}.step-number b{display:none}.wizard-step.is-active .step-number{color:var(--pt-cyan);border-color:#59ffd26b;background:#59ffd221}.wizard-step.is-complete .step-number{color:var(--pt-success);border-color:#7dffad6b;background:#00ff7821}.wizard-step.is-complete .step-number span{display:none}.wizard-step.is-complete .step-number b{display:inline}.step-body{display:grid;min-width:0;grid-template-columns:minmax(0,1fr) 132px;column-gap:12px;align-items:center}.step-body h3{grid-column:1;margin:1px 0 4px;color:var(--pt-text);font-size:14px}.step-body p{grid-column:1;margin:0;color:var(--pt-muted-2);font-size:12px;line-height:1.38}.step-button{grid-column:2;grid-row:1 / span 2;min-width:0;min-height:38px;padding:8px 10px;align-self:center;font-size:11px}.wizard-step:not(.is-active):not(.is-complete) .step-button:not(:disabled){color:var(--pt-text);border:1px solid var(--pt-border);background:#ffffff14;box-shadow:none}.download-step-button:not(:disabled){color:#07111f;background:linear-gradient(135deg,#28d69a,var(--pt-cyan))}.error-callout{margin-top:13px;padding:12px 13px;color:#ffd0d0;border:1px solid rgba(255,119,119,.38);border-radius:12px;background:#ff505017}.error-callout strong{display:block;margin-bottom:4px;font-size:12px}.error-callout p{margin:0;font-size:11px;line-height:1.45}.error-callout button{margin-top:8px;padding:0;color:var(--pt-error);background:transparent;font-size:11px;font-weight:900;text-decoration:underline}.wizard-footer{margin-top:14px;padding-top:18px;color:var(--pt-muted);font-size:10.5px}.history-action-panel{margin-top:auto;padding-top:18px}.history-open-button{width:100%;min-height:48px;font-size:15px}.wizard-footer a{color:var(--pt-muted);text-decoration:none}.wizard-footer a:hover{color:#fff;text-decoration:underline}.legal-footer{padding:0 0 8px;color:#8fa0b8;text-align:center}.feedback-line{margin:0 0 8px;color:var(--pt-muted-2);font-size:12px;line-height:1.35}.feedback-line a{color:#9fe8ff;font-weight:800}.legal-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0;font-size:11px}.legal-links span{margin:0 6px;color:#666}.modal-layer,.loading-layer{position:fixed;z-index:100;top:0;right:var(--assistant-width);bottom:0;left:0;display:grid;place-items:center;padding:72px 28px 28px;overflow-y:auto;background:radial-gradient(circle at 50% 18%,rgba(89,255,210,.1),transparent 26rem),#02070ec2;backdrop-filter:blur(12px)}.modal-card,.loading-card{width:min(100%,760px);max-height:calc(100dvh - 104px);padding:20px;overflow-x:hidden;overflow-y:auto;color:var(--pt-text);border:1px solid var(--pt-border);border-radius:var(--pt-radius-xl);background:linear-gradient(145deg,#ffffff1b,#ffffff0a),var(--pt-panel-strong);box-shadow:var(--pt-shadow-strong);animation:modal-enter .18s ease-out}.design-modal-card{width:min(100%,980px)}.edit-modal-card{width:min(100%,880px)}.history-modal-card{width:min(100%,980px)}.history-message{min-height:20px;margin:0 0 14px;color:var(--pt-muted-2);font-size:13px;line-height:1.5}.history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.history-card{min-width:0;padding:10px;border:1px solid var(--pt-border);border-radius:var(--pt-radius-lg);background:#08111d80}.history-card-preview{position:relative;display:grid;aspect-ratio:1;place-items:center;overflow:hidden;padding:10px;border:1px solid rgba(159,232,255,.32);border-radius:20px;background:linear-gradient(145deg,#dcecff,#b9d7ff)}.history-card-preview img{width:100%;height:100%;object-fit:contain}.history-card-copy{display:grid;gap:5px;padding:12px 3px 2px}.history-card-copy strong{color:var(--pt-text);font-size:14px}.history-card-copy span{color:var(--pt-muted-2);font-size:11px;line-height:1.35}.history-download-button{width:100%;margin-top:8px}.history-card.has-image-error .history-card-preview:after{content:"×";color:#09132285;font-size:40px;font-weight:800}.history-card.has-image-error .history-card-preview img{display:none}@keyframes modal-enter{0%{opacity:0;transform:translateY(10px) scale(.99)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.modal-header h2{margin:0;color:var(--pt-text);font-size:clamp(24px,3vw,30px);line-height:1.02;letter-spacing:-.045em}.modal-header p:not(.eyebrow){max-width:650px;margin:8px 0 0;color:var(--pt-muted-2);font-size:13px;line-height:1.5}.design-source-context{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:16px;margin-bottom:20px;padding:12px;border:1px solid var(--pt-border);border-radius:var(--pt-radius-md);background:linear-gradient(145deg,#2f80ed14,#59ffd206),#050a127a}.design-source-preview{display:grid;height:112px;place-items:center;padding:7px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:#f8fafc}.design-source-preview img{display:block;width:100%;height:100%;object-fit:contain}.design-source-copy{min-width:0}.design-source-copy .eyebrow{margin:0 0 5px}.design-source-copy h3{margin:0;color:var(--pt-text);font-size:17px;line-height:1.2}.design-source-copy p:not(.eyebrow){max-width:580px;margin:6px 0 0;color:var(--pt-muted-2);font-size:12px;line-height:1.5}.modal-close{font-size:20px;line-height:1}.source-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:17px;padding:5px;border:1px solid var(--pt-border);border-radius:12px;background:#050a1294}.source-tab{display:inline-flex;min-height:42px;align-items:center;justify-content:center;gap:8px;color:var(--pt-muted-2);border:1px solid transparent;border-radius:9px;background:transparent;font-size:13px;font-weight:900}.source-tab.is-active{color:#07111f;border-color:#59ffd242;background:linear-gradient(135deg,var(--pt-blue),var(--pt-cyan))}.drop-zone{display:grid;width:100%;min-height:290px;place-items:center;align-content:center;padding:27px;color:var(--pt-muted-2);text-align:center;border:1px dashed rgba(89,255,210,.34);border-radius:var(--pt-radius-lg);background:linear-gradient(145deg,#2f80ed1a,#59ffd206),#050a127a;transition:border-color .15s ease,background .15s ease,transform .15s ease}.drop-zone:not(:disabled):hover,.drop-zone.is-dragging{border-color:var(--pt-cyan);background:#59ffd212;transform:translateY(-1px)}.drop-zone-icon{display:grid;width:54px;height:54px;place-items:center;margin-bottom:13px;color:var(--pt-cyan);border:1px solid var(--pt-border-cyan);border-radius:15px;background:#59ffd214;font-size:24px}.drop-zone strong{color:var(--pt-text);font-size:17px}.drop-zone>span:not(.drop-zone-icon){margin-top:5px;font-size:13px}.drop-zone small{margin-top:12px;color:var(--pt-muted);font-size:11px}.field-label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 8px;color:var(--pt-soft);font-size:12px;font-weight:900}.character-count{color:var(--pt-muted);font-size:10px;font-weight:800}textarea{width:100%;min-height:94px;resize:vertical;padding:12px 13px;color:var(--pt-text);border:1px solid var(--pt-border);border-radius:10px;outline:none;background:#050a12b8;line-height:1.52;transition:border-color .15s ease,box-shadow .15s ease}textarea:focus{border-color:#59ffd285;box-shadow:0 0 0 4px #59ffd214}textarea::placeholder{color:#7f90a8}.field-help{margin:8px 0 14px;color:var(--pt-muted);font-size:11px;line-height:1.5}.design-instruction-help{margin-bottom:0}.full-width-button{width:100%}.validation-message{min-height:18px;margin:10px 0 0;color:var(--pt-error);font-size:11px;font-weight:800}.choice-fieldset{min-width:0;margin:0;padding:0;border:0}.choice-fieldset+.choice-fieldset{margin-top:22px}.choice-fieldset legend{margin-bottom:10px;color:var(--pt-soft);font-size:13px;font-weight:900}.perspective-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.perspective-choice-wrap,.detail-choice-wrap{position:relative;min-width:0}.perspective-choice-wrap>input,.detail-choice-wrap>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.perspective-choice-card,.detail-choice-card{display:flex;height:100%;align-items:center;gap:10px;padding:10px;color:var(--pt-muted-2);border:1px solid var(--pt-border);border-radius:12px;background:linear-gradient(145deg,#fff1,#ffffff06),#050a1280;transition:transform .14s ease,border-color .14s ease,background .14s ease}.perspective-choice-card{min-height:84px}.perspective-choice-wrap>input:not(:disabled)+label,.detail-choice-wrap>input:not(:disabled)+label{cursor:pointer}.perspective-choice-wrap>input:focus-visible+label,.detail-choice-wrap>input:focus-visible+label{outline:2px solid var(--pt-cyan);outline-offset:2px}.perspective-choice-card:hover,.detail-choice-card:hover{border-color:var(--pt-border-cyan);transform:translateY(-1px)}.perspective-choice-card.is-selected,.detail-choice-card.is-selected{color:#bffff0;border-color:#59ffd280;background:linear-gradient(145deg,#2f80ed33,#59ffd214),#050a129e}.perspective-visual{display:grid;width:40px;height:40px;place-items:center;color:var(--pt-cyan);border-radius:11px;background:#59ffd217;font-size:22px}.custom-perspective-panel{margin-top:14px;padding:14px;border:1px solid rgba(89,255,210,.26);border-radius:14px;background:radial-gradient(circle at 82% 10%,rgba(47,128,237,.15),transparent 45%),#040a12bd}.custom-perspective-panel[hidden]{display:none}.custom-perspective-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:11px}.custom-perspective-heading h3{margin:0;color:var(--pt-text);font-size:15px}.custom-perspective-heading p{margin:5px 0 0;color:var(--pt-muted-2);font-size:11px;line-height:1.45}.viewer-status{display:inline-flex;min-height:26px;flex:0 0 auto;align-items:center;padding:4px 9px;color:var(--pt-muted-2);border:1px solid var(--pt-border);border-radius:999px;background:#ffffff0a;font-size:9px;font-weight:900;white-space:nowrap}.viewer-status[data-state=ready]{color:#a8ffe7;border-color:#59ffd261;background:#59ffd214}.viewer-status[data-state=error]{color:#ffb7bd;border-color:#ff6f7c66;background:#ff6f7c14}.perspective-viewer-shell{position:relative;width:100%;min-height:310px;overflow:hidden;border:1px solid var(--pt-border);border-radius:12px;background:#07111f}.perspective-viewer-canvas{display:block;width:100%;height:clamp(310px,41dvh,430px);cursor:grab;touch-action:none}.perspective-viewer-canvas:active{cursor:grabbing}.perspective-viewer-canvas:focus-visible{outline:2px solid var(--pt-cyan);outline-offset:-3px}.perspective-viewer-overlay{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:10px;color:var(--pt-muted-2);background:#07111fe6;font-size:11px;font-weight:800}.perspective-viewer-overlay[hidden]{display:none}.viewer-spinner{width:28px;height:28px;border:3px solid rgba(255,255,255,.12);border-top-color:var(--pt-cyan);border-radius:50%;animation:viewer-spin .7s linear infinite}@keyframes viewer-spin{to{transform:rotate(360deg)}}.perspective-preset-section{margin-top:12px}.perspective-preset-label{display:block;margin-bottom:7px;color:var(--pt-soft);font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.perspective-preset-buttons{display:flex;flex-wrap:wrap;gap:6px}.perspective-preset-button{min-height:32px;padding:6px 10px;color:var(--pt-muted-2);border:1px solid var(--pt-border);border-radius:8px;background:#ffffff0b;font-size:10px;font-weight:850}.perspective-preset-button:not(:disabled):hover,.perspective-preset-button[aria-pressed=true]{color:#bffff0;border-color:#59ffd27a;background:#59ffd21a}.perspective-preset-button:focus-visible{outline:2px solid var(--pt-cyan);outline-offset:2px}.choice-copy{display:grid;min-width:0;gap:3px}.choice-copy strong{color:var(--pt-text);font-size:11.5px}.choice-copy small{color:var(--pt-muted);font-size:9.5px;line-height:1.35}.choice-copy em{width:fit-content;margin-top:2px;padding:2px 6px;color:#bffff0;border-radius:999px;background:#59ffd21c;font-size:8px;font-style:normal;font-weight:900}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:20px}.detail-choice-card{min-height:0;flex-direction:column;align-items:stretch;gap:11px;padding:9px}.detail-preview{display:grid;width:100%;height:auto;aspect-ratio:1;flex:0 0 auto;place-items:center;padding:14px;overflow:hidden;border:1px solid rgba(89,255,210,.24);border-radius:24px;background:#cfe3ff;box-shadow:inset 0 1px #ffffff7a}.detail-preview img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;object-position:center;user-select:none}.detail-choice-card .choice-copy{padding:1px 3px 4px}.detail-choice-card .choice-copy strong{font-size:12px}.detail-choice-card .choice-copy small{font-size:10px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:19px}.edit-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:20px}.edit-preview{display:grid;min-height:310px;place-items:center;padding:13px;overflow:hidden;border:1px solid var(--pt-border);border-radius:var(--pt-radius-md);background:#f8fafc}.edit-preview img{width:100%;height:100%;max-height:420px;object-fit:contain}.edit-fields{display:flex;min-width:0;flex-direction:column}.edit-fields textarea{min-height:215px;flex:1}.loading-layer{z-index:200;background:#02070ed6}.credit-confirm-layer{position:fixed;z-index:260;inset:0 var(--assistant-width) 0 0;display:grid;place-items:center;padding:28px;background:radial-gradient(circle at 50% 42%,rgba(89,255,210,.12),transparent 24rem),#02070edb;backdrop-filter:blur(14px)}.credit-confirm-card{width:min(100%,470px);padding:30px;color:var(--pt-text);text-align:center;border:1px solid var(--pt-border);border-radius:var(--pt-radius-xl);background:linear-gradient(145deg,#ffffff1b,#ffffff0a),var(--pt-panel-strong);box-shadow:var(--pt-shadow-strong);animation:modal-enter .18s ease-out}.credit-confirm-orbit{display:grid;width:58px;height:58px;place-items:center;margin:0 auto 14px;color:#07111f;border:3px solid rgba(89,255,210,.28);border-right-color:var(--pt-cyan);border-bottom-color:var(--pt-cyan);border-radius:50%;background:#59ffd20a;transform:rotate(-18deg)}.credit-confirm-orbit span{display:grid;width:27px;height:27px;place-items:center;border-radius:50%;background:linear-gradient(135deg,#8bc8ff,var(--pt-cyan));box-shadow:0 0 22px #59ffd27a;transform:rotate(18deg)}.credit-confirm-card h2{margin:0 0 8px;font-size:25px;letter-spacing:-.035em}.credit-confirm-action{margin:0 auto 19px;color:var(--pt-muted-2);font-size:14px;line-height:1.5}.credit-confirm-summary{display:grid;gap:8px;margin:0;padding:13px;text-align:left;border:1px solid var(--pt-border-soft);border-radius:var(--pt-radius-md);background:#040a138f}.credit-confirm-summary>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:2px 3px}.credit-confirm-summary dt{color:var(--pt-muted);font-size:12px}.credit-confirm-summary dd{margin:0;color:var(--pt-soft);font-size:13px;font-weight:900}.credit-confirm-summary .credit-confirm-remaining{margin-top:3px;padding-top:9px;border-top:1px solid var(--pt-border-soft)}.credit-confirm-remaining dd{color:var(--pt-cyan)}.credit-confirm-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:10px;margin-top:18px}.credit-confirm-actions button{width:100%}.loading-card{width:min(100%,430px);padding:34px 30px;text-align:center}.loading-card h2{margin:0 0 9px;color:var(--pt-text);font-size:23px;letter-spacing:-.03em}.loading-card>p:last-child{margin:0;color:var(--pt-muted-2);font-size:13px;line-height:1.5}.loading-orbit{position:relative;width:58px;height:58px;margin:0 auto 21px;border:3px solid rgba(89,255,210,.14);border-top-color:var(--pt-cyan);border-radius:50%;animation:spin .95s linear infinite}.loading-orbit span{position:absolute;inset:13px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#9fe8ff,var(--pt-blue))}@keyframes spin{to{transform:rotate(360deg)}}.toast-region{position:fixed;right:calc(var(--assistant-width) + 24px);bottom:24px;z-index:300;pointer-events:none}.toast{max-width:min(380px,calc(100vw - 48px));padding:13px 16px;color:var(--pt-text);border:1px solid var(--pt-border-cyan);border-radius:12px;background:linear-gradient(145deg,#2f80ed24,#59ffd20d),#09111ff5;box-shadow:var(--pt-shadow);font-size:12px;font-weight:800;line-height:1.45;opacity:0;transform:translateY(10px);transition:opacity .18s ease,transform .18s ease}.toast.is-visible{opacity:1;transform:translateY(0)}.fatal-startup-error{width:min(90%,560px);margin:15vh auto;padding:24px;color:#ffd0d0;border:1px solid rgba(255,119,119,.38);border-radius:16px;background:#ff505017;font:700 16px/1.5 Arial,sans-serif}body.modal-open{overflow:hidden}@media(max-width:1200px)and (min-width:1021px){:root{--assistant-width: 480px}.step-body{grid-template-columns:minmax(0,1fr) 114px}.perspective-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1020px){body{overflow:auto}#appShell{display:block;width:100%;height:auto;overflow:visible}#previewPanel{min-height:680px;overflow:visible}.preview-workspace{min-height:610px;overflow:visible}#wizardPanel{width:100%;height:auto;min-height:610px;padding:26px clamp(18px,5vw,42px);overflow:visible;border-top:1px solid var(--pt-border);border-left:0;box-shadow:0 -20px 60px #0000003d}.wizard-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.step-body{grid-template-columns:minmax(0,1fr)}.step-button{grid-column:1;grid-row:auto;width:100%;margin-top:10px}.modal-layer,.loading-layer,.credit-confirm-layer{right:0}.modal-layer{z-index:220}.loading-layer{z-index:240}.toast-region{right:24px}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:920px){.topbar{min-height:66px;padding:10px 14px}.brand-copy small{display:none}.auth-status-button.is-authenticated{max-width:180px}}@media(max-width:680px){.topbar{min-height:60px;align-items:center;padding:9px 10px}.topbar-left-group{width:100%;gap:8px}.auth-top-row{gap:5px}.credits-modal,.auth-panel{position:fixed;top:68px;right:10px;left:10px;width:auto;max-height:calc(100dvh - 78px)}.status-badge{display:none}.preview-workspace{min-height:540px;padding:22px 13px 32px}.empty-preview{padding:25px 16px;border-radius:22px}.empty-photo-shape,.empty-icon-shape{width:96px;border-radius:20px}.empty-preview h1{font-size:clamp(31px,9vw,44px)}.preview-card{padding:15px}.image-stage,.source-stage{min-height:210px}.preview-card-actions,.result-actions{display:grid;grid-template-columns:1fr}.preview-card-actions button{width:100%}.result-meta,.wizard-steps,.source-tabs,.detail-grid,.history-grid{grid-template-columns:1fr}.detail-preview{height:auto;aspect-ratio:1}#wizardPanel>h1{font-size:26px}.modal-layer,.loading-layer{align-items:end;padding:58px 0 0}.modal-card{width:100%;max-height:calc(100dvh - 58px);padding:21px 17px calc(22px + env(safe-area-inset-bottom));border-right:0;border-bottom:0;border-left:0;border-radius:22px 22px 0 0}.loading-card{width:calc(100% - 28px);margin:auto 14px}.credit-confirm-layer{align-items:end;padding:58px 0 0}.credit-confirm-card{width:100%;padding:27px 18px calc(22px + env(safe-area-inset-bottom));border-right:0;border-bottom:0;border-left:0;border-radius:22px 22px 0 0}.credit-confirm-actions{grid-template-columns:1fr}.perspective-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.perspective-choice-card{min-height:84px}.custom-perspective-heading{display:grid;gap:9px}.viewer-status{width:fit-content}.perspective-viewer-shell{min-height:260px}.perspective-viewer-canvas{height:260px}.edit-layout{grid-template-columns:1fr}.design-source-context{grid-template-columns:104px minmax(0,1fr);gap:12px}.design-source-preview{height:92px}.edit-preview{min-height:210px}.edit-fields textarea{min-height:145px}.modal-actions{display:grid;grid-template-columns:1fr}.modal-actions button{width:100%}.toast-region{right:14px;bottom:14px;left:14px}.toast{max-width:none}}@media(max-width:560px){.brand-copy{display:none}.brand-mark{width:33px;height:33px;flex-basis:33px;border-radius:11px;font-size:18px}.topbar-divider{height:28px}.auth-status-button,.credits-badge,.buy-credits-button{min-height:30px;padding:0 7px;font-size:9px}.auth-status-button,.auth-status-button.is-authenticated{max-width:105px}.language-button{width:36px;min-width:36px;height:30px;font-size:10px}}@media(max-width:420px){.empty-preview-visual{gap:9px}.empty-photo-shape,.empty-icon-shape{width:78px}.conversion-arrow{font-size:20px}.perspective-grid{grid-template-columns:1fr}.perspective-choice-card{min-height:76px;flex-direction:row;justify-content:flex-start;text-align:left}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
