/* The contact chooser works without a configured desktop email client. */
body.contact-dialog-open { overflow: hidden; }
.contact-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 32px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 80px rgb(0 0 0 / .35);
  text-align: left;
}
.contact-dialog::backdrop { background: rgb(2 6 23 / .75); backdrop-filter: blur(5px); }
.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
}
.contact-close:hover { background: var(--bg-secondary); color: var(--text); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 16px;
  color: var(--primary);
  background: rgb(108 49 204 / .12);
}
[data-theme="dark"] .contact-icon { color: #c4b5fd; background: rgb(167 139 250 / .12); }
.contact-dialog h2 { margin: 0; font-size: 27px; line-height: 1.25; letter-spacing: -.03em; }
.contact-dialog #contact-description { margin: 12px 0 24px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
.contact-dialog label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.contact-address {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
}
.contact-address input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.contact-copy {
  flex-shrink: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.contact-copy:hover { border-color: #a78bfa; }
.contact-status { min-height: 24px; margin: 8px 0 16px; color: var(--text-secondary); font-size: 13px; line-height: 1.5; }
.contact-actions { display: grid; gap: 10px; }
.contact-actions a {
  display: block;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
.contact-actions .contact-gmail { background: var(--gradient); color: #fff; }
.contact-actions .contact-mailto { border-color: var(--border); color: var(--text); background: var(--bg-secondary); }
.contact-actions a:hover { filter: brightness(1.1); }
.contact-dialog :focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }
@media (max-width: 380px) {
  .contact-dialog { padding: 28px 20px; }
  .contact-address { flex-wrap: wrap; }
  .contact-address input { padding: 6px 0; }
  .contact-copy { width: 100%; }
}
