/* Shared layout, deliberately separate from the pattern workspace controls. */
body > header{gap:16px;flex-wrap:wrap}
body > header .top-nav{flex-wrap:wrap;gap:12px 24px}
body > header .brand-logo{object-fit:contain}
.beadia-footer{position:relative;z-index:20;box-sizing:border-box;display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:32px;width:100%;max-width:1440px;margin:64px auto 0;padding:40px clamp(20px,4vw,56px) 24px;border-top:1px solid #efdee3;background:#fff9fb;color:#4c5755;font-size:14px;line-height:1.65}
.beadia-footer *{box-sizing:border-box}
.beadia-footer h2{font-size:16px;color:#282828;margin:0 0 14px}
.beadia-footer p{margin:10px 0 16px}
.beadia-footer a{position:relative;z-index:21;color:#834156;text-decoration:none;pointer-events:auto}
.beadia-footer a:hover{text-decoration:underline}
.footer-brand img{width:160px;max-width:100%;height:74px;object-fit:contain}
.footer-brand > a:not(:first-child){display:block;margin:8px 0}
.footer-support details{border-bottom:1px solid #ecdfe3;padding:10px 0;background:transparent;border-radius:0}
.footer-support summary{cursor:pointer;font-weight:600;color:#383838}
.footer-support details a{display:inline-block;margin-bottom:10px}
.footer-x{display:inline-flex;align-items:center;gap:12px;padding:10px 16px;background:white;border:1px solid #edccd7;border-radius:24px;font-size:22px}
.footer-x span{font-size:14px}
.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #ecdee3;padding-top:20px;font-size:12px}
.cookie-consent{position:fixed;left:18px;right:18px;bottom:18px;z-index:80;display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:760px;margin:auto;padding:16px 18px;background:#fff;border:1px solid #efd5de;border-radius:22px;box-shadow:0 16px 60px #2e1a2233;color:#303030}
.cookie-consent p{margin:0;line-height:1.45;font-size:14px}
.cookie-consent div{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.cookie-consent a{color:#834156;text-decoration:none;font-weight:700}
.cookie-consent button{border:0;border-radius:999px;background:#252525;color:#fff;padding:10px 16px;font-weight:800}
.retail-page main{max-width:1280px;margin:auto;padding:24px clamp(16px,4vw,48px)}
.retail-page .shop-intro{padding:12px 0 24px;max-width:750px}
.retail-page .shop-intro h1{font-size:clamp(30px,4vw,48px);line-height:1.12;margin:10px 0}
.retail-page .shop-intro p{color:#64716d;line-height:1.6}
.shop-jump-links{display:flex;gap:10px;margin:16px 0}
.shop-jump-links a{padding:9px 18px;border-radius:24px;background:#f9e4ec;color:#6d3a4a;text-decoration:none;font-weight:600}
.shop-section{scroll-margin-top:24px;margin-bottom:28px}
.shop-section-heading{display:flex;align-items:baseline;gap:16px;margin-bottom:12px}
.shop-section-heading h2{font-size:25px;margin:0}
.shop-section-heading p{font-size:13px;color:#66746e}
.retail-page .shop-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;align-items:start}
.retail-page .shop-product{background:#fff;border:1px solid #edE7e9;border-radius:20px;padding:18px;min-width:0;max-width:600px;box-shadow:0 4px 18px #32212a05}
.shop-product-top{display:flex;gap:16px;align-items:center;min-height:102px}
.retail-page .shop-product-image{width:94px;height:94px;flex:0 0 94px;object-fit:contain;background:#fcf7f9;border-radius:14px;margin:0}
.shop-product-placeholder{display:grid;place-items:center;color:#bf6280;font-size:36px}
.shop-product [hidden]{display:none!important}
.shop-product h3{font-size:19px;line-height:1.3;margin:0 0 6px}
.shop-product p{font-size:13px;color:#65746d;margin:6px 0}
.shop-product strong{font-size:17px}
.shop-product details{margin-top:12px;border-top:1px solid #eee4e8;padding-top:12px}
.shop-product summary{font-size:14px;cursor:pointer;color:#864457;font-weight:600}
.shop-product-description{font-size:13px;line-height:1.55;color:#56645f;max-height:160px;overflow:auto}
.shop-product-description p{margin:8px 0}.shop-product-description ul{margin:8px 0;padding-left:18px}
.shop-product label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;margin:12px 0}
.shop-product select,.shop-product input,.cart-row input{box-sizing:border-box;width:100%;padding:10px;border:1px solid #dddadc;border-radius:10px;background:white;font-size:16px;color:#222;min-width:0}
.shop-product-actions{display:flex;gap:12px;align-items:end;margin-top:10px}
.shop-product-actions label{width:88px;flex:0 0 88px;margin:0}
.retail-page .shop-product-actions button{flex:1;padding:12px 10px;font-size:14px;min-height:44px;border-radius:24px;background:#252525;color:#fff;border:0}
.shop-cart-trigger{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:30px!important;background:#f9dce6!important;color:#572c3c!important;padding:12px 18px!important;border:1px solid #efb8cb!important;font-weight:700;white-space:nowrap}
.shop-cart-trigger svg{width:22px;height:22px}
.cart-badge{min-width:22px;line-height:22px;text-align:center;background:#a44363;color:white;border-radius:50%;font-size:12px}
.shop-cart-float{position:fixed;bottom:24px;right:24px;z-index:50;box-shadow:0 6px 24px #58303e26}
.shop-cart-dialog{box-sizing:border-box;width:min(580px,calc(100% - 24px));max-height:85dvh;border:0!important;border-radius:24px!important;background:#fff;padding:24px;color:#252525;box-shadow:0 12px 70px #0003;overflow:auto}
.shop-cart-dialog::backdrop{background:#29202a66;backdrop-filter:blur(3px)}
.shop-cart-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.shop-cart-head h2{font-size:24px;margin:0}
.shop-cart-head button{border:0;background:#f6f2f4;color:#333;border-radius:50%;width:42px;height:42px;padding:0;font-size:26px}
.cart-row{display:grid;grid-template-columns:52px 1fr 76px;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid #eee}
.cart-row img{width:52px;height:52px;object-fit:contain;border-radius:10px;background:#faf5f7}
.cart-row h3{font-size:14px;line-height:1.4;margin:0 0 6px}
.cart-row p{font-size:13px;margin:4px 0}
.cart-row label{font-size:11px;color:#666}
.cart-row .cart-remove{background:transparent;border:0;padding:4px 0;color:#963b5a;font-size:12px;text-decoration:underline}
.cart-total{display:flex;justify-content:space-between;font-size:20px;margin:22px 0 12px}
.cart-shipping{background:#fff2f6;border-radius:14px;padding:12px;font-size:13px;line-height:1.5;color:#6a4552}
.shop-cart-dialog .cart-checkout{width:100%;border:0;border-radius:26px;background:#252525;color:white;padding:14px;margin-top:12px;font-size:16px}
.shop-cart-dialog .cart-checkout:hover:not(:disabled){background:#74384d}
.retail-page button:focus-visible,.beadia-footer a:focus-visible,.beadia-footer summary:focus-visible{outline:3px solid #d77c9a;outline-offset:3px}
.cart-message{font-size:14px;line-height:1.5;color:#96425e;min-height:22px}
.info-page .creator-rewards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.info-page .creator-rewards>div{max-width:none;margin:0;min-width:0}
.info-page .creator-rewards h2{font-size:25px;letter-spacing:-.5px}
.info-page .creator-rewards p+p{margin-top:12px}
.info-page .landing-hero{padding-bottom:20px}
.account-menu{max-width:calc(100vw - 24px)}
.account-identity{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.community-page:not(.admin-page) .project-actions{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:12px}
.community-page .project-actions .template-menu-toggle{margin-left:auto}
.template-card-menu{padding:12px;border-radius:20px;min-width:218px;gap:8px}
.project-actions .template-card-menu{display:grid;gap:8px}
.project-actions .template-card-menu button{display:block;white-space:normal;text-align:center;line-height:1.4;padding:13px 16px;border-radius:14px}
.template-card-menu button.primary-menu-action{background:#b84368;color:#fff;box-shadow:0 4px 12px #b843681a}
.template-card-menu button.points-menu-action{background:#fff0f5;color:#923452;box-shadow:inset 0 0 0 1px #f4cbd9}
.template-card-menu button:hover:not(:disabled){filter:brightness(.96)}
.analytics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}
.analytics-metrics article{background:#fff2f6;border-radius:20px;padding:20px;display:grid;gap:10px}
.analytics-metrics strong{font-size:30px;color:#943d5a}
.analytics-metrics span{font-size:14px;color:#67555c}
.analytics-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.analytics-table-wrap{overflow:auto;border:1px solid #f0e5e9;border-radius:16px}
.analytics-table-wrap table{width:100%;border-collapse:collapse;font-size:14px}
.analytics-table-wrap th,.analytics-table-wrap td{padding:12px;text-align:left;border-bottom:1px solid #f0e5e9;white-space:nowrap}
.analytics-table-wrap th{background:#fff7fa}
.analytics-toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.analytics-toolbar button{border:0;border-radius:999px;padding:12px 20px;background:#b84368;color:white;font-weight:700}
@media(max-width:760px){
  .info-page .creator-rewards{display:grid!important;grid-template-columns:1fr;gap:26px;padding:24px;margin-top:8px}
  .info-page .landing-hero{padding:28px 0 12px}
  .info-page .landing-hero h1{font-size:40px;line-height:1.15}
  .info-page .landing-hero p{font-size:17px;line-height:1.6}
  .account-menu{position:fixed;top:84px;right:12px;left:auto;width:min(340px,calc(100vw - 24px));max-height:calc(100dvh - 108px);overflow-y:auto;z-index:150;box-sizing:border-box}
  .account-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .account-stats article{min-width:0;padding:10px 5px}
  .account-stats strong{font-size:22px}
  .account-stats a{padding:5px;font-size:13px}
  .community-page .project-body{padding-right:2px;padding-bottom:46px}
  .community-page .project-actions{top:auto;bottom:0;right:0;left:0;display:flex!important;gap:8px;padding-top:0;justify-content:center}
  .community-page .project-actions button{justify-content:center;font-size:13px;padding:5px;gap:4px}
  .community-page .project-actions .template-menu-toggle{position:static;width:30px;height:30px;flex-shrink:0;margin-left:0}
  .community-page .template-card-menu{top:38px;bottom:auto;right:0;min-width:min(230px,calc(100vw - 48px))}
  .admin-page .community-hero{display:grid!important;grid-template-columns:1fr}
  .admin-page .creator-rewards{display:block!important}
  .analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .analytics-tables{grid-template-columns:1fr}
}
@media(max-width:420px){.community-page .project-actions{gap:5px}.community-page .project-actions button{padding:3px;gap:3px}}
.retail-page button:disabled{opacity:.45;cursor:not-allowed}
.retail-page #retail-status{display:block;min-height:24px;margin:12px 0;font-size:14px;color:#5c6f65}
@media(max-width:720px){.beadia-footer{grid-template-columns:1fr;gap:24px;margin-top:36px;padding-bottom:90px}.footer-bottom{grid-column:1}.cookie-consent{display:block}.cookie-consent div{margin-top:12px}.retail-page header{padding:14px 16px}.retail-page header .top-nav{order:4;width:100%;justify-content:center;font-size:13px}.retail-page header .shop-cart-trigger{margin-left:auto;padding:10px!important}.retail-page .shop-section-heading{display:block}.retail-page .shop-section-heading p{margin:6px 0}.shop-cart-float{bottom:16px;right:16px}.shop-cart-dialog{padding:18px}.shop-product-top{min-height:86px}.retail-page .shop-product-image{width:80px;height:80px;flex-basis:80px}.retail-page .shop-product-grid{grid-template-columns:1fr}}

/* Presentation-only refresh. Workbench canvases and business controls keep their
   own layout, event handlers, payment rules and access checks. */
:root{--site-ink:#263e35;--site-muted:#718178;--site-line:#eadfe4;--site-pink:#ae4265;--site-soft:#fff4f8}
body>header{padding-left:clamp(16px,4vw,56px);padding-right:clamp(16px,4vw,56px)}
body:not(.assist-page)>header{height:auto;min-height:76px;padding-top:10px;padding-bottom:10px;background:#fff;border-bottom:1px solid #ebe5e8;backdrop-filter:none}
body>header .brand-logo{width:154px;height:64px;max-width:154px;display:block;object-fit:contain}
body>header .top-nav{flex:1;justify-content:center;gap:6px 12px;min-width:0}
body>header .top-nav a{padding:10px 13px;border-radius:999px;font-size:13px;line-height:1.3;transition:background .15s,color .15s;text-align:center}
body>header .top-nav a:hover,body>header .top-nav a[aria-current=page]{color:#923d5b;background:#fff0f5}
body>header .account-nav{flex:none;margin-left:0}
body>header .pill{font-size:10px;background:#f7f3f5;border-color:#eee5e9;padding:7px 10px}
body:not(.assist-page)>main{max-width:1360px;padding:32px clamp(16px,4vw,48px) 24px}
body:not(.assist-page) h1{overflow-wrap:break-word}
.landing-hero{padding:34px 0 26px}
.landing-hero h1{font-size:clamp(34px,5vw,60px);line-height:1.1;letter-spacing:-1.7px;max-width:800px}
.landing-hero p:not(.eyebrow){font-size:16px;line-height:1.65;max-width:650px}
.landing-choices{gap:20px}
.landing-choice{display:flex;flex-direction:column;min-width:0;min-height:0;border-radius:24px;padding:24px;border:1px solid #e9e2e6;box-shadow:0 6px 24px #39232c05}
.landing-choice h2{font-size:clamp(24px,2.8vw,32px);line-height:1.17;letter-spacing:-.7px}
.landing-choice p:not(.eyebrow),.landing-choice li{font-size:14px;line-height:1.6}
.landing-choice .choice-visual{width:100%;height:200px;max-height:200px;flex:none;object-fit:cover;border-radius:17px;margin-bottom:20px}
.create-template-page .choice-visual[src*='beadia-logo']{object-fit:contain;padding:24px;background:#fff8fa}
.landing-choice strong{position:static;display:inline-flex;align-items:center;min-height:42px;margin-top:auto;padding-top:16px;color:#9b3f60}
.community-teaser{padding:24px 28px;border:1px solid #e9e2e6;border-radius:24px;margin-top:20px;box-shadow:none;background:#fff}
.community-teaser h2{font-size:27px;line-height:1.2;letter-spacing:-.6px}
.community-teaser p:not(.eyebrow){font-size:14px;max-width:760px}
.community-teaser>a{background:#ae4265;padding:12px 18px;font-size:13px;min-height:42px}
body:not(.assist-page) .intro{margin-bottom:26px}
body:not(.assist-page) .intro h1{font-size:clamp(36px,5vw,62px)!important;line-height:1.08!important;letter-spacing:-2px!important}
body:not(.assist-page) .intro p:not(.eyebrow){font-size:17px!important;line-height:1.6!important}
.custom-explain.product-photo-strip{gap:14px;margin-bottom:24px}
.custom-explain.product-photo-strip .wide-product-photo{max-height:210px;object-fit:cover}
.custom-explain article{border-radius:22px;padding:18px;box-shadow:none;border:1px solid #ede5e9}
.custom-explain h2{font-size:21px;line-height:1.25;letter-spacing:-.5px}
.custom-explain p:not(.eyebrow){font-size:13px}
body:not(.assist-page) .controls,body:not(.assist-page) .design-panel,body:not(.assist-page) .production{box-shadow:0 6px 24px #39232c05;border:1px solid #ece5e9;border-radius:24px}
.ai-custom-prompt textarea{max-height:220px}
.community-page .community-hero{gap:26px;margin-bottom:26px;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.community-page .community-hero h1{font-size:clamp(34px,4.5vw,60px);line-height:1.08;letter-spacing:-1.8px;margin-bottom:16px}
.community-page .community-hero p:not(.eyebrow){font-size:16px;line-height:1.65}
.community-hero-card{border:1px solid #eae3e7;box-shadow:none;border-radius:24px;padding:12px}
.community-hero-card img{border-radius:17px;max-height:250px}
.community-hero-card div{flex-wrap:wrap;font-size:13px;padding:12px 4px 2px;gap:6px}
.community-stats{gap:12px;margin:20px 0}
.community-stats article{padding:20px;border:1px solid #eee5e9;border-radius:20px;box-shadow:none}
.community-stats strong{font-size:32px;letter-spacing:-1px}
.community-stats span{font-size:13px}
.community-points-details{margin:20px 0;border:1px solid #eadde4;border-radius:18px;background:#fff}
.community-points-details>summary{padding:16px 20px;cursor:pointer;font-size:14px;font-weight:600;color:#7f4058}
.community-points-details>.creator-rewards{margin:0;padding:16px 20px 20px;background:transparent;box-shadow:none;border:0}
.community-points-details .reward-grid{gap:12px}
.community-points-details .reward-grid article{padding:16px;border-radius:16px}
.community-points-details .reward-grid h3{font-size:16px}
.community-points-details .reward-grid p{font-size:13px;line-height:1.6}
.community-feed,.community-flow,.creator-dashboard,.template-manager-section{box-shadow:none;border:1px solid #ece5e9;border-radius:24px;padding:24px}
.community-layout{gap:18px;grid-template-columns:210px minmax(0,1fr)}
.community-layout>*{min-width:0}
.project-grid{gap:14px}
.community-pager{position:static;bottom:auto;flex-wrap:wrap;margin:18px 0 0;box-shadow:none;background:#fff;border:1px solid #eadfe4;border-radius:16px;padding:10px}
.project-card{min-width:0;border-radius:17px;border:1px solid #ece5e9;background:#fff;box-shadow:none}
.project-body{padding:14px}
.project-body h3{font-size:18px;line-height:1.35;overflow-wrap:anywhere}
.project-body p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.template-card-menu{z-index:30;max-width:calc(100vw - 40px);box-shadow:0 12px 36px #41222f1f;border:1px solid #ecd4de}
.template-manager-section .section-head h2{font-size:27px;line-height:1.25;letter-spacing:-.7px}
.manager-card{padding:16px;border-radius:17px;min-width:0;gap:12px}
.manager-details{min-width:0}.manager-details>div{min-width:0}
.manager-details h3,.manager-details p{overflow-wrap:anywhere}
.manager-details h3{font-size:17px;line-height:1.3}
.manager-details p{font-size:12px}
.manager-actions{gap:8px}
.manager-actions button{min-height:42px;padding:10px 14px;font-size:12px}
.template-upload-page .community-hero>img{width:100%;max-width:280px;max-height:150px;object-fit:contain;justify-self:center}
.template-upload-page .template-manager-section{max-width:800px;margin:0 auto}
.admin-login-card{box-shadow:none;padding:20px;border-radius:20px;min-width:0}
.admin-login-card label{min-width:0;font-size:13px}
.admin-login-card input,.admin-login-card select{min-width:0;max-width:100%}
.retail-page .shop-product{max-width:none;border-radius:20px;padding:18px;box-shadow:none}
.retail-page .shop-intro{display:block;min-height:0;margin:0;padding:4px 0 12px}
.retail-page .shop-intro h1{font-size:clamp(32px,4vw,46px)}
.retail-page .shop-product-grid{gap:16px}
.retail-page .shop-product-top>div{min-width:0}
.retail-page .shop-product h3{overflow-wrap:anywhere;font-size:18px}
.retail-page .shop-product-actions button{background:#ae4265}
.retail-page .shop-product-actions button:hover:not(:disabled){background:#963756}
.shop-cart-float{bottom:max(20px,env(safe-area-inset-bottom));right:20px;font-size:14px;padding:11px 16px!important;min-height:46px;box-shadow:0 5px 20px #58303e20}
.shop-product-description img{max-width:100%;height:auto}
.shop-product-description table{display:block;max-width:100%;overflow:auto}
.info-page .creator-rewards{border:1px solid #ece5e9;border-radius:24px;background:#fff;padding:28px;gap:24px;box-shadow:none}
.info-page .creator-rewards h2{font-size:23px;line-height:1.3}
.info-page .creator-rewards p{font-size:14px;line-height:1.75}
.beadia-footer{margin-top:40px;gap:24px;padding-top:28px;font-size:13px}
.beadia-footer .footer-brand img{width:154px;height:64px}
.beadia-footer .footer-support summary{padding:4px 0;min-height:30px}
.footer-x{font-size:20px;padding:8px 14px}
.account-menu{border:1px solid #ecdfe5;box-shadow:0 12px 40px #4824371f;max-width:calc(100vw - 24px);overscroll-behavior:contain}
.account-menu a,.account-menu button{min-height:42px}
.account-stats article{min-width:0}.account-stats span{overflow-wrap:normal}
.cookie-consent{padding:14px 16px;bottom:max(16px,env(safe-area-inset-bottom));box-shadow:0 8px 30px #48243726}
.cookie-consent button{min-height:42px}
body:not(.assist-page) dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overscroll-behavior:contain}
.beadia-footer a:focus-visible,header a:focus-visible,.community-points-details>summary:focus-visible{outline:3px solid #d77c9a;outline-offset:3px}
@media(min-width:1200px){.community-page:not(.admin-page) .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.community-layout{grid-template-columns:1fr}.community-sidebar{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:760px){
  body>header{gap:8px 12px;padding:10px 16px}
  body>header .brand-logo{width:136px;height:56px;max-width:136px}
  body>header .top-nav{order:3;flex:1 1 100%;width:100%;justify-content:space-between;flex-wrap:nowrap;gap:4px}
  body>header .top-nav a{font-size:12px;padding:9px 6px;min-width:0;line-height:1.3}
  body>header .account-nav{margin-left:auto}
  body>header .pill{display:none}
  body:not(.assist-page)>main{padding:24px 16px 18px}
  .landing-hero{padding:16px 0 24px}.landing-hero h1{font-size:36px;letter-spacing:-1.2px}
  .landing-hero p:not(.eyebrow){font-size:15px}
  .landing-choices{gap:14px}.landing-choice{padding:20px;border-radius:20px}
  .landing-choice .choice-visual{height:168px;max-height:168px;margin-bottom:16px}
  .community-teaser{padding:20px;border-radius:20px}.community-teaser h2{font-size:24px}
  body:not(.assist-page) .intro h1{font-size:36px!important;letter-spacing:-1.3px!important}
  body:not(.assist-page) .intro p:not(.eyebrow){font-size:15px!important}
  .custom-explain.product-photo-strip .wide-product-photo{max-height:160px}.custom-explain{gap:12px}
  .custom-explain h2{font-size:19px}
  .controls,.design-panel,.production{padding:18px!important}
  .community-page .community-feed,.template-manager-section{padding:16px;border-radius:20px}
  .community-page .project-grid{grid-template-columns:1fr;gap:10px}
  .community-page:not(.admin-page) .project-card{grid-template-columns:128px minmax(0,1fr);gap:10px;padding:10px;border-radius:14px;min-height:146px}
  .community-page:not(.admin-page) .project-card img{height:128px;border-radius:8px}
  .community-page .project-body{padding:0 0 44px;min-width:0}
  .community-page .project-body h3{font-size:15px;line-height:1.35;margin-bottom:5px}
  .community-page .project-body p{font-size:11px;line-height:1.5}
  .community-page .project-actions{min-height:36px}
  .community-page .template-card-menu{min-width:min(218px,calc(100vw - 48px));right:0}
  .community-points-details{margin:0 0 16px}.community-points-details>summary{font-size:12px;padding:13px 15px}
  .community-points-details>.creator-rewards{display:grid!important;grid-template-columns:1fr;padding:12px 15px 16px;gap:12px}
  .community-points-details .reward-grid{grid-template-columns:1fr 1fr}
  .community-points-details .reward-grid article{padding:12px}
  .account-templates-page .community-hero,.template-upload-page .community-hero,.admin-page .community-hero{display:grid!important;grid-template-columns:minmax(0,1fr);gap:12px}
  .community-page:has(#publish-status) .community-hero,.community-page:has(#publish-status) .creator-rewards{display:block!important}
  .community-page:has(#publish-status) .community-hero-card{display:none}
  .account-templates-page .community-hero-card,.template-upload-page .community-hero>img{display:none}
  .account-templates-page .community-hero h1,.template-upload-page .community-hero h1{font-size:33px;letter-spacing:-1.2px}
  .account-templates-page .community-hero p:not(.eyebrow),.template-upload-page .community-hero p:not(.eyebrow){font-size:14px}
  .section-head h2{font-size:24px!important}
  .retail-page .shop-product{padding:16px}.shop-section-heading h2{font-size:23px}
  .shop-cart-float{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}
  .info-page .creator-rewards{padding:20px;gap:22px}.info-page .landing-hero h1{font-size:36px}
  .beadia-footer{margin-top:28px;padding:24px 20px max(82px,env(safe-area-inset-bottom));gap:20px}
  .account-menu{right:12px;top:78px;max-height:calc(100dvh - 102px)}
  .account-stats strong{font-size:21px}.account-stats span{font-size:11px;line-height:1.4}
  .cookie-consent{left:12px;right:12px;padding:14px}.cookie-consent p{font-size:12px}
  .cookie-consent div{justify-content:space-between;gap:8px}
}
@media(max-width:360px){
  body>header .top-nav a{font-size:11px;padding:8px 4px}
  .community-page:not(.admin-page) .project-card{grid-template-columns:100px minmax(0,1fr)}
  .community-page:not(.admin-page) .project-card img{height:112px}
  .community-points-details .reward-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}

/* Template pagination is always in flow, above and below results. */
.template-pagination{display:grid;grid-template-columns:1fr auto;gap:10px 16px;align-items:center;margin:16px 0;padding:14px;background:#fff8fb;border:1px solid #edd9e2;border-radius:18px;scroll-margin-top:20px}
.template-pagination .pagination-summary{grid-column:1/-1;margin:0;font-size:12px;line-height:1.5;color:#6c756f}
.pagination-controls{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:wrap;min-width:0}
.template-pagination button{font:inherit;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #e6ced8;border-radius:10px;background:#fff;color:#87405c;min-width:36px;min-height:38px;padding:6px 10px;cursor:pointer}
.template-pagination button[aria-current=page]{background:#ac4265;color:#fff;border-color:#ac4265}
.template-pagination button:hover:not(:disabled){background:#f8e4ed;color:#853452}
.template-pagination button[aria-current=page]:hover{background:#923655;color:#fff}
.template-pagination button:disabled{opacity:.4;cursor:default}
.template-pagination button:focus-visible,.template-pagination input:focus-visible{outline:3px solid #d57c9c;outline-offset:2px}
.pagination-ellipsis{color:#a18b94;min-width:16px;text-align:center}
.pagination-jump{display:flex;align-items:center;gap:8px;justify-self:end;margin:0}
.pagination-jump label{display:flex;align-items:center;gap:6px;font-size:12px;color:#6c756f;margin:0}
.pagination-jump input{box-sizing:border-box;width:54px;min-width:0;min-height:36px;font:inherit;text-align:center;border:1px solid #e6ced8;border-radius:9px;padding:5px;background:#fff;color:#4c4f4c}
.template-library-search{scroll-margin-top:20px;margin:12px 0}
.template-library-search label{display:block;font-size:12px;font-weight:600;color:#67776e}
.template-library-search input{box-sizing:border-box;width:100%;min-width:0;margin-top:6px;padding:12px 14px;border:1px solid #e6d9df;border-radius:12px;background:#fff;font:inherit;font-weight:400;font-size:14px}
.template-manager-section .template-pagination{grid-template-columns:1fr}
.template-manager-section .pagination-jump{justify-self:start}
#gallery{scroll-margin-top:20px}
@media(max-width:760px){
  .template-pagination{grid-template-columns:1fr;gap:10px;padding:12px;border-radius:14px}
  .pagination-controls{justify-content:center;gap:4px}
  .template-pagination button{min-width:32px;min-height:36px;padding:5px 7px;font-size:12px}
  .template-pagination .pagination-direction-text{display:none}
  .template-pagination [data-page-action]{font-size:22px;padding:2px 8px}
  .pagination-ellipsis{min-width:16px;font-size:12px}
  .pagination-jump,.template-manager-section .pagination-jump{justify-self:center}
  .template-pagination .pagination-summary{text-align:center;font-size:11px}
}
