/* Download tutorial dialog (download.js). Opens whenever a [data-dl="mac"] link is used.
   Keeps its own palette so it looks the same on the home page and the account page. */
.dlg{--dl-bg:#fff;--dl-text:#1A1D24;--dl-text-2:#4F5664;--dl-line:#E6E9F0;--dl-soft:#F4F6FB;--dl-blue:#2F59D9;--dl-ink:#0B0C0E;
  width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:28px;background:var(--dl-bg);color:var(--dl-text);
  font-family:"Geist",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 30px 80px rgba(10,20,60,.35);overflow:auto}
.dlg::backdrop{background:rgba(10,16,40,.55);backdrop-filter:blur(4px)}
.dlg[open]{animation:dlg-in .25s ease-out}
@keyframes dlg-in{from{opacity:0;transform:translateY(12px) scale(.98)}}
.dlg-in{padding:28px;display:grid;gap:20px}
.dlg-top{display:flex;align-items:flex-start;gap:14px}
.dlg-badge{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--dl-blue);color:#fff;flex:none}
.dlg-top h2{font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.02em;margin:2px 0 4px}
.dlg-top p{margin:0;color:var(--dl-text-2);font-size:15.5px;line-height:1.5}
.dlg-x{margin-left:auto;flex:none;width:44px;height:44px;border-radius:50%;border:0;background:var(--dl-soft);color:var(--dl-text);cursor:pointer;display:grid;place-items:center}
.dlg-x:hover{background:var(--dl-line)}
.dlg-note{margin:0;padding:12px 14px;border-radius:14px;background:#FFF4E2;color:#6B4A12;font-size:14.5px;line-height:1.45}
.dlg-steps{list-style:none;margin:0;padding:0;display:grid;gap:10px;counter-reset:d}
.dlg-steps li{counter-increment:d;display:grid;grid-template-columns:40px 1fr;gap:14px;align-items:center;padding:14px;border:1px solid var(--dl-line);border-radius:18px;background:var(--dl-soft)}
.dlg-steps li > span:first-child{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--dl-bg);border:1px solid var(--dl-line);font-weight:600;font-size:15px}
.dlg-steps li img{width:40px;height:40px;border-radius:10px;display:block}
.dlg-steps b{display:block;font-weight:600;font-size:15.5px}
.dlg-steps small{display:block;color:var(--dl-text-2);font-size:14px;line-height:1.45;margin-top:2px}
.dlg-acts{display:flex;flex-wrap:wrap;gap:10px}
.dlg-acts a,.dlg-acts button{flex:1 1 180px;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;font-family:inherit;font-size:16px;font-weight:500;line-height:1.2;cursor:pointer;padding:0 18px;border:1px solid transparent;text-decoration:none;text-align:center}
.dlg-primary{background:var(--dl-ink);color:#fff}
.dlg-primary:hover{background:#23262d}
.dlg-second{background:var(--dl-bg);color:var(--dl-text);border-color:var(--dl-line)!important}
.dlg-second:hover{background:var(--dl-soft)}
.dlg-steps small a{color:var(--dl-blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.dlg-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dlg-retry{margin:0;text-align:center;font-size:14px;color:var(--dl-text-2)}
.dlg-retry a{color:var(--dl-blue);text-decoration:underline;text-underline-offset:3px}
.dlg :focus-visible{outline:2px solid var(--dl-blue);outline-offset:3px}
[data-theme="dark"] .dlg{--dl-bg:#141A2E;--dl-text:#EEF1F8;--dl-text-2:#B4BCCD;--dl-line:#2A3350;--dl-soft:#1B2239;--dl-blue:#7E9FF0;--dl-ink:#EEF1F8}
[data-theme="dark"] .dlg-primary{color:#0B0C0E}
[data-theme="dark"] .dlg-primary:hover{background:#fff}
[data-theme="dark"] .dlg-note{background:#3A2C12;color:#F6D9A8}
@media (max-width:480px){.dlg-in{padding:20px;gap:16px}.dlg-top h2{font-size:21px}.dlg-badge{display:none}}
@media (prefers-reduced-motion:reduce){.dlg[open]{animation:none}}
