/* Mobile layout: common action rows, readable groups, and predictable card baselines. */
/* Route changes focus the reading region; individual controls retain their focus rings. */
#main:focus{outline:none}
.mobile-sort{display:none}
.mobile-sort-options{display:grid;gap:8px;clear:both}
.sort-choice{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:56px;padding:14px 16px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font:inherit;text-align:left}
.sort-choice[aria-pressed=true]{border-color:var(--red);background:var(--pink)}
.sort-selection{width:20px;flex-shrink:0;color:var(--red);font-weight:700;text-align:center}
@media(max-width:760px){
 :root{--mobile-gutter:20px}
 .shell{width:calc(100% - 2 * var(--mobile-gutter))}
 .main-header.shell{width:calc(100% - 32px)}
 .page-heading,.network-page-heading,.finder-heading{padding:24px 0;margin:0}
 .page-heading h1,.network-page-heading h1,.finder-heading h1{font-size:1.75rem;line-height:1.2;margin:0 0 12px}
 .page-heading p,.network-page-heading p:not(.eyebrow),.finder-heading p{font-size:.9375rem;line-height:1.6;margin:0}
 body:is([data-page=shop],[data-page=search],[data-page=brands],[data-page=edits],[data-page=finder],[data-page=saved],[data-page=orders],[data-page=creator-studio],[data-page=brand-studio]) #main>.shell>.breadcrumbs{display:none}
 .button{min-height:48px;line-height:1.35}
 .text-button{line-height:1.4;min-height:44px}
 .button>svg,.text-button>svg{flex-shrink:0}
 .market-section-head,.section-head{align-items:center;gap:16px;margin-bottom:20px}
 .market-section-head h2,.section-head h2{font-size:1.375rem;line-height:1.25}
 .market-section-head>.text-button,.section-head>.text-button{flex-shrink:0;font-size:.875rem;white-space:nowrap}
 .composed-home .home-products,.composed-home .small-gifts-edit{padding-top:28px;padding-bottom:28px}
 .composed-home .market-section-head{margin-bottom:20px}
 .composed-home .market-hero{margin-top:20px}
 .composed-home .market-hero-copy{padding:24px 0 24px 20px}
 .composed-home .market-hero-copy>p:not(.eyebrow){margin:14px 0 18px;line-height:1.6}
 .composed-home .market-hero .button-row{gap:8px 14px;align-items:stretch}
 .composed-home .market-hero .button,.composed-home .market-hero .text-button{min-height:48px;font-size:.875rem;display:inline-flex;align-items:center;justify-content:center;margin:0}
 .category-discovery{padding-top:24px;padding-bottom:28px}
 .department-grid strong{font-size:.875rem;line-height:1.45;min-height:2.9em}
 .creator-discovery{margin-top:28px;padding:32px 0;gap:24px}
 .creator-discovery-examples{padding:18px}
 .creator-example{padding:18px 0}
 .creator-example p{font-size:.9375rem;line-height:1.55}
 /* Cards in the same row share a price/action baseline, without truncating names. */
 .product-grid{align-items:stretch;column-gap:16px;row-gap:28px}
 .product-card{display:flex;flex-direction:column;min-width:0}
 .product-card .product-image{flex-shrink:0;margin-bottom:12px}
 .product-card>.product-brand{line-height:1.5;margin:0 0 6px;font-size:.75rem;min-height:18px}
 .product-card>.product-name{font-size:.9375rem;line-height:1.4;margin:0 0 8px;min-height:0}
 .product-card>.product-meta{font-size:.8125rem;line-height:1.5;margin:0 0 8px;min-height:0}
 .product-card>.product-price{margin-top:auto;padding-top:4px;line-height:1.5;min-height:28px;align-items:baseline}
 .product-grid>div:has(>.product-card){display:flex;flex-direction:column;min-width:0}
 .product-grid>div>.product-card{flex:1}
 .product-grid>div>.product-wishlist-action{margin:12px 0 0;padding:0}
 .product-grid>div>.product-wishlist-action .text-button{width:100%;justify-content:flex-start;white-space:normal;text-align:left;font-size:.875rem}
 .catalog-layout{padding-top:4px}
 .results-controls{grid-template-columns:1fr 1fr;gap:12px;padding:0 0 20px;align-items:stretch}
 .results-controls>span{padding:0;font-size:.875rem}
 .results-controls .mobile-filter,.results-controls .sort-label{margin:0;min-height:48px;width:100%;justify-self:stretch}
 .results-controls .sort-label{display:none}
 .results-controls .mobile-sort{display:flex;min-width:0;min-height:48px;margin:0;padding:10px;gap:8px;font-size:.875rem;justify-content:space-between;white-space:normal;text-align:left}
 .mobile-sort>span{min-width:0}
 .results-controls .sort-label select{min-width:0;max-width:100%!important;flex:1;height:46px;min-height:46px;font-size:.875rem}
 .filter-overview{margin-bottom:20px}.active-filters{gap:8px}
 .collection-grid{gap:32px 16px;padding-bottom:36px;align-items:stretch}
 .collection-card{display:flex;flex-direction:column;min-width:0}
 .collection-card>div{flex-shrink:0;height:auto;aspect-ratio:1}
 .collection-card h2{font-size:1.1875rem;line-height:1.35;margin:16px 0 8px}
 .collection-card p{font-size:.875rem;line-height:1.5;min-height:0;margin:0 0 12px}
 .collection-card>.text-button{margin-top:auto;min-height:48px;justify-content:flex-start;gap:8px;font-size:.875rem}
 /* Quantity and purchase share a row; validation gets a separate full-width line. */
 .product-purchase-body .purchase-actions{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:6px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));align-items:stretch}
 .product-purchase-body .purchase-actions .quantity-field:not([hidden]){display:contents}
 .purchase-actions .quantity-field>label{grid-column:1;grid-row:1;margin:0;font-size:.75rem;line-height:1.4}
 .purchase-actions .quantity-stepper{grid-column:1;grid-row:2;height:48px;align-self:stretch}
 .purchase-actions .quantity-stepper input,.purchase-actions .quantity-stepper button{height:46px;min-height:46px}
 .product-purchase-body .purchase-actions .gift-button{grid-column:2;grid-row:2;margin:0;min-height:48px;height:100%;font-size:.875rem;line-height:1.35}
 .purchase-actions .quantity-error{grid-column:1/-1;grid-row:3;font-size:.8125rem;line-height:1.45;margin:0}
 .product-purchase-body .purchase-actions.in-bag{grid-template-columns:1fr;grid-template-rows:auto}
 .product-purchase-body .purchase-actions.in-bag .gift-button{grid-column:1;grid-row:1}
 .product-page .product-layout{gap:20px}.product-heading h1{line-height:1.25}
 /* A portrait stage lets the product lead without cropping its packshot. */
 .product-layout>.product-gallery{order:-2;width:calc(100% + 2 * var(--mobile-gutter,20px));margin-inline:calc(-1 * var(--mobile-gutter,20px))}
 .product-layout .main-product-image{height:auto;min-height:0;aspect-ratio:3/4;padding:0;border-radius:0}
 .product-layout .product-image-open img{padding:24px 12px 48px;object-fit:contain}
 .product-gallery .gallery-caption{padding:10px var(--mobile-gutter,20px) 0;font-size:11px}
 .product-gallery .product-thumbnails{padding-inline:var(--mobile-gutter,20px)}
 .product-card .product-image,.composed-home .product-card .product-image{aspect-ratio:3/4}
 .product-card .product-image img{padding:16px 10px}
 .product-heading>.muted{font-size:.875rem;line-height:1.5}
 .product-heading .detail-price{margin:12px 0 0;font-size:1.5rem;gap:6px 12px}
 .product-heading .detail-price>span{font-size:.75rem}
 .product-purchase-body .variant-title{margin:0 0 12px}
 .product-purchase-body .variant-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px;margin-bottom:16px}
 .variant-options{scroll-margin-top:calc(var(--sticky-search-height,64px) + 20px);scroll-margin-bottom:120px}
 .product-purchase-body .variant-options:has(>.variant:only-child){display:flex}
 .product-purchase-body .variant{min-width:0;min-height:48px;font-size:.875rem;padding:10px 8px;white-space:normal;line-height:1.4}
 .product-purchase-body .compact-cost{margin:12px 0}
 .product-purchase-body .recipient-panel{padding:16px 0;margin:16px 0}
 .product-purchase-body .product-wishlist-action{padding:12px 0}
 .personal-cover{padding:20px;gap:18px}
 .personal-cover .person-actions{display:grid;grid-template-columns:1.6fr .8fr 1fr;gap:8px;align-items:stretch;flex-wrap:nowrap}
 .personal-cover .person-actions .button{margin:0;min-width:0;width:100%;min-height:48px;flex:auto;white-space:normal;padding:10px 8px;font-size:.875rem;text-align:center;line-height:1.35}
 .personal-cover .person-actions .button svg{display:none}
 .profile-context{padding:12px 0;gap:0 20px}
 .profile-context .receiving-status{font-size:.8125rem;line-height:1.5;min-height:36px}
 .profile-context summary{font-size:.875rem;min-height:48px}
 .network-profile .profile-wishlist-heading{padding:24px 0 16px;gap:8px 12px}
 .profile-other-gifts{min-height:44px;font-size:.875rem}
 .wishlist-filter-disclosure{margin-bottom:24px}
 .wishlist-tools{display:grid!important;grid-template-columns:minmax(0,1fr);gap:16px!important}
 .wishlist-tools>label,.wishlist-tools .inline-search{width:100%;margin:0}
 .wishlist-tools>label:not(.check-inline){display:grid;gap:8px;grid-template-columns:1fr}
 .wishlist-tools .inline-search{min-height:48px;height:48px;padding:0 12px}
 .wishlist-tools .maximum-price,.brand-shop-controls .maximum-price{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
 .wishlist-tools .maximum-price>label,.brand-shop-controls .maximum-price>label{grid-column:1/-1}
 .wishlist-tools .maximum-price-input,.wishlist-tools .maximum-price>select,.brand-shop-controls .maximum-price-input,.brand-shop-controls .maximum-price>select{min-height:48px;margin:0}
 .finder-form{display:grid;grid-template-columns:minmax(0,1fr);padding:20px;gap:20px;align-items:start}
 .finder-form>.field,.finder-form>.maximum-price,.finder-form>.button{grid-column:1/-1;margin:0}
 .finder-form .field,.finder-form .maximum-price>label{font-size:.875rem}
 .finder-form .field>select,.finder-recipient{min-height:48px;width:100%}
 .finder-form>.maximum-price{grid-template-columns:1fr 1fr;gap:8px 12px}
 .finder-form>.maximum-price>label{grid-column:1/-1}
 .finder-form .maximum-price-input,.finder-form .maximum-price>select{min-height:48px;margin:0}
 .finder-form>.button{min-height:48px}
 .finder-result-heading{margin:28px 0 20px;align-items:flex-start;gap:12px}
 .finder-result-heading p{font-size:.875rem;line-height:1.6;margin-top:8px}
 .finder-match{margin:10px 0 4px;font-size:.75rem;line-height:1.5}
 .finder-delivered{margin:0;font-size:.8125rem;line-height:1.5}
 .brand-directory-grid{gap:0}
 .brand-card.compact-brand{display:flex;align-items:center;gap:16px;padding:18px 0;min-height:100px;border:0;border-bottom:1px solid var(--line);border-radius:0}
 .compact-brand .brand-product-thumb{width:60px;height:68px;min-width:60px;object-fit:contain;margin:0}
 .compact-brand .brand-card-info{padding:0;flex:1;min-width:0}
 .compact-brand .brand-card-info h3{max-width:none;font-size:1rem;line-height:1.4;margin:0 0 4px}
 .compact-brand .brand-card-info p{font-size:.875rem;line-height:1.5;margin:0 0 4px}
 .compact-brand .brand-card-info small{font-size:.8125rem}
 .compact-brand>svg{flex-shrink:0;display:block}
 .brand-collection-heading{margin:20px 0 12px;gap:12px;flex-wrap:wrap}
 .brand-collection-heading>span{font-size:.75rem}
 .brand-filter-tools{margin-bottom:24px}
 .brand-shop-controls{grid-template-columns:minmax(0,1fr);gap:20px;padding:16px}
 .brand-shop-controls>*{grid-column:1/-1;margin:0}
 .brand-shop-controls>label:not(.check-inline){display:grid;gap:8px}
 .brand-shop-controls>label.store-stock{display:flex;gap:10px;min-height:44px;height:auto;align-items:center}
 .brand-shop-controls .store-stock input{width:18px;height:18px;min-height:18px;margin:0;flex:0 0 18px}
 .brand-shop-controls select,.brand-shop-controls .store-search>div{min-height:48px;margin:0}
 .brand-shop-controls>.button{width:100%;min-height:48px}
 /* Related form actions should not wrap into accidental stair-step arrangements. */
 .checkout-review-link{display:flex;width:100%;justify-content:flex-start;margin:12px 0;font-size:.875rem}
 body[data-page=checkout] .receiving-header>[data-action=privacy]{display:none}
 .checkout-block>.button.primary{width:100%;margin-top:12px}
 .checkout-form .checkout-block{padding:20px 16px;margin-bottom:20px}
 .checkout-block .field{margin-top:18px}.checkout-block .field:first-of-type{margin-top:12px}
 .checkout-form .checkout-block h2{font-size:1.125rem;margin-bottom:16px}
 .checkout-summary-details>summary{min-height:64px}
 .mobile-bag-action .button{min-height:48px;min-width:144px;margin:0}
 .mobile-bag-action>span{min-width:0}
 .bag-item{padding:24px 0;row-gap:8px}
 .bag-choice-row{gap:16px;margin:16px 0 0!important;align-items:start}
 .bag-choice-row .quantity-field>label,.bag-choice-row .bag-option>span,.bag-choice-row .bag-option>label{font-size:.875rem}
 .bag-choice-row .quantity-stepper,.bag-choice-row .bag-option select{height:48px;min-height:48px}
 .bag-choice-row .bag-option{gap:8px}
 .bag-choice-row .bag-option select{margin:0}
 .bag-choice-row .quantity-stepper input,.bag-choice-row .quantity-stepper button{height:46px;min-height:46px}
 .bag-item-actions{gap:24px;margin-top:8px!important}
 .saved-bag-item{gap:16px;padding:20px;align-items:start}
 .saved-item-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px 16px;margin-top:16px}
 .saved-item-actions>.button,.saved-item-actions>.text-button{min-height:48px;margin:0;font-size:.875rem}
 .saved-page .page-heading p>.text-button{display:flex;width:fit-content;max-width:100%;margin-top:8px;min-height:44px;font-size:.875rem;white-space:normal}
 .confirmation .button-row,.gift-share-actions{display:grid;grid-template-columns:1fr;gap:12px;align-items:stretch}
 .confirmation .button-row>*:is(.button,.text-button),.gift-share-actions>.button{width:100%;min-height:48px;margin:0;justify-content:center}
 .confirmation-card{margin:24px 0 20px;padding:20px}
 .order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;padding:20px;align-items:center}
 .order-row>div{grid-column:1/-1;min-width:0;flex-basis:auto}
 .order-row>span:not(.status-pill){grid-column:1;grid-row:3;font-size:.875rem}
 .order-row>.status-pill{grid-column:1/-1;grid-row:2;margin:0;justify-self:start;white-space:normal;line-height:1.45}
 .order-row>.text-button{grid-column:2;grid-row:3;margin:0;min-height:48px;width:auto;justify-self:end;justify-content:flex-end;font-size:.875rem}
 .my-profile-strip{padding:20px 0;margin:0 0 24px;gap:12px}
 .account-sections{gap:12px;overflow-x:auto;flex-wrap:nowrap;justify-content:space-between}
 .account-sections a{flex-shrink:0;min-height:44px;padding:10px 0;font-size:.875rem;white-space:nowrap}
 .my-profile-strip>div{min-width:0;flex:1}
 .my-profile-strip>.text-button{flex-basis:100%;justify-content:flex-start;margin:0}
 .receiving-inbox{padding:0;margin:24px 0 32px}
 .receiving-inbox .market-section-head{display:block;margin-bottom:20px}
 .receiving-inbox .market-section-head .text-button{margin-top:8px;font-size:.875rem}
 .incoming-card{padding:20px}
 .incoming-card .button-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
 .incoming-card .button-row>.button{margin:0;min-height:48px;padding:10px;font-size:.875rem}
 .my-tools form{display:grid;grid-template-columns:1fr;gap:12px;align-items:stretch}
 .my-tools form select,.my-tools form button{width:100%;margin:0;min-height:48px;flex:auto}
 .my-wish-item{display:grid;grid-template-columns:52px minmax(0,1fr) 36px;gap:12px;padding:24px 0;align-items:start}
 .my-wish-item img{width:52px;height:68px}
 .my-wish-item>.icon-btn{min-width:36px;width:36px;min-height:44px}
 .my-wish-item label{display:grid;grid-template-columns:1fr;gap:8px;align-items:start;margin:12px 0}
 .my-wish-item select{margin:0;min-width:0;width:100%;font-size:1rem}
 .my-wish-item .wish-quantity-label{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 .studio-hero .button-row{display:grid;grid-template-columns:1fr;gap:12px;align-items:stretch}
 .studio-hero .button-row>.button,.studio-hero .button-row>.text-button{width:100%;justify-content:center;margin:0;min-height:48px}
 .studio-preview .inbox-item{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px 12px;align-items:start}
 .studio-preview .inbox-item>.status-pill{grid-column:2;justify-self:start}
 .workspace-tabs{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
 .workspace-tabs button{min-height:56px;padding:8px 0;font-size:.875rem;line-height:1.4;white-space:normal}
 .workspace-columns .order-mini{flex-wrap:wrap;gap:12px}
 .workspace-columns .order-mini>div{min-width:0;flex:1}.workspace-columns .order-mini>.status-pill{margin-left:0}
 .workspace-columns>div>.button,.workspace-columns>div>.text-button{width:100%;min-height:48px;justify-content:center;margin:12px 0 0}
 #dialog{padding:20px;max-height:calc(100dvh - 24px)}
 #dialog .dialog-close{float:right;position:sticky;top:0;margin:0 -4px 0 12px;width:44px;height:44px}
 #dialog h2{font-size:1.375rem;line-height:1.3;margin:8px 0 20px;min-height:36px}
 #dialog p{font-size:.9375rem;line-height:1.6}
 #dialog .button-row{display:grid;grid-template-columns:1fr;gap:12px;clear:both;align-items:stretch}
 #dialog .button-row .button,#dialog .button-row .text-button{min-height:48px;width:100%;margin:0;font-size:.9375rem;justify-content:center}
 #dialog .recipient-other-options{grid-template-columns:1fr;gap:12px}
 #dialog .recipient-option .recipient-status{text-align:left;justify-self:start;margin:0;max-width:none}
 #dialog .inline-search{height:48px;min-height:48px;padding:0 12px}
 #dialog .form-grid{grid-template-columns:1fr;gap:0}
 #dialog .field{margin-top:18px}
 .search-recovery .button-row{display:grid;grid-template-columns:1fr;gap:12px}
 .empty-state.search-recovery{padding:24px 20px}
 .search-recovery h2{font-size:1.25rem;line-height:1.4;overflow-wrap:anywhere}
 .search-recovery .button-row>*{width:100%;min-height:48px;justify-content:center}
 .recovery-categories{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .recovery-categories .button{min-height:48px;line-height:1.4;white-space:normal;margin:0}
 .creator-card.creator-tile{display:flex;flex-direction:column}
 .creator-card .creator-tile-actions{margin-top:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:stretch}
 .creator-tile-actions .tile-wishlist-link,.creator-tile-actions .tile-follow{min-height:44px;width:100%;margin:0;justify-content:center}
 .load-more{padding:28px 0}
 #footer{margin-top:32px}
 /* Keep editable fields at the iOS no-zoom size, including compact selects. */
 input:not([type=checkbox]):not([type=radio]),select,textarea,
 .maximum-price select,.directory-controls select,.wishlist-tools select,
 .brand-shop-controls select,.my-wish-item select{font-size:1rem}
 .scoped-people-search .icon-btn,#close-mobile-search,#mobile-search-dialog #clear-search{min-width:44px;width:44px;min-height:44px}
 .purchase-actions .quantity-stepper button,.bag-choice-row .quantity-stepper button{min-width:44px}
 .size-help summary{min-height:44px;align-content:center;font-size:.875rem}
 .brand-filter-tools summary,.wishlist-filter-disclosure summary{min-height:48px}
}
.mobile-option-summary{display:none}
@media(max-width:760px){
 .purchase-actions .mobile-option-summary:not([hidden]){display:block;grid-column:1/-1;margin:0;font-size:12px;line-height:1.4;color:var(--muted)}
}
@media(max-width:400px){
 .finder-form>.maximum-price,.wishlist-tools .maximum-price,.brand-shop-controls .maximum-price{grid-template-columns:minmax(0,1fr)}
 .finder-form>.maximum-price>label,.wishlist-tools .maximum-price>label,.brand-shop-controls .maximum-price>label{grid-column:1}
 .maximum-price>select{font-size:1rem}
}
@media(max-width:360px){
 :root{--mobile-gutter:16px}
 .product-grid,.collection-grid{column-gap:12px}
 .collection-card h2{font-size:1.0625rem}.collection-card>.text-button{font-size:.8125rem;gap:4px}
 .product-card>.product-name{font-size:.875rem}
 .composed-home .market-hero{grid-template-columns:1fr}
 .composed-home .market-hero-art{display:none}
 .composed-home .market-hero-copy{padding:24px 20px}
 .composed-home .market-hero .button-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
 .composed-home .market-hero .button,.composed-home .market-hero .text-button{padding:10px 8px;font-size:.8125rem}
 .results-controls .sort-label{padding:0 6px;font-size:.75rem}
 .results-controls .sort-label select{font-size:.8125rem}
 .network-profile .profile-wishlist-heading{grid-template-columns:1fr;gap:4px}
 .profile-wishlist-heading h2,.profile-wishlist-heading p,.profile-other-gifts{grid-column:1;grid-row:auto}
 .profile-other-gifts{justify-self:start;text-align:left}
 .mobile-bag-action .button{min-width:128px}
 .maximum-price>select{font-size:1rem;padding-left:12px;padding-right:12px}
}
/* Shared control geometry: keep native select behaviour with an inset chevron. */
select:not([multiple]):not([size]),select[size="1"]{
 -webkit-appearance:none;
 appearance:none;
 box-sizing:border-box;
 min-width:0;
 padding-inline-end:42px!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6268' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;
 background-position:right 14px center!important;
 background-size:16px 16px!important;
}
select:not([multiple]):not([size]):dir(rtl),select[size="1"]:dir(rtl){background-position:left 14px center!important}
@media(forced-colors:active){
 select:not([multiple]):not([size]),select[size="1"]{appearance:auto;-webkit-appearance:auto;background-image:none!important}
}

/* Icons share the heading row; description wrapping cannot move them upwards. */
.how-strip>div{display:grid;grid-template-columns:24px minmax(0,1fr);column-gap:12px;row-gap:6px;padding-left:0;font-size:1rem;align-items:start}
.how-strip>div>svg{position:static;grid-column:1;grid-row:1;display:block;width:24px;height:24px;margin:0}
.how-strip h3{grid-column:2;grid-row:1;font-size:1rem;line-height:1.5;margin:0}
.how-strip p{grid-column:2;grid-row:2;margin:0}
.studio-preview .inbox-item{align-items:start}
.studio-preview .inbox-item>svg{display:block;margin-top:0;width:22px;height:22px}
.studio-preview .inbox-item strong{display:block;font-size:.875rem;line-height:1.5}

/* Phone audit: keep prices aligned even when one product name wraps. */
@media(max-width:760px){
 .composed-home .home-grid>.product-card:nth-child(n){display:flex;flex-direction:column}
 .composed-home .home-grid>.product-card>.product-price{margin-top:auto}
 .creator-topic-row button{min-width:44px;padding-inline:10px}
}

/* Category names must fit inside the mobile menu, including small phones. */
@media(max-width:760px){
 .navigation .category-menu .mega-menu{z-index:45;top:var(--category-menu-top,180px);max-height:calc(100dvh - var(--category-menu-top,180px) - 16px);grid-template-columns:repeat(2,minmax(0,1fr));overscroll-behavior:contain}
 .category-menu .mega-menu a{min-width:0;white-space:normal;line-height:1.4;overflow-wrap:anywhere}
}
@media(max-width:360px){
 .navigation .category-menu .mega-menu{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
 body[data-page=setup]:has(.account-form-actions) #toast{bottom:calc(124px + env(safe-area-inset-bottom))}
}
/* User-entered names and queries must never widen the page. */
#main h1,#main h2,#main blockquote{overflow-wrap:anywhere}
@media(max-width:760px){
 .receiving-inbox .market-section-head .text-button{max-width:100%;width:fit-content;white-space:normal;text-align:left}
}

/* A paired address row must not inherit first-field spacing from its block. */
.checkout-block .delivery-address-fields .account-field-row>.field{margin-top:0}

/* Keep a section link's arrow inside its width when its label needs two lines. */
.market-section-head>.text-button,.section-head>.text-button{white-space:normal;min-width:0;overflow-wrap:anywhere}

/* Omitted descriptions should not leave an empty line in the layout. */
p:empty{display:none}
