:root{--bg-gradient:linear-gradient(135deg,#6e63e6,#8b79f5 50%,#b39dfc);--card-bg:rgba(255,255,255,0.9);--border-radius:14px;--shadow:0 4px 20px rgba(0,0,0,0.08);--text-primary:#1e1e2f;--text-muted:#5a5a6e;--accent:#4f46e5;--accent-hover:#4338ca;--danger:#e74c3c}body{background:var(--bg-gradient);font-family:Inter,Segoe UI,sans-serif;color:var(--text-primary)}.pro-wrapper{padding:10px 40px 40px;min-height:100vh;background:var(--bg-gradient);flex-direction:column;gap:20px}.pro-header,.pro-wrapper{display:flex;align-items:center}.pro-header{justify-content:space-between;width:600px;background:var(--card-bg);border-radius:var(--border-radius);padding:18px 28px;box-shadow:var(--shadow)}.pro-title{font-size:22px;font-weight:600}.pro-title,.pro-tokens{color:var(--text-primary)}.pro-tokens{display:flex;align-items:center;gap:8px;font-weight:500}.pro-tokens.zero .value{color:var(--danger);font-weight:600}.pro-back{color:white;text-decoration:none;font-size:14px;align-self:flex-start;margin-bottom:-10px;transition:opacity .2s}.pro-back:hover{opacity:.8}.pro-main{display:flex;gap:12px;width:800px;justify-content:center;align-items:flex-start}.pro-left{flex:1 1 560px;min-width:420px;display:flex;flex-direction:column}.pro-right{flex:0 0 200px;min-width:150px}.card{background:var(--card-bg);border-radius:10px;box-shadow:0 4px 10px rgba(0,0,0,.08);padding:5px;display:flex;flex-direction:column;gap:10px;border:1px solid rgba(0,0,0,.05)}.params-card,.prompt-card{min-height:150px}.card-title{font-size:13px;font-weight:400;color:var(--text-primary);text-align:center;margin-bottom:12px}.muted{color:var(--text-muted)}.small{font-size:13px}.prompt-input{width:100%;min-height:40px;border:1px solid #dcdcdc;border-radius:10px;padding:12px;font-size:14px;resize:vertical;font-family:inherit;line-height:1.45;box-shadow:inset 0 1px 2px rgba(0,0,0,.02);transition:border-color .2s,box-shadow .2s;overflow-y:auto}.prompt-input:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 3px rgba(147,197,253,.25)}.btn.primary{width:100%;height:36px;background:linear-gradient(90deg,#a7f3d0,#93c5fd);color:white;border:none;border-radius:8px;padding:0 12px;font-size:13px;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s,opacity .2s;box-shadow:0 4px 14px rgba(147,197,253,.3)}.btn.primary:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(147,197,253,.4)}.btn.primary:disabled{opacity:1;cursor:not-allowed;background:linear-gradient(90deg,#cfd3db,#d7dbe3);box-shadow:0 2px 8px rgba(0,0,0,.1)}.error,.status{font-size:13px;padding:6px 10px;border-radius:8px;font-weight:500}.status{background:rgba(123,104,238,.1);color:var(--accent)}.error{background:rgba(231,76,60,.1);color:var(--danger)}.results-card{display:flex;flex-direction:column}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:10px}.thumb-wrap{background:#f7f7fb;border-radius:10px;overflow:hidden;box-shadow:var(--shadow)}.thumb{width:100%;height:100%;object-fit:cover}.empty{text-align:center;color:var(--text-muted);font-size:14px;padding:30px 0}.params-card .grid{display:grid;grid-template-columns:1fr;row-gap:10px}.params-card input[type=number],.params-card input[type=text],.params-card select{width:100%;padding:8px 10px;border:1px solid #dcdcdc;border-radius:8px;font-size:14px;font-family:inherit;transition:box-shadow .2s,border-color .2s}.params-card input[type=checkbox]{margin-right:6px}.inline{display:flex;align-items:center;gap:8px}.params-footer{margin-top:8px;text-align:center}.pro-results{width:800px;margin:10px auto 0;display:flex;align-items:center;justify-content:center}.result-viewer{background:transparent;border-radius:var(--border-radius);border:1px solid rgba(0,0,0,.12);box-shadow:var(--shadow);padding:18px;max-width:680px;width:100%;position:relative;backdrop-filter:blur(6px)}.pro-main-floating{position:fixed;bottom:40px;left:50%;transform:translateX(-50%);z-index:10}.generate-button{width:100%;margin-top:12px}@media (max-width:900px){.pro-main-floating{position:static;transform:none;left:auto;bottom:auto;z-index:auto}}.viewer-scroll{max-height:520px;overflow:auto;border:1px solid rgba(0,0,0,.06);border-radius:12px;padding:8px;background:rgba(255,255,255,.03);scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.25) transparent}.viewer-scroll::-webkit-scrollbar{width:8px;height:8px}.viewer-scroll::-webkit-scrollbar-track{background:transparent}.viewer-scroll::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:8px;border:2px solid transparent}.viewer-scroll::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.35)}.viewer-image{width:100%;height:auto;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18)}.viewer-url{margin-top:10px;font-size:12px;word-break:break-all}.viewer-empty,.viewer-url{text-align:center;color:var(--text-muted)}.viewer-empty{font-size:14px;padding:18px 0}.result-viewer:after{content:none}@media (max-width:1000px){.pro-results{width:100%;padding:0 14px}.result-viewer{max-width:100%}.pro-main{flex-direction:column}.pro-header,.pro-main{width:100%}}@media (max-width:1024px){.restore-image-page .fixed-result{position:static;top:auto;left:auto;width:100%}.restore-image-page .pro-main{padding-right:0}}.restore-image-page .fixed-result{position:absolute;top:0;right:0;width:430px;z-index:5}.restore-image-page .pro-main{padding-right:460px;position:relative}@media (max-width:1024px){.restore-image-page .fixed-result{position:static;top:auto;right:auto;width:100%}.restore-image-page .pro-main{padding-right:0}}.restore-image-page .prompt-card{min-height:360px}.restore-image-page .params-card{min-height:140px}.restore-image-page .result-card{min-height:360px}.restore-image-page .thumb-wrap{width:70px;height:70px}.restore-image-page .thumb-wrap img{width:70px;height:70px;object-fit:cover}@media (max-width:1099px){.restore-image-page .fixed-result{position:static;top:auto;right:auto;width:auto}.restore-image-page .pro-main{grid-template-columns:1fr;padding-right:0}}.restore-image-page .pro-wrapper{min-height:100vh;scrollbar-gutter:stable both-edges;overflow-anchor:none}.restore-image-page .pro-main{display:grid;grid-template-columns:minmax(360px,520px) 430px;column-gap:24px;width:min(1000px,92vw);margin:80px auto 40px;align-items:start}