/* The one thing on the settings page meant to be glanced at rather than read,
   so it sits above the first heading and is sized to be legible at a glance.
   Links lead — it is the number that grows. */
#start-page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin: 0 0 2em;

  .stat {
    flex: 1 1 8em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25em;
    padding: 1em;
    border: 0.0625rem solid var(--border-color);
    border-radius: 0.5em;
  }

  .stat-value {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--fg-color);
  }

  .stat-label {
    font-size: 0.875rem;
    color: var(--mid-color);
  }
}

.user-section {
  margin: 2em 0;
  ul {
    margin: 0;
  }
  h2 {
    font-weight: 900;
    margin: 0 0 0.5em;
    border-bottom: 0.0625rem solid var(--border-color);
  }
}

#connection-settings {
  .connection-status {
    margin: 1em 0;
    padding: 1em;
    border: 0.0625rem solid var(--border-color);
    border-radius: 0.5em;

    p:first-child {
      margin-top: 0;
    }
    p:last-child {
      margin-bottom: 0;
    }
  }

  .connection-status.connected {
    border-color: var(--positive-color);
  }

  .connection-status.disconnected {
    border-color: var(--danger-color);
    color: var(--danger-color);
  }

  .connect-form {
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 1em;

    & > div {
      margin: 0;
    }

    input[type=submit] {
      width: auto;
      align-self: start;
      margin: 0;
      padding: 0.75em 1.5em;
    }
  }
}
