/* Shared layouts for the catalog and subscription pages. No device loses a feature. */
.header{height:auto;min-height:80px;padding:18px max(24px,calc((100vw - 1320px)/2));gap:20px}
.header .wordmark{flex-shrink:0;font-size:22px;letter-spacing:-.04em}
.header-alert-link{font-size:13px;padding:11px 16px;min-height:44px}
main:not(.membership-page):not(.legal-page){width:100%;max-width:1440px;padding-left:32px;padding-right:32px}
.hero{grid-template-columns:minmax(0,1fr) 280px;grid-template-areas:"title artwork" "steps artwork";gap:28px 40px;padding:36px 0}
.hero-intro>h1{font-size:clamp(44px,5vw,68px);line-height:1.15}
.hero>.method{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding-top:24px}
.hero>.method h3{font-size:16px;line-height:1.5}.hero>.method p{font-size:14px;line-height:1.75}
.hero>.method span{font-size:9px;letter-spacing:.05em;white-space:nowrap}
.hero-brand-art.category-products-art img{width:100%;max-width:280px}
.catalog-layout{grid-template-columns:180px minmax(0,1fr);gap:28px}
.catalog-layout .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.mobile-filter-toggle{display:none}
.toolbar{grid-template-columns:auto minmax(0,1fr) auto auto;align-items:stretch}
.toolbar .search{grid-column:auto;min-height:44px}.toolbar #sort{grid-column:auto;min-width:0;max-width:180px}.toolbar #resort{grid-column:auto;min-height:44px}
.card-footer .card-alert-button,.card-footer .favorite-toggle{min-height:42px}
#detail-dialog,#compare-dialog{max-height:calc(100dvh - 32px)}
.membership-page{width:100%;max-width:1120px;padding:32px 32px 64px}
.membership-heading{grid-template-columns:minmax(0,1fr) 320px;gap:48px;padding:36px 0 44px}
.membership-heading h1{font-size:clamp(34px,4vw,52px)}
.membership-heading .alert-illustration{transform:rotate(2deg)}
.billing-cycle{display:flex;gap:4px;padding:5px;background:#0d1014;border:1px solid var(--line);border-radius:14px;width:max-content;max-width:100%;margin:24px auto}
.billing-cycle button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:none;border-radius:10px;padding:12px 18px;font-size:14px;min-height:44px}
.billing-cycle button[aria-pressed=true]{background:#e3e7ed;color:#101318}.billing-cycle button span{font-size:11px;color:var(--brand-mint)}.billing-cycle button[aria-pressed=true] span{color:#25533f}
.tier-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.tier-card{display:flex;flex-direction:column;padding:28px;background:#101317;border:1px solid #3a424d;border-radius:16px;min-width:0}
.tier-plus{border-color:#78bda4;background:#14201c}
.tier-name h3{font-size:23px;margin:0 0 10px}.tier-name>span{font-size:13px;color:var(--muted)}
.membership-page .tier-card .tier-price{font-size:38px;font-weight:750;color:var(--ink);line-height:1.3;margin:24px 0 8px}.tier-price small{font-size:14px;font-weight:400;color:var(--muted)}
.membership-page .tier-period{font-size:12px;margin:0;min-height:22px}.membership-page .tier-saving{font-size:12px;color:var(--brand-mint);margin:8px 0 18px;min-height:22px}.membership-page .tier-limit{font-size:15px;margin:0 0 24px}
.tier-limit strong{display:block;font-size:24px;margin-top:8px;color:var(--ink)}
.tier-card .choose-plan{width:100%;margin-top:auto;min-height:46px;font-size:14px}
.subscription-value .plan-benefits{border-top:0;padding:24px 0;gap:12px 24px;font-size:13px;justify-content:flex-start}
.subscription-value>.membership-fine{margin:0}.category-quota{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}.category-quota>span{display:flex;justify-content:space-between;padding:12px;border:1px solid var(--line);border-radius:10px;font-size:13px}.category-quota b{white-space:nowrap}
.watch-row>div{min-width:0;overflow-wrap:anywhere}.membership-page .notice{display:block}.savings-example{margin-top:0}
footer.site-footer{width:100%;padding-left:32px;padding-right:32px;grid-template-columns:minmax(0,1fr) auto}.site-footer .footer-business{min-width:0}.site-footer .footer-business>span{white-space:normal}




@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.membership-page h1,.membership-page h2,.membership-page h3,.membership-page p{word-break:keep-all;overflow-wrap:break-word}
.billing-cycle button,.billing-cycle button span{white-space:nowrap}

.subscription-faq details{border-top:1px solid var(--line);padding:16px 0}.subscription-faq summary{font-size:14px;cursor:pointer;line-height:1.7}.membership-page .subscription-faq p{font-size:13px;color:var(--muted);margin:12px 0 0}
.toolbar .search-clear{display:grid;place-items:center;align-self:center;width:28px;height:28px;min-height:28px;margin:0;padding:0;line-height:0}
.toolbar .search-clear svg{display:block;width:16px;height:16px;flex:none}
/* Anchor the clear control to the search field's right edge. */
.toolbar .search{position:relative;padding-right:42px}
.toolbar .search-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%)}

/* Leave a visible, tappable backdrop above and below mobile product details. */


/* The rounded dialog clips its inner scroller,including the right corners. */
#detail-dialog{--detail-gap:96px;position:fixed;inset:0;margin:auto;padding:16px;max-height:calc(100dvh - var(--detail-gap) - var(--detail-gap));border-radius:20px;overflow:hidden}
#detail-content{max-height:calc(100dvh - var(--detail-gap) - var(--detail-gap) - 34px);overflow-y:auto;overscroll-behavior:contain;padding:12px;border-radius:0;scrollbar-width:thin;scrollbar-color:#65707c transparent}




@media(max-height:500px){#detail-dialog{--detail-gap:32px}}
.history-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 12px}
.history-stats>div{padding:14px 12px;border:1px solid var(--line);border-radius:12px;background:var(--control);min-width:0}.history-stats span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.history-stats strong{font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums}.history-stats>div:first-child strong{color:var(--brand-mint)}
#chart .price-history-chart{width:100%;height:auto;display:block;background:#11151a;border:1px solid var(--line);border-radius:14px}
#chart .price-history-chart text{font-family:inherit;font-size:11px;fill:#c4ccd6}.price-history-chart .history-grid{stroke:#39414c;stroke-width:1;stroke-dasharray:3 4}.price-history-chart .history-date-guide{stroke:#39414c;stroke-width:1;stroke-dasharray:2 4}.price-history-chart .history-point{stroke:#11151a;stroke-width:1.5}.price-history-chart .history-line{stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}#chart .price-history-chart .history-time-label{fill:#8e9aa9;font-size:10px}.history-summary{font-size:12px;margin:0 0 14px}
.history-records{margin-top:16px;font-size:12px}.history-records summary{cursor:pointer;min-height:36px;line-height:2}.history-records-scroll{max-height:220px;overflow:auto;margin-top:8px}.history-records table{width:100%;border-collapse:collapse;font-size:12px}.history-records th,.history-records td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left}.history-records tr>:last-child{text-align:right;white-space:nowrap}

/* Fit action groups to the card itself,including narrow two-column layouts. */
.grid>.card{container:product-card / inline-size}
.card-footer{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}
.card-footer .card-alert-button,.card-footer .favorite-toggle{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;margin:0;gap:6px;padding:9px 8px;font-size:12px;line-height:1.4;white-space:nowrap}
.card-footer .ui-icon{width:20px;height:20px;flex:none}
.card-footer span{flex:none}
@container product-card (max-width:240px){.card-footer .card-alert-button,.card-footer .favorite-toggle{font-size:11px;padding:8px 6px;gap:4px}.card-footer .ui-icon{width:18px;height:18px}}
@container product-card (max-width:210px){.card-footer .card-alert-button,.card-footer .favorite-toggle{font-size:10px;padding:8px 4px;gap:4px}.card-footer .ui-icon{width:16px;height:16px}}
.history-axis-note{font-size:11px;line-height:1.7;color:var(--muted);margin:10px 0 0}
.feature-description{margin:24px 0 28px}.membership-page .feature-description p{font-size:14px;line-height:1.85;color:var(--muted);margin:0 0 16px}.feature-description p:last-child{margin-bottom:0}

.account-page-link{float:right;font-size:13px;color:var(--muted);line-height:1.8}.account-heading{padding:32px 0}.account-heading h1{font-size:36px}.account-heading p{color:var(--muted);line-height:1.8}.account-heading .secondary{display:inline-block;margin-top:12px}.account-heading~.panel{clear:both}


.subscription-faq details:last-child{padding-bottom:0}

.membership-page .subscription-faq .feature-description{margin-bottom:0}
.membership-page .subscription-faq .feature-description p:last-child{margin-bottom:0}

