:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    sans-serif;
  color: #202124;
  background: #f4f6f7;
}

* {
  box-sizing: border-box;
}

.login-view[hidden],
.admin-view[hidden] {
  display: none;
}

body {
  min-width: 320px;
  margin: 0;
}

button,
input {
  font: inherit;
}

button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #1769aa;
  border-radius: 4px;
  color: #ffffff;
  background: #1769aa;
  cursor: pointer;
}

button:hover {
  background: #11568d;
}

button:disabled {
  cursor: default;
  opacity: 0.6;
}

input[type="password"] {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #bdc1c6;
  border-radius: 4px;
  color: #202124;
  background: #ffffff;
  outline: none;
}

input[type="password"]:focus {
  border-color: #1769aa;
  box-shadow: 0 0 0 1px #1769aa;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

.login-view {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(100%, 360px);
  padding: 28px;
  border: 1px solid #d8dce0;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(32 33 36 / 8%);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 4px;
  color: #ffffff;
  background: #1769aa;
  font-size: 20px;
  font-weight: 700;
}

.login-panel h1 {
  font-size: 22px;
  line-height: 30px;
}

.muted {
  margin-top: 3px;
  color: #687078;
  font-size: 13px;
}

.login-panel label {
  display: block;
  margin: 22px 0 7px;
  font-size: 13px;
  font-weight: 600;
}

.login-panel button {
  width: 100%;
  margin-top: 14px;
}

.message {
  min-height: 20px;
  margin-top: 8px;
  font-size: 12px;
  line-height: 20px;
}

.message--error {
  color: #b3261e;
}

.admin-view {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 0 24px 36px;
}

.app-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccd1d5;
}

.app-header h1 {
  font-size: 23px;
  line-height: 30px;
}

.eyebrow {
  color: #687078;
  font-size: 11px;
  font-weight: 700;
}

.secondary-button {
  border-color: #9aa0a6;
  color: #3c4043;
  background: #ffffff;
}

.secondary-button:hover {
  background: #f1f3f4;
}

.save-message {
  min-height: 42px;
  padding: 12px 0 8px;
  color: #137333;
  font-size: 13px;
}

.save-message[data-kind="error"] {
  color: #b3261e;
}

.settings-band {
  margin-bottom: 16px;
  border: 1px solid #d8dce0;
  border-radius: 6px;
  background: #ffffff;
}

.band-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border-bottom: 1px solid #e4e7e9;
}

.band-heading h2 {
  font-size: 16px;
  line-height: 23px;
}

.band-heading p,
.field-note {
  margin-top: 4px;
  color: #687078;
  font-size: 12px;
  line-height: 18px;
}

.settings-meta {
  display: flex;
  flex: none;
  gap: 24px;
}

.settings-meta div {
  min-width: 92px;
}

.settings-meta dt {
  color: #687078;
  font-size: 11px;
}

.settings-meta dd {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

.authorization-editor {
  max-width: 520px;
  padding: 20px 22px 22px;
}

.authorization-editor label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #eceff1;
}

.feature-row:nth-child(odd) {
  border-right: 1px solid #eceff1;
}

.feature-row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.feature-label {
  min-width: 0;
  padding-right: 14px;
  font-size: 13px;
  font-weight: 500;
}

.feature-toggle {
  width: 38px;
  height: 21px;
  margin: 0;
  accent-color: #137333;
  cursor: pointer;
}

.action-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

@media (max-width: 680px) {
  .admin-view {
    padding-right: 14px;
    padding-left: 14px;
  }

  .app-header {
    min-height: 76px;
  }

  .band-heading {
    display: block;
    padding: 17px;
  }

  .settings-meta {
    margin-top: 14px;
  }

  .authorization-editor {
    padding: 17px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row:nth-child(odd),
  .feature-row:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #eceff1;
  }

  .feature-row:last-child {
    border-bottom: 0;
  }
}
