/* Adaptive application shell. Each route owns its content, not a mock device. */
html,body{height:100%;overflow:hidden;overscroll-behavior:none}body{height:100dvh;display:grid;grid-template-rows:76px minmax(0,1fr);--safe-bottom:env(safe-area-inset-bottom,0px)}.topline,body>footer,#mobile-preview-jump{display:none!important}.site-header{position:relative;height:76px;min-height:0;padding:0 4%;background:var(--paper)}.brand img{width:92px;height:48px}#app-content{width:100%;max-width:none;margin:0;min-height:0;overflow:hidden;position:relative}main>[data-page]{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain}.section{padding:clamp(24px,4vh,55px) clamp(24px,5vw,110px)}.app-nav,.phone-studio-toolbar,#phone-customize{display:none}main #home{overflow:hidden;display:grid;grid-template-rows:minmax(0,1fr) 45px}.hero{height:100%;min-height:0;grid-template-columns:1fr 1fr}.hero-text{padding:clamp(22px,5vh,65px) 9%;display:flex;flex-direction:column;justify-content:center;min-height:0}.hero h1{font-size:clamp(48px,10vh,115px);letter-spacing:-.055em}.hero .eyebrow{margin-bottom:clamp(12px,2vh,25px)}.hero-description{margin:clamp(12px,3vh,28px) 0;font-size:12px}.hero-text>.button{align-self:flex-start;flex-shrink:0}.hero-meta{margin-top:clamp(12px,3vh,30px);padding:16px 0}.hero-visual{min-height:0;height:100%}.hero-garment{width:min(95%,75vh);height:auto;aspect-ratio:1}.hero-garment img{width:100%;height:100%;object-fit:contain}.marquee{height:45px;padding:15px 0}.marquee>div{font-size:10px}.visual-caption{font-size:8px}.panel-sheet,.panel-sheet:hover{transform:none!important;box-shadow:0 8px 25px #00000008}.template-section{grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr);gap:5%;align-content:center}.template-copy h2{font-size:clamp(38px,4vw,64px)}.template-actions{gap:18px}.panel-sheet{padding:20px;max-width:820px;width:100%;justify-self:center}.template-copy>p:not(.eyebrow){max-width:440px}.template-section .small-copy{max-width:450px}.studio{display:flex;flex-direction:column}.studio-grid{flex:1;min-height:0;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);gap:32px}.viewer-column{min-height:0;display:flex;flex-direction:column}.viewer{flex:1;height:auto;min-height:280px}.viewer-bottom{flex-shrink:0}.editor{height:100%;max-height:none!important;overflow:auto;min-height:0;padding-right:10px!important;scrollbar-width:thin}.section-head{flex-shrink:0}.section-head h2{font-size:32px}.section-head .eyebrow{margin-bottom:10px}.editor-steps{margin-bottom:18px}.editor-heading{padding-bottom:15px}#editor details{min-height:210px}.team{background:var(--paper);color:var(--ink);display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);gap:8%;align-content:center;align-items:center}.team h2{font-size:clamp(48px,5vw,82px);letter-spacing:-3px}.team h2 em{color:var(--red)}.team p:not(.eyebrow){color:#73746a;margin:24px 0;font-size:13px}.team-stats{display:flex;gap:50px;margin-top:35px;padding-top:24px;border-top:1px solid var(--line)}.team-stats strong{display:block;font-size:34px;font-weight:400}.team-stats span{font-size:8px;letter-spacing:1.5px}.team .team-intro>.small-copy{font-size:10px}.team-workspace{background:#e8e5dd;border:1px solid var(--line);padding:25px;max-height:100%;overflow:auto}.team-workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d4d0c5;padding-bottom:20px}.team-workspace-heading h3{font-size:18px;font-weight:400}.team-workspace-heading button{font-size:8px;letter-spacing:1px}.lineup-empty{text-align:center;padding:15px}.lineup-empty img{width:240px;height:220px;object-fit:contain}.lineup-empty h3{font-size:20px;font-weight:400}.lineup-empty p{font-size:12px!important;margin:13px 0!important}.lineup-empty a{font-size:9px;display:inline-block;padding:15px;letter-spacing:1px}.team-note{display:flex;justify-content:space-between;font-size:7px;letter-spacing:1px;border-top:1px solid #d4d0c5;padding-top:20px;margin-top:15px}.lineup-card{display:flex;gap:20px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.lineup-card img{width:90px;height:100px;object-fit:contain}.lineup-card h3{font-size:16px}.lineup-card h3 span{color:var(--red);margin-left:8px}.lineup-card p{font-size:11px!important;margin:8px 0!important}.team-workspace:has(.lineup-card){align-self:stretch}.story-art,.graphic-type{height:clamp(220px,45vh,440px)}.story-garment{width:min(100%,440px)}
@media(max-height:700px) and (min-width:761px){.hero-description{line-height:1.5}.hero-meta{display:none}.hero h1{font-size:clamp(40px,10vh,76px)}.section{padding-block:22px}.section-head{margin-bottom:18px}.team-stats{margin-top:20px;padding-top:15px}.template-copy>p:not(.eyebrow){margin-top:16px}.template-actions{margin-top:18px;gap:12px}.template-copy h2{font-size:38px}.team h2{font-size:50px}.lineup-empty img{height:150px}.team-workspace{padding:18px}}
/* Phone screens occupy the browser viewport, including safe areas. */
@media(max-width:760px),(pointer:coarse) and (max-height:500px) and (max-width:1000px){
body{grid-template-rows:calc(58px + env(safe-area-inset-top,0px)) minmax(0,1fr) calc(64px + var(--safe-bottom))}.site-header{height:100%;display:flex;padding:env(safe-area-inset-top,0px) 22px 0;gap:15px}.site-header nav{display:none}.site-header .brand img{width:77px;height:40px}.site-header #open-bag{font-size:11px}#bag-count{height:25px;width:25px;margin-left:8px}.app-nav{display:flex;justify-content:space-around;align-items:stretch;gap:0;padding:0 5px var(--safe-bottom);border-top:1px solid var(--line);background:var(--paper);z-index:9}.app-nav a{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:8px 0;font-size:8px;letter-spacing:.7px;text-transform:uppercase}.app-nav svg{width:22px;height:22px}.app-nav a::after{left:35%;right:35%;bottom:3px}.section{padding:24px 20px}.page{min-height:0}main #home{display:block;height:100%;overflow:hidden}.hero{display:block;position:relative;height:100%;background:#e8e5de}.hero-text{position:absolute;inset:0;padding:25px 23px;justify-content:flex-start;pointer-events:none}.hero-text .eyebrow{font-size:7px;letter-spacing:1.6px;margin-bottom:16px}.hero h1{font-size:clamp(33px,5.9dvh,57px);line-height:.97;letter-spacing:-2px;max-width:75%}.hero-description,.hero-meta,#home .marquee,.hero-number,.visual-caption{display:none}.hero-text>.button{position:absolute;bottom:20px;left:23px;right:23px;min-height:48px;pointer-events:auto}.hero-visual{position:absolute;inset:22% 0 75px;background:transparent;height:auto;overflow:hidden}.hero-garment{width:auto;height:100%;max-width:100%;aspect-ratio:1;animation:phone-float 7s ease-in-out infinite}.hero-garment>img{height:100%;width:100%;object-fit:contain}.hero-ring{border-width:22px;width:110%;height:43%;top:37%;left:8%;opacity:.9}.hero-logo{height:5%}.hero-text{z-index:2}.hero-text h1,.hero-text .eyebrow{width:max-content;max-width:100%}@keyframes phone-float{50%{transform:translateY(5px) rotate(-3deg)}}
.section-head h2{font-size:28px}.section-head>p{display:none}.story-grid{grid-template-columns:1fr 1fr;gap:22px 12px}.story-art{height:210px}.story-garment{width:100%;max-width:270px}.artwork-card{grid-column:1/-1}.graphic-type{height:210px}.story-card>div:last-child:not(.graphic-type){gap:9px}.template-section{display:flex;flex-direction:column;gap:26px;align-items:stretch;justify-content:flex-start}.template-copy h2{font-size:38px}.template-copy>p:not(.eyebrow){font-size:11px;line-height:1.7;margin-top:16px}.template-actions{gap:16px}.panel-sheet{padding:10px;order:-1;margin-top:0}.template-copy .eyebrow{margin-bottom:14px}.template-copy h2 br{display:none}.template-copy h2 em{margin-left:8px}.template-section .small-copy{margin-bottom:10px}.team{display:flex;flex-direction:column;align-items:stretch;gap:24px;justify-content:flex-start}.team h2{font-size:44px;letter-spacing:-2px}.team p:not(.eyebrow){max-width:none;font-size:12px;margin:18px 0}.team-stats{margin-top:22px;padding-top:17px}.team-intro>.eyebrow{font-size:7px;margin-bottom:15px}.team-workspace{flex-shrink:0;padding:18px;max-height:none;overflow:visible}.team .team-intro>.small-copy{margin-bottom:0}.lineup-empty img{height:180px}.lineup-empty h3{font-size:18px}.team-note{letter-spacing:.3px;font-size:7px}
/* Preview and editor are separate app screens, with the same live design. */
#studio{padding:0;overflow:hidden}.studio>.section-head{display:none}.studio-grid{display:block;position:relative;height:100%;min-height:0}.viewer-column{height:100%;padding-bottom:75px}.viewer{border:0;border-bottom:1px solid var(--line);min-height:0;flex:1}.viewer-top{top:0;padding:17px 20px}.viewer-bottom,.model-note{display:none}.viewer-help{font-size:7px;bottom:67px}.view-controls{bottom:18px}.view-controls button{padding:11px 18px}.zoom{bottom:22px;right:16px}#scene{inset:38px 0 83px}.editor{display:none;height:100%;padding:0 20px 24px!important;max-height:none;overflow:auto}.editor-steps{position:sticky;top:0;margin-bottom:20px;z-index:4}.editor-heading{display:none}#editor details{min-height:0;padding-bottom:8px}.control-body{padding-bottom:12px!important}.step-controls{margin:14px 0}.phone-studio-toolbar{height:48px;display:none;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--line);font-size:9px;letter-spacing:1px;flex-shrink:0}.phone-studio-toolbar button{font-size:9px;padding:12px 0}#phone-customize{display:flex;position:absolute;left:20px;right:20px;bottom:14px;width:calc(100% - 40px);min-height:48px}body[data-studio-screen=edit] .phone-studio-toolbar{display:flex}body[data-studio-screen=edit] .viewer-column,body[data-studio-screen=edit] #phone-customize{display:none}body[data-studio-screen=edit] .editor{display:block}body[data-studio-screen=edit] .studio-grid{height:calc(100% - 48px);flex:none}.two-fields input:not([type=color]),.two-fields select{font-size:16px}.editor .add{min-height:48px}.editor-links{margin:18px 0}.swatches button{height:34px;width:34px}.swatches{gap:18px}.designs button{padding:14px 4px}.app-nav a[aria-current]{color:var(--red)}dialog{max-height:calc(100dvh - 40px);padding:22px}#toast{bottom:calc(75px + var(--safe-bottom))}
}
@media(max-width:360px){.story-art{height:170px}.hero-text{padding-top:18px}.hero h1{font-size:34px}.hero-text .eyebrow{font-size:6px}.view-controls button{padding:10px 13px}.team-workspace-heading h3{font-size:16px}.team-workspace-heading button{font-size:7px}}
@media(max-height:500px) and (max-width:1000px){body{grid-template-rows:48px minmax(0,1fr) 52px}.hero-visual{inset:0 0 0 45%}.hero-text{padding:12px 23px}.hero h1{font-size:32px}.hero-text .eyebrow{margin-bottom:9px}.hero-text>.button{right:auto;width:40%;bottom:12px;min-height:40px;padding:10px 15px}.hero-ring{border-width:15px}.viewer-top{padding:10px 20px}.viewer-help{display:none}.viewer-column{padding-bottom:60px}.view-controls{bottom:8px}.view-controls button{padding:7px 14px}#scene{inset:25px 0 50px}.viewer{min-height:0}#phone-customize{min-height:40px;bottom:10px;padding:8px 18px}.zoom{bottom:10px}}
@media(prefers-reduced-motion:reduce){.hero-garment{animation:none!important;transform:none}}
.app-nav a:first-child{display:flex}
@media(max-width:760px) and (min-height:501px){.hero-visual{top:30%}}
@media(min-width:761px){.studio-grid{align-items:stretch;grid-template-rows:minmax(0,1fr)}}
#shape-editor{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}#shape-editor h4{font-size:10px;letter-spacing:1.5px;margin:0 0 12px}.shape-tools,.shape-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.shape-tools button,.shape-actions button{border:1px solid var(--line);padding:10px;font-size:9px;text-transform:uppercase}.shape-tools button:hover{border-color:var(--red);color:var(--red)}#shape-pad{display:block;width:100%;max-width:360px;height:auto;touch-action:none;margin:14px auto;border:1px solid var(--line)}.shape-side{display:flex;align-items:center;gap:15px;font-size:9px;letter-spacing:1px;margin:14px 0}.shape-side select{min-width:0;flex:1;padding:9px;border:1px solid var(--line);background:transparent}#editor>.model-import{min-height:0;margin:0 0 20px;padding:0 0 14px;border-bottom:1px solid var(--line)}#editor>.model-import summary{pointer-events:auto;padding:10px 0;margin:0;font-size:9px}#editor>.model-import summary span{margin-left:auto}.model-upload{display:inline-flex;border:1px solid var(--ink);padding:12px;margin:12px 0;cursor:pointer;font-size:9px;letter-spacing:1px}.model-upload input{position:absolute;width:1px;height:1px;opacity:0}.model-upload:focus-within{outline:2px solid var(--red)}#model-status{overflow-wrap:anywhere}.shape-actions button:disabled{cursor:default}.model-import .small-copy{font-size:10px}.shape-side select{font-size:13px}
.text-entry{display:flex;flex-direction:column;gap:10px;font-size:9px;letter-spacing:1px;margin-bottom:16px}.text-entry textarea{width:100%;min-height:80px;resize:vertical;padding:12px;background:transparent;color:var(--ink);border:1px solid var(--line);font:16px Arial,sans-serif;letter-spacing:0}.text-entry .small-copy{letter-spacing:0}.text-styles{display:flex;gap:25px;margin-bottom:12px}[data-shape-tool=text]{border-color:var(--ink);font-weight:600}

.canvas-tools{display:flex;align-items:center;justify-content:center;gap:8px}.canvas-tools button{min-width:40px;min-height:40px;border:1px solid var(--line);font-size:11px;padding:8px}.canvas-tools output{min-width:46px;text-align:center;font-size:11px}.canvas-tools button[aria-pressed=true]{background:var(--ink);color:var(--paper)}#shape-editor:has(#canvas-pan[aria-pressed=true]) #shape-pad{cursor:grab}.logo-editor{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}#edit-logos{padding:12px 0;font-size:10px;text-decoration:underline}

#zone-editor{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}#zone-editor h4{font-size:10px;letter-spacing:1.5px;margin:0 0 12px}.zone-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.zone-control{border:1px solid var(--line);padding:12px}.zone-control label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}.zone-control input{width:32px;height:30px;border:0;padding:0;background:transparent;cursor:pointer}.zone-control button{display:block;font-size:8px;letter-spacing:.5px;margin-top:10px;text-decoration:underline}.zone-control button:disabled{opacity:.5;text-decoration:none;cursor:default}#zones-reset{border:1px solid var(--line);padding:12px;font-size:9px;margin-bottom:12px}

#identity-editor,.font-import,.esports-library{border-top:1px solid var(--line);padding-top:20px;margin-top:20px}#identity-editor h4,.font-import h4,.esports-library h4{font-size:10px;letter-spacing:1.5px;margin:0 0 14px}.esports-library>button{border:1px solid var(--line);padding:12px;font-size:9px}#identity-editor select{max-width:100%}.font-import input{position:absolute;opacity:0;width:1px;height:1px}
