@font-face{font-family:Outfit;src:url('./assets/outfit-Outfit[wght].ttf') format('truetype');font-weight:100 900;font-display:swap}
@font-face{font-family:Teko;src:url('./assets/teko-Teko[wght].ttf') format('truetype');font-weight:300 700;font-display:swap}
:root{--navy:#050723;--wine:#751727;--gold:#deb06b;--line:#ffffff20;--muted:#a8b3c8;--paper:#0d1730}
body{background:#050723;color:#f4f5fa;font-family:Outfit,Arial,sans-serif}.psn-strip{height:31px;display:flex;align-items:center;gap:30px;padding:0 30px;background:linear-gradient(110deg,#751727 65%,#112d4b 65%);font:600 14px Teko,Arial;letter-spacing:1px}.psn-strip a{color:#fff;text-decoration:none}.psn-strip span{color:#e9ced3}.psn-strip b{margin-left:auto;color:#deb06b;font-weight:500}header{height:83px;background:#112d4b;border:0;border-bottom:3px solid #751727;padding:0 28px}.brand{color:#fff;font:600 27px Teko;letter-spacing:.6px}.subbrand{font:500 12px Outfit;color:var(--gold);letter-spacing:4px;margin-top:2px}.psn-crest{height:57px;width:38px;object-fit:contain}.header-note{color:#b9c6d8;font-size:10px;letter-spacing:1.5px}.actions button{font-weight:600}button{color:#edf0f7;background:#17263f;border-color:#ffffff22;border-radius:3px}button:hover{background:#233b5b}button.primary{background:#deb06b;border-color:#deb06b;color:#050723;clip-path:polygon(8% 0,100% 0,92% 100%,0 100%);padding-inline:28px;border-radius:0}.primary:hover{background:#efc584}main{height:calc(100vh - 168px);min-height:790px;grid-template-columns:330px minmax(350px,1fr) 240px}.controls{background:#0d1730}.intro{background:linear-gradient(120deg,#75172722,#112d4b00);padding:24px 25px 20px}.eyebrow{color:#deb06b;font-size:10px;letter-spacing:1.7px}h1{font-family:Teko,Arial;font-size:46px;font-weight:600;line-height:.94;letter-spacing:.2px;text-transform:uppercase;margin:13px 0}.intro p{font-size:12px;color:#bac4d6}nav{background:#101e36;border-color:#ffffff16}nav button{color:#bdc7d8;font-size:11px}nav button.active{color:#deb06b;box-shadow:inset 0 -3px #deb06b}.panel{padding:23px 23px;scrollbar-color:#41516c #0d1730}.section-title{font-family:Teko;font-size:23px;font-weight:500;align-items:center}.section-title span{font:10px Outfit}.pattern-grid{gap:9px;grid-template-columns:repeat(2,1fr)}.pattern{padding:6px;font-size:11px;text-align:left}.pattern .sample{height:64px;margin:0 0 7px;border-radius:2px}.pattern.active{border-color:#deb06b;box-shadow:0 0 0 1px #deb06b;background:#23334a}.pattern.active:after{content:'✓';position:absolute;right:10px;bottom:7px;color:#deb06b}.color-row{border-color:#ffffff0c}.color-row label,.field,.check{font-size:12px}.color-row input{border:1px solid #ffffff40;border-radius:3px;overflow:hidden}.hex{color:#bac5d6}.field input[type=text],.field input[type=number],.field select,select{background:#16243b;border-color:#ffffff25;color:#fff}.palette button{border-color:#112d4b}.field output{color:#deb06b}input[type=range],input[type=checkbox]{accent-color:#deb06b}.controls-bottom{background:#101e36}.controls-bottom button{font-size:11px}.stage{background:#efefec}.stage-top,.stage-label{color:#112d4b}.live{color:#112d4b}.stage-label h2{font-family:Teko;font-size:25px;text-transform:uppercase;font-weight:500}.stage-label>span{color:#751727;font-weight:600}.view-controls{background:#112d4bf5;border-color:#ffffff40;box-shadow:0 8px 24px #05072322;border-radius:5px;padding:6px}.view-controls button{color:#dce4ef;font-size:11px}.view-controls button.active{background:#deb06b;color:#050723}.view-controls button:hover{background:#294563}.view-controls span{border-color:#ffffff25}.gesture{color:#536070}.inspirations{background:#080e25;padding:27px 18px}.inspirations h3{font:500 26px Teko;margin:8px 0 17px;text-transform:uppercase}.preset{background:#112039;padding:14px 10px;border:1px solid #ffffff12;border-left:3px solid #751727}.preset.active{border-color:#deb06b;background:#1c2c44}.preset strong{font:500 22px Teko;line-height:1.1}.preset small{font-size:10px;line-height:1.4;color:#b6c0d3}.mini-shirt{width:52px;height:64px}.tip span{color:#deb06b}.tip p,.empty{font-size:11px;color:#aebbd0}.empty{border-color:#ffffff20}.tip{border-color:#751727}.saved-item button:last-child{color:#e9b3bd}footer{height:54px;background:#050723;color:#aab8cc;border-color:#ffffff12}footer button,.import-label{color:#deb06b}footer b{color:#deb06b}.upload{background:#14243e;border-color:#58708c;color:#e8edf7}.upload-placeholder{border-color:#405370;color:#aebbd0}.note{color:#aebbd0;font-size:11px}.row .active{border-color:#deb06b;color:#deb06b}.element-list .active{background:#deb06b;color:#050723}summary{font:500 22px Teko}summary:after{color:#deb06b}.place-active{background:#751727!important}#toast{background:#112d4b;color:#fff;border:1px solid #deb06b55}dialog{background:#0d1730;color:#fff;border-color:#deb06b55}dialog h3{font-family:Teko}dialog::backdrop{background:#050723bb}.focus-button{position:absolute;top:57px;right:24px;color:#112d4b;background:#ffffffc9;font-size:10px;border:1px solid #112d4b22;z-index:3}.studio-focus main{display:block;height:calc(100vh - 114px);min-height:0}.studio-focus .controls,.studio-focus .inspirations,.studio-focus footer{display:none}.studio-focus .stage{height:100%;min-height:0}.studio-focus .stage-label{left:40px}.pattern-filters{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:14px}.pattern-filters button{font-size:10px;padding:6px 8px}.pattern-filters button.active{background:#deb06b;color:#050723;border-color:#deb06b}
@media(min-width:1600px){main{grid-template-columns:360px minmax(400px,1fr) 270px}}
@media(max-width:1100px){main{grid-template-columns:300px 1fr;height:auto;min-height:0}.stage{min-height:800px}.inspirations{display:block;grid-column:1/-1;border-top:1px solid #ffffff20}#presets{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.header-note{display:none}.inspirations .tip{display:none}.saved-head{margin-top:10px}.psn-strip b{display:none}footer{height:auto;flex-wrap:wrap}}
@media(max-width:700px){.psn-strip{padding:0 14px;height:26px;font-size:12px}.psn-strip span{display:none}header{height:70px;padding:0 13px;gap:10px}.brand{font-size:22px;gap:7px}.psn-crest{height:42px;width:28px}.subbrand{font-size:9px;letter-spacing:3px}.actions{gap:5px}.actions button{font-size:10px;padding:9px}.actions .primary{padding-inline:17px}.actions span{display:none}main{display:flex;flex-direction:column;height:auto}.stage{order:0;height:510px;min-height:510px}.controls{order:2;border:0}.inspirations{order:1;padding:18px 14px}.inspirations>.eyebrow,.inspirations>h3{display:none}#presets{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.preset{margin:0;padding:10px}.preset strong{font-size:21px}.preset small{font-size:9px}.mini-shirt{height:46px;width:38px}.saved-head,#saved{display:none}.stage-top{padding:20px 15px}.focus-button{top:43px;right:13px}.stage-label{bottom:93px;left:16px}.stage-label h2{display:none}.view-controls{bottom:38px;gap:1px}.view-controls button{padding:9px;font-size:10px}.gesture{bottom:9px;font-size:8px}.intro{padding:23px}h1{font-size:44px}.pattern-grid{grid-template-columns:repeat(3,1fr)}.pattern .sample{height:60px}.pattern{font-size:10px}.panel{padding:22px;max-height:none}.controls-bottom{position:sticky;bottom:0;z-index:3}.studio-focus main{height:calc(100dvh - 96px)}.studio-focus .stage{height:100%;min-height:0}.studio-focus .inspirations{display:none}footer{padding:17px;gap:12px}footer span:nth-child(2){display:none}}

.psn-logo{width:59px;height:57px;object-fit:contain}@media(max-width:700px){.psn-logo{width:40px;height:40px}.brand{font-size:20px}.actions .primary{padding-inline:12px}}

.stage-label{top:65px;bottom:auto;left:28px;max-width:190px}.stage-label h2{font:400 13px Outfit;margin:5px 0;color:#596779;text-transform:none}.stage-label>span{font:600 24px Teko;letter-spacing:.8px;color:#112d4b}@media(max-width:700px){.stage-label{top:50px;bottom:auto;left:16px}.stage-label>span{font-size:18px}}

.layer-add{display:grid;grid-template-columns:1fr 1fr;gap:7px}.layer-add button{font-size:11px}.layer-list{display:grid;gap:5px;margin:18px 0}.layer-list button{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.layer-list button span{color:#deb06b;margin-right:12px}.layer-list .active{border-color:#deb06b;background:#233b5b}#tabs{padding:0 3px}#tabs button{font-size:9px;padding:16px 2px}.color-row:has([data-key^="layer."]){margin:14px 0}

.gallery-dialog{width:min(1180px,95vw);max-height:92dvh;padding:28px}.gallery-toolbar{display:flex;justify-content:space-between;gap:20px;margin:24px 0}.gallery-toolbar select{width:190px}.gallery-toolbar #galleryCategories{display:flex;gap:6px;flex-wrap:wrap}.gallery-toolbar button.active{background:#deb06b;color:#050723}#galleryGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gallery-card{border:1px solid #ffffff20;background:#112039;border-radius:6px;overflow:hidden}.gallery-preview{display:block;padding:0;width:100%;border:0;background:#dededc}.gallery-preview img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.gallery-card-info{padding:17px}.gallery-card h4{font:500 26px Teko;margin:7px 0 0}.gallery-card p{color:#b6c0d3;margin:0 0 8px;font-size:12px}.rating{display:flex;gap:2px;margin:9px 0}.rating button{border:0;background:none;font-size:25px;color:#71809a;padding:0 4px}.rating button.selected,.rating button:hover{color:#deb06b}.gallery-card small{display:block;color:#b7c4d9;margin-bottom:14px}.delete-public{margin-top:12px;background:none;border:0;color:#d5a4b0;font-size:10px;padding:4px}.gallery-pager{display:flex;justify-content:center;gap:12px;margin:24px}#shareStatus,#galleryStatus{line-height:1.6;color:#deb06b}#shareForm input,#shareResult input{width:100%;background:#16243b;color:#fff;border:1px solid #ffffff25;padding:10px}#shareLink{font-size:11px}.header-note{margin-left:0;font-size:9px}.actions{gap:7px}.actions button{font-size:11px}@media(max-width:1100px){#galleryGrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){header{height:112px;flex-wrap:wrap;align-content:center;gap:9px}.brand{width:100%;font-size:20px}.subbrand{display:inline;margin-left:10px}.psn-logo{width:32px;height:32px}.actions{width:100%;margin:0;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.actions button{padding:8px 4px;font-size:10px}.gallery-dialog{padding:17px}.gallery-toolbar{flex-direction:column;gap:10px}.gallery-toolbar select{width:100%}#galleryGrid{grid-template-columns:1fr}.studio-focus main{height:calc(100dvh - 138px)}}

/* psn439: pas z wideo Onnetwork i reklama pod kreatorem */
.psn-kit-media{display:grid;grid-template-columns:minmax(0,640px) minmax(0,1fr);gap:24px;align-items:start;padding:22px 30px;background:#050723;border-top:1px solid #ffffff14}.psn-kit-media[hidden]{display:none}.psn-kit-onn{min-height:200px;border-radius:10px;overflow:hidden;background:#0b1430}.psn-kit-onn.pusty{min-height:0;display:none}.psn-kit-ad{min-height:120px;min-width:0}.psn-kit-ad>span{display:block;font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#7f8aa3;margin-bottom:6px}@media(max-width:1100px){.psn-kit-media{grid-template-columns:1fr;padding:18px}}@media(max-width:700px){.psn-kit-media{order:5;padding:16px}.psn-kit-onn{min-height:calc((100vw - 32px)*9/16)}}
/* psn439: tablet (701-1100 px) - podglad 3D przyklejony obok panelu, zamiast rozciagac sie na cala wysokosc panelu */
@media(min-width:701px) and (max-width:1100px){main>.stage{position:sticky;top:0;align-self:start;height:min(100vh,860px);min-height:560px}}
/* psn439: telefon - podglad przyklejony u gory ekranu, zeby widziec zmiany przy przewijaniu panelu */
@media(max-width:700px){main>.stage{position:sticky;top:0;z-index:20;height:min(52vh,510px);min-height:300px;box-shadow:0 8px 18px rgba(0,0,0,.35)}main>.stage .gesture{display:none}main>.stage .stage-top{padding-top:10px;padding-bottom:0}}
#shareWho a{color:#deb06b;font-weight:700}
