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;
}

/* A quiet, centred writing room for a person's direct handoff to the brain. */
article.tell {
  position: relative;
  isolation: isolate;
  width: 100%;
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vh, 4rem) 0;
}

article.tell::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(46rem, 100%);
  aspect-ratio: 1.7;
  border-radius: 50%;
  background: radial-gradient(ellipse, color-mix(in srgb, var(--in) 8%, transparent), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

article.tell .tell-shell {
  width: min(100%, 42rem);
  transform: translateY(-4rem);
}

article.tell .crumbs {
  margin-bottom: 1.8rem;
}

article.tell .tell-heading {
  text-align: center;
}

article.tell .kicker {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

article.tell .tell-heading .kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--in);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--in) 15%, transparent);
}

article.tell .tell-heading h1 {
  margin-top: 0.65rem;
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

article.tell .tell-heading > p:last-child {
  max-width: 46ch;
  margin: 0.8rem auto 0;
  color: var(--muted);
  font-size: var(--text-lg);
}

article.tell .tell-form {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: 0 18px 50px rgb(0 0 0 / 7%), 0 2px 8px rgb(0 0 0 / 4%);
}

article.tell .tell-form:focus-within {
  border-color: color-mix(in srgb, var(--out) 55%, var(--line));
  box-shadow: 0 18px 50px rgb(0 0 0 / 7%), 0 0 0 3px color-mix(in srgb, var(--out) 10%, transparent);
}

article.tell .tell-form .errors {
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--bad) 22%, var(--line));
  background: color-mix(in srgb, var(--bad) 7%, var(--sheet));
  color: var(--bad);
  font-size: var(--text-sm);
}

article.tell .tell-form .message {
  padding: 1.2rem 1.4rem 1rem;
}

article.tell .tell-form .message label,
article.tell .tell-form .attachments > label {
  display: block;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

article.tell .tell-form textarea {
  display: block;
  width: 100%;
  min-height: 12rem;
  margin-top: 0.55rem;
  padding: 0;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1.65;
}

article.tell .tell-form textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

article.tell .tell-form footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--wash) 65%, var(--sheet));
}

article.tell .tell-form .attachments {
  min-width: 0;
}

article.tell .tell-form input[type=file] {
  display: block;
  max-width: 100%;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: var(--text-xs);
}

article.tell .tell-form input[type=file]::file-selector-button {
  margin-right: 0.6rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
}

article.tell .tell-form input[type=submit] {
  flex: none;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}

article.tell .assurance {
  max-width: 52ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: var(--text-xs);
  text-align: center;
}

@media (max-width: 600px) {
  article.tell {
    place-items: start center;
    padding-top: 0;
  }

  article.tell .tell-shell {
    transform: none;
  }

  article.tell .crumbs {
    margin-bottom: 1.3rem;
  }

  article.tell .tell-form footer {
    align-items: stretch;
    flex-direction: column;
  }

  article.tell .tell-form input[type=submit] {
    width: 100%;
  }
}

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 .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);
}

/* Another mailbox, read over IMAP: a quieter second choice under Connect Gmail, wherever
   the mailbox door is shown. */
details.imap {
  max-width: var(--measure);
  margin-top: 1rem;
}

details.imap summary {
  cursor: pointer;
  color: var(--muted);
  font-size: var(--text-sm);
}

details.imap form {
  display: grid;
  gap: 0.6rem;
  max-width: 24rem;
  margin-top: 0.8rem;
}

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

details.imap input[type=submit] {
  justify-self: start;
}
