.wallpaper-studio{--w-panel:#141c28;--w-line:#2b394b;--w-text:#e7edf7;--w-muted:#9caec5;--w-accent:#d2b77e;color:var(--w-text);max-width:1600px;margin:auto;padding:4px 0 28px;font-size:14px;line-height:1.6}
.wallpaper-studio *{box-sizing:border-box;min-width:0}
.wallpaper-studio [hidden]{display:none!important}
#main .wallpaper-studio p{display:block!important}
.wallpaper-studio button,.wallpaper-studio input,.wallpaper-studio select{font:inherit}
.wallpaper-studio button{border:1px solid var(--w-line);border-radius:8px;color:var(--w-text);background:#202c3e;padding:9px 13px;cursor:pointer;min-height:42px}
.wallpaper-studio button:hover:not(:disabled){border-color:var(--w-accent);color:#f5d8a2}
.wallpaper-studio button:disabled{opacity:.45;cursor:default}
.wallpaper-studio button:focus-visible,.wallpaper-studio input:focus-visible,.wallpaper-studio select:focus-visible,.wallpaper-studio canvas:focus-visible{outline:2px solid var(--w-accent);outline-offset:3px}
.wallpaper-studio input:not([type=checkbox]):not([type=range]):not([type=color]),.wallpaper-studio select{width:100%;min-height:42px;border:1px solid var(--w-line);border-radius:7px;background:#0e1622;color:var(--w-text);padding:9px 10px}
.wallpaper-studio input[type=range]{width:100%;accent-color:var(--w-accent);min-height:28px;cursor:pointer}
.wallpaper-studio label{display:block;color:var(--w-muted);font-size:12px;margin-bottom:12px}
.wallpaper-studio label input,.wallpaper-studio label select{margin-top:5px}
.wallpaper-studio input[type=checkbox]{accent-color:var(--w-accent)}
.wallpaper-studio a{color:#e4c893;overflow-wrap:anywhere}
.wallpaper-studio h1,.wallpaper-studio h2,.wallpaper-studio h3,.wallpaper-studio p{margin:0}
.wallpaper-studio h2{font-size:16px}
.wallpaper-studio .w-primary{background:#d2b77e;color:#161b25;font-weight:750;border-color:#d2b77e}
.wallpaper-studio .w-primary:hover:not(:disabled){background:#e4cc9c;color:#0b101b}
.w-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.w-eyebrow{font-size:10px;letter-spacing:2.4px;color:var(--w-accent);margin-bottom:6px!important}
.w-heading h1{font-size:29px;line-height:1.5;letter-spacing:-.5px}
.w-heading h1 span{display:block;font-size:14px;font-weight:400;color:var(--w-muted);margin-top:5px;letter-spacing:0}
.w-heading>div>p:last-child{color:var(--w-muted);font-size:12px;margin-top:10px}
.w-header-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.w-steps{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--w-line);padding-bottom:16px;margin-bottom:16px}
.wallpaper-studio .w-steps button{background:transparent;border-color:transparent;text-align:left;font-size:14px;padding:8px 12px}
.w-steps button span{font-size:12px;margin-right:8px;font-variant-numeric:tabular-nums;opacity:.7}
.wallpaper-studio .w-steps button[aria-current=step]{color:var(--w-accent);border-color:var(--w-line);background:var(--w-panel)}
.w-step-arrow{color:var(--w-muted)}
.w-notice{min-height:42px;border:1px solid var(--w-line);border-left:2px solid var(--w-accent);border-radius:6px;padding:10px 13px;background:#111a26;margin-bottom:24px;font-size:12px;overflow-wrap:anywhere}
.w-notice:empty{display:none}
.w-library-heading,.w-editor-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px}
.w-library-heading h2{font-size:24px;letter-spacing:-.4px}
.w-library-heading p:last-child,.w-editor-heading p{font-size:13px;color:var(--w-muted);margin-top:7px}
.w-library-heading>button,.w-editor-heading>button{flex-shrink:0}
.w-library-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:10px;padding:15px;background:var(--w-panel);border:1px solid var(--w-line);border-radius:10px;margin-bottom:17px}
.w-library-summary{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:var(--w-muted);margin-bottom:12px}
.w-library-summary span:first-child{color:var(--w-text)}
.w-materials{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:20px;align-items:start}
.w-material{border:1px solid var(--w-line);border-radius:12px;overflow:hidden;background:var(--w-panel)}
.wallpaper-studio .w-material-cover{display:block;width:100%;border:0;border-radius:0;padding:0;text-align:left;background:#06080c;min-height:0}
.w-material-preview{display:block;position:relative;aspect-ratio:4/3;background:#06080c;overflow:hidden}
.w-material-preview img{width:100%;height:100%;object-fit:contain;display:block}
.w-material-badge{position:absolute;left:12px;top:12px;border:1px solid #ffffff26;border-radius:5px;background:#111a26e8;padding:3px 8px;font-size:11px;color:#dce5f2}
.w-preview-prompt{position:absolute;right:12px;bottom:12px;border-radius:5px;background:#111a26eb;border:1px solid #ffffff26;padding:5px 9px;font-size:12px;color:#e7edf7}
.w-material-cover:hover .w-preview-prompt{color:var(--w-accent);border-color:var(--w-accent)}
.w-material-body{padding:16px}
.w-material h3{font-size:16px;line-height:1.6;font-weight:650;overflow-wrap:anywhere}
.w-material-kind{font-size:12px;color:var(--w-muted);margin-top:5px!important}
.w-material-meta{font-size:12px;color:#91a6c2;margin-top:4px!important;font-variant-numeric:tabular-nums}
.wallpaper-studio .w-use-material{display:block;width:100%;margin-top:14px;min-height:44px;font-size:14px}
.w-material-source{font-size:12px;line-height:1.8;color:var(--w-muted);margin-top:12px;overflow-wrap:anywhere}
.w-material-source summary{cursor:pointer}
.w-material-source p{margin:8px 0}
.w-material-source a{display:block;margin-top:6px;color:var(--w-accent)}
.wallpaper-studio .w-remove-material{font-size:12px;min-height:32px;padding:4px 8px;margin-top:10px}
.w-library-empty{grid-column:1/-1;text-align:center;padding:56px 20px;border:1px dashed var(--w-line);border-radius:12px}
.w-library-empty h3{font-size:18px}
.w-library-empty p{color:var(--w-muted);margin:10px 0 20px}
.w-load-more{display:block;margin:24px auto 0}
.w-library-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:var(--w-muted);margin-top:28px;border-top:1px solid var(--w-line);padding-top:18px}
.w-library-foot button{flex-shrink:0;font-size:12px}
.w-editor-heading h2{font-size:23px}
.w-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,310px);gap:20px;align-items:start}
.w-panel{background:var(--w-panel);border:1px solid var(--w-line);padding:16px;border-radius:10px;margin:0 0 16px}
.wallpaper-studio fieldset legend{font-size:14px;color:var(--w-text);font-weight:700;padding:0 6px}
.wallpaper-studio fieldset:disabled{opacity:.55}
.w-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.w-panel-title>span{font-size:12px;color:var(--w-muted)}
.w-workspace{border:1px solid var(--w-line);border-radius:10px;background:#101722;overflow:hidden}
.w-toolbar{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px solid var(--w-line);gap:6px}
.w-toolbar>div{display:flex;gap:6px}
.w-toolbar button{font-size:12px;padding:6px 10px;min-height:36px}
.w-stage-wrap{min-height:430px;display:flex;align-items:center;justify-content:center;padding:40px 32px;background-color:#0b111b;background-image:radial-gradient(#28364c 1px,transparent 1px);background-size:17px 17px;overflow:hidden}
.w-stage{position:relative;display:block;width:100%;box-shadow:0 10px 40px #0008;touch-action:none}
.w-stage canvas{width:100%;height:100%;display:block;touch-action:none;background:#000}
.w-selection{position:absolute;border:1px solid #d7bc86;pointer-events:none;z-index:2}
.w-selection button{position:absolute;pointer-events:auto;width:32px;height:32px;min-height:32px;font-size:16px;padding:0;border-radius:50%;background:#dec391;color:#161b25;border:1px solid #fff9;touch-action:none}
.w-selection [data-w-handle=rotate]{left:calc(50% - 16px);top:-38px;cursor:grab}
.w-selection [data-w-handle=scale]{right:-16px;bottom:-16px;cursor:nwse-resize}
.w-canvas-empty{position:absolute;left:0;top:50%;width:100%;transform:translateY(-50%);text-align:center;padding:20px;pointer-events:none;color:#9eafc5;font-size:14px}
.w-canvas-empty small{font-size:12px;display:block;margin-top:8px}
.w-playback{display:flex;gap:10px;align-items:center;padding:14px 14px 4px}
.w-playback button{font-size:12px;flex-shrink:0;padding:5px 11px;min-height:34px}
.w-playback input{flex:1}
.w-playback output{font-size:11px;color:var(--w-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.w-stage-caption{text-align:center;font-size:11px;color:#8599b5;padding:10px 12px 16px}
.w-templates{display:flex;align-items:center;flex-wrap:wrap;gap:7px;border-top:1px solid var(--w-line);padding:13px}
.w-templates span{font-size:12px;color:var(--w-muted);margin-right:2px}
.w-templates button{font-size:12px;min-height:34px;padding:5px 9px}
.w-help{border-top:1px solid var(--w-line);padding:14px;color:var(--w-muted);font-size:12px}
.w-help summary{cursor:pointer;color:#d6c8ac}
.w-help p{margin-top:12px;line-height:1.8}
.w-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.w-color{display:flex!important;align-items:center;justify-content:space-between}
.w-color input{width:43px;height:32px;border:1px solid var(--w-line);padding:2px;background:transparent}
.w-small{font-size:12px;color:var(--w-muted);line-height:1.7;margin-bottom:10px!important}
.w-export-buttons{display:grid;gap:8px}
.w-export-buttons button{width:100%;font-size:13px}
.w-export-progress,.w-download{border:1px solid var(--w-line);background:#172435;padding:14px;border-radius:8px;margin-bottom:16px;overflow-wrap:anywhere}
.w-export-progress progress{width:100%;accent-color:var(--w-accent)}
.w-export-progress span{display:block;font-size:12px;margin:5px 0 10px}
.w-export-progress button{width:100%;font-size:12px}
.w-download strong,.w-download a{display:block;font-size:12px;margin:4px 0}
.w-layers{max-height:260px;overflow:auto}
.w-layer{display:flex;align-items:center;border:1px solid transparent;border-radius:6px;margin-bottom:5px;overflow:hidden}
.w-layer.selected{border-color:#9e875b;background:#2c2b28}
.wallpaper-studio .w-layer button{background:transparent;border:0;padding:8px;min-height:38px;font-size:12px}
.w-layer button:first-child{flex:1;text-align:left;overflow-wrap:anywhere}
.w-layer button:last-child{font-size:17px;width:36px;flex-shrink:0}
.w-layer-name{font-size:13px;margin-bottom:14px!important;color:#deca9f;overflow-wrap:anywhere}
.wallpaper-studio label output{float:right;color:var(--w-text);font-variant-numeric:tabular-nums}
.w-check{display:flex!important;gap:8px;align-items:center;font-size:12px!important}
.w-check input{margin:0!important}
.w-layer-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.w-layer-actions button{font-size:12px;min-height:36px;padding:5px}
.w-sources{border-top:1px solid var(--w-line);font-size:12px;color:var(--w-muted);margin-top:20px;padding:14px 2px}
.w-sources summary{cursor:pointer}
.w-sources p{margin-top:10px}
.wallpaper-studio dialog{max-width:calc(100% - 24px);max-height:90dvh;overflow-y:auto;background:#141c28;color:var(--w-text);border:1px solid var(--w-line);border-radius:14px;padding:22px}
.wallpaper-studio dialog::backdrop{background:#030914d6;backdrop-filter:blur(3px)}
.wallpaper-studio .w-upload{width:500px}
.w-upload .w-panel-title button,.w-preview-dialog .w-panel-title button{font-size:23px;line-height:1;min-height:40px;width:40px;padding:0;flex-shrink:0}
.w-upload-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.w-upload input[type=file]{font-size:12px!important}
.w-upload [data-w-upload-status]{font-size:13px;color:#e7bf8e;margin:12px 0;overflow-wrap:anywhere}
.wallpaper-studio .w-preview-dialog{width:800px}
.w-preview-dialog h2{font-size:18px;overflow-wrap:anywhere}
.w-preview-stage{display:flex;align-items:center;justify-content:center;min-height:180px;height:50dvh;max-height:560px;background:#06080c;border-radius:9px;overflow:hidden}
.w-preview-stage img{width:100%;height:100%;object-fit:contain;display:block}
.w-preview-meta{color:var(--w-muted);font-size:13px;margin-top:12px!important}
.w-preview-status{color:#e7bf8e;font-size:13px;overflow-wrap:anywhere}
.w-preview-status:not(:empty){margin-top:12px}
.w-preview-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
@media(min-width:1500px){.w-stage-wrap{min-height:520px}}
@media(max-width:900px){.w-layout{grid-template-columns:minmax(0,1fr) minmax(235px,280px);gap:14px}.w-materials{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:700px){.w-layout{grid-template-columns:1fr}.w-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.w-settings>.w-panel{margin:0}.w-settings>[data-w-inspector],.w-settings>.w-export-progress,.w-settings>.w-download{grid-column:1/-1}.w-heading{align-items:flex-start;gap:12px}.w-heading h1{font-size:26px}.w-heading h1 span{font-size:13px;max-width:230px}.w-heading>div>p:last-child{font-size:11px}.w-header-actions{flex-direction:column;gap:8px;flex-shrink:0}.w-header-actions button{font-size:12px;padding:8px 10px}.w-library-heading,.w-editor-heading{flex-wrap:wrap}.w-library-tools{grid-template-columns:1fr 1fr;padding:12px}.w-library-tools input{grid-column:1/-1}.w-stage-wrap{min-height:320px;padding:40px 28px}.w-library-heading h2{font-size:22px}.w-library-foot{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.w-materials{grid-template-columns:1fr;gap:20px}.w-material-preview{aspect-ratio:3/2}.w-material-body{padding:16px}.w-material h3{font-size:17px}.w-steps{gap:5px;padding-bottom:12px;margin-bottom:18px}.wallpaper-studio .w-steps button{font-size:13px;padding:8px}.w-steps button span{margin-right:5px}.wallpaper-studio .w-preview-dialog{padding:16px}.w-preview-stage{height:45dvh;min-height:200px}.w-preview-dialog h2{font-size:16px}.w-preview-actions button{font-size:13px;padding:9px 8px}.w-heading{align-items:center;margin-bottom:14px}.w-heading h1{font-size:23px}.w-heading h1 span{display:none}#main .wallpaper-studio .w-heading p,#main .wallpaper-studio .w-library-heading p{display:none!important}.w-header-actions{flex-direction:row;flex-wrap:nowrap;gap:6px;max-width:none}.w-header-actions button{font-size:11px;padding:7px 9px;min-height:36px}.w-library-heading{margin-bottom:16px}.w-library-heading h2{font-size:21px}}
@media(max-width:430px){.w-settings{grid-template-columns:1fr}.w-settings>[data-w-inspector]{grid-column:auto}.w-stage-wrap{min-height:280px}.w-playback{gap:7px;padding:10px}.w-playback output{font-size:10px}.w-templates{gap:6px}.w-templates span{width:100%;margin-bottom:3px}.w-panel{padding:14px}.w-toolbar{padding:8px}.w-toolbar button{font-size:11px;padding:5px 8px}.w-upload-actions button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.wallpaper-studio *{scroll-behavior:auto}}
