.pwa-system-footer{padding:12px 16px;text-align:center;font:inherit}
.pwa-system-link{border:0;background:transparent;color:inherit;text-decoration:underline;cursor:pointer;font:inherit}
.pwa-system-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;padding:12px 18px;border:1px solid #161b22;border-radius:10px;background:#161b22;color:#fff;text-decoration:none;font:600 14px/1.4 system-ui,sans-serif;cursor:pointer;min-height:44px;text-align:center}
.pwa-system-button:hover,.pwa-system-button:focus{color:#fff;background:#303843;text-decoration:none}
.pwa-system-secondary{background:#fff;color:#20262e;border-color:#d8dde4}
.pwa-system-secondary:hover,.pwa-system-secondary:focus{background:#f0f3f7;color:#20262e}
.pwa-system-button[aria-pressed=true]{background:#161b22;color:#fff}
.pwa-system-button:disabled{opacity:.55;cursor:wait}
.pwa-system-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.pwa-system-banner{position:fixed;bottom:calc(20px + env(safe-area-inset-bottom));left:20px;right:20px;z-index:1035;max-width:520px;box-sizing:border-box;padding:20px 40px 20px 20px;background:#fff;color:#20262e;border:1px solid #dfe4ea;border-radius:16px;box-shadow:0 10px 40px #18233226;font:14px/1.5 system-ui,sans-serif}
.pwa-system-banner[hidden],.pwa-system-guide[hidden],[data-pwa-push][hidden],[data-pwa-save][hidden],[data-pwa-install][hidden],[data-pwa-offline-link][hidden],[data-pwa-main][hidden]{display:none!important}
.pwa-system-banner p{margin:8px 0 14px}
.pwa-system-close{position:absolute;top:12px;right:12px;width:36px;height:36px;border:0;border-radius:8px;background:#f0f2f5;color:#303843;font:26px/1 system-ui;cursor:pointer}
.pwa-system-dialog{position:fixed;inset:0;box-sizing:border-box;width:calc(100% - 32px);max-width:600px;max-height:calc(100dvh - 48px);padding:0;border:1px solid #dce1e8;border-radius:18px;background:#fff;color:#20262e;font:15px/1.6 system-ui,sans-serif;overscroll-behavior:contain}
.pwa-system-dialog::backdrop{background:#11192788}
.pwa-system-dialog header{position:relative;padding:20px 60px 20px 24px;background:#f3f5f8;border-bottom:1px solid #e1e5eb}
.pwa-system-dialog header h2{margin:0;font:700 20px/1.4 system-ui,sans-serif}
.pwa-system-dialog-body{padding:24px;overflow-wrap:anywhere}
.pwa-system-dialog-body p{margin:0 0 18px}
.pwa-system-dialog h3{font-size:17px;margin:24px 0 14px}
.pwa-system-guide ol{list-style:none;counter-reset:steps;padding:0;margin:0}
.pwa-system-guide li{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e7ebf0}
.pwa-system-guide-icon{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;background:#eef3ff;color:#315fb0;border-radius:12px;font-size:26px}
.pwa-system-muted{color:#687587;font-size:13px}
.pwa-system-product-action{margin:12px 0}
#pwa-system-notice{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:99999;max-width:calc(100% - 32px);box-sizing:border-box;padding:14px 20px;border-radius:12px;background:#17271f;color:#fff;box-shadow:0 8px 28px #0003;font:14px/1.5 system-ui,sans-serif}
#pwa-system-notice[data-type=danger]{background:#6e2929}
#pwa-system-notice[data-type=warning]{background:#5d4c20}
.pwa-system-offline-page{margin:0;background:#f3f5f8;color:#20262e;font:16px/1.6 system-ui,sans-serif}
.pwa-system-offline-page *{box-sizing:border-box}
.pwa-system-offline-header{display:flex;justify-content:space-between;gap:20px;padding:20px max(20px,calc((100% - 1200px)/2));background:#fff;border-bottom:1px solid #e2e7ed}
.pwa-system-offline-header a{font-weight:700;color:inherit;text-decoration:none}
#pwa-offline-status{color:#8a4b23;font-size:14px}
#pwa-offline-status[data-online=true]{color:#32734c}
.pwa-system-offline-main{max-width:1240px;margin:0 auto;padding:24px 20px}
.pwa-system-offline-main h1{font-size:28px;line-height:1.3}
.pwa-system-search{width:100%;padding:14px 16px;border:1px solid #ccd4de;border-radius:10px;background:#fff;font:inherit;margin:8px 0 20px}
.pwa-system-filters{margin-bottom:24px}
.pwa-system-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.pwa-system-card{display:flex;align-items:flex-start;gap:20px;padding:20px;background:#fff;border:1px solid #e0e5ec;border-radius:16px;min-width:0}
.pwa-system-card>img{width:120px;max-width:30%;height:auto;object-fit:contain;border-radius:8px}
.pwa-system-card-content{min-width:0;flex:1}
.pwa-system-card h2{font-size:17px;line-height:1.4;margin:0 0 8px;overflow-wrap:anywhere}
.pwa-system-price{font-size:21px}
.pwa-system-card p{margin:8px 0}
.pwa-system-card .pwa-system-button{padding:9px 12px;font-size:12px}
.pwa-system-description{white-space:pre-line}
.pwa-system-dialog dt{font-weight:600;margin-top:12px}
.pwa-system-dialog dd{margin-left:0;color:#687587}
.pwa-system-contact{margin-top:32px;padding:24px;background:#fff;border-radius:14px}
.pwa-system-empty{grid-column:1/-1;padding:30px;background:#fff;border-radius:14px}
@media(max-width:767px){.pwa-system-grid{grid-template-columns:1fr}.pwa-system-banner{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));padding:16px 40px 16px 16px}.pwa-system-dialog-body{padding:20px}.pwa-system-card{gap:14px;padding:16px}.pwa-system-offline-header{padding:16px}.pwa-system-offline-header a{max-width:60%;overflow-wrap:anywhere}.pwa-system-offline-main{padding:20px 14px}.pwa-system-dialog{max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){.pwa-system-dialog,.pwa-system-banner{scroll-behavior:auto}}
