:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#261b30;background:#faf7ff;--brand:#390774;--muted:#62546c;--line:#e3d8ed;--surface:#fff}
*{box-sizing:border-box}
body{margin:0;min-width:0}
[hidden]{display:none!important}
a{color:var(--brand);text-underline-offset:3px}
button,select,input{font:inherit;color:inherit}
button{cursor:pointer}
button,input,select,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:2px solid #59249a;outline-offset:3px}
.top{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));background:var(--brand);color:#fff}
.top > div{display:flex;align-items:center;gap:10px}.top img{border-radius:10px;object-fit:contain}.top a{color:#fff;font-size:14px}
main,footer{width:min(1050px,100%);margin:auto;padding-inline:16px}main{padding-top:20px}footer{display:flex;flex-wrap:wrap;gap:16px;padding-block:22px calc(83px + env(safe-area-inset-bottom));font-size:14px}
h1{font-size:clamp(28px,6vw,47px);letter-spacing:-.045em;margin:0 0 6px}p{color:var(--muted);line-height:1.5}
.heading{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:14px}.heading p{margin:0}
label{display:block;font-size:14px;font-weight:650;margin-bottom:6px}
input,select{width:100%;min-height:46px;padding:8px 12px;border:1px solid #bda9ce;border-radius:10px;background:#fff;font-size:16px}
#catalog-status{min-height:1.5em;font-size:13px}
.productGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr));gap:12px}
.productCard{width:100%;display:grid;align-content:start;gap:8px;text-align:left;border-radius:16px;padding:12px;border:1px solid var(--line);background:var(--surface)}
.productCard img,.productPhoto{width:100%;object-fit:contain;aspect-ratio:1;border-radius:10px;background:#f6f1fa}.productCard img{max-height:190px}
.productCard strong,.dialogBar h2{overflow-wrap:anywhere}.productCard small{color:var(--muted);font-size:14px}
.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;min-height:44px;border-radius:10px;font-weight:650;text-decoration:none}
.primary{border:1px solid var(--brand);background:var(--brand);color:#fff}.secondary{border:1px solid #bda9ce;background:#fff;color:var(--brand)}
#product{width:min(500px,calc(100% - 24px));max-height:85dvh;border:1px solid var(--line);border-radius:19px;padding:16px;color:#261b30;background:#fff}
#product::backdrop{background:#1d10299c}.dialogBar,.install>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.dialogBar h2,.install h2{margin:0;font-size:21px}.dialogBar button,.install>div button{border:0;background:transparent;font-size:28px;min-width:44px;min-height:44px;flex:none}
#product-detail{display:grid;gap:10px}.productPhoto{max-height:230px}.price{font-size:16px;font-weight:750;color:#29173d;margin:0}.affiliate{font-size:13px;margin:0}
.install{padding:12px 14px;margin-bottom:22px;background:#f1e5fa;border:1px solid #d8c5e9;border-radius:14px}.install ol{padding-left:22px;line-height:1.55}.install li+li{margin-top:4px}
.dock{position:fixed;inset:auto 0 0;display:grid;grid-template-columns:repeat(3,1fr);padding:6px max(10px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));border-top:1px solid var(--line);background:#fff;gap:5px}
.dock button{min-height:46px;border:0;border-radius:10px;background:#fff;font-weight:700}.dock button[aria-pressed=true]{background:#ece0fa;color:var(--brand)}
.timer{width:min(470px,100%);margin:16px auto;padding:24px;text-align:center;border:1px solid var(--line);background:#fff;border-radius:22px}.timer output{display:block;font-size:clamp(54px,15vw,88px);line-height:1;font-weight:750;font-variant-numeric:tabular-nums;color:var(--brand)}.timer progress{display:block;width:100%;margin:21px 0;accent-color:var(--brand)}.timer button+button{margin-left:8px}
@media(max-width:550px){.productGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.productCard{font-size:14px}.heading{align-items:start}}
