/* Installation is its own accessible dialog; it never overlays another modal. */
dialog.install-guide-dialog{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:430px;height:fit-content;max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - var(--app-safe-bottom));padding:20px;border:1px solid var(--line,#e6eaf2);border-radius:24px;background:var(--surface,#fff);color:var(--ink,#0f1b2d);box-shadow:0 20px 65px #0f1b2d33;overflow:auto;overscroll-behavior:contain}
.install-guide-dialog::backdrop{background:#0f1b2d66;backdrop-filter:none;-webkit-backdrop-filter:none}
.install-guide-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.install-guide-head h2{flex:1;min-width:0;margin:0;font-size:21px;line-height:1.2;letter-spacing:-.4px;font-weight:800}
.install-guide-dialog .install-close{flex:none;display:grid;place-items:center;width:40px;height:40px;padding:9px;border:0;border-radius:50%;background:var(--bg,#f4f6fb);color:var(--muted,#61718a)}
.install-guide-dialog svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.install-guide-body{text-align:center}
.install-guide-body h3{margin:12px 0 8px;font-size:21px;line-height:1.25;font-weight:750;outline:none;overflow-wrap:anywhere}
.install-guide-body p{margin:0 0 10px;font-size:15px;line-height:1.45;color:var(--muted,#61718a);overflow-wrap:anywhere}
.install-guide-body .install-step-count{font-size:12px;margin:8px 0;color:var(--accent,#2563eb)}
.install-progress{display:flex;gap:5px;margin-bottom:4px}
.install-progress i{height:4px;flex:1;background:var(--line,#e6eaf2);border-radius:3px}
.install-progress i.active{background:var(--accent,#2563eb)}
.install-guide-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.install-guide-dialog .install-guide-actions button{flex:1 1 100px;min-width:0;min-height:46px;border-radius:14px;font-size:15px;line-height:1.3;padding:11px 12px;justify-content:center;white-space:normal}
.install-guide-dialog button:focus-visible{outline:3px solid var(--accent,#2563eb);outline-offset:3px}
.install-guide-dialog .install-copy{margin:2px 0 6px;min-height:44px;border:0;background:transparent;color:var(--accent,#2563eb);font-size:14px;padding:8px}
.install-guide-body .install-feedback{min-height:0;font-size:13px;margin:8px 0 0}
.install-feedback:empty{display:none}
.install-demo{width:190px;height:166px;border:1px solid var(--line,#e6eaf2);border-radius:20px;overflow:hidden;margin:12px auto;background:var(--bg,#f4f6fb);color:var(--ink,#0f1b2d);font-size:12px;display:flex;flex-direction:column;justify-content:center}
.install-demo img{display:block;object-fit:contain;border-radius:13px}
.install-demo-page{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px}
.install-demo-page i{display:block;width:110px;height:5px;border-radius:3px;background:var(--line,#e6eaf2)}
.install-demo-page i:last-child{width:80px}
.install-demo-browserbar{display:flex;align-items:center;justify-content:space-around;min-height:38px;border-top:1px solid var(--line,#e6eaf2);background:var(--surface,#fff)}
.install-demo-highlight{color:var(--accent,#2563eb);box-shadow:0 0 0 2px var(--accent,#2563eb);border-radius:9px;padding:5px;display:flex;align-items:center;justify-content:center;gap:7px;background:var(--surface,#fff)}
.install-demo-sheet{display:flex;flex-direction:column;align-items:center;gap:12px;padding:14px 10px;font-size:11px}
.install-demo-sheet>i{width:32px;height:4px;background:var(--line,#e6eaf2);border-radius:3px}
.install-demo-sheet .install-demo-highlight{max-width:100%;line-height:1.3;font-size:11px}
.install-demo-sheet>img{width:42px;height:42px}
.install-demo-webapp{display:flex;align-items:center;text-align:left;font-size:9px;gap:6px}
.install-demo-webapp i{flex:none;width:25px;height:15px;background:#16895b;border-radius:10px;position:relative}
.install-demo-webapp i:after{content:"";position:absolute;width:11px;height:11px;top:2px;right:2px;border-radius:50%;background:white}
.install-demo-address{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 9px 0;padding:5px 10px;border-radius:15px;background:var(--surface,#fff)}
.install-demo-address .install-demo-highlight{padding:2px}
.install-demo-address svg{width:20px;height:20px}
.install-demo-homescreen{display:grid;grid-template-columns:repeat(3,40px);align-content:center;justify-content:center;gap:14px;height:100%}
.install-demo-homescreen>span{width:40px;height:40px;background:var(--line,#e6eaf2);border-radius:11px}
.install-demo-homescreen .install-demo-app{position:relative;background:transparent}
.install-demo-app img{width:40px;height:40px;box-shadow:0 0 0 3px var(--accent,#2563eb);border-radius:11px}
.install-demo-app b{position:absolute;top:48px;left:-15px;width:70px;font-size:9px;white-space:nowrap}
.large-text .install-guide-body p,.large-text .install-guide-actions button{font-size:18px}
.large-text .install-guide-head h2,.large-text .install-guide-body h3{font-size:24px}
@media(max-height:650px){.install-demo{height:130px;margin-block:8px}.install-guide-dialog{padding:16px}.install-guide-head{margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){.install-guide-dialog,.install-guide-dialog *{animation:none;scroll-behavior:auto}}
