.install {
  margin-top: var(--section);
  background: var(--accent);
  color: var(--accent-ink);
}

.install .wrap {
  min-height: 90svh;
  padding-block: clamp(64px, 9vw, 120px);
  align-items: center;
}

.install-copy {
  grid-column: 1 / span 6;
  align-self: end;
  display: grid;
  gap: 22px;
}

.install-title {
  font-size: var(--step-display);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 600;
}

:root:lang(zh-Hant-TW) .install-title,
:root:lang(ja) .install-title {
  letter-spacing: 0;
  line-height: 1.08;
}

:root:lang(ko) .install-title {
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.install-title span {
  display: block;
}

.install-copy p {
  max-width: 30em;
  font-size: var(--step-body);
}

.install-copy a {
  font-weight: 600;
}

[data-ui].dialog {
  grid-column: 8 / span 4;
  justify-self: end;
  width: min(100%, 460px);
  background: #ffffff;
  color: #1d2220;
  border-radius: 10px;
  padding: 24px;
  display: grid;
  gap: 16px;
  box-shadow: 0 1px 2px rgb(16 32 24 / 0.08), 0 22px 48px -12px rgb(16 32 24 / 0.28);
  font-size: var(--ui);
  line-height: 1.55;
}

[data-ui] .dlg-title {
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.3;
}

[data-ui] .dlg-field {
  display: grid;
  gap: 6px;
}

[data-ui] .dlg-field>span {
  font-size: var(--ui-s);
  color: #5f6763;
}

[data-ui] .dlg-cmd {
  display: block;
  background: #f1f4f2;
  border: 1px solid #d3dad6;
  border-radius: 6px;
  padding: 12px 14px;
  color: #1d2220;
  font-size: var(--ui-s);
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 72px;
}

[data-ui].dialog .seg {
  background: #e4e9e6;
  display: grid;
}

[data-ui].dialog .seg button {
  color: #5f6763;
}

[data-ui].dialog .seg button[aria-checked="true"] {
  color: #1d2220;
}

[data-ui].dialog .seg .seg-thumb {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #777e7a;
}

[data-ui] .dlg-hint {
  color: #5f6763;
  font-size: var(--ui-s);
  min-height: 2.6em;
}

[data-ui] .dlg-primary {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: #1d2220;
  color: #ffffff;
  font-size: var(--ui);
  font-weight: 600;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

[data-ui] .dlg-primary:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  [data-ui] .dlg-primary:hover {
    background: #343b38;
  }
}

[data-ui] .dlg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

[data-ui] .dlg-alt {
  border: 0;
  background: none;
  padding: 0;
  font-size: var(--ui-s);
  color: #1d2220;
  text-decoration: underline;
  text-underline-offset: 0.24em;
  text-decoration-thickness: 0.07em;
  min-height: 32px;
}

[data-ui] .dlg-done {
  font-size: var(--ui-s);
  color: #0a7a45;
  opacity: 0;
  transition: opacity var(--t-ui) ease;
}

[data-ui] .dlg-done.is-on {
  opacity: 1;
}

[data-ui].dialog :focus-visible {
  outline-color: #1d2220;
}

.install :focus-visible {
  outline-color: var(--accent-ink);
}

@media (forced-colors: active) {
  [data-ui].dialog .seg .seg-thumb {
    background: Highlight;
    box-shadow: none;
  }

  [data-ui].dialog .seg button[aria-checked="true"] {
    color: HighlightText;
  }
}

@media (max-width: 1023px) {
  .install-copy {
    grid-column: 1 / -1;
    align-self: start;
  }

  [data-ui].dialog {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    margin-top: 48px;
  }
}