section.add {
  margin-top: 1.2rem;
  max-width: 40rem;
}

section.add p + p {
  margin-top: 1rem;
}

section.add label {
  font-size: var(--text-sm);
  color: var(--muted);
}

section.add textarea,
section.add input[type=text],
section.add input[type=email],
section.add select {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  margin-top: 0.25rem;
}

section.add input[type=file] {
  margin-top: 0.25rem;
  font-size: var(--text-sm);
}

section.add .errors {
  color: var(--bad);
}

section.add p.meta {
  margin-top: 1.2rem;
}

input[type=submit],
button.primary,
button.connect,
form.button_to button.google,
article.consent p.decision button {
  padding: 0.45rem 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
}

article.consent p.decision button.secondary {
  background: var(--sheet);
  color: var(--ink);
}

/* Authentication */

article.consent,
article.entry {
  max-width: 26rem;
  margin: 3rem auto;
}

article.entry h1 {
  font-size: 22px;
}

article.entry form {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

article.entry input[type=email],
article.entry input[type=text],
article.entry input[type=password] {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
}

article.entry ul.workspaces {
  list-style: none;
  padding: 0;
  margin-top: 1.2rem;
}

article.entry ul.workspaces li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

article.entry .or {
  color: var(--muted);
  font-size: var(--text-sm);
  margin-top: 1.4rem;
}

/* New-workspace welcome */

article.entry.welcome {
  max-width: 32rem;
}

article.entry .assistant {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

article.entry .assistant h2 {
  font-size: var(--text-base);
}

article.entry .assistant p {
  margin-top: 0.6rem;
  font-size: var(--text-sm);
}

article.entry .assistant p.meta {
  color: var(--muted);
  font-size: var(--text-xs);
}

article.entry .assistant h2 .on {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--good);
}


article.entry .working {
  margin-top: 1.2rem;
  font-size: var(--text-sm);
  color: var(--muted);
}


article.entry .working .spinner {
  display: inline-block;
  vertical-align: -0.1em;
  margin-right: 0.4rem;
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  article.entry .working .spinner {
    animation: spin 0.9s linear infinite;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

article.entry .alt {
  margin-top: 1.2rem;
  font-size: var(--text-sm);
}

article.entry .notice {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--good);
}

article.entry .alert {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--bad);
}

article.consent h1 {
  font-size: 22px;
}

article.consent p {
  margin-top: 1rem;
}

article.consent p.warning {
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--warn);
  background: var(--warn-wash);
  border-radius: 0 var(--radius) var(--radius) 0;
}

article.consent p.decision {
  display: flex;
  gap: 0.75rem;
}

article.consent p.decision button {
  flex: 1;
}

article.consent select {
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
}
