/* Pixtov v12 — home hero + tidy cards. MIT, (c) 2026 Pixtov by Lieby. */
#home .home-body{display:flex;flex-direction:column}
#home .home-body>*{order:20;flex-shrink:0}
#home .home-body>#v12Hero{order:1}
#home .home-body>#restoreBox{order:2}
#home .home-body>#v12Tpls{order:3}
#home .home-body>#v12ActHead{order:4}
#home .home-body>.home-actions{order:5}
#home .home-body>#pxt4Home{order:6}
.v12-hero{position:relative;margin:4px 0 18px;padding:34px 24px 26px;border-radius:22px;text-align:center;
 background:linear-gradient(135deg,#efeaff 0%,#f6f1ff 45%,#e9f3ff 100%);border:1px solid #e6e1fb;overflow:hidden}
.v12-hero:before{content:"";position:absolute;inset:auto -60px -90px auto;width:260px;height:260px;border-radius:50%;background:radial-gradient(closest-side,rgba(138,76,240,.16),rgba(138,76,240,0));pointer-events:none}
.v12-h1{margin:0 0 16px;font-size:34px;line-height:1.15;font-weight:800;letter-spacing:-.4px;color:#1d2033}
.v12-sbox{position:relative;display:flex;align-items:center;max-width:680px;margin:0 auto;background:#fff;border:1px solid #dcd8f3;border-radius:28px;box-shadow:0 6px 22px rgba(70,50,170,.12);padding:5px;gap:4px}
.v12-sic{display:flex;align-items:center;padding:0 6px 0 12px;color:#7b7f99}
[dir=rtl] .v12-sic{padding:0 12px 0 6px}
.v12-sic svg{width:22px;height:22px}
#home input#v12Q{flex:1;min-width:0;height:44px;border:0!important;outline:0;background:transparent!important;font-size:16px;color:#1d2033;padding:0 4px;box-shadow:none!important;-webkit-appearance:none;appearance:none}
#v12Q::-webkit-search-cancel-button{display:none}
.v12-sbtn{flex:none;height:44px;padding:0 22px;border:0;border-radius:22px;background:linear-gradient(135deg,#5b4cf0,#8a4cf0);color:#fff;font-weight:700;font-size:15px;cursor:pointer}
.v12-sbtn:hover{filter:brightness(1.08)}
.v12-trust{display:flex;justify-content:center;flex-wrap:wrap;gap:6px 16px;margin:12px 0 0;font-size:13px;color:#4a4e68;font-weight:600}
.v12-trust span{display:inline-flex;align-items:center;gap:4px}
.v12-trust svg{width:15px;height:15px;color:#16a34a;stroke:#16a34a}
.v12-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:16px auto 0;max-width:900px}
.v12-chip{height:36px;padding:0 15px;border-radius:18px;border:1px solid #dcd8f3;background:#fff;color:#2d2f4a;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap}
.v12-chip:hover{border-color:#8a4cf0;color:#5b4cf0}
.v12-tpls{margin:0 0 14px}
.v12-row-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px}
.v12-row-head h2,#home h3.v12-sec{margin:0;font-size:17px;font-weight:700;color:inherit}
#home h3.v12-sec{margin:6px 2px 10px}
.v12-seeall{display:inline-flex;align-items:center;gap:2px;border:0;background:none;color:#5b4cf0;font-weight:700;font-size:14px;cursor:pointer;padding:6px 4px}
.v12-seeall svg{width:16px;height:16px}
.v12-row{display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;padding:2px 2px 10px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin;min-height:180px}
.v12-tile{flex:none;height:168px;padding:0;border:1px solid #e3e5ef;border-radius:12px;overflow:hidden;background:#f1f2f7;cursor:pointer;scroll-snap-align:start;box-shadow:0 2px 8px rgba(20,20,60,.06);transition:transform .15s,box-shadow .15s}
.v12-tile:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(20,20,60,.14)}
.v12-tile img{display:block;width:100%;height:100%;object-fit:cover}
/* one card style for every home button */
#home .home-actions{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:10px;margin:0 0 10px!important;flex-wrap:initial}
#home #pxt4Home{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(178px,1fr));gap:10px;margin:0 0 18px!important}
#home .home-actions>.big-btn,#home #pxt4Home>.pxt4-chip{flex:none!important;margin:0!important;width:auto!important;min-width:0!important;max-width:none!important;height:62px!important;min-height:62px!important;
 display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px;padding:0 12px!important;
 border-radius:14px!important;border:1px solid #e3e5ef!important;background:#fff!important;color:#1d2033!important;box-shadow:0 1px 3px rgba(20,20,60,.05)!important;
 font-size:14.5px!important;font-weight:650!important;text-align:start!important;line-height:1.2!important;grid-column:auto!important;cursor:pointer;overflow:hidden}
#home .home-actions>.big-btn:hover,#home #pxt4Home>.pxt4-chip:hover{border-color:#b9b0f5!important;box-shadow:0 4px 14px rgba(70,50,170,.12)!important}
#home .home-actions>.big-btn>svg,#home .home-actions>.big-btn>i,#home #pxt4Home>.pxt4-chip>svg{flex:none;display:flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important;margin:0!important;padding:8px;box-sizing:border-box;border-radius:10px;background:#f0edff;color:#5b4cf0}
#home .home-actions>.big-btn>i>svg{width:20px!important;height:20px!important;margin:0!important}
#home .home-actions>.big-btn>span,#home #pxt4Home>.pxt4-chip>span{display:flex!important;flex-direction:column;min-width:0;align-items:flex-start;text-align:start}
#home .home-actions>.big-btn span span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#home .home-actions>.big-btn small{display:block!important;margin:2px 0 0!important;font-size:11.5px!important;font-weight:500!important;opacity:.68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
#home .home-actions>.big-btn.primary{background:linear-gradient(135deg,#5b4cf0,#8a4cf0)!important;color:#fff!important;border:0!important}
#home .home-actions>.big-btn.primary>i,#home .home-actions>.big-btn.primary>svg{background:rgba(255,255,255,.2);color:#fff}
#home .home-actions>.big-btn.kits>i,#home .home-actions>.big-btn.kits>svg{background:#fdf3d6;color:#b8860b}
#home .home-actions>.pxc-home>svg{background:#e6f7ef;color:#0f9a5a}
#home .home-actions>.hlp-home>svg,#home .home-actions>.ht-home>svg{background:#e8f1ff;color:#2563eb}
#home #pxt4Home>.pxt4-chip>svg{background:#f3f4f8;color:#4a4e68}
#home #pxt4Home>:not(.pxt4-chip){grid-column:1/-1}
/* dark mode */
body.dark .v12-hero{background:linear-gradient(135deg,#232845,#2a2350 55%,#1e2a44);border-color:#353b55}
body.dark .v12-h1{color:#f2f3fb}
body.dark .v12-sbox{background:#1c2031;border-color:#3a4060;box-shadow:0 6px 22px rgba(0,0,0,.35)}
body.dark #home input#v12Q{color:#eef0f8}
body.dark .v12-trust{color:#c4c8de}
body.dark .v12-chip{background:#262b3e;border-color:#3a4060;color:#e4e6f3}
body.dark .v12-tile{background:#262b3e;border-color:#353b55}
body.dark .v12-seeall{color:#a99bff}
body.dark #home .home-actions>.big-btn:not(.primary),body.dark #home #pxt4Home>.pxt4-chip{background:#262b3e!important;border-color:#353b55!important;color:#eef0f8!important}
body.dark #home .home-actions>.big-btn:not(.primary)>svg,body.dark #home .home-actions>.big-btn:not(.primary)>i,body.dark #home #pxt4Home>.pxt4-chip>svg{background:#323856;color:#b9b0ff}
/* phone */
@media (max-width:640px){
 .v12-hero{padding:22px 14px 18px;border-radius:18px;margin:2px 0 14px}
 .v12-h1{font-size:25px;margin-bottom:12px}
 .v12-sbtn{padding:0 14px;font-size:14px}
 #home input#v12Q{font-size:16px}
 .v12-trust{font-size:12px;gap:4px 10px}
 .v12-chips{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;margin:14px -14px 0;padding:0 14px 2px;scrollbar-width:none}
 .v12-chips::-webkit-scrollbar{display:none}
 .v12-chip{height:34px;font-size:13.5px;padding:0 13px}
 .v12-row{min-height:152px}
 .v12-tile{height:140px}
 #home .home-actions,#home #pxt4Home{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #home .home-actions>.big-btn,#home #pxt4Home>.pxt4-chip{height:56px!important;min-height:56px!important;font-size:13.5px!important;padding:0 10px!important;gap:8px}
 #home .home-actions>.big-btn>svg,#home .home-actions>.big-btn>i,#home #pxt4Home>.pxt4-chip>svg{width:32px!important;height:32px!important;padding:7px}
}

.v12-sbox .pxs-bar{display:none!important}

/* B) template filters */
.tpl.v12-off,.ss-tpl.v12-off{display:none!important}
.v12-fbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:8px 0 10px;padding:8px 10px;border:1px solid #e3e5ef;border-radius:12px;background:#f8f8fc;font-size:13px}
.v12-fl{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:#4a4e68;margin:0}
.v12-fbar select{height:34px;min-width:120px;padding:0 8px;border:1px solid #d6d8e6;border-radius:9px;background:#fff;font-size:14px;color:#1d2033;cursor:pointer}
.v12-fcount{margin-inline-start:auto;color:#6b6f88;font-weight:600;white-space:nowrap}
.v12-fempty{margin:8px 0 14px;padding:18px;border:1px dashed #c9c3f2;border-radius:12px;text-align:center;color:#4a4e68;font-size:14px;background:#faf9ff}
.v12-fall{margin:0 6px;height:34px;padding:0 16px;border:0;border-radius:17px;background:linear-gradient(135deg,#5b4cf0,#8a4cf0);color:#fff;font-weight:700;cursor:pointer}
body.dark .v12-fbar{background:#1f2333;border-color:#353b55}
body.dark .v12-fl{color:#c4c8de}
body.dark .v12-fbar select{background:#262b3e;border-color:#3a4060;color:#eef0f8}
body.dark .v12-fempty{background:#1f2333;border-color:#4a4370;color:#d4d6e8}
@media (max-width:640px){.v12-fbar{gap:6px 8px;padding:6px 8px}.v12-fl span{display:none}.v12-fbar select{min-width:0;width:100%}.v12-fl{flex:1;min-width:0}.v12-fcount{flex-basis:100%;margin:0;font-size:12px}}
