/* The desktop-app card: the account page's download card, and on phones and
   tablets the "use your computer" card with the email-me button and the link
   to copy. Shared by /account/ and /download/. */

/* device.js sets html[data-device] before the page paints, so a phone never
   sees the download buttons. */
html[data-device="phone"] [data-hide-on~="phone"],
html:not([data-device="phone"]) [data-show-on] {
  display:none !important;
}

.account-download {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:24px 32px;
  margin-bottom:32px;
  padding:28px 30px;
  border:1px solid var(--neo-color-accent-line);
  border-radius:18px;
  background:linear-gradient(100deg,rgba(135,233,169,.11),rgba(74,159,224,.06) 55%,rgba(16,18,20,.6));
}

.account-download__intro {
  display:flex;
  align-items:flex-start;
  flex:1 1 360px;
  gap:20px;
  min-width:0;
}

.account-download__icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  flex:none;
  border:1px solid rgba(135,233,169,.22);
  border-radius:15px;
  background:rgba(135,233,169,.13);
  color:var(--neo-color-accent);
}

.account-download__icon svg {
  width:26px;
  height:26px;
}

.account-download__copy {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}

.account-download__eyebrow {
  color:var(--neo-color-accent);
  font-size:12px;
  font-weight:600;
  letter-spacing:1.4px;
}

.account-download__copy h2 {
  margin:0;
  font-family:var(--neo-font-display);
  font-size:22px;
  font-weight:500;
  line-height:1.25;
}

.account-download__copy p {
  max-width:460px;
  margin:0;
  color:var(--neo-color-text-dim);
  font-size:14.5px;
  line-height:1.55;
  text-wrap:pretty;
}

.account-download__actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.account-download__button {
  display:flex;
  align-items:center;
  gap:14px;
  min-width:210px;
  box-sizing:border-box;
  padding:14px 22px 14px 18px;
  border-radius:12px;
  background:var(--neo-color-accent);
  color:var(--neo-color-on-accent);
  transition:background-color .16s ease;
}

.account-download__button:hover {
  background:var(--neo-color-accent-hover);
}

.account-download__button:focus-visible {
  outline:2px solid var(--neo-color-accent);
  outline-offset:3px;
}

.account-download__button > svg:first-child {
  flex:none;
}

.account-download__button > svg:last-child {
  width:18px;
  height:18px;
  opacity:.8;
}

.account-download__label {
  display:flex;
  flex:1;
  flex-direction:column;
  gap:1px;
}

.account-download__label small {
  font-size:12px;
  font-weight:500;
  opacity:.75;
}

.account-download__label strong {
  font-size:16.5px;
  font-weight:700;
  letter-spacing:.2px;
}

.account-download--phone {
  flex-direction:column;
  flex-wrap:nowrap;
  align-items:stretch;
  gap:24px;
}

.account-download--phone .account-download__intro {
  flex:none;
}

.account-download--phone .account-download__copy strong {
  color:var(--neo-color-text);
  font-weight:500;
}

.account-resend {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.account-download--phone .account-download__button {
  width:100%;
  min-width:0;
  border:0;
  font:inherit;
  text-align:left;
  cursor:pointer;
}

.account-download__button--resend {
  justify-content:center;
  gap:10px;
  padding:14px 16px;
}

.account-resend__label {
  font-size:16px;
  font-weight:600;
}

.account-download--phone .account-download__button:disabled {
  background:var(--neo-color-accent-tint);
  color:var(--neo-color-accent);
  cursor:default;
}

.account-download--phone .account-download__button:disabled [data-account-resend-label] {
  font-size:16px;
  font-weight:600;
}

.account-resend__error {
  margin:0;
  color:var(--neo-color-danger-text);
  font-size:13px;
}

.account-link {
  display:flex;
  flex-direction:column;
  gap:10px;
}

.account-link__label {
  color:var(--neo-color-text-dim);
  font-size:13px;
}

.account-link__field {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 6px 6px 14px;
  border:1px solid var(--neo-color-border);
  border-radius:var(--neo-radius-control);
  background:var(--neo-color-surface-inset);
}

/* Never cut short: on a narrow phone the Copy button moves below instead. */
.account-link__url {
  color:var(--neo-color-text);
  font-family:var(--neo-font-display);
  font-size:16px;
  white-space:nowrap;
}

.account-link__copy {
  display:inline-flex;
  align-items:center;
  flex:none;
  gap:8px;
  padding:9px 14px;
  border:0;
  border-radius:9px;
  background:var(--neo-color-surface-raised);
  color:var(--neo-color-text);
  font:inherit;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}

.account-link__copy svg {
  width:15px;
  height:15px;
}

@media (max-width:760px) {
  .account-download {
    padding:20px;
  }

  .account-download__actions,
  .account-download__button {
    width:100%;
  }

  .account-download__button {
    min-width:0;
  }
}
