.offers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.offer{border:1px solid var(--line,#dadada);border-radius:20px;padding:20px;text-align:left;background:var(--surface,#f5f5f7);color:inherit}.offer strong{font-size:26px;display:block;margin:12px 0}.offer.on{outline:2px solid #007aff}.offer small{display:block;color:var(--muted,#888)}.purchase{margin:16px 0}.purchase-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.purchase h3{margin-bottom:8px}.purchase select{max-width:100%;padding:12px;border-radius:12px}.purchase-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.purchase-actions button{min-height:44px}.status-label{padding:6px 12px;border-radius:100px;background:var(--surface,#f5f5f7);font-size:13px}.offer label{display:block;margin-top:14px}.offer input[type=number]{width:100%;margin:8px 0;padding:10px}.offer input[type=checkbox]{width:auto}.selected-bar{position:sticky;bottom:84px;padding:16px;border:1px solid var(--line,#ccc);border-radius:18px;background:var(--bg,#fff);display:flex;justify-content:space-between;gap:12px;align-items:center;z-index:5}.app-main{min-width:0;justify-content:flex-start!important}.app-row .icon{width:58px;height:58px;min-width:58px;object-fit:cover}.app-row .app-text{text-align:left}.app-main .icon{margin:0!important}.shop-note{margin:16px 0;line-height:1.6}.admin-tools{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.admin-tools input{flex:1;min-width:180px}.audit-row{padding:14px 0;border-bottom:1px solid var(--line,#ddd)}.compact{font-size:14px}.empty h2{margin:12px 0}.pending{color:#a76c00}.success{color:#208d49}button:disabled{opacity:.5;cursor:wait}.app-row .get{white-space:nowrap}.purchase details{margin-top:15px}.purchase summary{cursor:pointer}.paid-until{font-variant-numeric:tabular-nums}.purchase input{width:100%;padding:12px;margin:10px 0}.shop-title{font-size:clamp(28px,5vw,42px)}.hero-copy h2{max-width:85%}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:720px){.offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.offer{padding:16px}.offer strong{font-size:23px}.purchase-head{align-items:flex-start}.app-grid{grid-template-columns:1fr}.header-actions{gap:8px}.selected-bar{bottom:80px}.admin-tools{flex-direction:column}}

.offers>.offer{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:0;white-space:normal;min-width:0;width:100%;box-sizing:border-box}.offer>span{font-weight:600;line-height:1.3}.offer strong{white-space:nowrap}.offer small{line-height:1.4;margin-top:4px}.offers>.offer h3{font-size:18px;line-height:1.3}

/* Discovery page: the promotional cards lead into the application collections. */
.store-main{padding-top:22px;padding-bottom:130px}.hero-track{grid-auto-columns:calc((100% - 32px)/3)}.hero{min-height:310px}.hero-copy h2{max-width:90%}.hero h2{font-size:27px}.hero-copy{top:22px}.hero p{max-width:200px}
.iphone-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;background:var(--surface);padding:5px;border-radius:16px;margin:22px 0;scroll-margin-top:20px}.iphone-sections button{font-size:13px;line-height:1.2;min-height:44px;padding:9px 6px;color:var(--muted);background:transparent;border-radius:12px;font-weight:650}.iphone-sections button.active{background:var(--raised);box-shadow:0 2px 8px #0000000a;color:var(--blue)}.catalog-tools{scroll-margin-top:20px}.catalog-tools .search-box{width:100%;margin:0 0 14px}.catalog-tools .search-box input{min-height:46px;border-radius:14px}.catalog-tools .search-box svg{top:13px}.catalog-tools .categories{padding-bottom:8px;margin-bottom:12px}.catalog-tools .chip{min-height:38px;padding:9px 16px;border-radius:999px;font-size:13px}.catalog-tools .chip.on{background:var(--text);color:var(--bg)}
.discover-section{margin:24px 0 32px}.section-head h2{font-size:25px;letter-spacing:-.7px}.section-head p{font-size:13px;margin-top:5px}.collection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.collection-card{display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;min-height:172px;padding:18px;border-radius:20px;text-align:left;color:#172821;gap:14px;overflow:hidden;background:#eaf6ef}.collection-card.tone-blue{background:#ebf3ff;color:#183855}.collection-card.tone-peach{background:#fff0e6;color:#573b25}.collection-card.tone-violet{background:#f1ecff;color:#38305a}.collection-icons{display:flex;align-items:center;height:48px;padding-left:0}.collection-icons img{width:43px;height:43px;border-radius:11px;box-shadow:0 4px 14px #14233b15;object-fit:cover;background:#fff;border:2px solid #ffffffc9;margin-right:-10px;transform:rotate(-7deg)}.collection-icons img:nth-child(2){transform:translateY(-3px) rotate(3deg)}.collection-icons img:nth-child(3){transform:rotate(9deg)}.collection-card strong{font-size:18px;line-height:1.2;letter-spacing:-.4px;max-width:180px}.collection-foot{display:flex;justify-content:space-between;align-items:center;gap:8px}.collection-foot small{font-size:11px;font-weight:500;opacity:.7}.collection-foot svg{width:15px;height:15px}.app-collection{margin-top:30px;border-top:1px solid var(--line);padding-top:25px}.collection-all{white-space:nowrap;gap:2px;min-height:42px;flex:none}.collection-all svg{width:16px;height:16px}.app-shelf{display:grid;grid-auto-flow:column;grid-template-rows:repeat(3,auto);grid-auto-columns:calc((100% - 32px)/3);gap:0 16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:3px}.app-shelf .app-row{scroll-snap-align:start}.app-row .get-wrap small{max-width:86px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.app-row .get[aria-pressed=true]{background:var(--blue);color:#fff}.catalog-results{margin-top:24px;scroll-margin-top:20px}.catalog-results .app-grid .empty{grid-column:1/-1}.install-guide-card{display:flex;align-items:center;justify-content:flex-start;width:100%;gap:14px;padding:20px;margin-top:34px;background:var(--surface);color:var(--text);border-radius:20px;text-align:left}.guide-symbol{color:var(--blue);display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:13px;background:var(--raised)}.install-guide-card>span:nth-child(2){flex:1;min-width:0}.install-guide-card strong{font-size:16px;line-height:1.25;display:block}.install-guide-card small{font-size:12px;line-height:1.4;color:var(--muted);display:block;margin-top:5px;font-weight:400}.install-guide-card>svg{width:18px;height:18px;color:var(--muted)}.selected-bar{bottom:100px;margin-top:20px;box-shadow:var(--shadow)}
:root[data-theme=dark] .collection-card{background:#172d24;color:#d4eee0}:root[data-theme=dark] .collection-card.tone-blue{background:#17273c;color:#dcecff}:root[data-theme=dark] .collection-card.tone-peach{background:#35271e;color:#f8e4d3}:root[data-theme=dark] .collection-card.tone-violet{background:#292239;color:#e8ddff}
@media(max-width:960px){.hero-track{grid-auto-columns:46%}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-shelf{grid-auto-columns:calc((100% - 18px)/2);column-gap:18px}}
@media(max-width:600px){.store-main{padding-top:20px}.hero-track{grid-auto-columns:90%;gap:12px}.hero{min-height:300px}.hero h2{font-size:28px}.hero-copy{left:20px;right:16px;top:21px}.hero p{font-size:13px;max-width:185px}.hero-foot{left:20px;bottom:17px}.iphone-sections{margin:20px 0;gap:2px;padding:4px;border-radius:15px}.iphone-sections button{font-size:11px;padding:7px 2px;min-height:42px}.collection-grid{gap:10px}.collection-card{min-height:163px;padding:16px;gap:12px;border-radius:19px}.collection-card strong{font-size:17px}.collection-icons img{width:39px;height:39px;border-radius:10px}.collection-foot small{font-size:10px}.section-head{align-items:center;gap:8px}.section-head h2{font-size:22px}.section-head p{font-size:12px}.app-shelf{grid-auto-columns:94%;column-gap:18px;margin-right:-21px;padding-right:21px}.app-collection{margin-top:28px;padding-top:22px}.collection-all{font-size:13px!important}.app-shelf .app-text strong{font-size:16px}.app-shelf .app-text small{max-width:none}.app-row .get{min-width:72px;padding:7px 10px}.install-guide-card{padding:17px;gap:12px}.install-guide-card strong{font-size:15px}.install-guide-card small{font-size:11px}}

@media(max-width:360px){.iphone-sections button{font-size:10px;padding-left:1px;padding-right:1px}}

.promo-box{margin:24px 0;padding-top:20px;border-top:1px solid var(--line);text-align:left}.promo-box>label{display:block;font-size:15px;font-weight:600;margin-bottom:9px}.promo-entry{display:flex;gap:9px;align-items:stretch}.promo-entry input{min-width:0;flex:1;width:100%;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);padding:12px;font:inherit;font-size:16px;letter-spacing:.3px}.promo-entry input:focus{outline:2px solid var(--blue);outline-offset:1px}.promo-entry button{min-height:45px;flex:none;padding:10px 15px;font-size:13px}.promo-box p{font-size:13px;line-height:1.5;margin:10px 0}.promo-total{margin:17px 0 8px;display:grid;gap:10px;font-size:14px}.promo-total>div{display:flex;justify-content:space-between;gap:12px}.promo-total .promo-payable{padding-top:12px;border-top:1px solid var(--line);font-size:18px}.promo-receipt{font-size:13px;line-height:1.6;overflow-wrap:anywhere;margin:12px 0}.promo-receipt>strong{color:var(--blue)}

/* Stable selection: a single fixed checkout button above each store's own navigation. */
.store-main.has-selection{padding-bottom:calc(220px + env(safe-area-inset-bottom,0px))}
.selected-bar.selection-checkout{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(22px + env(safe-area-inset-bottom,0px) + var(--shop-nav-height,64px));width:min(430px,calc(100% - 32px));box-sizing:border-box;margin:0;padding:14px 17px;border:0;border-radius:22px;background:var(--blue,#007aff);color:#fff;box-shadow:0 8px 24px #007aff33;z-index:81;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;cursor:pointer;white-space:normal}
.selected-bar.selection-checkout[hidden]{display:none}
.selection-copy{display:flex;flex-direction:column;min-width:0;gap:3px}
.selection-copy>strong{font-size:16px;line-height:1.25;font-weight:700}
.selection-copy>small{font-size:11px;line-height:1.3;font-weight:400;color:#fff;opacity:.9}
.selection-copy>.selection-hint{font-size:10px;opacity:.8}
.selection-total{display:flex;align-items:center;gap:9px;flex:none}
.selection-total>strong{font-size:21px;font-weight:750;line-height:1.2;white-space:nowrap;font-variant-numeric:tabular-nums}
.selection-total>span{font-size:20px}
.selection-checkout:focus-visible{outline:3px solid #7cbeff;outline-offset:3px}
@media(max-width:360px){.selected-bar.selection-checkout{padding:12px 14px;gap:8px}.selection-total>strong{font-size:18px}.selection-total{gap:5px}.selection-copy>small{font-size:10px}}

/* A package is an explicit upgrade, never an automatic price change. */
.selection-dock{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(22px + env(safe-area-inset-bottom,0px) + var(--shop-nav-height,64px));width:min(430px,calc(100% - 32px));z-index:81;display:flex;flex-direction:column;gap:7px}
.selection-dock[hidden],.selection-upgrade[hidden]{display:none}
.selection-dock .selected-bar.selection-checkout{position:static;transform:none;width:100%;margin:0}
.selection-upgrade{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:11px 15px;border-radius:15px;border:1px solid var(--line,#ddd);background:var(--raised,#fff);color:var(--blue,#007aff);box-shadow:0 4px 15px #0000000a;text-align:left;font-size:12px;font-weight:600;line-height:1.3;white-space:normal}
.selection-upgrade b{font-size:18px;flex:none}
.store-main.has-selection{padding-bottom:calc(270px + env(safe-area-inset-bottom,0px))}

/* My Apps: one application, one clear next action. */
.myapps-package{margin:24px 0 32px;scroll-margin-top:90px;outline:none}
.myapps-package-head{padding:16px 18px;border-radius:18px;background:var(--soft,#f3f5f8);margin-bottom:12px}
.myapps-package-head h2{font-size:18px;margin:0 0 5px}.myapps-package-head p{margin:0 0 4px;font-size:13px}.myapps-package-head small{font-size:12px;color:var(--muted,#76777f)}
.myapp{padding:18px 0;border-bottom:1px solid var(--line,#e9e9ed);scroll-margin-top:90px}.myapp-head{display:flex;align-items:center;gap:12px}.myapp-icon{width:52px;height:52px;flex:none;border-radius:13px;overflow:hidden;background:var(--soft,#f3f5f8);display:grid;place-items:center}.myapp-icon img{width:100%;height:100%;object-fit:cover}.myapp-name{min-width:0;flex:1}.myapp-name h3{font-size:16px;line-height:1.3;margin:0;overflow-wrap:anywhere}.myapp-status{font-size:12px;line-height:1.35;margin:4px 0 0;color:var(--muted,#76777f)}.myapp-status.success{color:#19824b}.myapp-status.waiting,.myapp-status.attention{color:#996000}.myapp-head>button{flex:none;max-width:43%;font-size:13px;padding:10px 13px;line-height:1.3;min-height:42px}.myapp-note{font-size:13px;line-height:1.5;margin:10px 0 0;color:var(--muted,#76777f)}.myapp-confirm{padding:14px 0 0}.myapp-confirm>button{width:100%;min-height:44px}.myapp-confirm>div{display:flex;flex-wrap:wrap;justify-content:space-between;margin-top:6px}.myapp-confirm .text-button,.myapp-more .text-button,.myapp-help .text-button{font-size:13px;padding:10px 0;min-height:40px}.myapp-more{font-size:13px;margin-top:8px}.myapp-more summary{color:var(--muted,#76777f);padding:8px 0;cursor:pointer}.myapp-more button{display:block}.myapp-help{background:var(--soft,#f3f5f8);padding:14px;border-radius:14px;margin-top:12px;font-size:13px;line-height:1.5}.myapp-help p{margin:8px 0}.myapp-help small{display:block;overflow-wrap:anywhere}.myapp-help button{display:block}
.myapps-receipt{margin-top:16px;font-size:13px;color:var(--muted,#76777f)}.myapps-receipt>summary{padding:10px 0;cursor:pointer}.myapps-receipt p,.myapps-receipt .promo-receipt{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.myapps-add-button{width:100%;margin-top:18px;min-height:46px}.myapps-empty{font-size:14px;padding:12px 0}.myapps-picker>h3{margin:18px 0 8px}.myapps-picker>.myapp-note{margin-bottom:14px}.myapps-pick{width:100%;display:flex;align-items:center;gap:12px;padding:12px 0;background:none;color:var(--text,#171719);text-align:left;border-radius:0;border-bottom:1px solid var(--line,#e9e9ed)}.myapps-pick .icon{width:44px;height:44px;border-radius:11px;flex:none}.myapps-pick>span:nth-child(2){flex:1;min-width:0}.myapps-pick strong{display:block;font-size:14px}.myapps-pick small{display:block;font-size:12px;color:var(--muted,#76777f);margin-top:3px}.myapps-check{width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--line,#ddd);border-radius:50%;flex:none}.myapps-pick.checked .myapps-check{background:var(--blue,#3478f6);color:#fff;border-color:transparent}.myapps-pick:disabled{opacity:.55}.myapps-add{position:sticky;bottom:calc(var(--shop-nav-height,64px) + env(safe-area-inset-bottom,0px) + 16px);padding:14px;margin-top:16px;border-radius:18px;background:var(--bg,#fff);box-shadow:0 4px 26px #0002;border:1px solid var(--line,#e9e9ed);z-index:5}.myapps-add p{font-size:12px;margin:0 0 9px}.myapps-add>button{width:100%;min-height:44px}.myapps-add .text-button{font-size:13px;padding:10px 0 0}.myapps-picker{padding-bottom:15px}
@media(max-width:360px){.myapp-head{gap:8px}.myapp-icon{width:44px;height:44px}.myapp-head>button{padding:10px;font-size:12px}.myapp-name h3{font-size:14px}}

.shop-back-button{display:inline-flex;padding:10px 0;margin-bottom:10px;min-height:44px}.paid-package-option{display:grid;gap:10px;padding:16px 0;border-bottom:1px solid var(--separator,#ddd)}.paid-package-option small{color:var(--muted,#777)}

.myapp-help label{display:block;margin:12px 0;font-size:14px;color:#25324b}.myapp-help select,.myapp-help textarea{width:100%;box-sizing:border-box;margin-top:6px;padding:12px;border:1px solid #bcc9da;border-radius:12px;background:#fff;color:#15243b;font:inherit}.myapp-help button{min-height:44px}
