/* "Download for Windows" install guide (#wininstall). The small screens are drawn in CSS after the real
   Windows 11 dialogs, in Windows' own light colors in both site themes, so they look like what people will see. */
.wg {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--text);
}
.wg::backdrop { background: rgba(8, 14, 24, .55); backdrop-filter: blur(3px); }
.wg[open] { display: flex; flex-direction: column; }

.wg-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 24px 24px 8px;
}
.wg-head h2 { margin: 0; font-family: var(--display); font-size: clamp(22px, 3vw, 28px); line-height: 1.15; }
.wg-status { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.wg-close {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
}
.wg-close:hover { background: var(--line); color: var(--ink); }
.wg-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wg-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.wg-steps {
  list-style: none; margin: 0; padding: 16px 24px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.wg-steps li { display: flex; flex-direction: column; gap: 10px; }
.wg-steps p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.wg-steps p b { color: var(--ink); font-weight: 600; }

.wg-foot { margin: 0; padding: 8px 24px 22px; font-size: 14px; color: var(--muted); }
.wg-foot a { color: var(--gold); font-weight: 600; }

/* ---- The drawn screens ---- */
.wg-shot {
  height: 150px; display: grid; place-items: center; padding: 14px;
  border-radius: 14px; background: #DCE6F2;
  background-image: linear-gradient(135deg, #DDE8F5 0%, #C9D8EA 100%);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #1B1B1B; font-size: 12px; line-height: 1.35;
  overflow: hidden; user-select: none;
}
@media (prefers-color-scheme: dark) {
  .wg-shot { background-image: linear-gradient(135deg, #22344D 0%, #1A2840 100%); }
}

/* What to click: a gold ring that breathes. */
.wg-hit { position: relative; border-radius: 4px; box-shadow: 0 0 0 2px #E0712C, 0 0 0 6px rgba(224, 113, 44, .28); }
@media (prefers-reduced-motion: no-preference) {
  .wg-hit { animation: wg-pulse 1.8s ease-in-out infinite; }
  @keyframes wg-pulse {
    50% { box-shadow: 0 0 0 2px #E0712C, 0 0 0 9px rgba(224, 113, 44, .12); }
  }
}

/* Step 1: browser downloads panel */
.m-flyout { width: 100%; max-width: 230px; background: #fff; border-radius: 8px; padding: 10px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.m-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.m-file { display: flex; gap: 8px; align-items: flex-start; }
.m-zip { flex: none; width: 18px; height: 14px; margin-top: 2px; border-radius: 2px; background: linear-gradient(#F3C64B, #E3A923); }
.m-link { display: inline-block; margin-top: 3px; padding: 1px 3px; color: #0F6CBD; }

/* Step 2: File Explorer */
.m-explorer { width: 100%; max-width: 240px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.m-bar { padding: 7px 10px; background: #F3F3F3; border-bottom: 1px solid #E5E5E5; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cols, .m-row { display: grid; grid-template-columns: 1.3fr 1fr; padding: 5px 10px; }
.m-cols { color: #5F5F5F; font-size: 11px; }
.m-row { margin: 4px 6px 10px; background: #CCE8FF; }
.m-row span:first-child { display: flex; align-items: center; gap: 6px; }
.m-exe { width: 13px; height: 11px; border: 1.5px solid #1B4F8A; border-radius: 1px; background: linear-gradient(#1B4F8A 0 3px, #fff 3px); }

/* Steps 3 and 4: SmartScreen */
.m-smart { position: relative; width: 100%; max-width: 240px; height: 122px; background: #0056B3; color: #fff; padding: 10px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.m-h { font-size: 15px; line-height: 1.15; margin-bottom: 5px; }
.m-t { font-size: 10.5px; opacity: .92; }
.m-more { display: inline-block; margin-top: 4px; padding: 0 3px; font-size: 11px; text-decoration: underline; }
.m-btns { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; }
.m-btn { background: #fff; color: #1B1B1B; font-weight: 600; font-size: 11px; padding: 4px 9px; border-radius: 0; }
.m-btn.wg-hit { border-radius: 2px; }

/* Step 5: User Account Control */
.m-uac { width: 100%; max-width: 240px; background: #F3F3F3; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.m-uh { padding: 7px 10px; font-size: 11px; color: #5F5F5F; }
.m-q { padding: 0 10px 10px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.m-uacbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 10px 10px; background: #E9E9E9; }
.m-ubtn { text-align: center; padding: 4px 0; border-radius: 4px; background: #fff; border: 1px solid #D0D0D0; font-size: 11.5px; }
.m-yes { background: #005FB8; border-color: #005FB8; color: #fff; }

/* Done: the taskbar corner */
.m-tray { display: flex; align-items: center; gap: 12px; padding: 8px 14px; background: rgba(243, 243, 243, .95); border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.m-chev { color: #5F5F5F; font-size: 12px; }
.m-bird { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; }
.m-bird img { width: 20px; height: 20px; border-radius: 5px; }
.m-clock { text-align: right; font-size: 11px; line-height: 1.3; }

@media (max-width: 560px) {
  .wg-head { padding: 18px 16px 4px; }
  .wg-steps { padding: 12px 16px; }
  .wg-foot { padding: 6px 16px 18px; }
}
