/* Кнопка «Добавь приложение» и гайд по установке */
.appbar{max-width:34rem;margin:0 auto;padding:0 1rem .25rem;width:100%}
.appbar[hidden]{display:none}
.appbtn{display:flex;align-items:center;gap:.85rem;width:100%;text-align:left;font:inherit;color:var(--ink);cursor:pointer;
  background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:.8rem 1rem;min-height:64px;
  transition:transform .25s cubic-bezier(.16,1,.3,1),background .2s}
.appbtn:hover{border-color:var(--ink)}
.appbtn .phone{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--bg);color:var(--accent)}
.appbtn .phone svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.appbtn b{display:block;font:600 .9375rem/1.2 Onest,sans-serif}
.appbtn small{display:block;color:var(--muted);font-size:.875rem;margin-top:.2rem}
.appbtn .chev{margin-left:auto;flex:none;width:22px;height:22px;stroke:var(--muted);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

#guide{width:min(34rem,100vw);max-width:100vw;max-height:100dvh;height:min(46rem,100dvh);margin:auto;padding:0;border:1px solid var(--line);border-radius:24px;background:var(--bg);color:var(--ink);overflow:hidden;text-align:left}
#guide[open]{display:flex;flex-direction:column}
#guide::backdrop{background:rgba(0,0,0,.6)}
.ghead{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem .6rem}
.ghead h2{font:800 1.3rem/1.15 Unbounded,sans-serif;letter-spacing:-.02em;margin:0}
.ghead p{color:var(--muted);margin:.35rem 0 0;font-size:.95rem}
.gx{flex:none;width:44px;height:44px;border-radius:50%;border:1.5px solid var(--line);background:none;color:var(--ink);font-size:1.4rem;line-height:1;cursor:pointer}
.gbody{flex:1;overflow-y:auto;padding:.25rem 1.25rem 1rem;overscroll-behavior:contain}
.gfoot{padding:.75rem 1.25rem calc(.9rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bg)}
.gfoot .gbig{width:100%}
.gtabs{display:grid;grid-template-columns:1fr 1fr;gap:.35rem;background:var(--surface);border:1.5px solid var(--line);border-radius:14px;padding:.3rem;margin:.25rem 0 1rem}
.gtabs button{font:600 1rem/1 Onest,sans-serif;color:var(--ink);background:none;border:0;border-radius:10px;min-height:46px;cursor:pointer}
.gtabs button[aria-selected=true]{background:var(--accent);color:var(--accent-ink)}
.gbig{display:flex;align-items:center;justify-content:center;gap:.6rem;font:600 1.05rem/1 Onest,sans-serif;color:var(--accent-ink);background:var(--accent);border:0;border-radius:14px;min-height:56px;padding:0 1.25rem;cursor:pointer}
.gbig svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.gquick{text-align:center;margin-bottom:1rem}.gquick p{margin:0 0 .6rem;color:var(--muted)}.gquick .gor{margin:.6rem 0 0;font-size:.9rem}.gquick .gbig{width:100%}
.gwarn{background:color-mix(in srgb,#e5a50a 20%,var(--bg));border:1.5px solid #e5a50a;border-radius:14px;padding:.8rem 1rem;margin-bottom:1rem;font-size:.95rem}
.gsteps{list-style:none;margin:0;padding:0;display:grid;gap:1.1rem}
.gs{display:grid;grid-template-columns:2.25rem 1fr;gap:.85rem}
.gnum{display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;background:var(--accent);color:var(--accent-ink);font:800 1rem/1 Unbounded,sans-serif}
.gs.last .gnum{background:#2f9e44;color:#fff}
.gs h3{font:600 1.1rem/1.25 Onest,sans-serif;margin:.2rem 0 .3rem}
.gs p{margin:0 0 .6rem;color:var(--muted);font-size:1rem}
.gtip{color:var(--ink)!important;background:var(--surface);border:1px dashed var(--line);border-radius:12px;padding:.6rem .8rem;font-size:.95rem!important}
.gcopy{display:inline-flex;align-items:center;gap:.5rem;font:500 .95rem/1 Onest,sans-serif;color:var(--accent);background:none;border:1.5px solid var(--accent);border-radius:999px;min-height:44px;padding:0 1rem;margin:0 0 .7rem;cursor:pointer}
.gcopy svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* мини-копии экранов телефона */
.mock{position:relative;background:var(--surface);border:1.5px solid var(--line);border-radius:16px;overflow:hidden;margin-top:.1rem}
.mock svg{width:100%;height:100%;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mock svg.fill{fill:currentColor;stroke:none}
.mic{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;color:var(--ink)}
.mic svg{width:24px;height:24px}
.mic.dim{opacity:.4}
.mlist .mrow{position:relative;display:flex;align-items:center;gap:.8rem;min-height:52px;padding:0 .9rem;font-size:1rem}
.mlist .mrow+.mrow{border-top:1px solid var(--line)}
.mlist .mic{width:28px;height:28px}.mlist .mic svg{width:22px;height:22px}
.mrow.hi{background:color-mix(in srgb,var(--accent) 16%,var(--surface));font-weight:600}
.mbar{display:flex;justify-content:space-around;align-items:center;padding:.5rem .4rem}
.mbar.and{justify-content:flex-start;gap:.35rem;padding:.5rem .6rem}.mbar.and .addr{flex:1;background:var(--bg);border-radius:999px;padding:.55rem .9rem;font-size:.9rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mcap{margin:.35rem 0 0!important;font-size:.8rem!important;text-align:center}
.mdlg .mdh{display:flex;justify-content:space-between;align-items:center;padding:.8rem 1rem;border-bottom:1px solid var(--line);font-size:.95rem}
.mdlg .mdh span{position:relative;color:var(--muted)}.mdlg .mdh .hi{color:var(--accent);font-weight:600;padding:.3rem .5rem}
.mdb{display:flex;align-items:center;gap:.9rem;padding:1rem}.mdb small{display:block;color:var(--muted)}
.mdf{display:flex;justify-content:flex-end;gap:1.5rem;padding:.2rem 1.2rem 1rem;color:var(--muted)}.mdf .hi{position:relative;color:var(--accent);font-weight:600;padding:.3rem .5rem}
.appicon{width:56px;height:56px;border-radius:14px;flex:none}
.mdone{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding:1.2rem;font-size:.9rem;font-weight:500}
.mdone .appicon{width:64px;height:64px;border-radius:16px;box-shadow:0 8px 18px -8px rgba(0,0,0,.5)}
/* подсветка «сюда нажать»: одно пульсирующее кольцо */
.ring{position:absolute;inset:-3px;border-radius:inherit;border:2.5px solid var(--accent);pointer-events:none;animation:ring 1.6s ease-out infinite}
.mrow .ring{inset:2px 4px;border-radius:10px}
@keyframes ring{0%{opacity:1;transform:scale(1)}70%{opacity:.15;transform:scale(1.1)}100%{opacity:0;transform:scale(1.1)}}
@media (prefers-reduced-motion:reduce){.ring{animation:none;opacity:1}.appbtn{transition:none}}
@media (max-width:34rem){#guide{width:100vw;height:100dvh;border-radius:0;border:0}}
.mdlg .mdh b{flex:1;text-align:center;font-size:.85rem;padding:0 .4rem}
.mdlg .mdh span{white-space:nowrap}
