/* Kiss PWA install card v2 + mobile bar (self-contained) */
.pwa2{padding:20px 16px;box-sizing:border-box}
.pwa2 *{box-sizing:border-box}
.pwa2-card{max-width:1080px;margin:0 auto;display:flex;align-items:center;gap:22px;padding:22px 26px;border-radius:24px;background:linear-gradient(120deg,#fff 0%,#f6f1ff 55%,#ffeef6 100%);border:1px solid #e7defc;box-shadow:0 14px 40px rgba(109,56,240,.12);position:relative;overflow:hidden;font-family:inherit}
.pwa2-card:before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:linear-gradient(180deg,#8b3dff,#f23d8c)}
[dir=rtl] .pwa2-card:before{inset:0 0 0 auto}
.pwa2-icon{flex:0 0 72px;width:72px;height:72px;border-radius:18px;box-shadow:0 8px 20px rgba(139,61,255,.3)}
.pwa2-copy{flex:1;min-width:0}
.pwa2-copy h2{margin:0 0 4px;font-size:1.3rem;line-height:1.25;color:#14112b;letter-spacing:-.01em}
.pwa2-copy p{margin:0 0 8px;color:#55516d;font-size:.95rem;line-height:1.45}
.pwa2-steps{display:flex;flex-wrap:wrap;gap:6px 14px;margin:0;padding:0;list-style:none;font-size:.82rem;color:#3d3957}
.pwa2-steps li{background:rgba(255,255,255,.75);border:1px solid #ece6fb;border-radius:999px;padding:4px 10px}
.pwa2-btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:14px 22px;border-radius:999px;background:linear-gradient(135deg,#8b3dff,#e0368f);color:#fff!important;font-weight:700;text-decoration:none;white-space:nowrap;box-shadow:0 10px 24px rgba(224,54,143,.3)}
.pwa2-btn:hover{filter:brightness(1.06)}
.pwa2-mini{max-width:1080px;margin:8px auto 18px;padding:0 16px;text-align:center;font-size:.9rem;color:#55516d}
.pwa2-mini a{color:#7a35f0;font-weight:600}
@media (max-width:720px){.pwa2-card{flex-wrap:wrap;padding:18px;gap:14px}.pwa2-icon{width:56px;height:56px;flex-basis:56px}.pwa2-copy{flex:1 1 calc(100% - 72px)}.pwa2-btn{width:100%;justify-content:center}.pwa2-steps{flex-direction:column;gap:6px}.pwa2-steps li{border-radius:12px}}
/* floating bar (mobile only) */
.pwa2-bar{position:fixed;left:10px;right:10px;bottom:10px;z-index:9990;display:none;align-items:center;gap:10px;padding:10px 10px 10px 12px;border-radius:18px;background:#fff;border:1px solid #e7defc;box-shadow:0 12px 34px rgba(20,17,43,.22);transform:translateY(140%);transition:transform .35s ease;font-family:inherit}
.pwa2-bar.is-on{transform:translateY(0)}
.pwa2-bar img{width:40px;height:40px;border-radius:11px;flex:0 0 40px}
.pwa2-bar p{flex:1;margin:0;font-size:.82rem;line-height:1.3;color:#14112b}
.pwa2-bar .pwa2-barbtn{border:0;padding:9px 14px;border-radius:999px;background:linear-gradient(135deg,#8b3dff,#e0368f);color:#fff;font-weight:700;font-size:.85rem;font-family:inherit}
.pwa2-x{border:0;background:transparent;width:30px;height:30px;font-size:20px;line-height:1;color:#77738f;flex:0 0 30px}
@media (max-width:768px){.pwa2-bar{display:flex}}
.pwa2-sheet{position:fixed;inset:0;z-index:9995;display:none;background:rgba(20,17,43,.45)}
.pwa2-sheet.is-open{display:block}
.pwa2-sheet-panel{position:absolute;left:0;right:0;bottom:0;background:#fff;border-radius:22px 22px 0 0;padding:20px 20px 26px;box-shadow:0 -10px 30px rgba(0,0,0,.15)}
.pwa2-sheet-panel h2{margin:0 36px 12px 0;font-size:1.1rem;color:#14112b}
[dir=rtl] .pwa2-sheet-panel h2{margin:0 0 12px 36px}
.pwa2-sheet-panel ol{margin:0 0 16px;padding-inline-start:20px;color:#3d3957;line-height:1.55;font-size:.95rem}
.pwa2-sheet-panel .pwa2-btn{width:100%;justify-content:center}
.pwa2-sheet-panel .pwa2-x{position:absolute;top:14px;right:12px}
[dir=rtl] .pwa2-sheet-panel .pwa2-x{right:auto;left:12px}
/* blog end-of-article card */
.pwa2--post{padding:8px 0 26px}
.pwa2--post .pwa2-card{flex-wrap:wrap;padding:20px 22px}
.pwa2--post .pwa2-copy{flex:1 1 calc(100% - 100px)}
.pwa2-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;width:100%;padding-inline-start:94px}
.pwa2-app{margin:0;font-size:.85rem;color:#55516d}
.pwa2-app a{color:#7a35f0;font-weight:600;text-decoration:underline}
@media (max-width:720px){.pwa2-actions{padding-inline-start:0}.pwa2-app{width:100%;text-align:center}}
/* desktop side guide */
.pwa2-side{position:fixed;right:20px;bottom:24px;z-index:9980;width:260px;box-sizing:border-box;padding:16px 16px 18px;border-radius:18px;background:#fff;border:1px solid #e7defc;box-shadow:0 14px 36px rgba(20,17,43,.16);font-family:inherit;display:none;opacity:0;transform:translateY(16px);transition:opacity .3s,transform .3s;pointer-events:none}
[dir=rtl].pwa2-side{right:auto;left:20px}
.pwa2-side.is-on{opacity:1;transform:none;pointer-events:auto}
.pwa2-side img{width:48px;height:48px;border-radius:13px;display:block;margin-bottom:8px}
.pwa2-side-t{margin:0 0 4px!important;font-weight:700;color:#14112b;font-size:.98rem}
.pwa2-side p{margin:0 0 8px;font-size:.84rem;line-height:1.4;color:#55516d}
.pwa2-side ol{margin:0 0 12px;padding-inline-start:18px;font-size:.78rem;line-height:1.45;color:#3d3957}
.pwa2-side .pwa2-btn{width:100%;justify-content:center;padding:11px 14px;font-size:.9rem}
.pwa2-side .pwa2-x{position:absolute;top:8px;right:8px}
[dir=rtl].pwa2-side .pwa2-x{right:auto;left:8px}
@media (min-width:769px){.pwa2-side{display:block}}
/* docked under the sticky TOC when the right gutter is too narrow */
.pwa2-side.is-docked{position:relative;right:auto;left:auto;bottom:auto;width:auto;margin-top:22px;padding:14px;box-shadow:0 8px 22px rgba(20,17,43,.08)}
.pwa2-side.is-docked:not(.is-on){display:none}
.pwa2-side.is-docked ol{display:none}
.pwa2-side.is-docked img{width:40px;height:40px}
/* v4: persistent mobile Start bar (primary) + inline Start blocks */
.pwa2-bar.kst-bar{gap:10px;padding:8px 8px 8px 10px;bottom:calc(8px + env(safe-area-inset-bottom,0px));transform:none}
.kst-bar .kst-bar-c{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.kst-bar .kst-bar-t{margin:0;font-weight:700;font-size:.84rem;line-height:1.25;color:#14112b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kst-bar .kst-bar-i{display:flex;align-items:center;gap:2px;min-width:0}
.kst-bar .pwa2-barbtn.kst-inst{background:none;padding:0;border:0;color:#7a35f0;font-weight:600;font-size:.76rem;text-decoration:underline;text-underline-offset:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.kst-bar .kst-bar-i .pwa2-x{width:22px;height:22px;flex:0 0 22px;font-size:15px}
.kst-bar.kst-noinst .kst-bar-i{display:none}
.kst-bar img{width:38px;height:38px;flex:0 0 38px}
.kst-go{flex:0 0 auto;display:inline-flex;align-items:center;padding:11px 16px;border-radius:999px;background:linear-gradient(135deg,#8b3dff,#e0368f);color:#fff!important;font-weight:700;font-size:.9rem;text-decoration:none;white-space:nowrap;box-shadow:0 8px 18px rgba(224,54,143,.28)}
@media (max-width:768px){body.kst-pad{padding-bottom:calc(74px + env(safe-area-inset-bottom,0px))}}
.kst{max-width:760px;margin:30px auto;padding:18px 20px;display:flex;align-items:center;gap:18px;border-radius:20px;background:linear-gradient(120deg,#fbf8ff,#fff3f9);border:1px solid #ece4fc;box-sizing:border-box;font-family:inherit}
.kst-in{flex:1;min-width:0}
.kst .kst-t{margin:0 0 3px!important;font-weight:700;font-size:1.04rem;line-height:1.3;color:#14112b}
.kst .kst-d{margin:0!important;font-size:.9rem;line-height:1.45;color:#55516d}
.kst .kst-btn{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;padding:12px 20px;border-radius:999px;background:linear-gradient(135deg,#8b3dff,#e0368f);color:#fff!important;font-weight:700;font-size:.95rem;text-decoration:none!important;white-space:nowrap;box-shadow:0 8px 20px rgba(224,54,143,.24)}
.kst .kst-btn:hover{filter:brightness(1.06)}
.kst--lp{margin:8px auto 8px;width:calc(100% - 32px);max-width:1000px}
@media (max-width:640px){.kst{flex-direction:column;align-items:stretch;gap:12px;padding:16px;margin:24px auto}.kst .kst-btn{justify-content:center}.kst--lp{width:calc(100% - 24px)}}
/* v4 polish: slim bar */
.pwa2-bar.kst-bar{left:10px;right:10px;min-height:56px;padding:6px 6px 6px 8px;gap:9px;border-radius:18px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.4) blur(14px);backdrop-filter:saturate(1.4) blur(14px);border:1px solid rgba(139,61,255,.16);box-shadow:0 8px 26px rgba(20,17,43,.16)}
.kst-bar img{width:34px;height:34px;flex:0 0 34px;border-radius:10px}
.kst-bar .kst-go{padding:10px 15px;font-size:.88rem;box-shadow:0 6px 14px rgba(224,54,143,.24)}
.kst-bar .kst-bar-t{font-size:.82rem}
.kst-bar .pwa2-barbtn.kst-inst{font-size:.74rem}
