[data-shell] {
  max-width: 1120px;
  margin: 24px auto;
  padding: 24px 16px;
  color: var(--app-ink);
  font-family: var(--app-font);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

[data-shell],
[data-shell] * {
  box-sizing: border-box;
  min-width: 0;
}

[data-shell] h1 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  line-height: 1.25;
}

[data-shell] [data-shell-row],
[data-shell] [data-persona-switcher] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

[data-shell] [data-persona-switcher] {
  width: 100%;
}

[data-shell] [data-shell-row][hidden],
[data-shell] [data-persona-switcher][hidden] {
  display: none;
}

[data-shell] p {
  max-width: 70ch;
  margin: 0;
  color: var(--app-muted);
  font-size: 0.875rem;
}

[data-shell] [data-persona-switcher] > span {
  width: 100%;
  color: var(--app-muted);
  font-size: 0.875rem;
}

[data-shell] button,
[data-shell] input {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--app-edge);
  border-radius: 4px;
  background: var(--app-paper);
  color: var(--app-ink);
  font: inherit;
}

[data-shell] button {
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}

[data-shell] [data-persona] {
  width: 100%;
  min-height: 44px;
  flex-shrink: 0;
}

[data-shell] button small {
  display: inline;
  color: var(--app-muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}

[data-shell] button small[hidden] {
  display: none;
}

[data-shell] button[aria-pressed='true'] {
  border-color: var(--app-accent);
  background: var(--app-accent);
  color: var(--app-paper);
}

[data-shell] button[aria-pressed='true'] small {
  color: inherit;
}

[data-shell] button:hover:not(:disabled) {
  background: var(--app-field);
}

[data-shell] button[aria-pressed='true']:hover {
  background: var(--app-hover);
}

[data-shell] button:disabled {
  background: var(--app-field);
  color: var(--app-muted);
  cursor: wait;
}

[data-shell] :focus-visible {
  outline: 3px solid var(--app-accent);
  outline-offset: 3px;
}

[data-shell] ::selection {
  background: var(--app-accent);
  color: var(--app-paper);
}

[data-shell] input {
  width: 100%;
  padding-inline: 12px;
  caret-color: var(--app-accent);
}

[data-shell] [data-sign-in-form] {
  display: grid;
  max-width: 35ch;
  gap: 8px;
}

[data-shell] [data-sign-in-form][hidden] {
  display: none;
}

[data-shell] label {
  font-weight: 600;
}

@media (min-width: 960px) {
  [data-shell] {
    padding: 32px;
  }

  [data-shell] [data-shell-row] {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  [data-shell] [data-persona] {
    width: auto;
    min-width: 11rem;
  }

  [data-shell] button small {
    display: block;
  }

  [data-shell] [data-shell-notice] {
    max-width: 20ch;
  }

  [data-shell] [data-persona-switcher] {
    width: auto;
    flex-shrink: 1;
  }

  [data-shell] [data-status] {
    margin-left: auto;
  }
}
