:root {
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  color: #173531;
  background: #f4f7f5;
  font-synthesis: none;
}
.secret-uri,
#mfa-secret,
#recovery-codes {
  display: block;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 16px 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid #dbe6df;
  padding: 22px max(24px, calc((100vw - 1150px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 14px;
}
.brand span {
  color: #70867c;
  font-weight: 500;
  margin-left: 10px;
}
header div {
  display: flex;
  align-items: center;
  gap: 20px;
}
main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 40px 24px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 10px 0 40px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: #57836c;
}
h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin: 15px 0;
}
p {
  line-height: 1.65;
  color: #526e61;
}
button {
  background: #185d47;
  color: white;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button.secondary {
  color: #345f4b;
  border-color: #d3e0d8;
  background: #fff;
}
.danger {
  color: #a34439 !important;
}
#accounts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}
.card {
  background: white;
  border: 1px solid #dbe6df;
  border-radius: 14px;
  padding: 24px;
}
.card h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.badge {
  display: inline-block;
  background: #e5f4e9;
  color: #256643;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
}
.badge.inactive {
  background: #eee;
  color: #666;
}
.card dl {
  font-size: 13px;
  margin: 18px 0;
}
.card dt {
  color: #7d9185;
  margin-top: 12px;
}
.card dd {
  margin: 3px 0;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.actions button {
  padding: 9px 12px;
}
aside {
  margin-top: 30px;
  padding: 24px;
  background: #e9f0eb;
  border-radius: 12px;
}
aside h2 {
  font-size: 18px;
}
code {
  overflow-wrap: anywhere;
}
.empty {
  background: white;
  padding: 40px;
  text-align: center;
  border: 1px dashed #b8d0c0;
  border-radius: 12px;
}
dialog {
  width: min(560px, calc(100% - 30px));
  max-height: 90vh;
  border: 0;
  border-radius: 15px;
  padding: 28px;
  box-shadow: 0 15px 60px #193a3540;
}
dialog::backdrop {
  background: #142d2780;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dialog-head h2 {
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
label {
  display: block;
  margin: 18px 0;
  font-size: 14px;
  font-weight: 600;
}
input,
select {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #cbdcd2;
  border-radius: 7px;
  margin-top: 7px;
  font: inherit;
  color: #204937;
  background: white;
}
input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid #59a67b;
  outline-offset: 2px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkbox input {
  width: auto;
  margin: 0;
}
small {
  display: block;
  color: #70867c;
  font-weight: 400;
  margin-top: 6px;
}
.auth {
  max-width: 470px;
  background: white;
  margin: 8vh auto;
  border: 1px solid #dbe6df;
  border-radius: 15px;
  padding: 32px;
}
.auth h1 {
  font-size: 30px;
}
.auth button {
  margin: 8px 8px 0 0;
}
#notice,
#form-error {
  color: #a34439;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand span {
    display: block;
    margin: 5px 0;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .auth {
    margin: 30px 15px;
  }
  main {
    padding-top: 24px;
  }
}
#notice {
  color: #256643;
}
#notice.error {
  color: #a34439;
}
