.browser-handoff {
  width: calc(100% - 32px);
  max-width: 420px;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 26px 24px 18px;
  overflow: auto;
  border: 1px solid #ddc37966;
  border-radius: 18px;
  background: #142019;
  color: #f5f3ed;
  box-shadow: 0 20px 70px #0008;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  letter-spacing: -.015em;
}
.browser-handoff::backdrop { background: #050c09ba; }
.browser-handoff__title {
  margin: 0 0 12px;
  color: #f2d184;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 700;
  word-break: keep-all;
}
.browser-handoff__description { margin: 0 0 12px; }
.browser-handoff__instruction {
  margin: 0 0 20px;
  color: #c2d3cb;
  font-size: 13px;
  line-height: 1.75;
  word-break: keep-all;
}
.browser-handoff__actions { display: grid; gap: 10px; }
.browser-handoff__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #ddc37955;
  border-radius: 10px;
  background: #1d3026;
  color: #f5f3ed;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.browser-handoff__action--primary {
  border-color: #f2d184;
  background: #f2d184;
  color: #17251d;
}
.browser-handoff__action:active { filter: brightness(.94); }
.browser-handoff__action:focus-visible,
.browser-handoff__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.browser-handoff__status {
  min-height: 0;
  margin: 0;
  color: #f2d184;
  font-size: 12px;
  line-height: 1.7;
}
.browser-handoff__status:not(:empty) { margin-top: 14px; }
.browser-handoff__close {
  display: block;
  min-width: 72px;
  min-height: 44px;
  margin: 10px auto 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c2d3cb;
  font: inherit;
  cursor: pointer;
}
.browser-handoff__copy-field {
  position: fixed;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
@supports not (height: 100dvh) {
  .browser-handoff { max-height: calc(100vh - 48px); }
}
@media (max-width: 359px) {
  .browser-handoff { padding-inline: 20px; }
  .browser-handoff__title { font-size: 19px; }
}
