:root {
  color-scheme: light;
  --app: #eeebf7;
  --inset: #e9e5f3;
  --hairline: #aaa4c6;
  --ink: #1f2747;
  --ink-secondary: #545b7c;
  --accent: #b91a61;
  --danger: #a5211a;
  --edge: #929fff;
  --edge-glow: #929fff40;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --app: #121316;
    --inset: #0f1013;
    --hairline: #353944;
    --ink: #eeeff3;
    --ink-secondary: #a3a7b3;
    --accent: #929fff;
    --danger: #ff8c98;
    --edge-glow: #929fff80;
  }
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--app);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
}
.panel {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.logo {
  display: block;
  margin: 0 auto 16px;
}
.links {
  display: flex;
  justify-content: center;
  gap: 16px;
}
h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.quiet {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13px;
}
.privacy {
  display: inline-block;
  margin-top: 28px;
  color: var(--ink-secondary);
  font-size: 12px;
}
.privacy:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.doc .panel {
  max-width: 36rem;
  min-width: 0;
  text-align: left;
}
.doc h2 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 600;
}
.doc p,
.doc li {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
}
.doc .meta {
  margin-bottom: 18px;
  font-size: 13px;
}
.doc ul {
  margin: 0;
  padding-left: 1.2em;
}
.doc li + li {
  margin-top: 8px;
}
.doc a {
  color: var(--accent);
}
.status {
  min-height: 21px;
  margin: 0;
  color: var(--ink-secondary);
  font-size: 13px;
}
.error {
  color: var(--danger);
}
.list,
#google {
  margin-top: 24px;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#google {
  display: flex;
  justify-content: center;
  min-height: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms;
  /* Chrome paints a white box behind Google's frame when its color scheme differs from the page's. */
  color-scheme: light;
}
#google.ready {
  opacity: 1;
  visibility: visible;
}
#google.last {
  width: fit-content;
  margin-inline: auto;
}
.list button,
#google {
  position: relative;
}
.list button::before,
.list button::after,
#google.last::before,
#google.last::after {
  content: "";
  position: absolute;
  inset: -5px 50% -5px -5px;
  border: 0 solid transparent;
  border-left-width: 1.5px;
  border-radius: 999px;
  pointer-events: none;
  transition: border-color 150ms;
}
.list button::after,
#google.last::after {
  inset: -5px -5px -5px 50%;
  border-width: 0 1.5px 0 0;
}
.list button.last::before,
.list button.last::after,
#google.last::before,
#google.last::after {
  border-color: var(--edge);
  filter: drop-shadow(0 0 3px var(--edge-glow));
  animation: glow 2.4s ease-in-out infinite alternate;
}
@media (hover: hover) {
  .list button:not(.last):hover:not(:disabled)::before,
  .list button:not(.last):hover:not(:disabled)::after {
    border-color: var(--hairline);
  }
}
@keyframes glow {
  from {
    filter: drop-shadow(0 0 1px var(--edge-glow));
  }
}
@media (prefers-reduced-motion: reduce) {
  .list button.last::before,
  .list button.last::after,
  #google.last::before,
  #google.last::after {
    animation: none;
  }
}
.list button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--inset);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: filter 150ms, transform 150ms;
}
@media (hover: hover) {
  .list button:hover:not(:disabled) {
    border-color: var(--ink-secondary);
  }
}
.list button:active:not(:disabled) {
  transform: scale(0.99);
}
.list button:disabled {
  cursor: default;
  opacity: 0.5;
}
.list button[aria-busy="true"] {
  opacity: 1;
}
.list button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.spinner {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
[hidden] {
  display: none !important;
}
