/* MeshCave 5.0.1 — small, isolated UX polish */
html{scroll-behavior:smooth}
body.mc-loading .product-card,body.mc-loading .metric,body.mc-loading .panel{position:relative;overflow:hidden}
body.mc-loading .product-card::after,body.mc-loading .metric::after,body.mc-loading .panel::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,rgba(245,243,250,.1) 20%,rgba(245,243,250,.72) 40%,rgba(245,243,250,.1) 60%);transform:translateX(-100%);animation:mcShimmer 1.1s infinite;pointer-events:none}
@keyframes mcShimmer{to{transform:translateX(100%)}}
.product-card,.panel,.metric,.collection-card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.product-card:hover{transform:translateY(-2px)}
.empty-state{border:1px dashed #ddd7eb!important;background:linear-gradient(180deg,#fff,#faf9fd)!important;border-radius:18px!important;padding:42px 24px!important}
.empty-state::before{content:"◇";display:block;font-size:30px;color:#8d7de8;margin-bottom:10px}
.mc-dropzone{outline:2px dashed #8d7de8!important;outline-offset:4px;background:#f7f4ff!important}
.mc-file-preview{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.mc-file-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:10px;background:#f4f1fb;color:#514a5e;font-size:12px}.mc-file-chip b{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mc-file-chip small{color:#8a8294}
.mc-save-hint{position:fixed;right:18px;bottom:18px;z-index:80;padding:10px 14px;border-radius:12px;background:#17131f;color:#fff;font-size:12px;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(8px);pointer-events:none;transition:.18s}.mc-save-hint.show{opacity:1;transform:none}
.pd-sticky-buy{position:fixed;left:50%;bottom:16px;z-index:70;display:flex;align-items:center;gap:14px;min-width:320px;max-width:min(92vw,620px);padding:10px 12px 10px 16px;border:1px solid rgba(89,70,153,.18);border-radius:16px;background:rgba(255,255,255,.96);box-shadow:0 16px 45px rgba(42,30,78,.18);backdrop-filter:blur(12px);transform:translate(-50%,120px);opacity:0;pointer-events:none;transition:.2s ease}.pd-sticky-buy.visible{transform:translate(-50%,0);opacity:1;pointer-events:auto}.pd-sticky-buy .sticky-price{font-size:18px;font-weight:800;margin-right:auto}.pd-sticky-buy .btn-primary,.pd-sticky-buy .btn-cart-added{white-space:nowrap}.pd-sticky-buy .btn-cart-remove{width:40px;height:40px}
.health-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.health-card{display:block;padding:18px;border:1px solid #ebe8f3;border-radius:16px;background:#fff;color:inherit;text-decoration:none}.health-card strong{display:block;font-size:28px;margin-bottom:4px}.health-card span{color:#77717f}.health-card.ok strong{color:#138a67}.health-card.warn strong{color:#a66a00}.health-card.bad strong{color:#bf425a}.health-note{margin-top:18px;padding:14px 16px;border-radius:14px;background:#f7f5fb;color:#6f687b}
@media(max-width:760px){.pd-sticky-buy{left:12px;right:12px;bottom:10px;min-width:0;max-width:none;transform:translateY(120px)}.pd-sticky-buy.visible{transform:none}.health-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.health-grid{grid-template-columns:1fr}.pd-sticky-buy{gap:8px}.pd-sticky-buy .sticky-price{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* Admin Cockpit 5.0.2 */
.cockpit-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.cockpit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cockpit-card{background:#fff;border:1px solid #ebe8f3;border-radius:18px;padding:20px;min-height:220px}.cockpit-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.cockpit-card h2{font-size:22px;margin:3px 0 0}.cockpit-kicker{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#8a8393}.cockpit-dot,.system-dot{display:inline-block;border-radius:50%}.cockpit-dot{width:11px;height:11px;margin-top:5px}.cockpit-dot.ok,.system-dot.ok{background:#21a67a}.cockpit-dot.warn{background:#d59a2d}.cockpit-dot.bad,.system-dot.bad{background:#d85868}.cockpit-progress{height:8px;background:#f0edf5;border-radius:99px;overflow:hidden;margin-bottom:16px}.cockpit-progress span{display:block;height:100%;background:linear-gradient(90deg,#7c5cff,#21a67a);border-radius:inherit}.cockpit-list{display:flex;flex-direction:column;gap:8px}.cockpit-issue{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border-radius:12px;text-decoration:none;color:inherit;background:#faf9fc;border:1px solid #efecf4}.cockpit-issue:hover{border-color:#d8d1e5}.cockpit-issue.bad b{color:#bf425a}.cockpit-issue.warn b{color:#a66a00}.cockpit-more{display:inline-block;margin-top:12px;font-weight:600}.cockpit-empty{padding:14px;border-radius:12px;background:#f7f5fb;color:#736c7c}.cockpit-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cockpit-metrics div{padding:14px;border-radius:14px;background:#f8f7fb}.cockpit-metrics b{display:block;font-size:20px}.cockpit-metrics span{font-size:13px;color:#77717f}.cockpit-system-list{display:flex;flex-direction:column;gap:12px}.cockpit-system-list>div{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #f0edf4}.cockpit-system-list>div:last-child{border-bottom:0}.cockpit-system-list span{display:flex;align-items:center;gap:9px;font-weight:600}.cockpit-system-list small{color:#77717f}.system-dot{width:8px;height:8px}.cockpit-health{min-height:300px}@media(max-width:900px){.cockpit-grid{grid-template-columns:1fr}}@media(max-width:560px){.cockpit-head{align-items:flex-start;flex-direction:column}.cockpit-metrics{grid-template-columns:1fr 1fr}.cockpit-card{padding:16px}}

html[data-theme="dark"] .pd-sticky-buy,body.dark-theme .pd-sticky-buy{background:rgba(15,24,42,.96);border-color:#314463;color:#f3f4f6;box-shadow:0 16px 45px rgba(0,0,0,.36)}
html[data-theme="dark"] .pd-sticky-buy .sticky-price,body.dark-theme .pd-sticky-buy .sticky-price{color:#f8fafc}
html[data-theme="dark"] .pd-sticky-buy .btn-cart-added,body.dark-theme .pd-sticky-buy .btn-cart-added{background:#177a50;color:#fff}
