/* The window shown as soon as the installer starts downloading (home page and account
   page): the installer isn't code-signed yet, so Windows warns about it, and people who
   aren't told what to do stop there. It shows the browser's question, then SmartScreen's
   two clicks drawn as Windows shows them, with the button to press ringed. */
dialog.ih {
  --ss-blue: #0f62b5;
  --ss-ink: #ffffff;
  --ss-shadow: rgba(0, 40, 90, .6);
  --ss-mark: #ffc83d;
  --ss-mark-soft: rgba(255, 200, 61, .3);
  position: fixed; width: min(780px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-radius: 22px; background: var(--panel); color: var(--ink); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(24, 25, 29, .08), 0 40px 100px -30px rgba(24, 25, 29, .5);
}
dialog.ih::backdrop { background: rgba(24, 25, 29, .38); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.ih[open] { display: flex; flex-direction: column; animation: ih-pop .28s cubic-bezier(.2, .8, .2, 1); }
.ih h2, .ih p, .ih ol { margin: 0; }
.ih-body { display: grid; gap: 20px; min-height: 0; padding: 28px 28px 24px; overflow-y: auto; overscroll-behavior: contain; }
.ih-x { position: absolute; top: 14px; right: 16px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 9px; background: var(--panel); color: var(--muted); cursor: pointer; }
.ih-x:hover { background: var(--canvas); color: var(--ink); }
.ih-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ih-head { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding-right: 36px; }
.ih-ok { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.ih-ok svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ih-head h2 { font: 400 28px/1.15 var(--display); letter-spacing: -.015em; color: var(--ink); }
.ih-head p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ih-head p b { color: var(--ink); font-weight: 600; }

.ih-steps { display: grid; gap: 0; padding: 0; list-style: none; counter-reset: ih; }
.ih-steps > li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding-bottom: 20px; counter-increment: ih; }
.ih-steps > li:last-child { padding-bottom: 0; }
.ih-steps > li::before { content: counter(ih); grid-row: span 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); font: 600 14px/1 var(--body); }
.ih-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line-strong); }
.ih-steps h3 { margin: 0; padding-top: 4px; font: 600 16px/1.4 var(--body); color: var(--ink); }
.ih-steps p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ih-steps p b, .ih-why b { color: var(--ink); font-weight: 600; }
.ih-key { display: inline-block; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--canvas); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Drawings of the Windows SmartScreen window. */
.ss-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 6px; }
.ss { display: grid; gap: 10px; margin: 0; }
.ss-win { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 210px; padding: 18px 16px 14px; border-radius: 6px; background: var(--ss-blue); color: var(--ss-ink); font: 400 11.5px/1.45 "Segoe UI", var(--body); box-shadow: 0 12px 24px -14px var(--ss-shadow); }
.ss-x { position: absolute; top: 8px; right: 11px; font-size: 10px; }
.ss-title { padding-right: 14px; font-size: 18px; font-weight: 400; line-height: 1.2; }
.ss-link { align-self: flex-start; text-decoration: underline; }
.ss-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; padding-top: 6px; }
.ss-btn { padding: 5px 12px; border: 1px solid var(--ss-ink); }
.ss-mark { border-radius: 3px; outline: 2px solid var(--ss-mark); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ss-mark-soft); animation: ss-ring 1.6s ease-in-out infinite; }
@keyframes ss-ring { 50% { box-shadow: 0 0 0 10px transparent; } }
.ss figcaption { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.ss figcaption b { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ss-mark); font-size: 11.5px; font-weight: 700; color: #1d1d1f; }

.ih-why { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--canvas); font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ih-why svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ih-why p + p { margin-top: 6px; }
.ih-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ih-actions .btn { min-width: 140px; }
.ih-again { font-size: 13.5px; color: var(--muted); }
.ih-again a { color: var(--accent-text); text-decoration: underline; text-decoration-color: var(--accent-tint); text-underline-offset: 3px; }

@media (max-width: 640px) {
  .ih-body { padding: 24px 18px 20px; }
  .ih-head { grid-template-columns: minmax(0, 1fr); }
  .ih-ok { display: none; }
  .ih-head h2 { font-size: 24px; }
  .ss-pair { grid-template-columns: minmax(0, 1fr); }
  .ih-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ss-mark { animation: none; } dialog.ih[open] { animation: none; } }
@keyframes ih-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
