body {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  font: 1rem/1.6 system-ui, sans-serif;
  color: #1a1a1a;
  background: #fff;
}
@media (prefers-color-scheme: dark) {
  body { color: #e6e6e6; background: #121212; }
  a { color: #8ab4f8; }
}
nav { margin-bottom: 2rem; }
nav a { margin-right: 1rem; }
.steps { padding-left: 1.5rem; }
.steps li { margin-bottom: 1rem; }
.note {
  margin: 2rem 0;
  padding: 1rem;
  border-left: 4px solid #1a73e8;
  background: #e8f0fe;
}
@media (prefers-color-scheme: dark) {
  .note { border-color: #8ab4f8; background: #1e2a3a; }
}
.note--wait {
  margin: 1rem 0 0;
  border-color: #f9ab00;
  background: #fef7e0;
}
@media (prefers-color-scheme: dark) {
  .note--wait { border-color: #fdd663; background: #3a3220; }
}
.shot-btn {
  display: inline-block;
  margin: 0.15rem 0 0 0.25rem;
  padding: 0.1rem 0.6rem;
  border: 1px solid #1a73e8;
  border-radius: 999px;
  background: #fff;
  color: #1a73e8;
  font: inherit;
  font-size: 0.85em;
  white-space: nowrap;
  cursor: pointer;
}
.shot-btn:hover { background: #e8f0fe; }
@media (prefers-color-scheme: dark) {
  .shot-btn { border-color: #8ab4f8; background: #121212; color: #8ab4f8; }
  .shot-btn:hover { background: #1e2a3a; }
}
/* Full screen; the image fits inside it whatever the window's shape. */
.shot-viewer {
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 3.5rem 1rem 1rem;
  border: 0;
  background: none;
}
.shot-viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.shot-viewer::backdrop { background: rgba(0, 0, 0, 0.8); }
.shot-viewer img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
}
.shot-viewer__close {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a1a1a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.copy {
  margin-left: 0.25rem;
  padding: 0.2rem;
  vertical-align: middle;
  border: 0;
  border-radius: 4px;
  background: none;
  color: inherit;
  cursor: pointer;
}
.copy:hover { background: rgba(0, 0, 0, 0.1); }
.copy[data-copied]::after { content: " Copied!"; font-size: 0.85rem; }
@media (prefers-color-scheme: dark) {
  .copy:hover { background: rgba(255, 255, 255, 0.15); }
}
.email-menu {
  position: relative;
  display: inline-block;
}
.email-menu__trigger {
  border: 0;
  padding: 0;
  background: none;
  color: #0000ee;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.email-menu__list {
  position: absolute;
  z-index: 10;
  bottom: calc(100% + 0.4rem);
  left: 50%;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: min(16rem, 80vw);
  border: 1px solid #aaa;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
  font-size: 0.85em;
  line-height: 1.35;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 0.2rem);
  transition:
    opacity 120ms ease,
    transform 120ms ease,
    visibility 120ms;
}
.email-menu__list a,
.email-menu__list button {
  border: 0;
  padding: 0.45rem 0.65rem;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.email-menu__list a:hover,
.email-menu__list button:hover { background: rgba(128, 128, 128, 0.12); }
.email-menu.open .email-menu__list {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
@media (prefers-color-scheme: dark) {
  .email-menu__trigger { color: #8ab4f8; }
  .email-menu__list { background: #121212; }
}
