.settings {
  max-width: 630px;

  .button-borderless {
    color: var(--accent-color);
  }

  &.dialog {
    max-height: calc(100vh - 2rem);

    .dialog-content {
      max-height: calc(100vh - 2rem - 56px);
    }
  }

  input[type='radio'] {
    cursor: pointer;
  }

  .settings-account-name {
    font-size: 115%;
    text-align: center;
    width: 100%;
  }

  .settings-writing {
    padding-top: 48px;
  }
}

.settings-group {
  margin-bottom: 50px;

  &:last-child {
    margin-bottom: 0;
  }

  p {
    line-height: normal;
    color: var(--settings-fg-color);
  }
}

.settings-items {
  border: 1px solid var(--secondary-color);
  color: var(--primary-color);
}

.settings-item {
  display: flex;
  align-items: center;
  height: 3em;
  padding-left: 18px;
  padding-right: 18px;
  border-bottom: 1px solid var(--secondary-color);

  &:last-child {
    border-bottom: none;
  }

  .settings-item-label {
    flex: 1 1 auto;
    align-items: center;
    font-size: 115%;
  }

  .settings-item-control {
    flex: none;
  }

  .settings-item-text-input {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.25em 0.15em;
    border: none;
    line-height: 1.5em;
    font-size: 115%;

    &:focus {
      position: relative;
      z-index: 1;
      outline: none;
    }
  }
}
