.mac-guide {
  --guide-surface: #131b28;
  --guide-text: #f4f8ff;
  --guide-muted: #b6c5d7;
  --guide-line: rgba(178, 208, 235, .16);
  box-sizing: border-box;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--guide-line);
  border-radius: 28px;
  margin: auto;
  color: var(--guide-text);
  background: radial-gradient(ellipse at top left, rgba(87, 186, 220, .14), transparent 60%), var(--guide-surface);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
  overflow: auto;
  font: 400 14px/1.65 "Manrope", sans-serif;
}
.mac-guide *, .mac-guide *::before, .mac-guide *::after { box-sizing: border-box; }
.mac-guide::backdrop { background: rgba(3, 9, 18, .75); backdrop-filter: blur(9px); }
.mac-guide[open] { animation: mac-guide-enter 220ms ease-out; }
.mac-guide__content { position: relative; padding: 34px; }
.mac-guide button, .mac-guide a { font-family: inherit; }
.mac-guide__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--guide-line);
  border-radius: 50%;
  background: transparent;
  color: var(--guide-muted);
  font-size: 26px;
  cursor: pointer;
}
.mac-guide__badge { color: #8edcf2; font-size: 12px; font-weight: 700; letter-spacing: .07em; }
.mac-guide h2 { margin: 16px 38px 12px 0; font: 700 clamp(26px, 6vw, 34px)/1.18 "Manrope", sans-serif; letter-spacing: -.04em; color: var(--guide-text); }
.mac-guide__intro { margin: 0; color: var(--guide-muted); }
.mac-guide__steps { display: grid; gap: 20px; list-style: none; padding: 0; margin: 28px 0 20px; }
.mac-guide__steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.mac-guide__number { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--guide-line); border-radius: 13px; background: rgba(110, 199, 225, .08); color: #8edcf2; font-weight: 700; }
.mac-guide h3 { margin: 0 0 4px; color: var(--guide-text); font: 700 15px/1.5 "Manrope", sans-serif; }
.mac-guide__steps p { margin: 0; color: var(--guide-muted); font-size: 13px; }
.mac-guide__terminal { border: 1px solid var(--guide-line); border-radius: 15px; overflow: hidden; background: #09121e; }
.mac-guide__terminal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--guide-line); color: #9cbbce; font-size: 12px; }
.mac-guide__terminal-head button { padding: 5px 9px; border: 1px solid var(--guide-line); border-radius: 7px; background: rgba(128, 212, 237, .08); color: #b7ebfa; cursor: pointer; }
.mac-guide__terminal code { display: block; padding: 16px; color: #c5f2de; font: 13px/1.8 ui-monospace, "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.mac-guide__safety { margin: 10px 0 24px; color: var(--guide-muted); font-size: 11px; }
.mac-guide__footer { display: grid; gap: 10px; text-align: center; }
.mac-guide__download { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 18px; border-radius: 14px; background: linear-gradient(110deg, #b2eddb, #94d7f5); color: #09212d; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 8px 30px rgba(102, 210, 221, .12); }
.mac-guide__download:hover { filter: brightness(1.07); color: #09212d; }
.mac-guide__footer > span { color: var(--guide-muted); font-size: 11px; }
.mac-guide :focus-visible { outline: 2px solid #8edcf2; outline-offset: 4px; }
.mac-guide__status { display: block; color: var(--guide-muted); font-size: 12px; text-align: center; }
body.mac-guide-visible { overflow: hidden; }
:root[data-theme="light"] .mac-guide { --guide-surface: #f8fcff; --guide-text: #142b3c; --guide-muted: #506779; --guide-line: rgba(35, 80, 106, .17); }
:root[data-theme="light"] .mac-guide__badge, :root[data-theme="light"] .mac-guide__number { color: #1b697e; }
@keyframes mac-guide-enter { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .mac-guide { border-radius: 22px; } .mac-guide__content { padding: 26px 20px; } .mac-guide__steps li { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; } .mac-guide__number { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .mac-guide[open] { animation: none; } }
