:root{--accent:#fdce04;--accent-contrast:#111111}

:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#171717;background:#f5f5f5}
*{box-sizing:border-box}body{margin:0;padding-bottom:84px}header{height:64px;background:#111;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 20px;position:sticky;top:0}button{border:0;border-radius:12px;padding:12px 16px;font-weight:700;cursor:pointer}.hero{background:white;padding:28px 20px}.hero h1{font-size:clamp(32px,8vw,56px);line-height:1;margin:0 0 12px}.search{display:flex;gap:8px;max-width:760px}.search input{flex:1;padding:15px;border:1px solid #ccc;border-radius:12px;font-size:16px}.search button,nav button{background:var(--accent)}.hint{font-size:13px;color:#666}.grid,.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;padding:0 20px}.cards article,.set-card{background:white;border-radius:18px;padding:18px;box-shadow:0 4px 18px #0000000d}h2{padding:0 20px}.set-card img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#fafafa;border-radius:12px}nav{position:fixed;bottom:0;left:0;right:0;background:white;border-top:1px solid #ddd;display:flex;align-items:center;justify-content:space-around;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}nav a{font-size:13px}nav button{font-size:24px;border-radius:50%;width:52px;height:52px;padding:0}

.account-actions{display:flex;align-items:center;gap:12px}.account-actions a{color:white;text-decoration:none}.header-cta{background:var(--accent);color:#111!important;padding:9px 12px;border-radius:10px;font-weight:800}.account-name{font-size:14px;color:#ddd}
.auth-page{min-height:100vh;background:#111;padding:24px}.auth-wrap{min-height:calc(100vh - 48px);display:grid;place-items:center}.auth-card{width:min(100%,460px);background:white;border-radius:24px;padding:28px;box-shadow:0 30px 80px #0005}.brand-link{text-decoration:none;color:#111;font-weight:900}.auth-card h1{font-size:36px;margin:20px 0 6px}.auth-card p{color:#666}.auth-form{display:grid;gap:16px;margin-top:24px}.auth-form label{font-weight:700;font-size:14px;display:grid;gap:7px}.auth-form input{padding:14px 15px;border:1px solid #d5d5d5;border-radius:12px;font-size:16px}.primary-btn{background:var(--accent);color:#111;font-size:16px}.auth-msg{min-height:22px;color:#a00000;font-size:14px}.auth-switch{text-align:center;margin-top:20px}.auth-switch a{font-weight:800;color:#111}

nav a{color:#111;text-decoration:none}
.nav-plus{display:grid;place-items:center;background:var(--accent);width:52px;height:52px;border-radius:50%;font-size:26px;font-weight:900}
.page-actions{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 20px}
.feature-btn{display:inline-block;background:#111;color:white!important;text-decoration:none;padding:11px 14px;border-radius:11px;font-weight:800}

.form-card,.chat-card{background:#fff;border-radius:18px;padding:20px;margin:0 20px 20px}.stack-form{display:grid;gap:12px}.stack-form input,.stack-form textarea,.stack-form select,.form-card input{width:100%;padding:13px;border:1px solid #d0d0d0;border-radius:10px;font:inherit}.stack-form textarea{min-height:90px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.page-actions,.tabs{display:flex;gap:10px;flex-wrap:wrap;padding:0 20px 20px}.feature-btn{display:inline-block;background:#111;color:#fff!important;text-decoration:none;padding:11px 14px;border-radius:11px;font-weight:800}.mini-results{display:grid;gap:7px;margin-top:9px}.mini-results button{width:100%;text-align:left;background:#f2f2f2}.chat-messages{height:400px;overflow:auto;background:#f7f7f7;border-radius:14px;padding:12px}.bubble{background:#fff;border-radius:12px;padding:10px 12px;margin:8px 0}.bubble p{margin:5px 0}.chat-form{display:flex;gap:8px;margin-top:10px}.chat-form input{flex:1;padding:12px;border:1px solid #ccc;border-radius:10px}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;padding:0 20px}.photo-card{background:#fff;border-radius:18px;overflow:hidden}.photo-card img{width:100%;aspect-ratio:1/1;object-fit:cover}.photo-card div{padding:14px}.split{display:grid;grid-template-columns:minmax(240px,340px) 1fr;gap:20px;padding:0 20px}.split .form-card,.split .chat-card{margin:0}#scanVideo{width:100%;margin-top:10px;border-radius:14px;background:#000}.install-btn{background:var(--accent);color:#111;margin-bottom:16px}.install-btn[hidden]{display:none!important}
@media(max-width:760px){.split,.two-col{grid-template-columns:1fr}.chat-messages{height:320px}}

label{display:grid;gap:6px;font-size:13px;font-weight:700;margin-top:8px}.set-card input,.set-card select,.set-card textarea{width:100%;padding:10px;border:1px solid #d6d6d6;border-radius:9px;font:inherit}.set-card textarea{min-height:60px;margin-top:8px}.row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.danger{background:#9d1c1c;color:#fff}.toast-wrap{position:fixed;top:76px;right:18px;z-index:9999;display:grid;gap:8px}.toast{min-width:240px;max-width:380px;background:#161616;color:#fff;padding:13px 16px;border-radius:12px;box-shadow:0 10px 35px #0004;transform:translateY(-12px);opacity:0;transition:.22s}.toast.show{transform:none;opacity:1}.toast.ok{border-left:5px solid #39a96b}.toast.warn{border-left:5px solid var(--accent)}.toast.error{border-left:5px solid #d84848}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #eee}dialog{width:min(720px,94vw);border:0;border-radius:20px;padding:20px;box-shadow:0 30px 90px #0006}dialog::backdrop{background:#0008}.dialog-close{float:right}.install-help{position:fixed;inset:0;background:#0009;z-index:9998;display:grid;place-items:center;padding:20px}.install-help>div{background:#fff;border-radius:20px;padding:22px;max-width:440px}.install-btn{display:inline-block}

.notif-bell{position:relative;display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;text-decoration:none;background:#222}
.bell-icon{font-size:21px}
.notif-badge{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#ff3b30;color:white;font-size:11px;font-weight:900;display:grid;place-items:center;border:2px solid #111}
.notif-badge[hidden]{display:none!important}

.danger-btn{background:#b42318;color:#fff}
.photo-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.photo-source-btn{display:grid;place-items:center;padding:14px;border:1px solid #d0d0d0;border-radius:12px;background:#f7f7f7;font-weight:800;cursor:pointer;text-align:center}
.selected-file{font-size:14px;color:#666}
.photo-preview{width:100%;max-height:340px;object-fit:contain;border-radius:14px;background:#f6f6f6}
@media(max-width:560px){.photo-source-grid{grid-template-columns:1fr}}

.search-result-card{display:grid;grid-template-columns:90px 1fr;gap:12px;align-items:center;padding:10px;border:1px solid #ddd;border-radius:12px;background:#fff}
.search-result-card img,.image-placeholder{width:90px;height:70px;object-fit:contain;border-radius:9px;background:#f3f3f3;display:grid;place-items:center;font-size:12px;color:#777}
.modal-backdrop{position:fixed;inset:0;background:#0008;display:grid;place-items:center;padding:20px;z-index:9999}
.modal-backdrop[hidden]{display:none!important}
.modal-card{width:min(100%,460px);background:#fff;border-radius:20px;padding:22px;box-shadow:0 30px 80px #0008}
.modal-card button{margin-top:10px;margin-right:8px}


.premium-category-list{display:grid;gap:14px;padding:0 20px 24px}
.premium-category-card{position:relative;min-height:132px;border-radius:24px;overflow:hidden;text-decoration:none;color:#111;display:flex;align-items:center;padding:24px 88px 24px 24px;background:#fff;box-shadow:0 10px 30px #00000010;border:1px solid #ffffff}
.premium-category-card::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,#fff 43%,rgba(255,255,255,.82) 58%,rgba(255,255,255,.18) 100%);z-index:1}
.premium-category-card::after{content:"";position:absolute;right:0;top:0;bottom:0;width:58%;background-position:center;background-size:cover;filter:saturate(.95) contrast(.95);z-index:0}
.category-copy,.category-arrow{position:relative;z-index:2}
.category-copy h3{font-size:22px;margin:0 0 4px}.category-copy p{margin:0;color:#667085;font-size:15px}
.category-arrow{margin-left:auto;width:44px;height:44px;border-radius:50%;background:#ffffffdd;display:grid;place-items:center;font-size:34px;line-height:1;box-shadow:0 6px 18px #0002}
.category-collection::after{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.04)),url('assets/cat-collection.jpg')}
.category-pieces::after{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.04)),url('assets/cat-pieces.jpg')}
.category-mocs::after{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.04)),url('assets/cat-mocs.jpg')}
.category-community::after{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.04)),url('assets/cat-community.jpg')}
.category-gallery::after{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.04)),url('assets/cat-gallery.jpg')}
.category-market::after{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.04)),url('assets/cat-market.jpg')}

.public-page{background:linear-gradient(180deg,#f8f8f8,#f3eee8);min-height:100vh}
.public-hero{padding:32px 20px 18px}.public-hero h1{font-size:38px;margin:0 0 6px}.public-hero p{margin:0;color:#667085}
.private-state{margin:30px auto;padding:44px 28px;max-width:680px;text-align:center;background:linear-gradient(135deg,#fff,#fff7ef);border-radius:28px;box-shadow:0 16px 40px #00000012}
.private-state .lock-mark{font-size:56px;margin-bottom:12px}.private-state h2{font-size:28px;margin:0 0 10px}.private-state p{color:#667085;margin-bottom:22px}
.public-placeholder{aspect-ratio:4/3;background:linear-gradient(135deg,#f2f2f2,#eaeaea);display:grid;place-items:center;border-radius:12px;color:#888}

@media(max-width:640px){
  .premium-category-card{min-height:118px;padding:20px 74px 20px 18px}
  .premium-category-card::after{width:64%}
  .premium-category-card::before{background:linear-gradient(90deg,#fff 0%,#fff 48%,rgba(255,255,255,.84) 66%,rgba(255,255,255,.22) 100%)}
}

.profile-photo-wrap{display:grid;grid-template-columns:132px 1fr;gap:18px;align-items:center}
.profile-avatar-large{width:132px;height:132px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#fff4df,#ececec);display:grid;place-items:center;border:4px solid #fff;box-shadow:0 10px 28px #0002}
.profile-avatar-large img{width:100%;height:100%;object-fit:cover}
.profile-avatar-large span{font-size:58px}
.profile-photo-actions{display:grid;gap:10px}
.public-owner-row{display:flex;align-items:center;gap:16px}
.public-avatar{width:78px;height:78px;border-radius:50%;overflow:hidden;background:#fff;display:grid;place-items:center;box-shadow:0 8px 22px #0002}
.public-avatar img{width:100%;height:100%;object-fit:cover}
.public-avatar span{font-size:34px}
@media(max-width:560px){.profile-photo-wrap{grid-template-columns:1fr}.profile-avatar-large{margin:auto}.profile-photo-actions{width:100%}}

/* GM 1.1.3 layout production fixes */
:root{--app-header-h:88px;--app-nav-h:84px}
body{padding-top:var(--app-header-h)!important;padding-bottom:0!important}
body>header{position:fixed!important;top:0;left:0;right:0;height:var(--app-header-h);z-index:1000!important;background:#111!important;display:flex;align-items:center;justify-content:space-between;padding:0 20px}
body>nav{position:fixed!important;left:0;right:0;bottom:0;min-height:var(--app-nav-h);z-index:1100!important;background:#fff!important;border-top:1px solid #ddd;box-shadow:0 -8px 24px #00000012;padding-bottom:max(9px,env(safe-area-inset-bottom))}
main{position:relative;z-index:1;padding-bottom:calc(var(--app-nav-h) + env(safe-area-inset-bottom) + 24px)}
.premium-category-list{display:grid;gap:14px;padding:0 20px 28px}
.premium-category-card{position:relative;min-height:132px;border-radius:24px;overflow:hidden;text-decoration:none;color:#111;display:flex;align-items:center;padding:24px 84px 24px 24px;background:#fff;box-shadow:0 10px 30px #00000010;border:1px solid #fff}
.premium-category-card::after{content:"";position:absolute;right:0;top:0;bottom:0;width:58%;background-size:cover;background-position:center;z-index:0}
.premium-category-card::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,#fff 42%,rgba(255,255,255,.88) 58%,rgba(255,255,255,.18) 100%);z-index:1}
.category-copy{position:relative;z-index:2;max-width:58%}
.category-copy h3{margin:0 0 5px;font-size:22px}.category-copy p{margin:0;color:#667085}
.category-arrow{position:absolute!important;right:20px!important;left:auto!important;top:50%;transform:translateY(-50%);z-index:3;width:46px;height:46px;border-radius:50%;background:#ffffffee;display:grid;place-items:center;font-size:34px;box-shadow:0 6px 18px #0002}
.category-collection::after{background-image:url('cat-collection.jpg')}
.category-pieces::after{background-image:url('cat-pieces.jpg')}
.category-mocs::after{background-image:url('cat-mocs.jpg')}
.category-community::after{background-image:url('cat-community.jpg')}
.category-gallery::after{background-image:url('cat-gallery.jpg')}
.category-market::after{background-image:url('cat-market.jpg')}
.section-help{color:#667085;margin-top:-6px}.switch-row{display:flex!important;align-items:center;gap:10px}.switch-row input{width:auto!important}

@media(max-width:640px){
  :root{--app-header-h:82px;--app-nav-h:78px}
  .premium-category-card{min-height:120px;padding:20px 76px 20px 18px}
  .premium-category-card::after{width:64%}
  .premium-category-card::before{background:linear-gradient(90deg,#fff 0%,#fff 47%,rgba(255,255,255,.86) 65%,rgba(255,255,255,.18) 100%)}
  .category-copy{max-width:62%}
  .category-arrow{right:16px!important}
}

/* GM 1.1.4 - card mockup fidelity + Mercatino */
.premium-category-card{
  min-height:148px!important;
  border-radius:26px!important;
  padding:24px 86px 24px 24px!important;
  background:#fff!important;
}
.premium-category-card::after{
  width:62%!important;
  background-size:cover!important;
  background-position:center!important;
  filter:none!important;
  opacity:1!important;
}
.premium-category-card::before{
  background:linear-gradient(90deg,#fff 0%,#fff 39%,rgba(255,255,255,.95) 48%,rgba(255,255,255,.74) 59%,rgba(255,255,255,.15) 82%,rgba(255,255,255,0) 100%)!important;
}
.category-copy{max-width:58%!important}
.category-copy h3{font-size:23px!important;font-weight:850!important}
.category-copy p{font-size:16px!important;line-height:1.25}
.category-arrow{right:18px!important;width:48px!important;height:48px!important;background:#fffffff2!important}

.market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px;padding:0 20px 24px}
.market-card{background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 10px 28px #00000012;border:1px solid #fff}
.market-card>img,.market-image-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;background:#f2f2f2;display:grid;place-items:center;color:#888}
.market-card-body{padding:16px}.market-card-body h3{margin:5px 0 8px}.market-card-body p{color:#667085}
.market-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:12px 0;font-size:14px}
.paypal-btn{width:100%;background:#0070ba;color:#fff;border-radius:12px;padding:13px 15px;font-weight:800}
.market-disabled{display:block;padding:12px;border-radius:10px;background:#f3f3f3;color:#777;text-align:center}
.seller-ready{padding:4px}.seller-ready p{margin-bottom:0;color:#667085}
.section-title-row{padding:0 20px}.section-title-row h2{padding:0}


/* GM 1.1.5 - remove residual mockup arrow circles and refine card layout */
.premium-category-card{overflow:hidden!important; isolation:isolate;}
.premium-category-card::after{width:56%!important; right:0!important;}
.category-copy{max-width:54%!important;}
.category-arrow{right:18px!important; z-index:5!important;}
@media(max-width:640px){
  .premium-category-card::after{width:54%!important;}
  .category-copy{max-width:50%!important;}
}


/* GM 1.1.6 - header avatar + Mercatino tabs/search */
.header-actions{display:flex;align-items:center;gap:10px}
.header-avatar-link{width:44px;height:44px;border-radius:50%;overflow:hidden;background:#2a2a2a;display:grid;place-items:center;text-decoration:none;border:2px solid #333;flex:0 0 44px}
.header-avatar-link img{width:100%;height:100%;object-fit:cover;display:block}
.header-avatar-link span{font-size:21px;line-height:1}
.market-browser{padding-bottom:24px}
.market-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 20px 12px}
.market-tab{background:#ececec;color:#111;border-radius:14px;padding:13px 12px;font-weight:800}
.market-tab.active{background:#111;color:#fff}
.market-search-wrap{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:0 20px 18px}
.market-search-wrap input{min-width:0;padding:13px 14px;border:1px solid #d0d0d0;border-radius:12px;font:inherit;background:#fff}
.market-search-wrap button{white-space:nowrap}
.market-code{display:inline-block;margin:4px 0 8px;padding:4px 8px;border-radius:8px;background:#f3f3f3;color:#555;font-size:12px;font-weight:700}
@media(max-width:600px){
  .market-search-wrap{grid-template-columns:1fr auto}
  #marketSearchClear{grid-column:1/-1}
}


/* GM 1.1.7 */
.brand-logo{display:inline-flex;align-items:center;text-decoration:none;color:#fff;font-size:27px;font-weight:900;letter-spacing:-.6px;line-height:1}
.brand-logo .brand-accent{color:var(--accent)}
.market-toolbar{padding:0 20px 18px;display:grid;gap:12px}
.market-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#ececec;padding:5px;border-radius:15px}
.market-tab{border:0;background:transparent;border-radius:11px;padding:12px 10px;font-weight:800;color:#444}
.market-tab.active{background:var(--accent);color:#111;box-shadow:0 3px 10px #0001}
.market-search-wrap input{width:100%;padding:14px 15px;border:1px solid #d4d4d4;border-radius:13px;font-size:16px;background:#fff}
@media(max-width:640px){.brand-logo{font-size:25px}.market-tabs{grid-template-columns:1fr 1fr}}


/* GM 1.1.8 */
.category-minifigs::after{background-image:url('cat-minifigs.jpg')}
.import-list{margin:0;padding-left:20px;display:grid;gap:8px}


/* GM 1.1.9 header icons */
.notif-bell,.header-avatar-link{width:46px!important;height:46px!important;min-width:46px!important;min-height:46px!important;border-radius:50%!important;display:grid!important;place-items:center!important;}
.notif-bell{color:#fff;background:#222!important;}
.bell-icon{display:grid;place-items:center;line-height:0;}
.bell-icon svg{display:block;width:24px;height:24px;}
.header-avatar-link{overflow:hidden;background:#2b2b2b!important;border:2px solid #3a3a3a;}
.header-avatar-link img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important;}
#headerAvatarFallback{font-size:22px;line-height:1;}
.rebrickable-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:14px;padding:0 20px 24px}.import-slot{background:#fff;border-radius:20px;padding:18px;box-shadow:0 6px 22px #0000000d}.import-slot h3{margin:0 0 6px}.import-slot .file-name{display:inline-block;font-family:ui-monospace,SFMono-Regular,monospace;background:#f3f3f3;padding:5px 8px;border-radius:8px;margin-bottom:10px}.import-slot .slot-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.import-status{font-size:13px;color:#667085;margin-top:9px}.flat-secondary{background:#f1f1f1;color:#111}.admin-tools-links{display:flex;gap:8px;flex-wrap:wrap}


/* GM 1.1.9a - force Minifig card visibility on Home */
.premium-category-list{padding-bottom:120px!important}
.category-minifigs{display:flex!important}
.category-minifigs::after{background-image:url('cat-minifigs.jpg')!important;background-size:cover!important;background-position:center!important}
@media(max-width:640px){.premium-category-list{padding-bottom:132px!important}}


/* GM 1.2.0 - Minifig photographic card */
.category-minifigs::after{background-image:url('cat-minifigs.jpg')!important;background-size:cover!important;background-position:center!important;filter:none!important}

/* GM 1.2.1 */
.minifig-related{margin-top:12px;padding-top:10px;border-top:1px solid #eee;display:grid;gap:4px;color:#555}.minifig-related b{color:#222;font-size:13px}


/* GM 1.2.3 - filtro linea nella collezione */
.collection-filter-card{
  margin:0 20px 20px;
  background:#fff;
  border-radius:18px;
  padding:16px 18px;
  box-shadow:0 4px 18px #0000000d;
  display:grid;
  grid-template-columns:auto minmax(180px,360px) auto;
  gap:12px;
  align-items:center;
}
.collection-filter-card label{margin:0;font-weight:800;font-size:14px}
.collection-filter-card select{
  width:100%;
  padding:12px 14px;
  border:1px solid #d0d0d0;
  border-radius:12px;
  background:#fff;
  font:inherit;
}
.collection-count{color:#667085;font-size:14px;white-space:nowrap}
@media(max-width:640px){
  .collection-filter-card{grid-template-columns:1fr}
  .collection-count{padding-left:2px}
}

/* GM 1.2.5 */
.public-filter-card{margin-top:0}.public-owner-row{display:flex;align-items:center;gap:18px}.public-avatar{width:92px!important;height:92px!important;min-width:92px!important;border-radius:50%;overflow:hidden;background:#fff;display:grid;place-items:center;box-shadow:0 8px 24px #0002}.public-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}.public-avatar span{font-size:42px}.minifig-tabs{padding-top:18px}.tab-btn{background:#eee;color:#111}.tab-btn.active{background:#111;color:#fff}.owned-set-badge{margin:10px 0;padding:10px 12px;border-radius:12px;background:#ecf8ef;color:#176b2c}.owned-set-badge b,.minifig-related b{display:block;margin-bottom:4px}.minifig-related{margin:10px 0;padding:10px 12px;border-radius:12px;background:#f5f5f5}.minifig-card textarea{width:100%;min-height:70px;margin-top:8px}@media(max-width:640px){.public-avatar{width:76px!important;height:76px!important;min-width:76px!important}.public-avatar span{font-size:34px}}


/* GM 1.2.6 - Galleria like e blocchi */
.gallery-tabs,.minifig-tabs{padding:0 20px 18px}.tab-btn{background:#ececec;color:#222}.tab-btn.active{background:#111;color:#fff}
.photo-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.heart-btn{background:#f3f3f3;color:#222;padding:9px 13px;border-radius:999px;font-size:17px}.heart-btn.liked{background:#fff0f2;color:#c91f3a}.like-summary{font-size:16px;color:#666}.chat-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.chat-title-row h2{padding:0;margin:0}.block-notice{margin:12px 0;background:#fff4e5;border:1px solid #ffd79a;border-radius:12px;padding:11px 13px;color:#7a4b00}.unblock-btn{background:#ececec!important;color:#111!important}


/* GM 1.2.7 - desktop layout, personalized set photos, shared avatars */
.public-avatar,.public-avatar img,.shared-avatar,.shared-avatar img{border-radius:50%!important;aspect-ratio:1/1!important;object-fit:cover!important}

@media(min-width:900px){
  :root{--app-header-h:76px;--app-nav-h:0px}
  body{padding-top:76px!important;padding-bottom:28px!important;background:#f3f3f3}
  body>header{height:76px!important;padding:0 max(28px,calc((100vw - 1440px)/2))!important;z-index:1200!important}
  body>nav{
    position:fixed!important;top:0!important;bottom:auto!important;left:50%!important;right:auto!important;
    transform:translateX(-50%)!important;width:auto!important;min-height:76px!important;height:76px!important;
    padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
    display:flex!important;gap:4px!important;justify-content:center!important;z-index:1250!important
  }
  body>nav a{color:#fff!important;font-size:14px!important;font-weight:750;padding:10px 13px;border-radius:12px;white-space:nowrap}
  body>nav a:hover{background:#ffffff14}
  body>nav .nav-plus{width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;color:#111!important;background:var(--accent)!important;font-size:23px!important}
  main{width:min(100%,1440px);margin:0 auto;padding:0 24px 40px!important}
  .hero{margin:26px 0 22px!important;padding:42px 42px!important;border-radius:26px!important;box-shadow:0 8px 30px #00000008}
  .hero h1{font-size:clamp(40px,4vw,66px)!important;max-width:1000px}
  h2{padding-left:0!important;padding-right:0!important}
  .grid,.cards,.gallery-grid,.market-grid{padding-left:0!important;padding-right:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
  .premium-category-list{padding-left:0!important;padding-right:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
  .premium-category-card{min-height:170px!important}
  .form-card,.chat-card{margin-left:0!important;margin-right:0!important}
  .page-actions,.tabs{padding-left:0!important;padding-right:0!important}
  .collection-filter-card{margin-left:0!important;margin-right:0!important}
  .split{padding-left:0!important;padding-right:0!important}
  .public-page main{width:min(100%,1320px);margin:auto;padding:0 28px 40px!important}
  .public-page .public-hero{margin:26px 0 22px;padding:30px 0}
}
@media(min-width:900px) and (max-width:1180px){
  .grid,.cards,.gallery-grid,.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body>nav a{padding:10px 8px;font-size:13px!important}
}


/* GM 1.2.9 - collection alignment + desktop add actions */
#collectionGrid>.set-card[data-id]{display:flex;flex-direction:column;height:100%}
#collectionGrid>.set-card[data-id]>p{margin-bottom:14px}
.collection-card-actions{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding-top:12px}
.collection-card-actions .feature-btn,.collection-card-actions .danger{min-height:48px;display:inline-flex;align-items:center;justify-content:center}
.desktop-add-link{display:none}
.mobile-add-link{display:grid}

@media(min-width:900px){
  body>nav .mobile-add-link{display:none!important}
  body>nav .desktop-add-link{display:inline-flex!important;align-items:center!important;justify-content:center!important}
  #collectionGrid>.set-card[data-id]{min-height:100%;}
  .collection-card-actions{width:100%;}
  .collection-card-actions .feature-btn,.collection-card-actions .danger{width:100%;max-width:210px}
}


/* GM 1.3.0 - compact collection actions on desktop.
   Mobile navigation remains Home / Collezione / + / Community / Profilo. */
@media(min-width:900px){
  #collectionGrid>.set-card[data-id]{
    display:flex!important;
    flex-direction:column!important;
  }
  #collectionGrid .collection-card-actions{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    flex-wrap:nowrap!important;
    margin-top:auto!important;
    width:100%!important;
  }
  #collectionGrid .collection-card-actions .feature-btn,
  #collectionGrid .collection-card-actions .danger{
    width:auto!important;
    max-width:none!important;
    min-height:0!important;
    padding:8px 11px!important;
    border-radius:9px!important;
    font-size:13px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
  }

  /* Desktop only: explicit add links. */
  body>nav .mobile-add-link{display:none!important}
  body>nav .desktop-add-link{display:inline-flex!important}
}

@media(max-width:899px){
  /* Mobile only: keep the central + and hide desktop add links. */
  body>nav .desktop-add-link{display:none!important}
  body>nav .mobile-add-link{display:grid!important}
}




/* GM 1.3.2 - gallery fit + original mobile menu */
.published-photo-image{
  width:100%!important;
  height:auto!important;
  max-height:520px!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  display:block!important;
}

.mobile-bottom-nav,.desktop-top-nav{display:none}

@media(max-width:899px){
  .desktop-top-nav{display:none!important}
  .mobile-bottom-nav{
    display:flex!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:1000!important;
    background:#fff!important;
    border-top:1px solid #e6e6e6!important;
    box-shadow:none!important;
    min-height:64px!important;
    align-items:center!important;
    justify-content:space-around!important;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;
  }
  .mobile-bottom-nav a{
    flex:1 1 0!important;
    text-align:center!important;
    color:#111!important;
    text-decoration:none!important;
    font-size:12px!important;
    font-weight:700!important;
    padding:6px 2px!important;
  }
  .mobile-bottom-nav .nav-plus{
    flex:0 0 auto!important;
    display:grid!important;
    place-items:center!important;
    width:48px!important;
    height:48px!important;
    margin:0 6px!important;
    padding:0!important;
    border-radius:50%!important;
    background:var(--accent)!important;
    color:#111!important;
    font-size:26px!important;
    line-height:1!important;
  }
  body{padding-bottom:calc(74px + env(safe-area-inset-bottom))!important}
}

@media(min-width:900px){
  .mobile-bottom-nav{display:none!important}
  .desktop-top-nav{
    display:flex!important;
    position:fixed!important;
    top:0!important;
    right:18px!important;
    z-index:1200!important;
    min-height:88px!important;
    align-items:center!important;
    gap:18px!important;
    background:transparent!important;
  }
  .desktop-top-nav a{
    color:#fff!important;
    text-decoration:none!important;
    font-size:14px!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
}


/* GM 1.3.3 - private purchase price + set location */
.set-location-box{
  border:1px solid #e2e2e2;
  border-radius:14px;
  padding:14px;
  background:#fafafa;
}
.location-actions{margin-top:0}
.geo-btn{border:0;cursor:pointer}
.secondary-btn{background:#ececec;color:#111}
.set-map-wrap{display:grid;gap:10px;margin-top:10px}
.set-map{
  width:100%;
  height:260px;
  border:0;
  border-radius:12px;
  background:#eee;
}
.map-link{width:max-content}
.set-private-meta{margin:5px 0;color:#555;font-size:13px}
.set-private-meta a{font-weight:800;color:#111}
@media(max-width:760px){
  .set-map{height:220px}
}


/* GM 1.3.4 - profile collection statistics */
.profile-stats-section{
  margin:0 20px 24px;
}
.profile-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.profile-section-heading h2{
  padding:0;
  margin:0 0 4px;
}
.profile-section-heading p{
  margin:0;
  color:#666;
  font-size:14px;
}
.profile-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.profile-stat-card{
  background:#fff;
  border-radius:18px;
  padding:18px;
  box-shadow:0 4px 18px #0000000d;
  min-height:128px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.profile-stat-label{
  font-size:13px;
  font-weight:800;
  color:#666;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.profile-stat-card strong{
  display:block;
  font-size:clamp(28px,4vw,42px);
  line-height:1;
  margin:10px 0;
}
.profile-stat-card small{
  color:#777;
  line-height:1.35;
}
@media(max-width:900px){
  .profile-stats-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:540px){
  .profile-stats-grid{
    grid-template-columns:1fr;
  }
}


/* GM 1.3.5 - dedicated statistics page */
.profile-tools-section{
  margin:0 20px 24px;
}
.profile-tool-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#fff;
  border-radius:18px;
  padding:18px 20px;
  color:#111!important;
  text-decoration:none;
  box-shadow:0 4px 18px #0000000d;
}
.profile-tool-card strong{
  display:block;
  font-size:18px;
}
.profile-tool-card span{
  color:#666;
  font-size:14px;
}
.profile-tool-arrow{
  font-size:32px!important;
  line-height:1;
  color:#111!important;
}

.statistics-page{
  padding-bottom:24px;
}
.statistics-hero{
  margin-bottom:20px;
}
.eyebrow{
  margin:0 0 6px;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#777;
}
.stats-dashboard{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  padding:0 20px;
}
.stats-value-card,
.stats-line-card{
  background:#fff;
  border-radius:20px;
  padding:20px;
  box-shadow:0 4px 18px #0000000d;
}
.stats-value-card{
  min-height:150px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.stats-card-label,
.stats-line-name{
  font-size:13px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#666;
}
.stats-value-card strong{
  display:block;
  font-size:clamp(32px,5vw,52px);
  line-height:1;
  margin:12px 0;
}
.stats-value-card small,
.stats-line-card small{
  color:#777;
  line-height:1.35;
}
.stats-lines-section{
  padding:28px 20px 0;
}
.stats-section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:14px;
}
.stats-section-heading h2{
  padding:0;
  margin:0;
}
.stats-lines-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:14px;
}
.stats-line-card{
  min-height:130px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.stats-line-card strong{
  font-size:38px;
  line-height:1;
  margin:14px 0 4px;
}
@media(max-width:900px){
  .stats-dashboard{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:560px){
  .stats-dashboard{
    grid-template-columns:1fr;
  }
  .stats-lines-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* GM 1.3.6 - statistics button + visible cards */
.profile-tools-section{
  margin:0 20px 24px;
}
.profile-stats-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:180px!important;
  text-align:center!important;
  text-decoration:none!important;
  cursor:pointer!important;
}

.stats-dashboard{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  padding:0 20px!important;
  margin-bottom:28px!important;
}
.stats-value-card{
  background:#fff!important;
  border:1px solid #e7e7e7!important;
  border-radius:20px!important;
  padding:22px!important;
  min-height:160px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  box-shadow:0 8px 24px rgba(0,0,0,.06)!important;
}
.stats-value-card strong{
  display:block!important;
  font-size:clamp(34px,5vw,54px)!important;
  line-height:1!important;
  margin:14px 0!important;
  color:#111!important;
}
.stats-card-label{
  font-size:13px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.05em!important;
  color:#666!important;
}
.stats-value-card small{
  display:block!important;
  color:#777!important;
  line-height:1.35!important;
}
.stats-lines-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
  gap:14px!important;
}
.stats-line-card{
  background:#fff!important;
  border:1px solid #e7e7e7!important;
  border-radius:18px!important;
  padding:18px!important;
  min-height:125px!important;
  box-shadow:0 6px 18px rgba(0,0,0,.05)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
}
.stats-line-card strong{
  font-size:36px!important;
  line-height:1!important;
  margin-top:12px!important;
}
@media(max-width:900px){
  .stats-dashboard{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:560px){
  .stats-dashboard{
    grid-template-columns:1fr!important;
  }
  .stats-lines-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}


/* GM 1.3.7 - Statistics button aligned with the other profile actions */
.profile-stats-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:0!important;
  background:#111!important;
  color:#fff!important;
  border:0!important;
  border-radius:11px!important;
  padding:11px 14px!important;
  font-weight:800!important;
  font-size:inherit!important;
  line-height:1.2!important;
  text-decoration:none!important;
  box-shadow:none!important;
}


/* GM 1.3.8 - MOC community */
.moc-tabs{padding-top:6px}
.moc-tabs .active{background:var(--accent)!important;color:#111!important}
.moc-grid{align-items:start}
.moc-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 4px 18px #0000000d;
}
.moc-main-image{
  width:100%;
  aspect-ratio:4/3;
  object-fit:contain;
  background:#fafafa;
  display:block;
}
.moc-card-body{padding:16px}
.moc-card-body h3{margin:6px 0 8px}
.moc-author{font-size:13px;color:#666}
.moc-required{
  background:#f7f7f7;
  border-radius:12px;
  padding:12px;
  margin:12px 0;
}
.moc-required p{white-space:pre-wrap;margin:6px 0 0}
.moc-instructions{display:grid;gap:8px;margin:12px 0}
.moc-instructions img{
  width:100%;
  max-height:360px;
  object-fit:contain;
  border-radius:12px;
  background:#f5f5f5;
}
.moc-owned-label{
  display:inline-block;
  padding:8px 10px;
  border-radius:10px;
  background:#ececec;
  font-size:13px;
  font-weight:800;
}
.moc-share-toggle{
  display:flex!important;
  grid-template-columns:none!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:10px!important;
}
.moc-share-toggle input{width:auto!important}


/* GM 1.3.9 - sponsor containers */
.admin-sponsor-list{
  display:grid;
  gap:12px;
  margin-top:16px;
}
.admin-sponsor-card{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:14px;
  align-items:start;
  background:#f7f7f7;
  border-radius:14px;
  padding:12px;
}
.admin-sponsor-card img{
  width:120px;
  height:90px;
  object-fit:cover;
  border-radius:10px;
  background:#eee;
}
.admin-sponsor-card p{margin:0 0 8px}
.admin-sponsor-card a{
  display:block;
  overflow-wrap:anywhere;
  color:#111;
  font-weight:700;
  margin-bottom:8px;
}
.admin-sponsor-card small{
  display:block;
  color:#666;
  margin-bottom:8px;
}

.home-sponsor-section{
  padding:8px 20px 28px;
}
.home-section-title h2{
  padding:0;
  margin:0 0 14px;
}
.sponsor-cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:14px;
}
.sponsor-home-card{
  display:block;
  overflow:hidden;
  background:#fff;
  border-radius:18px;
  color:#111!important;
  text-decoration:none;
  box-shadow:0 4px 18px #0000000d;
}
.sponsor-home-card img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  display:block;
}
.sponsor-home-copy{
  padding:16px;
}
.sponsor-home-copy p{
  margin:0 0 12px;
  line-height:1.4;
}
.sponsor-home-copy span{
  font-weight:900;
  color:#111;
}
@media(max-width:560px){
  .admin-sponsor-card{grid-template-columns:1fr}
  .admin-sponsor-card img{width:100%;height:auto;aspect-ratio:16/9}
}


/* GM 1.4.0 - Rebrickable set inventory */
.rebrickable-import-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.rb-single-import{
  background:#f7f7f7;
  border-radius:14px;
  padding:14px;
}
.set-inventory-section{
  margin-top:0;
}
.set-inventory-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.set-inventory-header h2{
  padding:0;
  margin:0 0 5px;
}
.set-inventory-parts{
  display:grid;
  gap:10px;
}
.set-part-row{
  display:grid;
  grid-template-columns:auto 72px 1fr auto;
  gap:12px;
  align-items:center;
  background:#f8f8f8;
  border-radius:14px;
  padding:10px;
}
.set-part-select input{
  width:20px;
  height:20px;
}
.set-part-image{
  width:72px;
  height:72px;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  display:grid;
  place-items:center;
}
.set-part-image img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.set-part-info{
  display:grid;
  gap:3px;
}
.set-part-info small{
  color:#666;
}
.set-part-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.set-part-actions input{
  width:72px!important;
  padding:9px!important;
}
.part-set-usage{
  margin-top:6px;
  color:#555;
}
@media(max-width:800px){
  .rebrickable-import-grid{grid-template-columns:1fr}
  .set-inventory-header{align-items:stretch;flex-direction:column}
  .set-part-row{
    grid-template-columns:auto 60px 1fr;
  }
  .set-part-image{width:60px;height:60px}
  .set-part-actions{
    grid-column:2 / -1;
    justify-content:flex-end;
  }
}


/* GM 1.4.1 - collection action buttons on one row also on mobile */
.collection-card-actions{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  margin-top:12px!important;
}
.collection-card-actions .feature-btn,
.collection-card-actions .danger{
  margin:0!important;
}
.collection-card-actions .feature-btn{
  flex:1 1 auto!important;
}
.collection-card-actions .danger{
  flex:0 0 auto!important;
}
@media(max-width:560px){
  .collection-card-actions{
    width:100%!important;
  }
  .collection-card-actions .feature-btn{
    min-width:0!important;
  }
}


/* GM 1.4.2 - definitive mobile collection actions */
@media(max-width:899px){
  #collectionGrid .collection-card-actions{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;
    gap:10px!important;
    width:100%!important;
  }
  #collectionGrid .collection-card-actions .feature-btn,
  #collectionGrid .collection-card-actions .danger{
    display:inline-flex!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    flex:0 1 auto!important;
    margin:0!important;
    padding:10px 13px!important;
    min-height:44px!important;
    white-space:nowrap!important;
  }
}


/* GM 1.4.4 - sponsor cards same style as home cards */
.sponsor-cards-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:18px;
}

.sponsor-category-card{
  position:relative;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 42%!important;
  min-height:280px;
  overflow:hidden;
  border-radius:28px!important;
  background:#fff!important;
  box-shadow:0 4px 18px rgba(0,0,0,.06)!important;
  text-decoration:none!important;
  color:#111!important;
}

.sponsor-category-copy{
  position:relative;
  z-index:3;
  padding:36px 32px!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  max-width:none!important;
}

.sponsor-category-copy h3{
  margin:0 0 10px!important;
  font-size:28px!important;
  line-height:1.05!important;
  font-weight:900!important;
  color:#111!important;
}

.sponsor-category-copy p{
  margin:0!important;
  color:#657087!important;
  font-size:18px!important;
  line-height:1.4!important;
  max-width:420px;
}

.sponsor-category-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:18px;
  padding:11px 16px;
  border-radius:999px;
  background:#111;
  color:#fff;
  font-weight:800;
  font-size:15px;
  width:max-content;
}

.sponsor-category-visual{
  position:relative;
  min-width:0;
  overflow:hidden;
  display:block;
}

.sponsor-category-visual img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}

.sponsor-category-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(90deg,
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,.98) 26%,
    rgba(255,255,255,.92) 42%,
    rgba(255,255,255,.76) 56%,
    rgba(255,255,255,.45) 68%,
    rgba(255,255,255,.12) 78%,
    rgba(255,255,255,0) 88%);
}

.sponsor-category-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:transparent;
}

@media(max-width:899px){
  .home-sponsor-section{
    padding:8px 20px 24px;
  }
  .sponsor-category-card{
    grid-template-columns:1fr!important;
    min-height:240px;
  }
  .sponsor-category-visual{
    position:absolute;
    inset:0;
  }
  .sponsor-category-copy{
    padding:28px 24px!important;
  }
  .sponsor-category-copy h3{
    font-size:24px!important;
  }
  .sponsor-category-copy p{
    font-size:16px!important;
    max-width:250px;
  }
  .sponsor-category-card::before{
    background:linear-gradient(90deg,
      rgba(255,255,255,1) 0%,
      rgba(255,255,255,.98) 32%,
      rgba(255,255,255,.92) 47%,
      rgba(255,255,255,.76) 60%,
      rgba(255,255,255,.48) 72%,
      rgba(255,255,255,.18) 82%,
      rgba(255,255,255,0) 92%);
  }
}


/* GM 1.4.5 - sponsor card without internal title */
.sponsor-category-copy p:first-child{
  margin-top:0!important;
}


/* GM 1.4.6 - sponsor visual fixed to the right edge */
.sponsor-category-card{
  position:relative!important;
  display:block!important;
  overflow:hidden!important;
  min-height:280px!important;
  border-radius:28px!important;
  background:#fff!important;
}
.sponsor-category-copy{
  position:relative!important;
  z-index:4!important;
  width:58%!important;
  min-height:280px!important;
  padding:36px 32px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.sponsor-category-visual{
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:auto!important;
  width:58%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  z-index:1!important;
}
.sponsor-category-visual img{
  position:absolute!important;
  top:0!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:center right!important;
  display:block!important;
}
.sponsor-category-card::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:3!important;
  pointer-events:none!important;
  background:linear-gradient(90deg,
    #fff 0%,
    rgba(255,255,255,1) 24%,
    rgba(255,255,255,.98) 34%,
    rgba(255,255,255,.90) 44%,
    rgba(255,255,255,.72) 54%,
    rgba(255,255,255,.48) 62%,
    rgba(255,255,255,.24) 70%,
    rgba(255,255,255,.08) 76%,
    rgba(255,255,255,0) 82%)!important;
}
@media(max-width:899px){
  .sponsor-category-card{min-height:240px!important;}
  .sponsor-category-copy{
    width:70%!important;
    min-height:240px!important;
    padding:28px 24px!important;
  }
  .sponsor-category-visual{
    width:68%!important;
    right:0!important;
  }
  .sponsor-category-card::before{
    background:linear-gradient(90deg,
      #fff 0%,
      rgba(255,255,255,1) 30%,
      rgba(255,255,255,.96) 42%,
      rgba(255,255,255,.82) 54%,
      rgba(255,255,255,.58) 64%,
      rgba(255,255,255,.32) 72%,
      rgba(255,255,255,.10) 80%,
      rgba(255,255,255,0) 88%)!important;
  }
}


/* GM 1.4.7 - no internal sponsor heading */
.sponsor-category-copy > p:first-child{
  margin-top:0!important;
}


/* GM 1.5.0 - definitive sponsor desktop layout */
@media(min-width:900px){
  .home-sponsor-section .sponsor-category-card{
    position:relative!important;
    display:block!important;
    width:100%!important;
    min-height:360px!important;
    aspect-ratio:3.2 / 1!important;
    overflow:hidden!important;
    border-radius:28px!important;
    background:#fff!important;
  }

  .home-sponsor-section .sponsor-category-copy{
    position:relative!important;
    z-index:5!important;
    width:52%!important;
    height:100%!important;
    min-height:0!important;
    padding:42px 38px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:center!important;
  }

  .home-sponsor-section .sponsor-category-copy p{
    max-width:500px!important;
    font-size:20px!important;
    line-height:1.42!important;
  }

  .home-sponsor-section .sponsor-category-visual{
    position:absolute!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    width:72%!important;
    height:100%!important;
    overflow:hidden!important;
    z-index:1!important;
  }

  .home-sponsor-section .sponsor-category-visual img{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
    object-position:center right!important;
  }

  .home-sponsor-section .sponsor-category-card::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:4!important;
    pointer-events:none!important;
    background:linear-gradient(90deg,
      #fff 0%,
      #fff 25%,
      rgba(255,255,255,.995) 32%,
      rgba(255,255,255,.97) 39%,
      rgba(255,255,255,.90) 46%,
      rgba(255,255,255,.77) 53%,
      rgba(255,255,255,.58) 60%,
      rgba(255,255,255,.37) 67%,
      rgba(255,255,255,.19) 73%,
      rgba(255,255,255,.07) 79%,
      rgba(255,255,255,0) 86%)!important;
  }
}

/* GM 1.5.0 - Rebrickable diagnostics */
.rb-diagnostic-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.rb-diagnostic-row input{
  max-width:280px;
}
.rb-diagnostic-result{
  margin-top:14px;
}
.rb-diagnostic-result table{
  width:100%;
  border-collapse:collapse;
}
.rb-diagnostic-result th,
.rb-diagnostic-result td{
  text-align:left;
  padding:9px 10px;
  border-bottom:1px solid #e8e8e8;
}
.table-scroll{overflow:auto}
@media(max-width:700px){
  .rb-diagnostic-row{flex-direction:column;align-items:stretch}
  .rb-diagnostic-row input{max-width:none}
}


/* GM 1.5.2 - Rebrickable large CSV chunk progress */
.rb-chunk-progress{
  margin-top:12px;
}
.rb-progress-track{
  height:12px;
  width:100%;
  overflow:hidden;
  border-radius:999px;
  background:#e7e7e7;
}
.rb-progress-bar{
  height:100%;
  width:0;
  border-radius:inherit;
  background:#111;
  transition:width .18s ease;
}
.rb-progress-label{
  margin-top:7px;
  font-size:13px;
  line-height:1.35;
  color:#5f6879;
  font-weight:700;
}


/* GM 1.5.3 - Pezzi del set collassabili */
.set-inventory-section{padding:0!important;overflow:hidden}
.set-inventory-toggle{
  appearance:none;border:0;background:#fff;color:#111;width:100%;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  text-align:left;padding:28px 30px;cursor:pointer
}
.set-inventory-toggle-copy{display:flex;flex-direction:column;gap:6px}
.set-inventory-toggle-copy strong{
  font-size:clamp(25px,2.3vw,36px);line-height:1.05;font-weight:900
}
.set-inventory-toggle-copy small{
  color:#6c6c6c;font-size:15px;line-height:1.3;font-weight:600
}
.set-inventory-chevron{
  width:44px;height:44px;flex:0 0 44px;display:flex;align-items:center;
  justify-content:center;border-radius:50%;background:#f1f1f1;
  font-size:24px;font-weight:900
}
.set-inventory-body{border-top:1px solid #ececec;padding:24px 30px 30px}
.set-inventory-body[hidden]{display:none!important}
.set-part-image img{width:100%!important;height:100%!important;object-fit:contain!important}
.set-part-placeholder{font-size:28px;line-height:1}
@media(max-width:700px){
  .set-inventory-toggle{padding:22px 20px}
  .set-inventory-body{padding:20px}
  .set-inventory-header{flex-direction:column!important;align-items:stretch!important}
}

/* GM 1.5.9 - file-backed loose parts */
.loose-part-card{position:relative}
.loose-part-image{
  width:86px;height:86px;border-radius:18px;background:#fff;
  display:flex;align-items:center;justify-content:center;overflow:hidden;margin-bottom:12px
}
.loose-part-image img{max-width:100%;max-height:100%;object-fit:contain}


/* GM 1.6.0 - spazio tra i contenitori della pagina Aggiungi */
.add-page .form-card + .form-card,
.add-page .add-choice-card + .add-choice-card,
main .add-type-card + .add-type-card{
  margin-top:24px!important;
}

/* fallback: in add.php the two large cards are direct siblings */
body.add-page main > section + section,
body.page-add main > section + section{
  margin-top:24px!important;
}


/* GM 1.6.1 - fix allineamento bottoni collezione + icona matita */
#collectionGrid>.set-card[data-id]{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}
#collectionGrid>.set-card[data-id] h3{
  min-height:2.55em;
}
#collectionGrid>.set-card[data-id] .collection-main-meta{
  min-height:2.7em;
}
#collectionGrid .collection-card-actions{
  margin-top:auto!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
  width:100%!important;
}
#collectionGrid .collection-card-actions .feature-btn,
#collectionGrid .collection-card-actions .danger,
.feature-btn.collection-edit-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  white-space:nowrap!important;
  line-height:1.1!important;
  overflow:hidden!important;
  vertical-align:middle!important;
}
#collectionGrid .collection-card-actions .feature-btn{
  flex:0 1 auto!important;
  min-width:0!important;
  max-width:100%!important;
  padding:10px 14px!important;
}
#collectionGrid .collection-card-actions .danger{
  flex:0 0 auto!important;
  padding:10px 14px!important;
}
#collectionGrid .collection-card-actions .btn-emoji{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  font-size:17px!important;
  flex:0 0 auto!important;
}
@media (max-width: 899px){
  #collectionGrid>.set-card[data-id] h3{min-height:0;}
  #collectionGrid>.set-card[data-id] .collection-main-meta{min-height:0;}
  #collectionGrid .collection-card-actions .feature-btn,
  #collectionGrid .collection-card-actions .danger{
    padding:10px 12px!important;
    font-size:12px!important;
  }
  #collectionGrid .collection-card-actions .btn-emoji{
    font-size:16px!important;
  }
}


/* GM 1.6.2 - definitive collection actions web/app */
#collectionGrid .collection-card-actions{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:stretch!important;
  gap:10px!important;
  width:100%!important;
  margin-top:auto!important;
}
#collectionGrid .collection-card-actions .collection-edit-btn,
#collectionGrid .collection-card-actions .danger{
  min-height:44px!important;
  height:44px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border-radius:11px!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
}
#collectionGrid .collection-card-actions .collection-edit-btn{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:0 10px!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
#collectionGrid .collection-card-actions .danger{
  width:auto!important;
  min-width:72px!important;
  padding:0 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}
.collection-edit-icon{
  display:block!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  flex:0 0 16px!important;
  overflow:visible!important;
}
.collection-edit-label{
  display:block!important;
  min-width:0!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
@media(max-width:560px){
  #collectionGrid .collection-card-actions{gap:8px!important;}
  #collectionGrid .collection-card-actions .collection-edit-btn,
  #collectionGrid .collection-card-actions .danger{
    font-size:12px!important;
    height:42px!important;
    min-height:42px!important;
  }
  #collectionGrid .collection-card-actions .collection-edit-btn{padding:0 8px!important;gap:5px!important;}
  #collectionGrid .collection-card-actions .danger{min-width:66px!important;padding:0 9px!important;}
  .collection-edit-icon{width:14px!important;height:14px!important;min-width:14px!important;flex-basis:14px!important;}
}

/* GM 1.6.2 - gap between Home search result cards and Home category cards */
#results.has-search-results{
  margin-bottom:32px!important;
}
@media(max-width:899px){
  #results.has-search-results{margin-bottom:28px!important;}
}


/* GM 1.6.4 - filtri Le mie Minifig */
.minifig-filter-card{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:16px!important;
  align-items:stretch!important;
}
.minifig-filter-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.minifig-filter-title>label{
  margin:0!important;
  font-size:15px!important;
}
.minifig-filter-controls{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) minmax(250px,1fr) auto;
  gap:12px;
  align-items:end;
}
.minifig-filter-field{
  display:grid!important;
  gap:6px!important;
  margin:0!important;
  font-size:13px!important;
  font-weight:800!important;
}
.minifig-filter-field input,
.minifig-filter-field select{
  width:100%;
  min-height:46px;
  border:1px solid #d6d6d6;
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  color:#171717;
  font:inherit;
}
.minifig-clear-filters{
  min-height:46px;
  padding:10px 16px!important;
  background:#ededed!important;
  color:#171717!important;
  white-space:nowrap;
}
.minifig-empty-filter{
  grid-column:1/-1;
}
@media(max-width:760px){
  .minifig-filter-controls{
    grid-template-columns:1fr!important;
  }
  .minifig-clear-filters{
    width:100%;
  }
}

/* GM 1.6.5 - exact part images only */
.set-part-placeholder{font-size:30px;opacity:.45}


/* GM 1.6.6 - Minifig home card: crop the source photo to hide its grey/white stripe */
.category-minifigs::after{
  background-image:url('cat-minifigs.jpg')!important;
  background-size:auto 125%!important;
  background-position:center bottom!important;
  background-repeat:no-repeat!important;
}


/* GM 1.6.8 - collection actions: Vedi | edit icon | Elimina */
#collectionGrid .collection-card-actions{
  display:grid!important;
  grid-template-columns:minmax(58px,1fr) 44px auto!important;
  align-items:stretch!important;
  gap:8px!important;
  width:100%!important;
  margin-top:auto!important;
}
#collectionGrid .collection-card-actions .collection-view-btn,
#collectionGrid .collection-card-actions .collection-edit-btn,
#collectionGrid .collection-card-actions .danger{
  min-height:44px!important;
  height:44px!important;
  margin:0!important;
  border-radius:11px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
#collectionGrid .collection-card-actions .collection-view-btn{
  width:100%!important;
  min-width:0!important;
  padding:0 10px!important;
}
#collectionGrid .collection-card-actions .collection-edit-btn{
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  padding:0!important;
  overflow:hidden!important;
}
#collectionGrid .collection-card-actions .collection-edit-icon{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  flex:0 0 18px!important;
}
#collectionGrid .collection-card-actions .danger{
  width:auto!important;
  min-width:70px!important;
  padding:0 11px!important;
}
@media(max-width:560px){
  #collectionGrid .collection-card-actions{
    grid-template-columns:minmax(52px,1fr) 42px auto!important;
    gap:7px!important;
  }
  #collectionGrid .collection-card-actions .collection-view-btn,
  #collectionGrid .collection-card-actions .collection-edit-btn,
  #collectionGrid .collection-card-actions .danger{
    height:42px!important;
    min-height:42px!important;
    font-size:12px!important;
  }
  #collectionGrid .collection-card-actions .collection-edit-btn{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
  }
  #collectionGrid .collection-card-actions .danger{
    min-width:64px!important;
    padding:0 8px!important;
  }
}

/* GM 1.6.8 - read-only set page */
.view-set-page main{
  width:min(100%,1180px);
  margin:0 auto;
}
.view-set-hero{
  margin:24px 20px;
  padding:24px;
  border-radius:26px;
  background:#fff;
  box-shadow:0 8px 28px #0000000b;
  display:grid;
  grid-template-columns:minmax(220px,360px) minmax(0,1fr);
  gap:28px;
  align-items:center;
}
.view-set-hero-image{
  min-height:260px;
  border-radius:20px;
  overflow:hidden;
  background:#f7f7f7;
  display:grid;
  place-items:center;
}
.view-set-hero-image img{
  width:100%;
  height:100%;
  max-height:360px;
  object-fit:contain;
  background:#fafafa;
}
.view-set-image-placeholder{
  color:#777;
  font-weight:700;
}
.view-set-hero-copy small{
  display:block;
  font-size:16px;
  color:#667085;
  margin-bottom:8px;
}
.view-set-hero-copy h1{
  margin:0 0 10px;
  font-size:clamp(32px,5vw,54px);
  line-height:1.02;
}
.view-set-hero-copy>p{
  margin:0;
  color:#667085;
  font-size:20px;
}
.view-set-top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}
.view-set-top-actions .view-edit-btn{
  display:inline-flex!important;
  align-items:center;
  gap:7px;
}
.view-set-top-actions .view-edit-btn svg{
  width:17px;
  height:17px;
}
.view-detail-card{
  background:#fff;
  border-radius:24px;
  padding:24px;
  margin:0 20px 20px;
  box-shadow:0 6px 22px #0000000a;
}
.view-detail-card>h2,
.view-section-head h2{
  margin:0 0 18px;
  padding:0!important;
  font-size:26px;
}
.view-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.view-field{
  background:#f7f7f7;
  border-radius:15px;
  padding:14px 16px;
  min-width:0;
}
.view-field-wide{
  grid-column:1 / -1;
}
.view-field span{
  display:block;
  color:#667085;
  font-size:13px;
  font-weight:700;
  margin-bottom:5px;
}
.view-field strong{
  display:block;
  font-size:17px;
  font-weight:800;
}
.view-field .view-break{
  overflow-wrap:anywhere;
}
.view-field .view-notes{
  white-space:normal;
  font-weight:600;
  line-height:1.5;
}
.view-inline-link{
  display:inline-block;
  margin-top:8px;
  font-weight:800;
  color:#111;
}
.view-set-map{
  width:100%;
  height:300px;
  border:0;
  border-radius:18px;
  margin-top:16px;
  background:#eee;
}
.view-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.view-section-head h2{
  margin-bottom:3px;
}
.view-section-head p{
  margin:0;
  color:#667085;
}
.view-minifig-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;
}
.view-minifig-card{
  background:#f7f7f7;
  border-radius:16px;
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.view-minifig-card img,
.view-mini-placeholder{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  background:#fff;
  border-radius:12px;
  margin-bottom:5px;
}
.view-mini-placeholder{
  display:grid;
  place-items:center;
  color:#777;
  font-weight:700;
}
.view-minifig-card small,
.view-minifig-card span{
  color:#667085;
}
.view-set-part-row{
  grid-template-columns:88px minmax(0,1fr)!important;
}
.view-set-part-row .set-part-thumb{
  width:72px!important;
  height:72px!important;
}
.view-set-part-row .set-part-copy{
  min-width:0;
}
.view-set-page .set-inventory-section{
  margin-left:20px!important;
  margin-right:20px!important;
}
@media(max-width:700px){
  .view-set-hero{
    grid-template-columns:1fr;
    margin:18px 16px;
    padding:18px;
    gap:18px;
  }
  .view-set-hero-image{
    min-height:220px;
  }
  .view-detail-card{
    margin:0 16px 16px;
    padding:18px;
  }
  .view-detail-grid{
    grid-template-columns:1fr;
  }
  .view-field-wide{
    grid-column:auto;
  }
  .view-section-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .view-set-page .set-inventory-section{
    margin-left:16px!important;
    margin-right:16px!important;
  }
}


/* GM 1.7.0 - immagini pezzi: sempre intere dentro il riquadro */
.set-part-image,
.set-part-thumb{
  width:76px!important;
  height:76px!important;
  min-width:76px!important;
  max-width:76px!important;
  border-radius:12px!important;
  overflow:hidden!important;
  background:#fff!important;
  display:grid!important;
  place-items:center!important;
  padding:6px!important;
  box-sizing:border-box!important;
}
.set-part-image img,
.set-part-thumb img,
.view-set-part-row .set-part-thumb img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
}
.view-set-part-row{
  grid-template-columns:88px minmax(0,1fr)!important;
  align-items:center!important;
}
@media(max-width:700px){
  .set-part-image,
  .set-part-thumb{
    width:68px!important;
    height:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    padding:5px!important;
  }
  .view-set-part-row{
    grid-template-columns:78px minmax(0,1fr)!important;
  }
}

.minifig-price-hint{margin:6px 0 2px!important;line-height:1.35}


/* GM 1.7.1 - valore acquisti privato + occhio 2D outline */
.stats-purchase-card{
  position:relative!important;
}
.stats-eye-btn{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  padding:0!important;
  border:1px solid #dedede!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#111!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:none!important;
}
.stats-eye-btn svg{
  width:21px!important;
  height:21px!important;
  display:block!important;
}
.stats-eye-btn:hover{
  background:#f5f5f5!important;
}
.stats-eye-btn:focus-visible{
  outline:2px solid #111!important;
  outline-offset:2px!important;
}
.stats-eye-btn.is-visible{
  background:#f4f4f4!important;
}
.stats-purchase-card .stats-card-label{
  padding-right:48px!important;
}


/* GM 1.8.0 - Nomi italiani set */
.admin-italian-names-card{position:relative}
.italian-names-status{margin:14px 0 10px;color:#5e687d;line-height:1.45}
.italian-names-progress{height:10px;border-radius:999px;background:#ececec;overflow:hidden}
.italian-names-progress>span{display:block;width:0;height:100%;background:var(--accent);transition:width .25s ease}
.italian-names-last{display:grid;gap:8px;margin-top:14px}
.italian-name-row{display:grid;grid-template-columns:90px minmax(0,1fr) minmax(0,1fr);gap:10px;padding:10px 12px;border-radius:12px;background:#f7f7f7;font-size:13px}
.italian-name-row.is-ok{border-left:4px solid #36a269}
.italian-name-row.is-missing{border-left:4px solid #c8c8c8}
.view-original-name{font-size:14px!important;color:#8a8f9c!important;margin-top:4px!important}
@media(max-width:650px){.italian-name-row{grid-template-columns:1fr}}


/* BrickCollect 1.8.4 - Admin statistiche utenti */
.admin-users-overview{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-bottom:18px;
}
.admin-user-stat-card{
  background:#fff;
  border-radius:22px;
  padding:22px 24px;
  box-shadow:0 10px 30px rgba(20,25,35,.06);
  display:flex;
  flex-direction:column;
  gap:5px;
}
.admin-stat-label{
  font-size:14px;
  font-weight:800;
  color:#687187;
}
.admin-user-stat-card strong{
  font-size:42px;
  line-height:1;
  letter-spacing:-1.5px;
  color:#111;
}
.admin-user-stat-card small{
  color:#7b8291;
  font-size:13px;
}
.admin-users-card{overflow:hidden}
.admin-users-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.admin-users-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0 14px;
}
.admin-users-toolbar input{
  flex:1;
  min-width:0;
}
.admin-users-list{
  display:grid;
  gap:10px;
}
.admin-user-row{
  display:grid;
  grid-template-columns:48px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  padding:14px 15px;
  border:1px solid #eceef2;
  border-radius:16px;
  background:#fafafa;
}
.admin-user-row.is-online{
  background:#fff;
  border-color:#dcefe4;
}
.admin-user-avatar{
  width:48px;
  height:48px;
  border-radius:50%;
  overflow:hidden;
  background:#eceff3;
  display:grid;
  place-items:center;
  font-weight:900;
  color:#555e70;
}
.admin-user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.admin-user-title{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.admin-user-title strong{
  font-size:16px;
  color:#111;
}
.admin-user-online-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
}
.admin-user-online-badge i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}
.admin-user-online-badge.online{
  color:#177a46;
  background:#e8f7ee;
}
.admin-user-online-badge.offline{
  color:#7c8390;
  background:#eceef1;
}
.admin-user-identity{
  margin-top:3px;
  color:#5d6575;
  font-size:13px;
  word-break:break-word;
}
.admin-user-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px 16px;
  margin-top:5px;
  color:#8a909d;
  font-size:12px;
}
.admin-user-side{
  min-width:70px;
  text-align:right;
  display:grid;
  justify-items:end;
}
.admin-user-side>strong{
  font-size:18px;
  line-height:1;
}
.admin-user-side>small{
  color:#8b919d;
}
.admin-user-role{
  margin-top:7px;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  padding:4px 7px;
  border-radius:999px;
  background:#111;
  color:#fff;
}
@media(max-width:680px){
  .admin-users-overview{grid-template-columns:1fr 1fr;gap:10px}
  .admin-user-stat-card{padding:18px}
  .admin-user-stat-card strong{font-size:34px}
  .admin-users-head{align-items:center}
  .admin-users-toolbar{align-items:stretch;flex-direction:column}
  .admin-user-row{
    grid-template-columns:44px minmax(0,1fr);
    align-items:start;
  }
  .admin-user-avatar{width:44px;height:44px}
  .admin-user-side{
    grid-column:2;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:5px;
    text-align:left;
  }
  .admin-user-side>small{margin-right:8px}
  .admin-user-role{margin-top:0}
}


/* BrickCollect 1.8.5 - Privacy Policy */
.auth-privacy-link{text-align:center;margin-top:10px;font-size:13px}
.auth-privacy-link a,.registration-privacy-note a{color:#111;text-decoration:underline;text-underline-offset:3px}
.registration-privacy-note{font-size:12px;line-height:1.45;color:#71798a;margin:2px 0 10px}
.admin-privacy-section{scroll-margin-top:110px}
.admin-privacy-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.privacy-admin-state{margin:14px 0;padding:11px 13px;border-radius:12px;font-size:13px}
.privacy-admin-state.is-ok{background:#eaf8ef;color:#176d41}
.privacy-admin-state.is-warning{background:#fff5df;color:#805b00}
.privacy-no-tracking-box{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px;padding:14px;border-radius:16px;background:#f7f8fa}
.privacy-no-tracking-box strong{width:100%}
.privacy-no-tracking-box span{background:#fff;border:1px solid #e7e9ee;padding:7px 9px;border-radius:999px;font-size:12px}
.privacy-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.privacy-page{max-width:980px;margin:0 auto;padding-bottom:80px}
.privacy-hero{padding:42px 20px 24px}
.privacy-hero h1{font-size:clamp(42px,7vw,72px);line-height:.98;margin:8px 0 14px;letter-spacing:-2.6px}
.privacy-hero>p{max-width:720px;font-size:18px;line-height:1.5;color:#596174}
.privacy-eyebrow{display:inline-block;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.1em;color:#8a6200}
.privacy-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.privacy-meta span{padding:7px 10px;border-radius:999px;background:#f0f1f3;font-size:12px;font-weight:800;color:#555e70}
.privacy-admin-warning{margin:0 20px 18px;padding:14px 16px;border-radius:16px;background:#fff1cf;border:1px solid #f2d287}
.privacy-admin-warning p{margin:4px 0 0}
.privacy-highlight-card{margin:0 20px 20px;padding:20px;display:grid;grid-template-columns:42px 1fr;gap:14px;background:#111;color:#fff;border-radius:22px}
.privacy-highlight-card h2{margin:0 0 7px;font-size:20px}
.privacy-highlight-card p{margin:0;color:#d9d9dc;line-height:1.55}
.privacy-highlight-icon{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#111;font-weight:1000;font-size:20px}
.privacy-document{display:grid;gap:14px;padding:0 20px}
.privacy-document>section{background:#fff;border:1px solid #eceef2;border-radius:20px;padding:22px 24px}
.privacy-document h2{margin:0 0 12px;font-size:22px}
.privacy-document p,.privacy-document li{line-height:1.65;color:#444c5b}
.privacy-document ul{padding-left:22px}
.privacy-document a{color:#111;font-weight:800}
.privacy-purpose-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.privacy-purpose-grid>div{padding:14px;border-radius:14px;background:#f7f8fa}
.privacy-purpose-grid strong{display:block;margin-bottom:6px}
.privacy-purpose-grid p{font-size:13px;margin:0 0 8px}
.privacy-purpose-grid small{color:#747c8d;line-height:1.45}
.privacy-bottom-actions{padding:20px;text-align:center}
.privacy-login-link{padding:9px 14px!important}
@media(max-width:700px){
  .privacy-form-grid{grid-template-columns:1fr}
  .admin-privacy-head{flex-direction:column}
  .privacy-purpose-grid{grid-template-columns:1fr}
  .privacy-hero{padding-top:28px}
  .privacy-hero h1{letter-spacing:-1.8px}
  .privacy-document>section{padding:19px}
  .privacy-highlight-card{grid-template-columns:1fr}
}


/* BrickCollect 1.8.6 */
.primary-btn,.header-cta,.nav-plus,.install-btn,.market-tab.active,.moc-tabs .active,.search button,body>nav .nav-plus,.privacy-highlight-icon{color:var(--accent-contrast)!important}
.brickcollect-global-footer{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin-top:34px;padding:22px 20px 26px;background:#111;color:#9096a3;font-size:13px;text-align:center}.brickcollect-global-footer a{color:#fff;font-weight:800;text-decoration:none}.brickcollect-global-footer a:hover{text-decoration:underline}
.admin-section-shortcuts{position:sticky;top:64px;z-index:30;display:flex;gap:8px;overflow-x:auto;padding:10px 20px;margin:0 0 18px;background:rgba(246,246,246,.94);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);scrollbar-width:none}.admin-section-shortcuts::-webkit-scrollbar{display:none}.admin-section-shortcuts a{flex:0 0 auto;text-decoration:none;padding:10px 13px;border-radius:999px;background:#111;color:#fff;font-size:13px;font-weight:850}#statistiche-utenti,#aspetto,#privacy-policy,#temi,#contenitori-sponsor,#import-rebrickable,#nomi-italiani{scroll-margin-top:130px}
.admin-appearance-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.accent-preview{width:58px;height:58px;flex:0 0 58px;border-radius:18px;background:var(--accent);border:1px solid #0001;box-shadow:0 8px 20px #0002}.accent-form{margin-top:14px;max-width:520px}.accent-picker-row{display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:center}.accent-picker-row input[type=color]{width:70px!important;height:48px;padding:4px!important;cursor:pointer}
.messages-sidebar{display:grid;gap:14px;align-content:start}.messages-sidebar .form-card{margin:0}.messages-conversations-card{min-height:180px}.messages-sidebar-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.messages-sidebar-title h3{margin:0}.chat-icon-btn{width:36px;height:36px;padding:0;border-radius:50%;background:#f0f1f3;color:#111;font-size:20px}.conversation-list{display:grid;gap:7px;margin-top:12px}.conversation-item{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border-radius:14px;background:#f6f7f8;text-align:left}.conversation-item:hover,.conversation-item.is-active{background:#eceef1}.conversation-item.has-unread{outline:2px solid var(--accent);outline-offset:-2px}.conversation-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;background:#dddfe4;display:grid;place-items:center}.conversation-avatar img{width:100%;height:100%;object-fit:cover}.conversation-copy{min-width:0}.conversation-topline,.conversation-bottomline{display:flex;align-items:center;justify-content:space-between;gap:8px}.conversation-topline strong,.conversation-bottomline>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-topline small{flex:0 0 auto;color:#8b919d;font-size:10px}.conversation-bottomline{margin-top:3px;color:#6f7685;font-size:12px}.conversation-unread{min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:var(--accent);color:var(--accent-contrast);font-size:10px}.conversation-empty,.chat-empty-state{color:#858c9a;padding:18px 6px;text-align:center;font-size:13px}.chat-title-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.chat-close-btn{background:#eceef1!important;color:#222!important}.bubble-mine{margin-left:15%;border-left:4px solid var(--accent)}.bubble-other{margin-right:15%}
@media(max-width:800px){.messages-layout{grid-template-columns:1fr!important}.messages-sidebar{order:1}.chat-card{order:2}}@media(max-width:600px){.admin-section-shortcuts{padding-left:12px;padding-right:12px}.accent-picker-row{grid-template-columns:62px 1fr}.chat-title-row{align-items:flex-start}.chat-title-actions{justify-content:flex-start}}


/* BrickCollect 1.8.7 - header stile AperiSwipe */
header{min-height:88px!important;height:88px!important}
.header-actions{gap:12px!important}
.notif-bell,.header-avatar-link,.admin-header-link{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;flex:0 0 64px!important}
.notif-bell,.admin-header-link{border-radius:18px!important;border:1px solid #3a3a3a!important;background:#202020!important;color:#fff!important;display:grid!important;place-items:center!important;text-decoration:none!important}
.header-avatar-link{border-radius:50%!important;border:2px solid #3a3a3a!important}
.notif-bell .bell-icon svg,.admin-header-link svg{width:30px!important;height:30px!important}
.header-avatar-link span{font-size:27px!important}
.notif-badge{top:-4px!important;right:-4px!important}

.profile-main-actions-card{padding:18px!important}
.profile-main-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.profile-main-actions .feature-btn,.profile-main-actions .danger-btn{min-height:48px;display:inline-flex;align-items:center;justify-content:center;margin:0!important}
.profile-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.profile-danger-zone h2{padding:0!important;margin:0 0 6px!important}
.profile-danger-zone .section-help{margin:0;max-width:650px}
.delete-account-form{width:100%;margin-top:10px;padding-top:16px;border-top:1px solid #eceef2}
.delete-account-warning{padding:12px 14px;border-radius:12px;background:#fff1f1;color:#9d2424;font-size:13px;font-weight:700}

.admin-user-role-select{margin-top:8px;min-width:118px;padding:7px 9px;border-radius:10px;border:1px solid #dfe2e7;background:#111;color:#fff;font-size:11px;font-weight:850}

.community-bubble{position:relative}
.community-message-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.community-delete-message{padding:5px 8px!important;border-radius:8px!important;background:#f0f1f3!important;color:#9d2424!important;font-size:11px!important;font-weight:900!important}

@media(max-width:620px){
  header{min-height:76px!important;height:76px!important;padding-left:14px!important;padding-right:14px!important}
  .header-actions{gap:8px!important}
  .notif-bell,.header-avatar-link,.admin-header-link{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;flex-basis:52px!important}
  .notif-bell,.admin-header-link{border-radius:15px!important}
  .notif-bell .bell-icon svg,.admin-header-link svg{width:25px!important;height:25px!important}
  .profile-main-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .profile-main-actions .feature-btn,.profile-main-actions .danger-btn{min-width:0!important;padding-left:8px!important;padding-right:8px!important;font-size:13px!important}
}


/* BrickCollect 1.8.8 - Admin a pagine separate */
.admin-module-page{max-width:1180px;margin:0 auto;padding-bottom:70px}
.admin-module-hero{padding:34px 20px 18px}
.admin-module-hero h1{
  margin:6px 0 8px;
  font-size:clamp(38px,6vw,64px);
  line-height:1;
  letter-spacing:-2px;
}
.admin-module-hero p{margin:0;color:#697184;font-size:16px}
.admin-back-link{
  display:inline-flex;
  align-items:center;
  color:#111;
  font-size:13px;
  font-weight:900;
  text-decoration:none;
}
.admin-module-nav{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:0 20px 18px;
  scrollbar-width:none;
}
.admin-module-nav::-webkit-scrollbar{display:none}
.admin-module-nav a{
  flex:0 0 auto;
  padding:10px 13px;
  border-radius:999px;
  text-decoration:none;
  background:#eceef1;
  color:#252a34;
  font-size:13px;
  font-weight:850;
}
.admin-module-nav a.active{
  background:#111;
  color:#fff;
}
.admin-module-page>.form-card,
.admin-module-page>.admin-users-overview{
  margin-left:20px;
  margin-right:20px;
}
.admin-dashboard-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:0 20px 30px;
}
.admin-dashboard-card{
  display:grid;
  grid-template-columns:54px minmax(0,1fr) 28px;
  align-items:center;
  gap:14px;
  min-height:112px;
  padding:18px;
  border-radius:20px;
  background:#fff;
  border:1px solid #eceef2;
  text-decoration:none;
  color:#111;
  box-shadow:0 8px 24px rgba(20,25,35,.05);
  transition:transform .15s ease,box-shadow .15s ease;
}
.admin-dashboard-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(20,25,35,.09);
}
.admin-dashboard-icon{
  width:54px;
  height:54px;
  border-radius:17px;
  background:var(--accent);
  color:var(--accent-contrast);
  display:grid;
  place-items:center;
  font-size:20px;
  font-weight:1000;
}
.admin-dashboard-card strong{
  display:block;
  font-size:19px;
  margin-bottom:4px;
}
.admin-dashboard-card p{
  margin:0;
  color:#747c8c;
  line-height:1.4;
  font-size:13px;
}
.admin-dashboard-arrow{
  font-size:32px;
  color:#858c99;
  text-align:right;
}
@media(max-width:700px){
  .admin-dashboard-grid{grid-template-columns:1fr;padding-left:12px;padding-right:12px}
  .admin-module-hero{padding-left:14px;padding-right:14px}
  .admin-module-nav{padding-left:14px;padding-right:14px}
  .admin-module-page>.form-card,
  .admin-module-page>.admin-users-overview{
    margin-left:12px;
    margin-right:12px;
  }
}


/* BrickCollect 1.8.9 - header proportions like AperiSwipe */
header{
  min-height:68px!important;
  height:68px!important;
}
.header-actions{
  gap:8px!important;
}
.notif-bell,
.header-avatar-link,
.admin-header-link{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  flex:0 0 48px!important;
}
.notif-bell,
.admin-header-link{
  border-radius:14px!important;
}
.header-avatar-link{
  border-width:2px!important;
}
.notif-bell .bell-icon svg,
.admin-header-link svg{
  width:24px!important;
  height:24px!important;
}
.header-avatar-link span{
  font-size:22px!important;
}
.notif-badge{
  min-width:18px!important;
  height:18px!important;
  padding:0 4px!important;
  font-size:10px!important;
  top:-3px!important;
  right:-3px!important;
}

/* Notification preferences */
.profile-notification-settings .notification-pref-row{
  display:flex;
  align-items:center;
  gap:13px;
  padding:12px 0;
  border-bottom:1px solid #eceef2;
}
.profile-notification-settings .notification-pref-row:last-of-type{
  border-bottom:0;
}
.notification-pref-row>span{
  display:grid;
  gap:3px;
}
.notification-pref-row strong{
  font-size:15px;
}
.notification-pref-row small{
  color:#7b8290;
  font-size:12px;
  line-height:1.4;
}

/* Notification center */
.notifications-page{
  max-width:980px;
  margin:0 auto;
  padding-bottom:70px;
}
.notifications-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}
.notifications-list{
  display:grid;
  gap:9px;
  padding:0 20px 30px;
}
.notification-row{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 10px 24px;
  gap:12px;
  align-items:center;
  padding:15px 16px;
  border-radius:17px;
  border:1px solid #eceef2;
  background:#fff;
  text-decoration:none;
  color:#111;
}
.notification-row.is-unread{
  background:color-mix(in srgb,var(--accent) 10%,white);
  border-color:color-mix(in srgb,var(--accent) 35%,#eceef2);
}
.notification-type-icon{
  width:46px;
  height:46px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#111;
  color:#fff;
  font-size:18px;
  font-weight:950;
}
.notification-content{
  min-width:0;
  display:grid;
  gap:3px;
}
.notification-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.notification-topline strong{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.notification-topline small{
  flex:0 0 auto;
  color:#8a909d;
  font-size:10px;
}
.notification-category{
  width:max-content;
  padding:3px 7px;
  border-radius:999px;
  background:#eceef2;
  color:#5f6675;
  font-size:10px;
  font-weight:850;
}
.notification-body{
  color:#697181;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.notification-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--accent);
}
.notification-arrow{
  font-size:27px;
  color:#828997;
}
.notification-empty{
  text-align:center;
  padding:34px!important;
}
.notification-target{
  outline:3px solid var(--accent)!important;
  outline-offset:3px;
  animation:bcNotificationTarget 1.8s ease 1;
}
@keyframes bcNotificationTarget{
  0%,100%{transform:scale(1)}
  35%{transform:scale(1.012)}
}

/* Smaller header controls on phones too */
@media(max-width:620px){
  header{
    min-height:62px!important;
    height:62px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .header-actions{gap:6px!important}
  .notif-bell,
  .header-avatar-link,
  .admin-header-link{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    min-height:42px!important;
    flex-basis:42px!important;
  }
  .notif-bell,
  .admin-header-link{
    border-radius:12px!important;
  }
  .notif-bell .bell-icon svg,
  .admin-header-link svg{
    width:22px!important;
    height:22px!important;
  }
  .notifications-hero{
    align-items:flex-start;
    flex-direction:column;
  }
  .notifications-list{
    padding-left:12px;
    padding-right:12px;
  }
  .notification-row{
    grid-template-columns:40px minmax(0,1fr) 8px 18px;
    padding:13px;
    gap:9px;
  }
  .notification-type-icon{
    width:40px;
    height:40px;
    border-radius:12px;
  }
  .notification-topline{
    align-items:flex-start;
    flex-direction:column;
    gap:2px;
  }
}


/* BrickCollect 1.8.10 - header controls exactly 40x40 */
header{
  min-height:58px!important;
  height:58px!important;
}
.header-actions{
  gap:7px!important;
}
.notif-bell,
.header-avatar-link,
.admin-header-link{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  flex:0 0 40px!important;
}
.notif-bell,
.admin-header-link{
  border-radius:12px!important;
}
.header-avatar-link{
  border-width:2px!important;
}
.notif-bell .bell-icon svg,
.admin-header-link svg{
  width:20px!important;
  height:20px!important;
}
.header-avatar-link span{
  font-size:20px!important;
}
.notif-badge{
  min-width:17px!important;
  height:17px!important;
  padding:0 4px!important;
  font-size:9px!important;
  top:-4px!important;
  right:-4px!important;
}
@media(max-width:620px){
  header{
    min-height:56px!important;
    height:56px!important;
  }
  .notif-bell,
  .header-avatar-link,
  .admin-header-link{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    flex-basis:40px!important;
  }
  .notif-bell,
  .admin-header-link{
    border-radius:12px!important;
  }
}

/* Profile photo crop editor */
.profile-crop-open{
  overflow:hidden;
}
.profile-crop-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,0,0,.76);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.profile-crop-modal[hidden]{
  display:none!important;
}
.profile-crop-dialog{
  width:min(520px,100%);
  max-height:calc(100dvh - 36px);
  overflow:auto;
  padding:20px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.profile-crop-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
.profile-crop-head h2{
  margin:0 0 5px;
}
.profile-crop-head p{
  margin:0;
  color:#707887;
  font-size:13px;
  line-height:1.45;
}
.profile-crop-stage{
  position:relative;
  width:min(390px,100%);
  aspect-ratio:1/1;
  margin:0 auto;
  border-radius:20px;
  overflow:hidden;
  background:#111;
  touch-action:none;
  cursor:grab;
}
.profile-crop-stage:active{
  cursor:grabbing;
}
.profile-crop-stage canvas{
  width:100%;
  height:100%;
  display:block;
  touch-action:none;
}
.profile-crop-circle{
  position:absolute;
  inset:6%;
  border:3px solid rgba(255,255,255,.95);
  border-radius:50%;
  box-shadow:
    0 0 0 999px rgba(0,0,0,.32),
    0 0 0 1px rgba(0,0,0,.18);
  pointer-events:none;
}
.profile-crop-zoom{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:center;
  margin:18px 0;
  font-weight:800;
}
.profile-crop-zoom input{
  width:100%;
}

/* Sponsor Admin: source synchronized with Home */
.admin-sponsor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.admin-sponsor-card.is-in-home{
  border-color:color-mix(in srgb,var(--accent) 45%,#e5e7eb);
}
.admin-sponsor-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.admin-home-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 8px;
  border-radius:999px;
  background:var(--accent);
  color:var(--accent-contrast);
  font-size:10px;
  font-weight:900;
}
@media(max-width:620px){
  .admin-sponsor-head{
    flex-direction:column;
  }
}


/* BrickCollect 1.8.11 - header controls 35x35 */
header{
  min-height:52px!important;
  height:52px!important;
}
.header-actions{
  gap:6px!important;
}
.notif-bell,
.header-avatar-link,
.admin-header-link{
  width:35px!important;
  height:35px!important;
  min-width:35px!important;
  min-height:35px!important;
  flex:0 0 35px!important;
}
.notif-bell,
.admin-header-link{
  border-radius:10px!important;
}
.notif-bell .bell-icon svg,
.admin-header-link svg{
  width:18px!important;
  height:18px!important;
}
.header-avatar-link span{
  font-size:18px!important;
}
.notif-badge{
  min-width:16px!important;
  height:16px!important;
  padding:0 4px!important;
  font-size:9px!important;
  top:-4px!important;
  right:-4px!important;
}
@media(max-width:620px){
  header{
    min-height:50px!important;
    height:50px!important;
  }
  .notif-bell,
  .header-avatar-link,
  .admin-header-link{
    width:35px!important;
    height:35px!important;
    min-width:35px!important;
    min-height:35px!important;
    flex-basis:35px!important;
  }
}

/* BrickCollect 1.8.11 - true toggle controls */
.settings-toggle-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  padding:13px 0!important;
  border-bottom:1px solid #eceef2;
  cursor:pointer;
}
.settings-toggle-copy{
  min-width:0;
  display:grid;
  gap:3px;
}
.settings-toggle-copy strong{
  font-size:15px;
  color:#111;
}
.settings-toggle-copy small{
  color:#7b8290;
  font-size:12px;
  line-height:1.4;
}
.ui-toggle{
  position:relative;
  flex:0 0 auto;
  width:48px;
  height:28px;
  display:block;
}
.ui-toggle input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none;
}
.ui-toggle-track{
  position:absolute;
  inset:0;
  border-radius:999px;
  background:#d7dbe2;
  transition:background .18s ease;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
}
.ui-toggle-thumb{
  position:absolute;
  width:22px;
  height:22px;
  top:3px;
  left:3px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.22);
  transition:transform .18s ease;
}
.ui-toggle input:checked + .ui-toggle-track{
  background:var(--accent);
}
.ui-toggle input:checked + .ui-toggle-track .ui-toggle-thumb{
  transform:translateX(20px);
}
.ui-toggle input:focus-visible + .ui-toggle-track{
  outline:3px solid color-mix(in srgb,var(--accent) 40%,transparent);
  outline-offset:2px;
}
.profile-notification-settings .notification-pref-row:last-of-type{
  border-bottom:0;
}

/* BrickCollect 1.8.11 - read/unread notification tabs */
.notification-status-tabs{
  display:flex;
  gap:8px;
  padding:0 20px 16px;
}
.notification-status-tabs button{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:9px 14px;
  border-radius:999px;
  background:#eceef2;
  color:#333a48;
  font-size:13px;
  font-weight:900;
}
.notification-status-tabs button.active{
  background:#111;
  color:#fff;
}
.notification-status-tabs button span{
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:var(--accent-contrast);
  font-size:10px;
}
.notification-row.is-read{
  opacity:.82;
}
@media(max-width:620px){
  .notification-status-tabs{
    padding-left:12px;
    padding-right:12px;
  }
}


/* BrickCollect 1.8.14 - Gallery themes, likes and custom galleries */
.gallery-page{
  max-width:1180px;
  margin:0 auto;
  padding-bottom:80px;
}
.gallery-toolbar{
  padding:0 20px 12px;
}
.gallery-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(180px,260px);
  gap:10px;
}
.gallery-search-box{
  display:grid;
  grid-template-columns:22px minmax(0,1fr);
  gap:8px;
  align-items:center;
  background:#fff;
  border:1px solid #e6e8ed;
  border-radius:15px;
  padding:0 13px;
}
.gallery-search-box span{
  color:#7e8593;
  font-size:20px;
}
.gallery-search-box input{
  border:0!important;
  background:transparent!important;
  padding-left:0!important;
  box-shadow:none!important;
}
.gallery-theme-filter{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:center;
  background:#fff;
  border:1px solid #e6e8ed;
  border-radius:15px;
  padding:0 10px 0 13px;
}
.gallery-theme-filter>span{
  font-size:12px;
  font-weight:900;
  color:#6f7684;
}
.gallery-theme-filter select{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.gallery-tabs-extended{
  display:flex;
  overflow-x:auto;
  gap:8px;
  scrollbar-width:none;
}
.gallery-tabs-extended::-webkit-scrollbar{display:none}
.photo-card-body{
  display:grid;
  gap:7px;
}
.photo-card-heading{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
}
.gallery-theme-chip{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:4px 8px;
  border-radius:999px;
  background:color-mix(in srgb,var(--accent) 18%,white);
  color:#554000;
  font-size:10px;
  font-weight:900;
}
.gallery-custom-create{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-left:20px;
  margin-right:20px;
}
.gallery-custom-form{
  display:flex;
  gap:8px;
  min-width:min(430px,100%);
}
.gallery-custom-form input{
  flex:1;
}
.custom-gallery-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:10px;
  padding:0 20px 18px;
}
.custom-gallery-card{
  display:grid;
  gap:4px;
  text-align:left;
  padding:15px;
  border-radius:16px;
  background:#fff;
  color:#111;
  border:1px solid #e8eaf0;
}
.custom-gallery-card.active{
  border-color:var(--accent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent);
}
.custom-gallery-card strong{
  font-size:15px;
}
.custom-gallery-card span{
  color:#747b89;
  font-size:12px;
}
.custom-gallery-viewer{
  margin-left:20px;
  margin-right:20px;
}
.custom-gallery-viewer-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:15px;
}
.custom-gallery-viewer-head h2{
  margin:3px 0 0!important;
}
.gallery-picker-open{
  overflow:hidden;
}
.gallery-picker-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.gallery-picker-modal[hidden]{
  display:none!important;
}
.gallery-picker-dialog{
  width:min(500px,100%);
  max-height:calc(100dvh - 36px);
  overflow:auto;
  background:#fff;
  border-radius:22px;
  padding:20px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
}
.gallery-picker-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}
.gallery-picker-head h2{
  margin:0 0 5px;
}
.gallery-picker-head p{
  margin:0;
  color:#747c8a;
  font-size:13px;
}
.gallery-picker-list{
  display:grid;
  gap:8px;
}
.gallery-picker-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:13px 14px;
  border-radius:13px;
  text-align:left;
  background:#f5f6f8;
  color:#111;
}
.gallery-picker-option span{
  color:#747b89;
  font-size:12px;
}
.gallery-picker-create{
  display:flex;
  gap:8px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #e8eaf0;
}
.gallery-picker-create input{
  flex:1;
}

/* Admin gallery themes */
.admin-gallery-theme-list{
  display:grid;
  gap:9px;
}
.admin-gallery-theme-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  border-bottom:1px solid #eceef2;
}
.admin-gallery-theme-row:last-child{
  border-bottom:0;
}
.admin-gallery-theme-name{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:4px;
}
.admin-gallery-theme-name .is-active,
.admin-gallery-theme-name .is-disabled{
  display:inline-flex;
  padding:4px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:900;
}
.admin-gallery-theme-name .is-active{
  background:#e8f7ee;
  color:#17663d;
}
.admin-gallery-theme-name .is-disabled{
  background:#f0f1f3;
  color:#686f7d;
}

@media(max-width:700px){
  .gallery-toolbar{
    padding-left:12px;
    padding-right:12px;
  }
  .gallery-search-row{
    grid-template-columns:1fr;
  }
  .gallery-custom-create{
    align-items:stretch;
    flex-direction:column;
    margin-left:12px;
    margin-right:12px;
  }
  .gallery-custom-form{
    min-width:0;
    width:100%;
    flex-direction:column;
  }
  .custom-gallery-list{
    grid-template-columns:1fr 1fr;
    padding-left:12px;
    padding-right:12px;
  }
  .custom-gallery-viewer{
    margin-left:12px;
    margin-right:12px;
  }
  .custom-gallery-viewer-head{
    flex-direction:column;
  }
  .gallery-picker-create{
    flex-direction:column;
  }
  .admin-gallery-theme-row{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* BrickCollect 1.8.15 - Galleria: stile coerente con il resto dell'app */

/* Area "Le mie gallerie": stessa grammatica visiva delle form-card */
.gallery-custom-create,
.custom-gallery-viewer{
  background:#fff!important;
  border-radius:18px!important;
  border:0!important;
  box-shadow:none!important;
  padding:20px!important;
}

.gallery-custom-create h2,
.custom-gallery-viewer h2{
  font-size:22px!important;
  line-height:1.15!important;
}

.gallery-custom-create .hint{
  margin-top:5px!important;
  color:#747b89!important;
}

/* Campo creazione galleria = stesso input standard BrickCollect */
.gallery-custom-form input,
.gallery-picker-create input{
  width:100%!important;
  min-height:46px!important;
  padding:13px!important;
  border:1px solid #d0d0d0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#111!important;
  font:inherit!important;
  font-size:15px!important;
  line-height:1.2!important;
  box-shadow:none!important;
  outline:none!important;
}

.gallery-custom-form input:focus,
.gallery-picker-create input:focus{
  border-color:#9a9fa9!important;
  box-shadow:0 0 0 3px rgba(17,17,17,.06)!important;
}

.gallery-custom-form input::placeholder,
.gallery-picker-create input::placeholder{
  color:#8a909a!important;
  opacity:1!important;
}

/* Bottoni gallerie allineati ai feature-btn/primary-btn dell'app */
.gallery-custom-form .primary-btn,
.gallery-picker-create .feature-btn{
  min-height:46px!important;
  padding:11px 14px!important;
  border-radius:11px!important;
  font-size:15px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}

/* Card delle gallerie personali: stessa morbidezza delle card BrickCollect */
.custom-gallery-list{
  gap:12px!important;
}

.custom-gallery-card{
  min-height:82px!important;
  padding:16px 17px!important;
  border:0!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:none!important;
  transition:background .15s ease,transform .15s ease!important;
}

.custom-gallery-card:hover{
  background:#f3f3f3!important;
}

.custom-gallery-card.active{
  background:#111!important;
  color:#fff!important;
  border:0!important;
  box-shadow:none!important;
}

.custom-gallery-card.active span{
  color:#c9cbd0!important;
}

.custom-gallery-card strong{
  font-size:16px!important;
  font-weight:850!important;
}

.custom-gallery-card span{
  color:#777e8b!important;
  font-size:12px!important;
}

/* Popup: stessa dimensione/forma dei modali e form-card del resto dell'app */
.gallery-picker-modal{
  padding:18px!important;
  background:rgba(0,0,0,.68)!important;
}

.gallery-picker-dialog{
  width:min(460px,100%)!important;
  max-height:calc(100dvh - 36px)!important;
  padding:20px!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 22px 60px rgba(0,0,0,.28)!important;
}

.gallery-picker-head{
  margin-bottom:16px!important;
  gap:12px!important;
}

.gallery-picker-head h2{
  margin:0 0 5px!important;
  font-size:24px!important;
  line-height:1.1!important;
  letter-spacing:-.5px!important;
}

.gallery-picker-head p{
  margin:0!important;
  color:#747b89!important;
  font-size:13px!important;
  line-height:1.45!important;
}

.gallery-picker-head .chat-icon-btn{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  border-radius:50%!important;
  background:#f0f1f3!important;
  color:#111!important;
  font-size:19px!important;
}

/* Voci selezione galleria = mini-results / card standard */
.gallery-picker-list{
  gap:8px!important;
}

.gallery-picker-option{
  min-height:52px!important;
  padding:12px 14px!important;
  border:0!important;
  border-radius:12px!important;
  background:#f2f2f2!important;
  color:#111!important;
  font-size:14px!important;
  text-align:left!important;
}

.gallery-picker-option:hover{
  background:#e9eaed!important;
}

.gallery-picker-option strong{
  font-size:14px!important;
  font-weight:850!important;
}

.gallery-picker-option span{
  color:#747b89!important;
  font-size:12px!important;
}

/* Separatore e form nuovo nome */
.gallery-picker-create{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:8px!important;
  margin-top:16px!important;
  padding-top:16px!important;
  border-top:1px solid #e6e8ed!important;
}

/* Toolbar galleria: riduce differenze con gli altri controlli app */
.gallery-search-box,
.gallery-theme-filter{
  min-height:46px!important;
  border-radius:12px!important;
  border:1px solid #dfe2e7!important;
  background:#fff!important;
}

.gallery-tabs-extended .tab-btn{
  min-height:44px!important;
  padding:11px 14px!important;
  border-radius:11px!important;
  font-size:14px!important;
  font-weight:850!important;
}

@media(max-width:700px){
  .gallery-custom-create,
  .custom-gallery-viewer{
    padding:16px!important;
  }

  .custom-gallery-list{
    grid-template-columns:1fr!important;
  }

  .gallery-picker-dialog{
    width:100%!important;
    padding:18px!important;
  }

  .gallery-picker-create{
    grid-template-columns:1fr!important;
  }

  .gallery-picker-create .feature-btn,
  .gallery-custom-form .primary-btn{
    width:100%!important;
  }
}


/* BrickCollect 1.8.16 - Modifica foto */
.photo-edit-dialog{
  width:min(480px,100%)!important;
}
.photo-edit-preview{
  display:block;
  width:100%;
  max-height:260px;
  object-fit:contain;
  margin:0 0 16px;
  border-radius:14px;
  background:#f3f4f6;
}
.photo-edit-dialog .stack-form input,
.photo-edit-dialog .stack-form select,
.photo-edit-dialog .stack-form textarea{
  border-radius:10px!important;
}
.photo-card .photo-actions{
  flex-wrap:wrap;
}


/* BrickCollect 1.8.17 - Dropdown filtrabile Linee LEGO
   Stesso comportamento esistente, UI coerente con gli input BrickCollect. */

.catalog-search-controls{
  display:grid!important;
  gap:10px!important;
  width:100%!important;
  max-width:760px!important;
  margin-top:16px!important;
}

.catalog-search-controls>.search{
  width:100%!important;
  max-width:none!important;
}

.catalog-line-combo{
  position:relative!important;
  width:100%!important;
  max-width:760px!important;
  z-index:40;
}

.catalog-line-combo-field{
  position:relative!important;
  width:100%!important;
}

.catalog-line-input{
  display:block!important;
  width:100%!important;
  min-height:50px!important;
  margin:0!important;
  padding:13px 48px 13px 15px!important;
  border:1px solid #ccc!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#111!important;
  font:inherit!important;
  font-size:16px!important;
  line-height:1.2!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  box-shadow:none!important;
  outline:none!important;
}

.catalog-line-input::placeholder{
  color:#777!important;
  opacity:1!important;
}

.catalog-line-input:focus,
.catalog-line-combo.is-open .catalog-line-input{
  border-color:#9b9fa7!important;
  box-shadow:0 0 0 3px rgba(17,17,17,.055)!important;
}

.catalog-line-toggle{
  position:absolute!important;
  top:5px!important;
  right:5px!important;
  bottom:5px!important;
  width:40px!important;
  min-width:40px!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#454a54!important;
  display:grid!important;
  place-items:center!important;
  box-shadow:none!important;
}

.catalog-line-toggle:hover{
  background:#f1f2f4!important;
}

.catalog-line-toggle svg{
  width:20px!important;
  height:20px!important;
  transition:transform .16s ease!important;
}

.catalog-line-combo.is-open .catalog-line-toggle svg{
  transform:rotate(180deg)!important;
}

.catalog-line-options{
  position:absolute!important;
  top:calc(100% + 7px)!important;
  left:0!important;
  right:0!important;
  z-index:300!important;
  max-height:320px!important;
  overflow-y:auto!important;
  overscroll-behavior:contain!important;
  padding:6px!important;
  border:1px solid #e1e3e7!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 18px 42px rgba(17,24,39,.14)!important;
}

.catalog-line-options[hidden]{
  display:none!important;
}

.catalog-line-option{
  display:block!important;
  width:100%!important;
  min-height:42px!important;
  margin:0!important;
  padding:10px 12px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#111!important;
  font:inherit!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-align:left!important;
  white-space:normal!important;
  box-shadow:none!important;
}

.catalog-line-option:hover{
  background:#f1f2f4!important;
}

.catalog-line-option.is-selected{
  background:#111!important;
  color:#fff!important;
}

.catalog-line-option+.catalog-line-option{
  margin-top:2px!important;
}

/* Nel form Aggiungi set, il menu deve poter uscire sopra i contenuti successivi. */
.add-page .form-card:has(.catalog-line-combo){
  position:relative!important;
  overflow:visible!important;
  z-index:10;
}

@media(max-width:700px){
  .catalog-search-controls{
    max-width:none!important;
  }

  .catalog-line-combo{
    max-width:none!important;
  }

  .catalog-line-input{
    min-height:48px!important;
    font-size:15px!important;
  }

  .catalog-line-options{
    max-height:min(320px,52vh)!important;
  }
}


/* BrickCollect 1.8.18 - Dropdown standard globale
   Tutti i select usano la stessa grammatica visiva del filtro Linee LEGO. */
body select:not([multiple]){
  width:100%!important;
  min-height:50px!important;
  margin:0!important;
  padding:13px 46px 13px 15px!important;
  border:1px solid #ccc!important;
  border-radius:12px!important;
  background-color:#fff!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23454a54' stroke-width='2' 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:18px 18px!important;
  color:#111!important;
  font:inherit!important;
  font-size:16px!important;
  line-height:1.2!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  box-shadow:none!important;
  outline:none!important;
  cursor:pointer!important;
}

body select:not([multiple]):focus{
  border-color:#9b9fa7!important;
  box-shadow:0 0 0 3px rgba(17,17,17,.055)!important;
}

/* Tema Galleria: stesso campo singolo, senza contenitore grafico diverso */
.gallery-theme-filter{
  display:block!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}

.gallery-theme-filter-label{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.gallery-theme-filter select{
  width:100%!important;
  min-height:50px!important;
  padding:13px 46px 13px 15px!important;
  border:1px solid #ccc!important;
  border-radius:12px!important;
  background-color:#fff!important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23454a54' stroke-width='2' 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:18px!important;
}

/* The role selector used to be intentionally dark; now it follows the same system. */
.admin-user-role-select{
  min-width:150px!important;
  background-color:#fff!important;
  color:#111!important;
  text-transform:none!important;
}

/* Keep compact layouts responsive without changing their behavior */
.collection-filter-card select,
.minifig-filter-field select,
.set-card select{
  min-height:46px!important;
  font-size:14px!important;
  padding-top:11px!important;
  padding-bottom:11px!important;
}

/* Gallery performance Admin */
.admin-gallery-performance-card{
  scroll-margin-top:110px;
}
.admin-gallery-performance-stats{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:12px 0 14px;
  color:#697181;
  font-size:13px;
}
.admin-gallery-performance-stats span:first-child{
  font-weight:800;
  color:#333a48;
}

@media(max-width:700px){
  body select:not([multiple]),
  .gallery-theme-filter select{
    min-height:48px!important;
    font-size:15px!important;
  }

  .gallery-search-row{
    grid-template-columns:1fr!important;
  }
}


/* BrickCollect 1.8.19 - Galleria: like e + Galleria allineati in basso */
.photo-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}

.photo-card .published-photo-image{
  flex:0 0 auto!important;
}

.photo-card .photo-card-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
}

.photo-card .photo-actions{
  margin-top:auto!important;
  padding-top:12px!important;
  align-items:center!important;
}

.photo-card .heart-btn,
.photo-card .feature-btn,
.photo-card .danger-btn{
  align-self:center!important;
}

.photo-card .heart-btn{
  flex:0 0 auto!important;
}

.photo-card .add-to-gallery,
.photo-card .remove-from-gallery,
.photo-card .edit-photo,
.photo-card .delete-photo{
  flex:0 0 auto!important;
}

/* BrickCollect 1.8.20 - Installa nell'header prima di Admin */
.hero>#installAppBtn{
  display:none!important;
}

.header-install-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:35px!important;
  min-width:0!important;
  min-height:35px!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0 12px!important;
  border:1px solid color-mix(in srgb,var(--accent) 70%,#d9d9d9)!important;
  border-radius:10px!important;
  background:var(--accent)!important;
  color:var(--accent-contrast)!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:none!important;
}

.header-install-btn:hover{
  filter:brightness(.97);
}

.header-install-btn[hidden]{
  display:none!important;
}

@media(max-width:620px){
  .header-install-btn{
    height:35px!important;
    min-height:35px!important;
    padding:0 9px!important;
    font-size:11px!important;
  }
}


/* BrickCollect 1.8.21 - Installazione Android / iOS stile AperiSwipe */
.install-help{
  position:fixed!important;
  inset:0!important;
  z-index:10050!important;
  display:grid!important;
  place-items:center!important;
  padding:18px!important;
  background:rgba(0,0,0,.68)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}

.install-help-card{
  width:min(460px,100%)!important;
  max-height:calc(100dvh - 36px)!important;
  overflow:auto!important;
  padding:20px!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#111!important;
  box-shadow:0 22px 60px rgba(0,0,0,.28)!important;
}

.install-help-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:16px!important;
}

.install-help-head h3{
  margin:0 0 5px!important;
  font-size:24px!important;
  line-height:1.1!important;
  letter-spacing:-.4px!important;
}

.install-help-head p,
.install-help-text{
  margin:0!important;
  color:#737a88!important;
  font-size:13px!important;
  line-height:1.5!important;
}

.install-help-close{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:#f0f1f3!important;
  color:#111!important;
  font-size:20px!important;
  line-height:1!important;
}

.install-ios-steps{
  display:grid!important;
  gap:10px!important;
  margin:0 0 18px!important;
  padding:0!important;
  list-style:none!important;
}

.install-ios-steps li{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr)!important;
  align-items:center!important;
  gap:11px!important;
  padding:12px!important;
  border-radius:13px!important;
  background:#f4f5f7!important;
}

.install-step-number{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  background:var(--accent)!important;
  color:var(--accent-contrast)!important;
  font-size:13px!important;
  font-weight:950!important;
}

.install-ios-steps strong{
  display:block!important;
  margin-bottom:2px!important;
  font-size:14px!important;
}

.install-ios-steps small{
  display:block!important;
  color:#747b89!important;
  font-size:12px!important;
  line-height:1.4!important;
}

.install-help-done{
  width:100%!important;
  margin-top:16px!important;
}

@media(max-width:620px){
  .install-help-card{
    padding:18px!important;
  }
  .install-help-head h3{
    font-size:22px!important;
  }
}


/* BrickCollect 1.8.22 - Admin/Moderatore modifica contenuti */
.moderation-edit-btn{
  background:#111!important;
  color:#fff!important;
}

.marketplace-edit-dialog{
  width:min(560px,100%)!important;
}

.marketplace-edit-dialog .stack-form{
  gap:12px!important;
}

.marketplace-edit-dialog .photo-preview{
  max-height:260px!important;
  object-fit:contain!important;
  background:#f3f4f6!important;
}

.photo-card .moderation-edit-btn{
  margin-left:auto;
}

@media(max-width:700px){
  .marketplace-edit-dialog{
    width:100%!important;
  }

  .photo-card .moderation-edit-btn{
    margin-left:0;
  }
}


/* BrickCollect 1.8.23 - install icon */
.install-help-brand{display:flex;justify-content:center;margin:0 0 14px}
.install-help-brand img{width:72px;height:72px;border-radius:18px;display:block;box-shadow:0 8px 24px rgba(0,0,0,.18)}


/* BrickCollect 1.8.24 - Mercatino: stato e contenuto incluso */
.market-content-box{padding:15px 16px;border-radius:15px;background:#f6f6f7}
.market-content-title{margin-bottom:8px;font-size:13px;font-weight:900;color:#565d69}
.market-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}
.market-toggle-row{min-height:52px;padding:10px 0!important}
.market-toggle-row:nth-last-child(-n+2){border-bottom:0}
.market-feature-list{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 2px}
.market-condition-chip,.market-feature-chip{display:inline-flex;align-items:center;min-height:25px;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}
.market-condition-chip{background:#111;color:#fff}
.market-feature-chip{background:#f0f1f3;color:#454b56}
@media(max-width:620px){.market-toggle-grid{grid-template-columns:1fr}.market-toggle-row{border-bottom:1px solid #e3e5e9!important}.market-toggle-row:last-child{border-bottom:0!important}}


/* BrickCollect 1.8.25 - Galleria / Album: azioni come La mia collezione */
.gallery-grid{
  align-items:stretch!important;
}

.gallery-grid .photo-card{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
}

.gallery-grid .photo-card .photo-card-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:0!important;
}

.gallery-grid .photo-card .photo-actions{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:stretch!important;
  gap:7px!important;
  width:100%!important;
  margin-top:auto!important;
  padding-top:14px!important;
}

.gallery-grid .photo-card .photo-actions > *{
  flex:1 1 0!important;
  min-width:0!important;
  width:auto!important;
  margin:0!important;
}

.gallery-grid .photo-card .heart-btn,
.gallery-grid .photo-card .like-summary,
.gallery-grid .photo-card .feature-btn,
.gallery-grid .photo-card .danger-btn{
  min-height:42px!important;
  padding:9px 8px!important;
  border-radius:10px!important;
  font-size:13px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

.gallery-grid .photo-card .like-summary{
  background:#f3f3f3!important;
  color:#222!important;
  font-weight:800!important;
}

/* Mercatino: 5 toggle ordinati e nota MISB */
.market-toggle-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}

.market-misb-note{
  margin:10px 0 0!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:color-mix(in srgb,var(--accent) 13%,white)!important;
  color:#5b4a12!important;
  font-size:12px!important;
  line-height:1.4!important;
}

@media(max-width:620px){
  .gallery-grid .photo-card .photo-actions{
    gap:5px!important;
  }

  .gallery-grid .photo-card .heart-btn,
  .gallery-grid .photo-card .like-summary,
  .gallery-grid .photo-card .feature-btn,
  .gallery-grid .photo-card .danger-btn{
    min-height:40px!important;
    padding:8px 5px!important;
    font-size:12px!important;
    border-radius:9px!important;
  }

  .market-toggle-grid{
    grid-template-columns:1fr!important;
  }
}


/* BrickCollect 1.8.26 - logo nell'header */
.brand-logo{
  gap:8px!important;
}

.brand-logo::before{
  content:""!important;
  width:30px!important;
  height:30px!important;
  flex:0 0 30px!important;
  display:block!important;
  border-radius:8px!important;
  background:#000 url("icon-192.png?v=1827") center/cover no-repeat!important;
}

@media(max-width:640px){
  .brand-logo{
    gap:7px!important;
  }

  .brand-logo::before{
    width:28px!important;
    height:28px!important;
    flex-basis:28px!important;
    border-radius:7px!important;
  }
}

/* BrickCollect 1.8.26 - hashtag Galleria */
.gallery-hashtags{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  padding:2px 0 0!important;
}

.gallery-hashtag{
  width:auto!important;
  min-height:0!important;
  padding:5px 8px!important;
  border:0!important;
  border-radius:999px!important;
  background:#f1f2f4!important;
  color:#343a46!important;
  font-size:11px!important;
  font-weight:850!important;
  line-height:1!important;
  cursor:pointer!important;
}

.gallery-hashtag:hover{
  background:color-mix(in srgb,var(--accent) 20%,#f1f2f4)!important;
  color:#111!important;
}

.gallery-active-tag-bar{
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 20px 14px;
  color:#697181;
  font-size:12px;
  font-weight:800;
}

.gallery-active-tag-bar[hidden]{
  display:none!important;
}

.gallery-active-tag-chip{
  padding:7px 10px!important;
  border:0!important;
  border-radius:999px!important;
  background:#111!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
}

.gallery-active-tag-clear{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  background:#eceef2!important;
  color:#111!important;
  display:grid!important;
  place-items:center!important;
  font-size:17px!important;
}

/* Mercatino: stessa logica size-to-fit della Galleria */
.market-card>img{
  width:100%!important;
  aspect-ratio:4/3!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#f5f5f5!important;
}

.market-card .market-image-placeholder{
  aspect-ratio:4/3!important;
}

@media(max-width:700px){
  .gallery-active-tag-bar{
    padding-left:12px;
    padding-right:12px;
  }
}


/* BrickCollect 1.8.28 - brand logo definitivo */
.brand-logo::before{content:none!important;display:none!important;background:none!important;}
.brand-logo .brand-icon{width:32px!important;height:32px!important;flex:0 0 32px!important;display:block!important;object-fit:contain!important;border-radius:7px!important;}
@media(max-width:640px){.brand-logo .brand-icon{width:29px!important;height:29px!important;flex-basis:29px!important;border-radius:6px!important;}}


/* BrickCollect 1.8.30 - header wordmark senza spazio */
.brand-logo .brand-wordmark{
  display:inline!important;
  white-space:nowrap!important;
  letter-spacing:inherit!important;
}
.brand-logo .brand-wordmark .brand-accent{
  margin-left:0!important;
  padding-left:0!important;
}


/* BrickCollect 1.8.34 - filtro set usciti + CTA allineate in basso */
.catalog-release-filter{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:190px;
  margin:0!important;
  font-size:12px;
  font-weight:850;
  color:#626977;
}
.catalog-release-filter select{
  min-height:48px;
  width:100%;
  padding:0 38px 0 13px;
  border:1px solid #d7dae0;
  border-radius:12px;
  background:#fff;
  color:#111;
  font:inherit;
  font-size:14px;
  font-weight:800;
}
#results.has-search-results>.set-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
#results.has-search-results>.set-card>.add-set{
  margin-top:auto;
  align-self:flex-start;
}
#setResults .search-result-card>div{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
#setResults .search-result-card .add-result{
  margin-top:auto;
  align-self:flex-start;
}
@media(max-width:700px){
  .catalog-release-filter{width:100%;min-width:0;justify-content:space-between}
  .catalog-release-filter select{width:min(230px,65vw)}
}


/* 1.8.34.1 — azioni ricerca set affiancate */
.set-search-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:auto;
}
#results.has-search-results>.set-card>.set-search-actions{
  margin-top:auto;
  align-self:flex-start;
}
#setResults .search-result-card .set-search-actions{
  margin-top:auto;
  align-self:flex-start;
}
.set-search-actions .primary-btn,
.set-search-actions .secondary-btn{
  margin-top:0!important;
  align-self:auto!important;
}
@media(max-width:520px){
  .set-search-actions{width:100%}
  .set-search-actions>button{flex:1 1 auto}
}

/* BrickCollect 1.8.34.2 — Minifig: schede, modifica, dettaglio e CTA allineate */
.minifig-grid>.minifig-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.minifig-grid>.minifig-card h3{
  margin:12px 0 8px;
}
.minifig-display-code{
  display:block;
  margin-top:8px;
  color:#202124;
  font-weight:800;
  font-size:14px;
}
.minifig-image-placeholder{
  width:100%;
  aspect-ratio:4/3;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fafafa;
  color:#777;
  font-weight:800;
}
.minifig-summary{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:4px 0 8px;
  color:#555;
  font-size:14px;
}
.minifig-status-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 10px;
  border-radius:999px;
  background:#f2f2f2;
  color:#222;
  font-size:12px;
  font-weight:850;
}
.minifig-card-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:auto;
  padding-top:14px;
}
.minifig-card-actions .primary-btn,
.minifig-card-actions .feature-btn,
.minifig-edit-link{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  line-height:1.15;
}
.search-minifig-card .minifig-related,
.search-minifig-card .owned-set-badge{
  margin-bottom:0;
}
.minifig-edit-card{
  max-width:920px;
}
.minifig-edit-head,
.minifig-view-head{
  display:grid;
  grid-template-columns:minmax(180px,300px) minmax(0,1fr);
  gap:24px;
  align-items:start;
  margin-bottom:24px;
}
.minifig-edit-image,
.minifig-view-image{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  background:#fafafa;
  border-radius:16px;
}
.minifig-edit-head h2,
.minifig-view-head h2{
  padding:0;
  margin:8px 0 12px;
}
.minifig-related-compact{
  color:#667085;
  line-height:1.55;
  font-size:14px;
}
.minifig-view-copy{
  min-width:0;
}
.section-title-inline{
  padding:0!important;
  margin:0 0 14px!important;
}
.minifig-set-list{
  display:grid;
  gap:10px;
}
.minifig-set-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 14px;
  border:1px solid #ececec;
  border-radius:14px;
  background:#fafafa;
}
.minifig-set-row>div{
  display:grid;
  gap:3px;
  min-width:0;
}
.minifig-set-row span,
.minifig-set-row small{
  color:#667085;
}
.minifig-set-row img{
  width:72px;
  height:58px;
  flex:0 0 auto;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
}
.minifig-parts-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
  margin-top:14px;
}
.minifig-part-card{
  display:grid;
  grid-template-columns:76px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid #ececec;
  border-radius:14px;
  background:#fafafa;
}
.minifig-part-card img,
.minifig-part-placeholder{
  width:76px;
  height:76px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
}
.minifig-part-placeholder{
  display:grid;
  place-items:center;
  font-size:28px;
}
.minifig-part-card>div:last-child{
  display:grid;
  gap:3px;
  min-width:0;
}
.minifig-part-card span,
.minifig-part-card small{
  color:#667085;
  overflow-wrap:anywhere;
}
@media(max-width:700px){
  .minifig-edit-head,
  .minifig-view-head{grid-template-columns:1fr;gap:14px}
  .minifig-edit-image,
  .minifig-view-image,
  .minifig-edit-head>.minifig-image-placeholder,
  .minifig-view-head>.minifig-image-placeholder{max-height:360px}
  .minifig-card-actions{width:100%}
  .minifig-card-actions>.primary-btn,
  .minifig-card-actions>.feature-btn{flex:1 1 120px}
}


/* BrickCollect 1.8.34.3 — fix stato minifig, stile Modifica, condivisione e prezzo listino */
.minifig-edit-link{
  background:var(--accent)!important;
  color:var(--accent-contrast)!important;
  padding:12px 16px!important;
  border:0!important;
  border-radius:12px!important;
  font-size:16px!important;
  font-weight:800!important;
  cursor:pointer;
}
.minifig-status-field select{
  min-height:48px;
  background:#fff;
  font-weight:750;
}
.minifig-status-hint{
  margin:-3px 0 4px;
}
.share-public-btn{
  border:0;
  font:inherit;
  cursor:pointer;
}
.retail-price-admin{
  border-top:1px solid #ececec;
  margin-top:24px;
  padding-top:20px;
}
.retail-price-admin h3{
  margin:0 0 8px;
}

/* BrickCollect 1.8.34.4 — Wishlist, multicopia, import CSV e CTA coerenti */
.collection-page-actions{
  align-items:stretch;
}
.collection-page-actions .feature-btn,
.collection-page-actions button.feature-btn{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-height:46px!important;
  margin:0!important;
  padding:11px 14px!important;
  border:0!important;
  border-radius:11px!important;
  background:#111!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.share-public-btn{font:inherit!important}

.category-wishlist::after{
  background-image:url('cat-collection.jpg')!important;
  background-position:center 62%!important;
}

.wishlist-btn{
  appearance:none;
  border:2px solid #111;
  background:#fff;
  color:#111;
  min-height:44px;
  padding:11px 14px;
  border-radius:12px;
  font:inherit;
  font-weight:800;
  line-height:1.15;
  cursor:pointer;
}
.wishlist-btn:hover{background:#f5f5f5}
.wishlist-btn:disabled{opacity:.72;cursor:default}
.set-search-actions>button{min-height:44px}

.wishlist-grid>.wishlist-set-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
.wishlist-set-card h3{margin:12px 0 8px}
.wishlist-set-card>p{margin:5px 0}
.wishlist-card-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:auto;
  padding-top:16px;
}
.wishlist-card-actions .primary-btn,
.wishlist-card-actions .secondary-btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  margin:0!important;
}
.wishlist-purchased-btn{background:var(--accent)!important;color:var(--accent-contrast)!important}
.wishlist-count{align-self:center;margin-left:4px}
.wishlist-image-placeholder{width:100%!important;height:auto!important;aspect-ratio:4/3}

.copy-quantity-hint{
  margin:-4px 0 3px;
  padding:10px 12px;
  border-radius:10px;
  background:#f7f7f7;
  color:#667085;
}

.csv-import-card{width:min(100%,560px)}
.csv-import-card>p{line-height:1.55;color:#667085}
.csv-template-btn{margin:4px 0 16px}
.csv-file-label{
  display:grid;
  gap:7px;
  font-weight:800;
  margin-top:6px;
}
.csv-file-label input{
  width:100%;
  box-sizing:border-box;
  padding:12px;
  border:1px solid #d0d0d0;
  border-radius:11px;
  background:#fafafa;
  font:inherit;
}

.minifig-edit-link-secondary{
  min-height:44px;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding:11px 14px!important;
  border-radius:12px!important;
  font-weight:800!important;
}
.search-minifig-card .minifig-card-actions{margin-top:auto}
.search-minifig-card .minifig-card-actions>*{margin-top:0!important}

@media(max-width:620px){
  .collection-page-actions .feature-btn,
  .collection-page-actions button.feature-btn{flex:1 1 145px}
  .set-search-actions>button{flex:1 1 150px}
  .wishlist-card-actions>*{flex:1 1 120px}
}


/* BrickCollect 1.8.34.5.10 - Modifica uniforme + ricerca catalogo pezzi sfusi */
.bc-edit-icon-btn,
.bc-delete-icon-btn{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:11px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0!important;
  padding:0!important;
  text-decoration:none!important;
  cursor:pointer!important;
  line-height:1!important;
  flex:0 0 44px!important;
}
.bc-edit-icon-btn{
  background:var(--accent,#fdce04)!important;
  color:var(--accent-contrast,#111)!important;
}
.bc-edit-icon-btn svg{width:20px!important;height:20px!important;display:block!important;fill:currentColor!important;}
.bc-delete-icon-btn{
  background:#b42318!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:29px!important;
  font-weight:900!important;
  padding-bottom:3px!important;
}
.minifig-copy-action-row{display:flex!important;justify-content:flex-end!important;gap:8px!important;width:100%!important;}
.minifig-card-actions .minifig-search-edit-btn{margin-top:0!important;}

.loose-catalog-search-card h2{padding:0!important;margin:0 0 8px!important;}
.loose-catalog-search-card .hint{margin:0 0 14px!important;}
.loose-catalog-search{max-width:none!important;width:100%!important;}
.loose-catalog-results{align-items:stretch!important;}
.loose-catalog-result-card{display:flex!important;flex-direction:column!important;height:100%!important;}
.loose-catalog-result-card .loose-part-image{margin-bottom:10px!important;}
.loose-catalog-result-card label{margin-top:10px!important;}
.loose-catalog-result-card .add-catalog-piece{margin-top:auto!important;margin-bottom:0!important;min-height:44px!important;}
.loose-catalog-result-card select,.loose-catalog-result-card input{min-height:44px!important;}
@media(max-width:560px){
  .bc-edit-icon-btn,.bc-delete-icon-btn{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;flex-basis:42px!important;}
  .loose-catalog-search{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;}
}

/* BrickCollect 1.8.34.5.14 - modalità app più compatta su mobile
   Riduce solo gli spazi verticali quando la PWA è avviata come app. */
@media (max-width:899px) and (display-mode: standalone),
       (max-width:899px) and (display-mode: fullscreen) {
  body{
    padding-bottom:calc(68px + env(safe-area-inset-bottom))!important;
  }

  .hero{
    padding:20px 16px!important;
  }
  .hero h1{
    margin-bottom:8px!important;
    line-height:.98!important;
  }
  .hero>p{
    margin-top:0!important;
    margin-bottom:10px!important;
  }

  .catalog-search-controls{
    gap:7px!important;
    margin-top:10px!important;
  }
  .catalog-line-input,
  body select:not([multiple]){
    min-height:44px!important;
    padding-top:10px!important;
    padding-bottom:10px!important;
  }
  .search input{
    padding:12px 13px!important;
  }
  .search button{
    padding:10px 14px!important;
  }

  h2{
    margin-top:14px!important;
    margin-bottom:10px!important;
  }
  .grid,.cards{
    gap:10px!important;
    padding-left:12px!important;
    padding-right:12px!important;
  }

  /* Risultati set Home/Aggiungi: immagine e testi più compatti. */
  #results.has-search-results>.set-card{
    padding:14px!important;
    border-radius:16px!important;
  }
  #results.has-search-results>.set-card>img{
    height:225px!important;
    max-height:225px!important;
    aspect-ratio:auto!important;
    object-fit:contain!important;
  }
  #results.has-search-results>.set-card>small{
    display:block!important;
    margin-top:7px!important;
  }
  #results.has-search-results>.set-card>h3{
    margin:8px 0 6px!important;
    line-height:1.08!important;
  }
  #results.has-search-results>.set-card>p{
    margin:5px 0!important;
    line-height:1.25!important;
  }
  #results.has-search-results .search-owned-badge{
    margin:7px 0 8px!important;
    padding:6px 9px!important;
  }
  #results.has-search-results .set-search-actions{
    gap:6px!important;
  }
  #results.has-search-results .set-search-actions>button{
    min-height:40px!important;
    padding:9px 11px!important;
  }

  /* Card Home: stessa grafica ma meno alte. */
  .premium-category-list{
    gap:10px!important;
    padding-left:12px!important;
    padding-right:12px!important;
    padding-bottom:16px!important;
  }
  .premium-category-card{
    min-height:104px!important;
    padding:16px 68px 16px 16px!important;
  }
  .premium-category-card .category-copy h3{
    margin:0 0 5px!important;
  }
  .premium-category-card .category-copy p{
    margin:0!important;
    line-height:1.2!important;
  }
  .category-arrow{
    width:40px!important;
    height:40px!important;
    right:14px!important;
  }

  /* Barra inferiore leggermente più compatta, senza cambiare struttura. */
  .mobile-bottom-nav{
    min-height:60px!important;
    padding-top:6px!important;
    padding-bottom:calc(6px + env(safe-area-inset-bottom))!important;
  }
  .mobile-bottom-nav .nav-plus{
    width:46px!important;
    height:46px!important;
  }
}

/* BrickCollect 1.8.34.5.16 - layout compatto globale
   Estende la logica compatta a browser desktop/mobile e alle principali categorie,
   mantenendo invariata l'identità grafica e la leggibilità. */

/* Struttura generale: meno spazio verticale, stessi componenti. */
.hero{
  padding:22px 20px!important;
}
.hero h1{
  margin-bottom:8px!important;
  line-height:.98!important;
}
.hero>p{
  margin-top:0!important;
  margin-bottom:8px!important;
}
.page-actions,
.tabs{
  padding-bottom:14px!important;
}
h2{
  margin-top:16px!important;
  margin-bottom:10px!important;
}
.form-card,
.chat-card{
  padding:16px!important;
  margin-bottom:14px!important;
}

.grid,
.cards,
.gallery-grid,
.market-grid,
.minifig-grid,
.wishlist-grid{
  gap:12px!important;
}

/* Set / collezione / risultati / minifig / wishlist / pezzi sfusi. */
.cards article,
.set-card{
  padding:14px!important;
  border-radius:16px!important;
}
.set-card>img,
.minifig-card>img,
.wishlist-set-card>img{
  max-height:210px!important;
  object-fit:contain!important;
}
.set-card>small,
.minifig-display-code{
  margin-top:6px!important;
}
.set-card>h3,
.minifig-card>h3,
.wishlist-set-card>h3{
  margin:8px 0 6px!important;
  line-height:1.1!important;
}
.set-card>p,
.wishlist-set-card>p{
  margin:4px 0!important;
  line-height:1.25!important;
}
.set-search-actions{
  gap:6px!important;
}
.set-search-actions>button{
  min-height:40px!important;
  padding-top:9px!important;
  padding-bottom:9px!important;
}
.search-owned-badge,
.owned-set-badge{
  margin-top:7px!important;
  margin-bottom:7px!important;
}

.collection-copy-list{
  gap:4px!important;
  margin-bottom:10px!important;
}
.collection-bottom-actions{
  gap:7px!important;
  padding-top:7px!important;
}
.collection-copy-item{
  line-height:1.28!important;
}

.minifig-summary{
  margin:2px 0 5px!important;
}
.minifig-card-actions{
  padding-top:9px!important;
  gap:6px!important;
}
.minifig-copy-entry{
  margin-top:4px!important;
  margin-bottom:4px!important;
}

.wishlist-card-actions{
  padding-top:10px!important;
  gap:6px!important;
}

.loose-catalog-search-card{
  padding-top:16px!important;
  padding-bottom:16px!important;
}
.loose-part-image{
  width:72px!important;
  height:72px!important;
  border-radius:14px!important;
  margin-bottom:8px!important;
}
.loose-catalog-result-card label{
  margin-top:7px!important;
}
.loose-catalog-result-card select,
.loose-catalog-result-card input{
  min-height:40px!important;
}
.loose-catalog-result-card .add-catalog-piece{
  min-height:40px!important;
}

/* Home: card categorie più basse anche nel browser normale. */
.premium-category-list{
  gap:10px!important;
  padding-bottom:16px!important;
}
.premium-category-card{
  min-height:108px!important;
  padding:17px 70px 17px 18px!important;
  border-radius:20px!important;
}
.premium-category-card .category-copy h3{
  margin:0 0 4px!important;
}
.premium-category-card .category-copy p{
  margin:0!important;
  line-height:1.2!important;
}
.category-arrow{
  width:40px!important;
  height:40px!important;
  right:14px!important;
}

/* MOC e Mercatino: immagini e corpo più compatti. */
.moc-card-body,
.market-card-body{
  padding:13px!important;
}
.moc-card-body h3,
.market-card-body h3{
  margin:5px 0 6px!important;
}
.moc-main-image,
.market-card>img,
.market-card .market-image-placeholder{
  max-height:220px!important;
}
.moc-required,
.moc-instructions{
  margin-top:8px!important;
  margin-bottom:8px!important;
}

/* Galleria: stessa immagine, ma meno spazio attorno ai contenuti e più densità. */
.gallery-grid{
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;
}
.gallery-grid .photo-card .photo-card-body{
  padding:12px!important;
}
.gallery-grid .photo-card .photo-actions{
  padding-top:9px!important;
  gap:5px!important;
}
.photo-card-heading{
  margin-bottom:6px!important;
}

/* Statistiche: card meno alte mantenendo i numeri ben leggibili. */
.stats-dashboard{
  gap:12px!important;
  margin-bottom:20px!important;
}
.stats-value-card{
  min-height:132px!important;
  padding:16px!important;
}
.stats-value-card strong{
  font-size:clamp(30px,4vw,46px)!important;
  margin:9px 0!important;
}
.stats-lines-section{
  padding-top:20px!important;
}
.stats-lines-grid{
  gap:10px!important;
}
.stats-line-card{
  min-height:105px!important;
  padding:14px!important;
}
.stats-line-card strong{
  font-size:32px!important;
  margin-top:8px!important;
}

/* Desktop: applica esplicitamente la stessa filosofia compatta. */
@media(min-width:900px){
  .hero{
    padding-top:20px!important;
    padding-bottom:20px!important;
  }
  .grid,.cards{
    gap:12px!important;
  }
  #results.has-search-results>.set-card>img{
    max-height:190px!important;
  }
  .premium-category-card{
    min-height:104px!important;
  }
  .form-card,
  .chat-card{
    padding:15px!important;
  }
}

/* Mobile browser/PWA: compatto anche fuori dalla sola modalità standalone. */
@media(max-width:899px){
  .hero{
    padding:18px 14px!important;
  }
  .grid,.cards,
  .gallery-grid,
  .market-grid{
    padding-left:12px!important;
    padding-right:12px!important;
  }
  .set-card>img,
  .minifig-card>img,
  .wishlist-set-card>img{
    max-height:205px!important;
  }
  .premium-category-card{
    min-height:102px!important;
    padding:15px 64px 15px 15px!important;
  }
}

/* BrickCollect 1.8.34.5.18 - footer senza fascia residua
   Su desktop una vecchia regola lasciava 28px di padding sotto il body,
   facendo comparire una riga/fascia dopo il footer. */
@media (min-width:900px){
  html,body{
    margin-bottom:0!important;
    padding-bottom:0!important;
  }
  .brickcollect-global-footer{
    margin-bottom:0!important;
  }
}


/* 1.8.34.5.20 - Wishlist: cancellazione con X coerente con le altre card */
.wishlist-card-actions .bc-delete-icon-btn{
  flex:0 0 46px!important;
  width:46px!important;
  min-width:46px!important;
  height:46px!important;
  min-height:46px!important;
  align-self:stretch!important;
}
@media(max-width:640px){
  .wishlist-card-actions .bc-delete-icon-btn{
    flex:0 0 42px!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    min-height:42px!important;
  }
}


/* 1.8.34.5.21 - azioni Modifica/Elimina a sinistra + Wishlist cuore */
.collection-copy-action-row,
.minifig-copy-action-row{
  justify-content:flex-start!important;
}
.photo-card .moderation-edit-btn{
  margin-left:0!important;
}
.category-wishlist::after{
  background-image:url('cat-wishlist-heart.jpg')!important;
  background-position:center!important;
  background-size:cover!important;
}


/* 1.8.34.5.22 — categorie BAM / Printed in Store + Wishlist a sfondo pieno */
.category-wishlist::after{
  background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.03)),url('cat-wishlist-heart.jpg')!important;
  background-position:center!important;
  background-size:cover!important;
  width:56%!important;
  opacity:1!important;
}
.category-bam::after{
  background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(253,206,4,.12)),url('cat-minifigs.jpg')!important;
  background-position:center 38%!important;
  background-size:cover!important;
  width:56%!important;
}
.category-printed::after{
  background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(17,17,17,.10)),url('cat-minifigs.jpg')!important;
  background-position:center 64%!important;
  background-size:cover!important;
  width:56%!important;
  filter:saturate(.65) contrast(1.05)!important;
}
.special-minifig-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.special-minifig-toolbar .tab-btn{min-height:42px}
.special-minifig-count{color:#667085;font-weight:700}
.special-minifig-copy{border-top:1px solid #ececec;padding-top:8px;margin-top:8px}
.special-minifig-copy-actions{display:flex;gap:8px;justify-content:flex-start;margin-top:8px}
.special-source-note{font-size:13px;color:#667085;line-height:1.45}
.special-source-chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#f2f4f7;font-size:12px;font-weight:800;color:#344054}
.special-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media(max-width:760px){.special-admin-grid{grid-template-columns:1fr}.category-bam::after,.category-printed::after,.category-wishlist::after{width:54%!important}}


/* 1.8.34.5.22b — pulizia Home: nasconde il testo residuo incorporato nelle vecchie immagini */
.category-collection::after{
  background-position:right center!important;
  background-size:132% auto!important;
}
.category-pieces::after{
  background-position:right center!important;
  background-size:145% auto!important;
}
/* Wishlist: stesso trattamento grafico delle altre card, con cuore come sfondo laterale */
.category-wishlist::before{
  background:linear-gradient(90deg,#fff 0%,#fff 43%,rgba(255,255,255,.82) 60%,rgba(255,255,255,.16) 100%)!important;
}
.category-wishlist::after{
  right:0!important;top:0!important;bottom:0!important;width:58%!important;
  background-image:url('cat-wishlist-heart.jpg')!important;
  background-position:center!important;background-size:cover!important;
  opacity:1!important;filter:saturate(.96) contrast(.98)!important;
}
@media(max-width:760px){
  .category-wishlist::after{width:64%!important}
  .category-collection::after{background-size:138% auto!important}
  .category-pieces::after{background-size:152% auto!important}
}

/* 1.8.34.5.30 — bottoni uniformi per Minifig, BAM e Printed in Store */
.minifig-tabs,
.special-minifig-toolbar{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  margin:0 0 18px;
}

.minifig-tabs .tab-btn,
.minifig-tabs a.tab-btn,
.minifig-tabs button.tab-btn,
.special-minifig-toolbar .tab-btn,
.special-minifig-toolbar a.tab-btn,
.special-minifig-toolbar button.tab-btn{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-height:46px!important;
  margin:0!important;
  padding:11px 18px!important;
  border:0!important;
  border-radius:11px!important;
  background:#111!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:nowrap;
  cursor:pointer!important;
}

.minifig-tabs .tab-btn.active,
.special-minifig-toolbar .tab-btn.active{
  background:#111!important;
  color:#fff!important;
}

.minifig-tabs .tab-btn:hover,
.special-minifig-toolbar .tab-btn:hover,
.minifig-tabs .tab-btn:focus-visible,
.special-minifig-toolbar .tab-btn:focus-visible{
  filter:brightness(1.06);
  outline:none;
}

.minifig-tabs .tab-btn[disabled],
.special-minifig-toolbar .tab-btn[disabled]{
  opacity:.75!important;
  cursor:default!important;
}

.special-minifig-count,
.minifig-count,
#count{
  color:#667085!important;
  font-weight:700!important;
  align-self:center;
}

#searchPanel .search button,
.search button#searchBtn,
#searchBtn{
  appearance:none!important;
  -webkit-appearance:none!important;
  min-height:46px!important;
  padding:11px 16px!important;
  border:0!important;
  border-radius:11px!important;
  background:#111!important;
  color:#fff!important;
  font:inherit!important;
  font-weight:800!important;
  cursor:pointer!important;
}

@media (max-width: 760px){
  .minifig-tabs .tab-btn,
  .minifig-tabs a.tab-btn,
  .minifig-tabs button.tab-btn,
  .special-minifig-toolbar .tab-btn,
  .special-minifig-toolbar a.tab-btn,
  .special-minifig-toolbar button.tab-btn{
    flex:1 1 160px;
  }
}

/* 1.8.34.5.31 — Wishlist card più coerente + frecce perfettamente centrate */
.category-wishlist::before{
  background:linear-gradient(90deg,#fff 0%,#fff 42%,rgba(255,255,255,.90) 58%,rgba(255,255,255,.20) 100%)!important;
}
.category-wishlist::after{
  right:0!important;
  top:0!important;
  bottom:0!important;
  width:56%!important;
  background-image:url('cat-wishlist-heart.jpg')!important;
  background-position:center right!important;
  background-size:cover!important;
  filter:none!important;
  opacity:1!important;
}
.category-arrow{
  position:absolute!important;
  right:18px!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:5!important;
  width:48px!important;
  height:48px!important;
  border-radius:50%!important;
  background:#fffffff2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:0!important;
  font-size:0!important;
  box-shadow:0 6px 18px #0002!important;
}
.category-arrow::before{
  content:'›';
  display:block;
  font-size:34px;
  line-height:1;
  color:#111;
  transform:translateY(-1px);
}
@media(max-width:640px){
  .category-wishlist::after{width:58%!important}
  .category-arrow{right:16px!important}
  .category-arrow::before{font-size:32px}
}

/* 1.8.34.5.32 — Minifig Home card: nuova immagine e inquadratura meno tagliata */
.category-minifigs::before{
  background:linear-gradient(90deg,#fff 0%,#fff 41%,rgba(255,255,255,.92) 56%,rgba(255,255,255,.24) 100%)!important;
}
.category-minifigs::after{
  background-image:url('cat-minifigs.jpg')!important;
  background-size:cover!important;
  background-position:center right!important;
  background-repeat:no-repeat!important;
  width:57%!important;
  filter:none!important;
  opacity:1!important;
}
@media(max-width:640px){
  .category-minifigs::after{width:59%!important;background-position:68% center!important;}
}

/* 1.8.34.5.33 — Home cards final: Wishlist, Minifig, Printed, freccia centrata */
.category-arrow{
  position:absolute!important;
  right:18px!important;
  left:auto!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:5!important;
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  min-height:48px!important;
  border-radius:50%!important;
  background:#fffffff2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:0!important;
  font-size:0!important;
  box-shadow:0 6px 18px #0002!important;
}
.category-arrow::before{
  content:'›';
  display:block;
  font-size:34px;
  line-height:1;
  color:#111;
  transform:translateY(-1px);
}

.category-wishlist::before{
  background:linear-gradient(90deg,#fff 0%,#fff 42%,rgba(255,255,255,.90) 58%,rgba(255,255,255,.20) 100%)!important;
}
.category-wishlist::after{
  right:0!important;
  top:0!important;
  bottom:0!important;
  width:56%!important;
  background-image:url('cat-wishlist-heart.jpg')!important;
  background-position:center right!important;
  background-size:cover!important;
  background-repeat:no-repeat!important;
  filter:none!important;
  opacity:1!important;
}

.category-minifigs::before{
  background:linear-gradient(90deg,#fff 0%,#fff 41%,rgba(255,255,255,.92) 56%,rgba(255,255,255,.24) 100%)!important;
}
.category-minifigs::after{
  background-image:url('cat-minifigs.jpg')!important;
  background-size:cover!important;
  background-position:center right!important;
  background-repeat:no-repeat!important;
  width:57%!important;
  filter:none!important;
  opacity:1!important;
}

.category-printed::before{
  background:linear-gradient(90deg,#fff 0%,#fff 41%,rgba(255,255,255,.92) 56%,rgba(255,255,255,.22) 100%)!important;
}
.category-printed::after{
  background-image:url('cat-printed-store.jpg')!important;
  background-size:cover!important;
  background-position:center right!important;
  background-repeat:no-repeat!important;
  width:57%!important;
  filter:none!important;
  opacity:1!important;
}

@media(max-width:640px){
  .category-arrow{right:16px!important}
  .category-arrow::before{font-size:32px}
  .category-wishlist::after{width:58%!important}
  .category-minifigs::after{width:59%!important;background-position:68% center!important}
  .category-printed::after{width:59%!important;background-position:70% center!important}
}

/* 1.8.34.5.35 — BAM con immagine dedicata, distinta da Minifig */
.category-bam::before{
  background:linear-gradient(90deg,#fff 0%,#fff 41%,rgba(255,255,255,.92) 56%,rgba(255,255,255,.22) 100%)!important;
}
.category-bam::after{
  background-image:url('cat-bam.jpg')!important;
  background-size:cover!important;
  background-position:center right!important;
  background-repeat:no-repeat!important;
  width:57%!important;
  filter:none!important;
  opacity:1!important;
}
@media(max-width:640px){
  .category-bam::after{
    width:59%!important;
    background-position:68% center!important;
  }
}

/* 1.8.34.5.44 — Ripristino visuale Minifig: stessi CTA di La mia collezione.
   Solo presentazione: non modifica logica, link, eventi o comportamento. */
.minifig-tabs > a,
.minifig-tabs > button,
.minifig-tabs .tab-btn,
.minifig-tabs a.tab-btn,
.minifig-tabs button.tab-btn{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-height:46px!important;
  margin:0!important;
  padding:11px 14px!important;
  border:0!important;
  border-radius:11px!important;
  background:#111!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.minifig-tabs > a:hover,
.minifig-tabs > button:hover,
.minifig-tabs .tab-btn:hover,
.minifig-tabs > a:focus-visible,
.minifig-tabs > button:focus-visible,
.minifig-tabs .tab-btn:focus-visible{
  background:#111!important;
  color:#fff!important;
  filter:brightness(1.06);
}
.minifig-tabs .active,
.minifig-tabs .tab-btn.active{
  background:#111!important;
  color:#fff!important;
}
@media(max-width:620px){
  .minifig-tabs > a,
  .minifig-tabs > button,
  .minifig-tabs .tab-btn{
    flex:1 1 145px;
  }
}

/* 1.8.34.5.45 — fix definitivo toolbar Le mie Minifig.
   Forza TUTTI i controlli diretti della barra a usare lo stesso stile della mia collezione,
   anche se nel markup non hanno esattamente la classe .tab-btn. */
.minifig-tabs{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  padding:0 20px 18px!important;
}
.minifig-tabs > a,
.minifig-tabs > button,
.minifig-tabs > .tab-btn,
.minifig-tabs > [role="button"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-height:48px!important;
  margin:0!important;
  padding:11px 14px!important;
  border:0!important;
  border-radius:11px!important;
  background:#111!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:none!important;
  opacity:1!important;
}
.minifig-tabs > a:hover,
.minifig-tabs > button:hover,
.minifig-tabs > .tab-btn:hover,
.minifig-tabs > [role="button"]:hover,
.minifig-tabs > a:focus-visible,
.minifig-tabs > button:focus-visible,
.minifig-tabs > .tab-btn:focus-visible,
.minifig-tabs > [role="button"]:focus-visible,
.minifig-tabs > a.active,
.minifig-tabs > button.active,
.minifig-tabs > .tab-btn.active,
.minifig-tabs > [role="button"].active{
  background:#111!important;
  color:#fff!important;
  text-decoration:none!important;
}
@media(max-width:620px){
  .minifig-tabs > a,
  .minifig-tabs > button,
  .minifig-tabs > .tab-btn,
  .minifig-tabs > [role="button"]{
    flex:1 1 145px!important;
  }
}


/* 1.8.34.5.46 — fix strutturale toolbar sotto Hero.
   I precedenti selector basati solo su .minifig-tabs non intercettavano
   tutti i controlli del markup corrente. Questa regola colpisce la toolbar
   che segue direttamente l'hero nelle pagine Minifig/BAM/Printed. */
.hero + .tabs > a,
.hero + .tabs > button,
.hero + .tabs > .tab-btn,
.hero + .tabs > [role="button"],
.hero + section.tabs > a,
.hero + section.tabs > button,
.hero + section.tabs > .tab-btn,
.hero + section.tabs > [role="button"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-height:48px!important;
  margin:0!important;
  padding:11px 14px!important;
  border:0!important;
  border-radius:11px!important;
  background:#111!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  cursor:pointer!important;
  box-shadow:none!important;
  opacity:1!important;
}
.hero + .tabs > a:hover,
.hero + .tabs > button:hover,
.hero + .tabs > .tab-btn:hover,
.hero + .tabs > [role="button"]:hover,
.hero + section.tabs > a:hover,
.hero + section.tabs > button:hover,
.hero + section.tabs > .tab-btn:hover,
.hero + section.tabs > [role="button"]:hover,
.hero + .tabs > a.active,
.hero + .tabs > button.active,
.hero + .tabs > .tab-btn.active,
.hero + .tabs > [role="button"].active,
.hero + section.tabs > a.active,
.hero + section.tabs > button.active,
.hero + section.tabs > .tab-btn.active,
.hero + section.tabs > [role="button"].active{
  background:#111!important;
  color:#fff!important;
  text-decoration:none!important;
}
@media(max-width:620px){
  .hero + .tabs > a,
  .hero + .tabs > button,
  .hero + .tabs > .tab-btn,
  .hero + .tabs > [role="button"],
  .hero + section.tabs > a,
  .hero + section.tabs > button,
  .hero + section.tabs > .tab-btn,
  .hero + section.tabs > [role="button"]{
    flex:1 1 145px!important;
  }
}



/* 1.8.34.5.48 — Vista Griglia / Elenco compatta.
   La griglia corrente resta la vista predefinita. Il toggle cambia soltanto
   la presentazione dei dati già renderizzati, senza cambiare query o logica. */
.bc-view-toggle{gap:8px!important;white-space:nowrap!important}
.bc-view-toggle-icon{width:19px;height:19px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 19px}
.bc-view-toggle-icon svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bc-view-toggle-icon svg rect{fill:currentColor;stroke:none}
.bc-view-toggle[aria-pressed="true"] .bc-view-toggle-icon svg rect{fill:none}

.grid.bc-list-view{grid-template-columns:1fr!important;gap:6px!important}
.grid.bc-list-view>.set-card{min-width:0!important;min-height:50px!important;height:auto!important;box-shadow:none!important;border:1px solid #ececec!important;border-radius:10px!important;padding:10px 14px!important}
.grid.bc-list-view>.set-card>img,
.grid.bc-list-view>.set-card>.image-placeholder,
.grid.bc-list-view>.set-card>.minifig-image-placeholder,
.grid.bc-list-view>.set-card>.loose-part-image{display:none!important}
.grid.bc-list-view>.set-card>small,
.grid.bc-list-view>.set-card>h3,
.grid.bc-list-view>.set-card>p{margin:0!important;min-height:0!important}
.grid.bc-list-view>.set-card>h3{font-size:15px!important;line-height:1.25!important}
.grid.bc-list-view>.set-card>small{font-size:12px!important;color:#667085!important}

/* La mia collezione: una riga = codice, nome, linea/quantità. */
#collectionGrid.bc-list-view>.set-card[data-id]{display:grid!important;grid-template-columns:minmax(88px,120px) minmax(0,1fr) auto!important;gap:10px 14px!important;align-items:center!important}
#collectionGrid.bc-list-view>.set-card[data-id]>small{grid-column:1}
#collectionGrid.bc-list-view>.set-card[data-id]>h3{grid-column:2}
#collectionGrid.bc-list-view>.set-card[data-id]>.collection-main-meta{grid-column:3;white-space:nowrap;font-size:13px!important;color:#667085}
#collectionGrid.bc-list-view .collection-copy-list,
#collectionGrid.bc-list-view .collection-bottom-actions{display:none!important}

/* Minifig: codice, nome e quantità; le azioni complete restano nella vista griglia. */
.minifig-grid.bc-list-view>.minifig-card{display:grid!important;grid-template-columns:minmax(88px,130px) minmax(0,1fr) auto!important;gap:10px 14px!important;align-items:center!important}
.minifig-grid.bc-list-view>.minifig-card>.minifig-display-code,
.minifig-grid.bc-list-view>.minifig-card>small{grid-column:1}
.minifig-grid.bc-list-view>.minifig-card>h3{grid-column:2}
.minifig-grid.bc-list-view>.minifig-card>.minifig-summary{grid-column:3;margin:0!important;white-space:nowrap;font-size:13px!important}
.minifig-grid.bc-list-view>.minifig-card>.minifig-copy-entry,
.minifig-grid.bc-list-view>.minifig-card>.owned-set-badge,
.minifig-grid.bc-list-view>.minifig-card>.minifig-related,
.minifig-grid.bc-list-view>.minifig-card>p.set-private-meta{display:none!important}
/* Nei risultati di ricerca conserva il pulsante di aggiunta a destra. */
.minifig-grid.bc-list-view>.search-minifig-card>.minifig-card-actions{grid-column:3;margin:0!important;padding:0!important;align-self:center!important}
.minifig-grid.bc-list-view>.search-minifig-card>.minifig-card-actions .feature-btn,
.minifig-grid.bc-list-view>.search-minifig-card>.minifig-card-actions .bc-edit-icon-btn{display:none!important}
.minifig-grid.bc-list-view>.search-minifig-card>.search-owned-badge{display:none!important}
/* Nella collezione Minifig la scheda completa si riapre passando alla griglia. */
#ownedGrid.bc-list-view>.minifig-card>.minifig-card-actions{display:none!important}

/* BAM / Printed: codice, nome, anno/quantità; ricerca con CTA aggiungi. */
.special-minifig-toolbar .bc-view-toggle{background:#111!important;color:#fff!important}
#ownedGrid.bc-list-view>.minifig-card>.special-minifig-year{grid-column:3;white-space:nowrap;color:#667085;font-size:13px!important}
#ownedGrid.bc-list-view>.minifig-card>.special-minifig-qty{grid-column:4;white-space:nowrap;font-size:13px!important}
#ownedGrid.bc-list-view>.minifig-card>.special-minifig-copy{display:none!important}
#results.bc-list-view>.minifig-card>.special-minifig-year{grid-column:3;white-space:nowrap;color:#667085;font-size:13px!important}
#results.bc-list-view>.minifig-card>.search-owned-badge{display:none!important}
#results.bc-list-view>.minifig-card>.minifig-card-actions{grid-column:4;margin:0!important;padding:0!important}

/* Pezzi sfusi: codice, nome, colore, disponibilità. */
#partsGrid.bc-list-view>.loose-part-card{display:grid!important;grid-template-columns:minmax(88px,120px) minmax(0,1fr) minmax(100px,160px) auto!important;gap:10px 14px!important;align-items:center!important}
#partsGrid.bc-list-view>.loose-part-card>small{grid-column:1}
#partsGrid.bc-list-view>.loose-part-card>h3{grid-column:2}
#partsGrid.bc-list-view>.loose-part-card>.loose-part-color{grid-column:3;color:#667085;font-size:13px!important}
#partsGrid.bc-list-view>.loose-part-card>.loose-part-available{grid-column:4;white-space:nowrap;font-size:13px!important}
#partsGrid.bc-list-view>.loose-part-card>label,
#partsGrid.bc-list-view>.loose-part-card>.row-actions,
#partsGrid.bc-list-view>.loose-part-card>.hint{display:none!important}

@media(max-width:700px){
  #collectionGrid.bc-list-view>.set-card[data-id],
  .minifig-grid.bc-list-view>.minifig-card,
  #partsGrid.bc-list-view>.loose-part-card{
    grid-template-columns:minmax(72px,96px) minmax(0,1fr)!important;
    gap:4px 10px!important;
  }
  #collectionGrid.bc-list-view>.set-card[data-id]>.collection-main-meta,
  .minifig-grid.bc-list-view>.minifig-card>.minifig-summary,
  #ownedGrid.bc-list-view>.minifig-card>.special-minifig-year,
  #ownedGrid.bc-list-view>.minifig-card>.special-minifig-qty,
  #results.bc-list-view>.minifig-card>.special-minifig-year,
  #results.bc-list-view>.minifig-card>.minifig-card-actions,
  .minifig-grid.bc-list-view>.search-minifig-card>.minifig-card-actions,
  #partsGrid.bc-list-view>.loose-part-card>.loose-part-color,
  #partsGrid.bc-list-view>.loose-part-card>.loose-part-available{
    grid-column:2!important;
    white-space:normal!important;
  }
  .grid.bc-list-view>.set-card{padding:9px 11px!important}
}

/* 1.8.34.5.49 — Vista uniforme.
   1) Il pulsante Vista usa esattamente la stessa resa dei CTA neri dell'app,
      anche quando e' un <button> (Safari non deve aggiungere bordo/focus blu dopo il click).
   2) Le righe di Le mie Minifig in vista elenco usano la stessa struttura/densita'
      di La mia collezione: codice | nome | quantita', tutti sulla stessa riga. */
.bc-view-toggle,
.page-actions .bc-view-toggle,
.tabs .bc-view-toggle,
.special-minifig-toolbar .bc-view-toggle{
  appearance:none!important;
  -webkit-appearance:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-sizing:border-box!important;
  min-height:46px!important;
  margin:0!important;
  padding:11px 14px!important;
  border:0!important;
  border-radius:11px!important;
  background:#111!important;
  color:#fff!important;
  font-family:inherit!important;
  font-size:16px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  box-shadow:none!important;
  outline:none!important;
  opacity:1!important;
}
.bc-view-toggle:hover,
.bc-view-toggle:focus,
.bc-view-toggle:focus-visible,
.bc-view-toggle:active{
  border:0!important;
  background:#111!important;
  color:#fff!important;
  box-shadow:none!important;
  outline:none!important;
}

/* Minifig elenco = stessa riga compatta della collezione. */
#ownedGrid.minifig-grid.bc-list-view>.minifig-card{
  display:grid!important;
  grid-template-columns:minmax(88px,120px) minmax(0,1fr) auto!important;
  grid-template-rows:auto!important;
  grid-auto-rows:auto!important;
  gap:10px 14px!important;
  align-items:center!important;
  min-width:0!important;
  min-height:50px!important;
  height:auto!important;
  padding:10px 14px!important;
  border:1px solid #ececec!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-display-code{
  grid-column:1!important;
  grid-row:1!important;
  margin:0!important;
  min-height:0!important;
  font-size:12px!important;
  line-height:1.25!important;
  color:#667085!important;
  font-weight:400!important;
}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>h3{
  grid-column:2!important;
  grid-row:1!important;
  margin:0!important;
  min-height:0!important;
  font-size:15px!important;
  line-height:1.25!important;
}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-summary{
  grid-column:3!important;
  grid-row:1!important;
  margin:0!important;
  min-height:0!important;
  padding:0!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:1.25!important;
  color:#667085!important;
  align-self:center!important;
}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-summary span{
  margin:0!important;
  padding:0!important;
}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-copy-entry,
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.owned-set-badge,
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-related,
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>p.set-private-meta,
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-card-actions{
  display:none!important;
}
@media(max-width:700px){
  #ownedGrid.minifig-grid.bc-list-view>.minifig-card{
    grid-template-columns:minmax(72px,96px) minmax(0,1fr)!important;
    gap:4px 10px!important;
    padding:9px 11px!important;
  }
  #ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-summary{
    grid-column:2!important;
    grid-row:2!important;
    white-space:normal!important;
  }
}


/* 1.8.34.5.50 — stato accanto al nome SOLO nella vista elenco della collezione.
   Il riepilogo usa esclusivamente status/quantity già caricati: nessuna nuova query o logica DB. */
.collection-list-status{display:none}
#collectionGrid.bc-list-view>.set-card[data-id]>h3 .collection-list-status{
  display:inline!important;
  font-size:13px!important;
  font-weight:700!important;
  color:#667085!important;
  white-space:normal!important;
}


/* 1.8.34.5.52 — metadata Minifig nella sola vista elenco. */
.minifig-list-status,.minifig-list-meta{display:none}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>h3 .minifig-list-status{
  display:inline!important;
  font-size:13px!important;
  font-weight:700!important;
  color:#667085!important;
  white-space:normal!important;
}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-summary{display:none!important}
#ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-list-meta{
  display:block!important;
  grid-column:3!important;
  grid-row:1!important;
  margin:0!important;
  min-height:0!important;
  padding:0!important;
  white-space:nowrap!important;
  font-size:13px!important;
  line-height:1.25!important;
  color:#667085!important;
  align-self:center!important;
}
@media(max-width:700px){
  #ownedGrid.minifig-grid.bc-list-view>.minifig-card>.minifig-list-meta{
    grid-column:2!important;
    grid-row:2!important;
    white-space:normal!important;
  }
}


/* BrickCollect 1.8.36.1 - X circolare nei campi ricerca */
.bc-clearable-search[type="search"]::-webkit-search-decoration{display:none}
.bc-clearable-search[type="search"]::-webkit-search-cancel-button{
  -webkit-appearance:none;
  width:18px;height:18px;min-width:18px;border-radius:50%;cursor:pointer;
  background:#e7e9ed url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 6l8 8M14 6l-8 8' stroke='%23111' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/11px 11px no-repeat;
}
.bc-clearable-search[type="search"]::-webkit-search-cancel-button:hover{background-color:#d9dde3}

/* BrickCollect 1.8.36.1 - torna all'inizio */
.bc-back-to-top{
  position:fixed;right:18px;bottom:28px;z-index:1150;width:46px;height:46px;padding:0;border:0;border-radius:50%;
  background:var(--accent);color:#111;display:grid;place-items:center;box-shadow:0 10px 28px #0003;cursor:pointer;
  opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.bc-back-to-top.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.bc-back-to-top svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.bc-back-to-top:hover{filter:brightness(1.12)}
@media(max-width:700px){.bc-back-to-top{right:14px;bottom:86px;width:44px;height:44px}}

/* BrickCollect 1.8.36.1 - categoria Top 10 costruttori */
.category-top-builders::after{
  content:"🏆"!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:54%!important;font-size:72px!important;background:linear-gradient(135deg,#fff3b0,#fdce04 55%,#d89f00)!important;
  filter:none!important;opacity:1!important;
}
.top-builders-card{padding:0!important;overflow:hidden}
.top-builders-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;padding:15px 18px;border-bottom:1px solid #eceef1}
.top-builders-row:last-child{border-bottom:0}
.top-builders-row strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-builders-count{font-weight:900;white-space:nowrap}

/* BrickCollect 1.8.36.1 - toggle visibilità categorie Admin */
.admin-home-category-item .admin-sort-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-category-visibility{display:inline-flex!important;align-items:center!important;gap:8px!important;margin:0!important;cursor:pointer}
.admin-category-visibility-text{min-width:58px;text-align:right;font-size:12px;font-weight:850;color:#667085}
@media(max-width:700px){
  .admin-home-category-item{align-items:flex-start!important}
  .admin-home-category-item .admin-sort-actions{width:100%;justify-content:flex-end}
  .category-top-builders::after{font-size:58px!important}
}

/* BrickCollect 1.8.36.4 — Top 10 nello stesso linguaggio fotografico delle altre categorie. */
.category-top-builders::before{
  background:linear-gradient(90deg,#fff 0%,#fff 42%,rgba(255,255,255,.90) 58%,rgba(255,255,255,.16) 100%)!important;
}
.category-top-builders::after{
  content:""!important;
  display:block!important;
  right:0!important;top:0!important;bottom:0!important;
  width:58%!important;
  background-image:url('cat-top-builders.jpg')!important;
  background-size:cover!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  filter:none!important;
  opacity:1!important;
}

/* BrickCollect 1.8.36.4 — ricerca nella mia collezione. */
.collection-filter-card.collection-filter-searchable{
  grid-template-columns:auto minmax(180px,1fr) auto minmax(180px,360px) auto!important;
}
.collection-filter-card.collection-filter-searchable input[type="search"]{
  width:100%;
  min-height:46px;
  padding:12px 14px;
  border:1px solid #d0d0d0;
  border-radius:12px;
  background:#fff;
  font:inherit;
}
@media(max-width:900px){
  .collection-filter-card.collection-filter-searchable{
    grid-template-columns:1fr 1fr!important;
  }
  .collection-filter-card.collection-filter-searchable .collection-count{
    grid-column:1/-1;
  }
}
@media(max-width:640px){
  .collection-filter-card.collection-filter-searchable{
    grid-template-columns:1fr!important;
  }
  .category-top-builders::after{width:61%!important;background-position:center!important}
}


/* 1.8.36.5 — scanner EAN/UPC direttamente nella Home. */
.home-search-row #homeScanBtn{
  white-space:nowrap!important;
  background:var(--accent)!important;
  color:var(--accent-contrast,#111)!important;
}
.home-scan-video{
  display:block;
  width:100%;
  max-width:760px;
  margin-top:2px;
  border-radius:14px;
  background:#000;
}
.home-scan-video[hidden]{display:none!important}
.home-scan-msg{min-height:0;margin:0}
@media(max-width:640px){
  .home-search-row{flex-wrap:wrap!important}
  .home-search-row>input{flex:1 1 100%!important;min-width:0!important}
  .home-search-row>#homeScanBtn,
  .home-search-row>#searchBtn{flex:1 1 calc(50% - 4px)!important}
}


/* BrickCollect 1.8.36.20.12
   Menu mobile flottante ispirato alla bottom navigation di AperiSwipe.
   Struttura e link restano invariati:
   Home · Collezione · + · Community · Profilo
*/
@media(max-width:899px){
  .mobile-bottom-nav{
    left:12px!important;
    right:12px!important;
    bottom:calc(10px + env(safe-area-inset-bottom))!important;
    min-height:68px!important;
    padding:7px 8px!important;
    border:1px solid rgba(17,17,17,.08)!important;
    border-radius:24px!important;
    background:rgba(255,255,255,.96)!important;
    box-shadow:
      0 12px 34px rgba(0,0,0,.15),
      0 2px 8px rgba(0,0,0,.06)!important;
    -webkit-backdrop-filter:blur(18px) saturate(1.15)!important;
    backdrop-filter:blur(18px) saturate(1.15)!important;
    overflow:visible!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 64px minmax(0,1fr) minmax(0,1fr)!important;
    align-items:center!important;
    justify-content:stretch!important;
  }

  .mobile-bottom-nav a{
    position:relative!important;
    min-width:0!important;
    min-height:52px!important;
    display:flex!important;
    flex:none!important;
    width:100%!important;
    min-width:0!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    padding:5px 3px!important;
    margin:0!important;
    border-radius:16px!important;
    color:#4b4b4b!important;
    font-size:10.5px!important;
    font-weight:800!important;
    line-height:1.05!important;
    letter-spacing:-.01em!important;
    -webkit-tap-highlight-color:transparent!important;
    transition:
      background-color .18s ease,
      transform .18s ease,
      color .18s ease!important;
  }

  /* Icone leggere, senza cambiare il markup delle pagine. */
  .mobile-bottom-nav a:not(.nav-plus)::before{
    content:""!important;
    display:block!important;
    width:20px!important;
    height:20px!important;
    flex:0 0 20px!important;
    background:#4b4b4b!important;
    -webkit-mask-position:center!important;
    mask-position:center!important;
    -webkit-mask-repeat:no-repeat!important;
    mask-repeat:no-repeat!important;
    -webkit-mask-size:20px 20px!important;
    mask-size:20px 20px!important;
  }

  .mobile-bottom-nav a[href="index.php"]::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10.8 12 3l9 7.8V21a1 1 0 0 1-1 1h-5.5v-7h-5v7H4a1 1 0 0 1-1-1V10.8Z'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10.8 12 3l9 7.8V21a1 1 0 0 1-1 1h-5.5v-7h-5v7H4a1 1 0 0 1-1-1V10.8Z'/%3E%3C/svg%3E")!important;
  }

  .mobile-bottom-nav a[href="collection.php"]::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm0 11h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 3h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Zm0 11h16a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E")!important;
  }

  .mobile-bottom-nav a[href="community.php"]::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.5 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm7-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM8.5 13C4.9 13 2 15.2 2 18v2h13v-2c0-2.8-2.9-5-6.5-5Zm7.2-.5c-.8 0-1.6.1-2.3.3 2.2 1.2 3.6 3 3.6 5.2v2h5v-1.8c0-3.2-2.8-5.7-6.3-5.7Z'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M8.5 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm7-1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM8.5 13C4.9 13 2 15.2 2 18v2h13v-2c0-2.8-2.9-5-6.5-5Zm7.2-.5c-.8 0-1.6.1-2.3.3 2.2 1.2 3.6 3 3.6 5.2v2h5v-1.8c0-3.2-2.8-5.7-6.3-5.7Z'/%3E%3C/svg%3E")!important;
  }

  .mobile-bottom-nav a[href="profile.php"]::before{
    -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.7-9 6v2h18v-2c0-3.3-4-6-9-6Z'/%3E%3C/svg%3E")!important;
    mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10Zm0 2c-5 0-9 2.7-9 6v2h18v-2c0-3.3-4-6-9-6Z'/%3E%3C/svg%3E")!important;
  }

  .mobile-bottom-nav a.is-active{
    background:rgba(0,0,0,.055)!important;
    color:#111!important;
  }
  .mobile-bottom-nav a.is-active:not(.nav-plus)::before{
    background:var(--accent)!important;
  }
  .mobile-bottom-nav a.is-active:not(.nav-plus)::after{
    content:""!important;
    position:absolute!important;
    bottom:2px!important;
    width:18px!important;
    height:3px!important;
    border-radius:99px!important;
    background:var(--accent)!important;
  }

  .mobile-bottom-nav .nav-plus{
    position:absolute!important;
    left:50%!important;
    top:50%!important;
    right:auto!important;
    bottom:auto!important;
    flex:none!important;
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    min-height:54px!important;
    margin:0!important;
    padding:0!important;
    align-self:auto!important;
    justify-self:auto!important;
    transform:translate(-50%,-50%)!important;
    border:4px solid #fff!important;
    border-radius:50%!important;
    background:var(--accent)!important;
    color:var(--accent-contrast,#111)!important;
    box-shadow:
      0 7px 18px rgba(0,0,0,.18),
      0 1px 4px rgba(0,0,0,.08)!important;
    font-size:30px!important;
    font-weight:600!important;
    line-height:1!important;
    z-index:3!important;
  }

  .mobile-bottom-nav .nav-plus:active{
    transform:translate(-50%,-50%) scale(.95)!important;
  }

  .mobile-bottom-nav a:not(.nav-plus):active{
    transform:scale(.96)!important;
    background:rgba(0,0,0,.06)!important;
  }

  body{
    padding-bottom:calc(102px + env(safe-area-inset-bottom))!important;
  }
}

@media(max-width:390px){
  .mobile-bottom-nav{
    left:8px!important;
    right:8px!important;
    border-radius:22px!important;
  }
  .mobile-bottom-nav a{
    font-size:9.8px!important;
  }
  .mobile-bottom-nav .nav-plus{
    margin:0!important;
    left:50%!important;
    top:50%!important;
    transform:translate(-50%,-50%)!important;
  }
}

@media (prefers-reduced-motion: reduce){
  .mobile-bottom-nav a{
    transition:none!important;
  }
}

@media(max-width:899px){
  .mobile-bottom-nav > a:nth-child(1){grid-column:1!important}
  .mobile-bottom-nav > a:nth-child(2){grid-column:2!important}
  .mobile-bottom-nav > .nav-plus{grid-column:3!important}
  .mobile-bottom-nav > a:nth-child(4){grid-column:4!important}
  .mobile-bottom-nav > a:nth-child(5){grid-column:5!important}
}

@media(max-width:899px){
  .mobile-bottom-nav{
    position:fixed!important;
  }
  .mobile-bottom-nav > .nav-plus{
    grid-column:auto!important;
  }
}
