/* References: design/refs/amie, design/refs/upload-zone-x.
   Mobile structure approved in stickerbanner-prototype/mobile-20261018.
   Shared desktop rules below only accommodate the existing controls' new wrappers. */
.mobile-site-nav,.mobile-file-row,.mobile-export-spec,.mobile-templates,.mobile-sticker-tab,.mobile-copy,.mobile-png-notes,.pack-save,.pack-count,.pack-duration,.mobile-result-heading{display:none}
.steps-disclosure{grid-column:1/-1;grid-row:1;border:0}
.steps-disclosure>summary{display:none}
.pack-body{display:flex;flex-direction:column;flex:1;min-width:0}
body.landing .export-primary{display:none}

@media(max-width:767px){
 body.home-page,body.template-guide-page{background:#fff}
 .home-page header,.template-guide-page header{height:60px;min-height:60px;padding:0 16px;border-bottom:1px solid var(--line)}
 .home-page .wordmark,.template-guide-page .wordmark{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:18px;letter-spacing:-.035em}
 .home-page .wordmark span,.template-guide-page .wordmark span{font-size:24px;font-weight:400}
 .mobile-site-nav{position:absolute;right:16px;top:8px;display:flex;align-items:center;min-height:44px}
 .mobile-site-nav a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:13px;font-weight:600;color:var(--brand);text-decoration:none}
 .mobile-site-nav svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .mobile-copy{display:inline}.no-wrap{white-space:nowrap}
 .desktop-copy{display:none}
 .home-page main{padding:0 16px}
 .home-page .workspace-a3{max-width:none;padding-top:20px;gap:20px;grid-template-areas:"intro" "card" "left"}
 .home-page .intro{text-align:left;padding:0}
 .home-page .intro h1{font-size:28px;line-height:34px;font-weight:650;letter-spacing:-.035em;margin:0 0 8px}
 .home-page .intro>p{font-size:15px;line-height:23px;margin:0;color:var(--muted)}
 .home-page .hero-steps{display:none}
 .home-page .upload-card{border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:none;text-align:left}
 .home-page .count-picker{justify-content:space-between;gap:16px;margin:0 0 14px}
 .home-page .count-label{font-size:14px;color:var(--text)}
 .home-page .count-picker .count{flex:0 0 auto;width:auto;height:50px;border-radius:10px;background:#f7f8fa;padding:3px;gap:4px}
 .home-page .count button{min-width:48px;height:44px;min-height:44px;padding:8px 12px;border-radius:8px;font-size:14px}
 .home-page #browse.upload-big,.home-page .upload-card #generate{min-height:52px;height:auto;padding:12px 14px;border-radius:12px;font-size:16px;line-height:24px}
 .home-page .upload-card p.trust{font-size:12px;font-weight:400;line-height:20px;margin-top:8px;gap:5px}
 .home-page .upload-card p.trust svg{width:13px;height:13px}
 .home-page .upload-card hr,.home-page .desktop-file-tip{display:none}
 .home-page.landing #source-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
 .home-page.landing #count-picker,.home-page.landing #browse,.home-page.landing .trust{grid-column:1/-1}
 .home-page.landing #count-picker{margin-bottom:4px}
 .home-page.landing .upload-card .file-formats{grid-column:1;align-self:center;margin:0;font-size:11px;line-height:18px;text-align:left}
 .home-page.landing #try-example{grid-column:2;font-size:12px;min-height:44px;padding:0;text-align:right;white-space:nowrap}
 .home-page .left-col{gap:10px}
 .home-page #drop-zone.stage{padding:12px;border:1px solid var(--line);border-radius:16px;background:#f7f8fa}
 .home-page .phone{padding-top:0;border-radius:0;box-shadow:none;background:transparent}
 .home-page .phone.dark{background:#000;border-radius:10px}
 .home-page .phone .canvas-wrap{padding:0}
 .home-page .mock-title{padding:0 0 12px;font-size:13px;gap:8px}
 .home-page .mock-avatar{width:28px;height:28px;flex-basis:28px;display:flex;align-items:center;justify-content:center;background:#e5e7eb;color:#626773}
 .home-page .mock-avatar::after{content:"S";font-size:12px;font-weight:600}
 .mobile-sticker-tab{display:inline-flex;align-items:center;margin-left:auto;min-height:26px;padding:3px 9px;border-radius:999px;color:var(--brand);background:var(--soft);font-size:11px;font-weight:600}
 .home-page .mock-tabs{display:none}
 .home-page p.example-credit{margin:8px 0 0;font-size:11px!important;line-height:16px;text-align:left}
 .home-page.editing .workspace-a3{grid-template-areas:"intro" "file" "left" "hints" "card" "options";padding-bottom:112px}
 .home-page.editing .left-col{display:contents}
 .home-page.editing .live-preview{grid-area:left}
 .home-page.editing .preview-footnote{grid-area:hints;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-12px 0 -6px;font-size:12px!important;line-height:20px}
 .home-page.editing .preview-footnote #example-video{display:none}
 .home-page .mobile-reset{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:12px;font-weight:600}
 .home-page.editing .more{grid-area:options;border-bottom:1px solid var(--line);margin:0;width:100%}
 .home-page.editing .more>summary{display:flex;align-items:center;justify-content:space-between;text-align:left;min-height:48px;padding:0;font-size:13px;color:var(--brand)}
 .home-page.editing .more>summary::after{content:"+";font-size:20px;font-weight:400}
 .home-page.editing .more[open]>summary::after{content:"\2212"}
 .home-page.editing .upload-card{border:0;border-radius:0;padding:0 2px}
 .home-page.editing #change-file{display:none}
 .home-page.editing .mobile-file-row{grid-area:file;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-10px 0 -8px;font-size:12px;color:var(--muted)}
 #mobile-file-name{min-width:0;overflow-wrap:anywhere;line-height:18px}
 #mobile-change-file{flex:none;min-height:44px;padding:0;font-size:12px;font-weight:600;text-decoration:none}
 .home-page .size-control{margin:0 0 12px;gap:12px;min-height:44px}
 .home-page .size-control label{min-width:92px;font-size:13px}
 .home-page .size-control input{min-width:0;min-height:44px}
 .home-page .clip-title,.home-page #clip-window{font-size:13px}
 .home-page .upload-card #clip-controls{margin:0 0 8px}
 .home-page .trimmer{height:54px}
 .home-page .trimmer .handle{background:var(--brand);color:#fff}
 .home-page .trimmer .frame{border-color:var(--brand)}
 .home-page.editing .export-primary{position:fixed;z-index:20;left:0;right:0;bottom:0;padding:12px 16px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff;box-shadow:0 -4px 16px rgba(20,24,33,.03)}
 .home-page.editing[data-mobile-toolbar=false] .export-primary{visibility:hidden;pointer-events:none}
 .home-page .upload-card .mobile-export-spec{display:block;margin:4px 0 0;font-size:11px;line-height:17px;text-align:center;color:var(--muted)}
 .home-page .upload-card #results{margin-top:12px;padding-top:16px}
 .home-page[data-mobile-results=true] #source-controls{display:none}
 .home-page .mobile-result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
 .mobile-result-heading h2{font-size:18px;line-height:25px;font-weight:600}
 #mobile-edit-again{font-size:12px;font-weight:600;min-height:44px;text-decoration:none}
 .home-page .upload-card .result-actions{margin-top:0;gap:8px}
 .home-page .result-actions>button{width:100%;min-height:48px;font-size:15px}
 .home-page #share{order:-1;background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}
 .home-page .result-actions:has(#share:not([hidden])) #download-all{background:transparent;border:0;color:var(--muted);font-size:13px}
 .home-page .next-card{font-size:13px;line-height:21px;padding:14px;border-radius:12px}
 .home-page .next-card .next-title{font-size:14px}
 .home-page .options-grid select,.home-page .options-grid input[type=number]{font-size:16px}
 .home-page .mobile-templates{display:block;margin:24px 0 0}
 .home-page.editing .mobile-templates{display:none}
 .mobile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
 .mobile-section-heading h2{font-size:18px;font-weight:600;letter-spacing:-.025em;line-height:26px}
 .mobile-section-heading>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;font-weight:600;text-decoration:none}
 .mobile-teaser-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 .mobile-teaser{min-width:0;color:var(--text);text-decoration:none}
 .mobile-teaser img{display:block;width:100%;height:102px;object-fit:cover;border-radius:10px;background:#f7f8fa}
 .mobile-teaser>span{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-top:8px;font-size:13px;font-weight:600}
 .mobile-teaser small{font-size:11px;font-weight:400;color:var(--muted)}
 .home-page .support.support-v2{display:block;margin-top:24px}
 .home-page .steps-disclosure{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
 .home-page .steps-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;padding:12px 0;font-size:14px;font-weight:600;list-style:none}
 .steps-disclosure>summary::-webkit-details-marker{display:none}
 .home-page .steps-disclosure>summary::after{content:"+";font-size:20px;font-weight:400}
 .home-page .steps-disclosure[open]>summary::after{content:"\2212"}
 .home-page .support-v2 .steps-panel{padding:0 0 20px;box-shadow:none;border-radius:0}
 .home-page .steps-panel h2{display:none}
 .home-page .step-cards li{padding:12px;gap:12px}
 .home-page .step-n{width:28px;height:28px;flex-basis:28px;font-size:14px;line-height:28px}
 .home-page .step-cards h3{font-size:16px;line-height:23px}
 .home-page .step-cards p{font-size:14px;line-height:22px}
 .home-page .step-cards p.small{font-size:12px;line-height:20px}
 .home-page .steps-body{gap:16px}
 .home-page .steps-body>.walkthrough-figure{grid-row:3}
 .home-page .before-after{grid-template-columns:minmax(0,1fr) auto minmax(0,1.2fr);gap:10px;padding:12px}
 .home-page .ba-arrow{transform:none;font-size:18px}
 .home-page .prose-col{margin-top:32px;max-width:none}
 .home-page .prose-col>section+section{margin-top:40px}
 .home-page .support-v2 .prose-col h2{font-size:22px;line-height:28px}
 .home-page .prose-col p,.home-page .prose-col li{font-size:16px;line-height:26px}
 .template-guide-page .template-page{padding:20px 16px 48px}
 .template-guide-page .template-page h1{font-size:28px;line-height:34px;font-weight:650;letter-spacing:-.035em;margin:0}
 .template-guide-page .template-page .lede{font-size:15px;line-height:23px;margin:8px 0 16px}
 .template-guide-page .template-hero-link,.template-guide-page .png-intro{display:none}
 .template-guide-page .template-nav{display:flex;flex-wrap:nowrap;overflow:auto;scrollbar-width:none;gap:8px;position:sticky;top:0;z-index:10;margin:0 -16px 0;padding:0 16px 12px;border-bottom:1px solid var(--line);background:#fff}
 .template-nav::-webkit-scrollbar{display:none}
 .template-guide-page .template-nav a{flex:none;min-height:44px;padding:0 13px;border-radius:10px;font-size:13px;font-weight:500;white-space:nowrap;color:var(--muted)}
 .template-guide-page .template-nav a[aria-current=location]{background:var(--soft);color:var(--brand);font-weight:600}
 .template-guide-page #ready-made>p:first-of-type{display:none}
 .template-guide-page #ready-made>h2{font-size:18px;line-height:26px;margin:20px 0 0}
 .pack-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 12px}
 .template-guide-page .pack-toolbar>p{display:block;font-size:12px;line-height:20px;color:var(--muted)}
 .pack-toolbar button{font-size:12px;min-height:44px;text-decoration:none}
 .template-guide-page .pack-grid{grid-template-columns:minmax(0,1fr);gap:20px;margin-top:0}
 .template-guide-page .pack-card{padding:0;border-radius:14px;overflow:hidden;scroll-margin-top:68px}
 .template-guide-page .pack-preview{border-radius:0;background:#f7f8fa}
 .pack-count{display:block;position:absolute;left:10px;top:10px;padding:3px 8px;border-radius:999px;background:rgba(20,24,33,.78);color:#fff;font-size:11px;line-height:18px;font-weight:600}
 .pack-body{padding:14px}
 .pack-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .template-guide-page .pack-card h3{margin:0;font-size:17px;line-height:24px;font-weight:600}
 .pack-duration{display:block;flex:none;font-size:12px;color:var(--muted)}
 .template-guide-page .pack-meta{font-size:12px;line-height:20px;margin-top:3px}
 .template-guide-page .pack-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin-top:14px}
 .pack-save{display:block;border:0}
 .pack-save>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 12px;border-radius:10px;background:var(--brand);color:#fff;font-size:14px;line-height:22px;font-weight:600;list-style:none;text-align:center}
 .pack-save>summary::-webkit-details-marker{display:none}
 .pack-save>summary::after{content:"\2304";margin-left:auto;font-size:17px}
 .pack-save>summary::before{content:"\2193";margin-left:auto;font-size:18px;font-weight:500}
 .pack-save>p{padding:0;margin:12px 0 8px;font-size:12px;line-height:20px;color:var(--muted)}
 .pack-save-files{display:flex;flex-wrap:wrap;gap:6px}
 .pack-save-files a{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;font-size:13px;font-weight:600;text-decoration:none}
 .template-guide-page .pack-actions .pack-zip{justify-self:start;min-height:44px;padding:0;background:transparent;color:var(--muted);font-size:12px;font-weight:400;border-radius:0}
 .template-guide-page .pack-actions .pack-zip:hover{background:transparent;color:var(--brand)}
 .template-guide-page .pack-files{display:none}
 .template-guide-page .pack-credit{margin:0;padding-top:0;font-size:11px;line-height:17px}
 .template-guide-page .pack-credit a{display:inline-flex;align-items:center;min-height:44px;font-size:11px}
 .template-guide-page .pack-own{font-size:14px;line-height:22px;margin-top:16px}
 .template-guide-page .template-page h2{font-size:22px;line-height:28px;margin:32px 0 12px}
 .template-guide-page #ready-made>p{font-size:14px;line-height:22px;margin-bottom:16px}
 .mobile-png-notes{display:block;margin-top:28px}
 .mobile-png-notes>summary{font-size:14px;min-height:48px}
 .mobile-png-notes>p{font-size:14px;line-height:23px}
 .template-guide-page .template-grid{gap:16px}
 .template-guide-page .template-card figcaption{padding:12px}
 .template-guide-page .template-page #use p,.template-guide-page .template-page #use li,.template-guide-page .template-page #faq p{font-size:16px;line-height:26px}
}
@media(max-width:359px){
 .home-page .intro h1,.template-guide-page .template-page h1{font-size:26px;line-height:31px}
 .home-page .wordmark,.template-guide-page .wordmark{font-size:17px}
 .mobile-site-nav a{font-size:12px}
 .home-page.landing #source-controls{grid-template-columns:minmax(0,1fr)}
 .home-page.landing .upload-card .file-formats,.home-page.landing #try-example{grid-column:1;text-align:center;justify-self:center}
 .home-page.landing #try-example{margin-top:-6px}
 .mobile-section-heading h2{font-size:17px}
 .home-page .count button{min-width:44px;padding-inline:10px}
 .pack-save-files{gap:4px}
}
/* Phones keep the single Templates / Make yours link above; the full site nav is for wider screens. */
@media(max-width:767px){.home-page header .site-nav,.template-guide-page header .site-nav{display:none}}
@media(max-width:767px){
 .template-guide-page .pack-filters{gap:6px;margin:12px 0 0}
 .template-guide-page .pack-filter{gap:8px}
 .template-guide-page .pack-filter-label{width:58px;font-size:12px}
 .template-guide-page .pack-chips{margin-right:-16px;padding-right:16px}
 .template-guide-page .pack-chips button{min-height:44px;padding:0 14px;font-size:13px}
 .template-guide-page .pack-sizes{margin-top:0}
 .template-guide-page .pack-sizes button{min-width:40px;min-height:44px}
}
