:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f6f7;
  color: #1d2327;
}

body {
  margin: 0;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 24px auto 48px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.user-email {
  color: #50575e;
  font-size: 14px;
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 18px;
  margin-bottom: 16px;
}

.panel {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
}

button {
  min-height: 36px;
  border: 1px solid #2271b1;
  border-radius: 4px;
  background: #2271b1;
  color: #fff;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}

button[disabled] {
  opacity: .55;
  cursor: wait;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.notice {
  max-width: 460px;
  padding: 10px 12px;
  border-left: 4px solid #2271b1;
  background: #fff;
}

.notice.error {
  border-color: #d63638;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #eef1f4;
}

.login-shell {
  width: min(420px, calc(100% - 32px));
}

.login-panel {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  padding: 28px;
}

.login-panel h1 {
  margin-bottom: 22px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-form button {
  margin-top: 4px;
  width: 100%;
}

.login-panel .notice {
  margin-top: 16px;
  max-width: none;
}

.theme-list {
  display: grid;
  gap: 10px;
}

.theme-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}

.theme-item input {
  width: 18px;
  min-height: 18px;
}

.muted {
  color: #646970;
}

.stats dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.stats div {
  border-left: 3px solid #72aee6;
  padding-left: 10px;
}

dt {
  font-size: 13px;
  color: #646970;
}

dd {
  margin: 4px 0 0;
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid #dcdcde;
  text-align: left;
  padding: 8px;
  vertical-align: top;
}

@media (max-width: 760px) {
  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .grid,
  .stats dl {
    grid-template-columns: 1fr;
  }
}
