[hidden] {
  display: none !important;
}

.checkbox-field {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 11px;
  padding: 14px;
  border: 1px solid #b9cbca;
  border-radius: 10px;
  cursor: pointer;
}

.checkbox-field input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
}

.checkbox-field strong,
.checkbox-field small {
  display: block;
}

.checkbox-field small {
  margin-top: 4px;
  color: #647b80;
  font-weight: 400;
  line-height: 1.4;
}

.activation-2fa {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.activation-2fa h2 {
  margin: 0;
  font: 500 28px/1.15 Georgia, serif;
}

.activation-2fa p {
  margin: 0;
  color: #647b80;
}

.totp-qr {
  width: 244px;
  min-height: 244px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #d7e2e1;
  border-radius: 12px;
}

.totp-qr > img,
.totp-qr > canvas {
  width: 220px !important;
  height: 220px !important;
}

.activation-2fa code,
.activation-2fa pre {
  display: block;
  padding: 13px;
  overflow: auto;
  border-radius: 8px;
  background: #edf4f3;
}

.password-guidance {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #eef6f4;
  color: #456268;
  font-size: 13px;
}

.password-guidance strong,
.password-guidance span,
.password-guidance small {
  display: block;
}

.password-rules {
  display: grid;
  gap: 6px;
  margin: 5px 0 3px;
  padding: 0;
  list-style: none;
}

.password-rules li {
  position: relative;
  padding-left: 24px;
  color: #5f7478;
}

.password-rules li::before {
  content: "○";
  position: absolute;
  left: 1px;
  top: -1px;
  font-size: 16px;
  font-weight: 800;
}

.password-rules li.passed { color: #176c53; }
.password-rules li.passed::before { content: "✓"; }
.password-rules li.failed { color: #8a3340; }
.password-rules li.failed::before { content: "×"; }

.password-guidance meter {
  width: 100%;
  height: 10px;
  margin-top: 4px;
}

.password-guidance small.ready,
.confirm-status.ready {
  color: #176c53;
  font-weight: 700;
}

.confirm-status {
  color: #647b80;
  font-weight: 500;
}

input[aria-invalid="true"] {
  border-color: #b44b59;
  background: #fff9fa;
}

.form-error.form-notice {
  color: #285c62;
  background: #edf6f5;
  border-color: #b7d7d3;
}

.account-settings-window {
  width: min(900px, 100%);
}

.account-settings-content {
  gap: 24px;
}

.settings-section {
  display: grid;
  gap: 15px;
  padding: 20px;
  border: 1px solid #d7e2e1;
  border-radius: 14px;
  background: #fff;
}

.settings-heading h3 {
  margin: 0 0 4px;
  font-size: 21px;
}

.settings-heading p {
  margin: 0;
  color: #647b80;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-form-grid small,
.settings-section label > small {
  color: #647b80;
  font-weight: 400;
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.inline-status {
  color: #176c53;
  font-weight: 700;
}

.two-factor-settings {
  background: #f8fbfa;
}

@media (max-width: 700px) {
  .profile-form-grid { grid-template-columns: 1fr; }
  .settings-section { padding: 15px; }
}
