.app-header .logout {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: grid;
  place-items: center;
  padding: 0;
  background: #235f87;
  color: #fff;
  border: 1px solid #235f87;
  border-radius: 12px;
  line-height: 1;
}
.app-header .logout:hover {
  background: #1b4d70;
  border-color: #1b4d70;
  box-shadow: 0 4px 12px #235f8720;
}
.app-header .logout:active {
  background: #163f5d;
}
.segmented button {
  transition:
    background 0.18s,
    color 0.18s,
    box-shadow 0.18s;
}
.segmented button:hover {
  background: #d9e8f2;
  color: #235f87;
}
.segmented button[aria-pressed="true"]:hover {
  background: #f7fbfe;
}
.segmented {
  margin-bottom: 28px;
}
.action-area[data-only="message"] .action-row {
  align-items: baseline;
  gap: 20px;
}
.action-area[data-only="message"] h2 {
  margin: 0;
  line-height: 1.45;
  font-size: 17px;
}
.setup-steps {
  list-style: none;
  padding: 17px 15px;
  margin: 19px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border: 1px solid #cedfe9;
  border-radius: 11px;
  background: #ffffff85;
}
.setup-steps li {
  font-size: 12px;
  font-weight: 600;
  color: #48687e;
  display: flex;
  align-items: center;
  gap: 8px;
}
.setup-steps li span {
  display: grid;
  place-items: center;
  flex: 0 0 23px;
  height: 23px;
  border-radius: 50%;
  background: #e0edf6;
  color: #235f87;
  font-size: 11px;
}
.advanced-options {
  padding: 16px 22px;
}
.advanced-options > summary {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 19px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border: 1px solid #ccdde8;
  border-radius: 10px;
  background: #f6fafc;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.advanced-options > summary:hover {
  background: #e9f3f9;
  border-color: #9fc2d9;
}
.advanced-options[open] > .advanced {
  padding: 20px 0 4px;
}
.footer {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.footer > span:last-child {
  text-align: right;
  margin-left: auto;
}
#mode-tooltip {
  position: fixed;
  z-index: 20;
  width: 330px;
  max-width: calc(100vw - 28px);
  padding: 15px 17px;
  border: 1px solid #c5dce9;
  border-radius: 11px;
  background: #f8fcff;
  color: #355a73;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 8px 26px #163e571c;
}
#mode-tooltip strong {
  display: block;
  color: #205c84;
  margin-bottom: 4px;
  font-size: 13px;
}
@media (max-width: 800px) {
  .action-area[data-only="message"] .action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .app-header {
    gap: 12px;
    flex-wrap: nowrap;
  }
  .app-header .brand {
    gap: 7px;
  }
  .app-header .pb-plaque {
    width: 98px;
    height: 50px;
  }
  .app-header .pb-logo {
    width: 80px;
  }
  .app-header .wordmark {
    font-size: 26px;
  }
  .app-header .signum-mark {
    width: 24px;
    height: 24px;
  }
  .app-header .logout {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    font-size: 11px;
    border-radius: 10px;
  }
  .setup-steps {
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
    padding: 15px 12px;
  }
  .setup-steps li {
    font-size: 11px;
    gap: 6px;
  }
  .advanced-options {
    padding: 16px;
  }
  .footer {
    font-size: 10px;
  }
  .archive-trigger {
    padding-left: 0;
    padding-right: 0;
  }
  .segmented {
    margin-bottom: 25px;
  }
}
