.account-explanation {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #f1edf9;
  border: 1px solid #cfc6db;
  border-radius: 10px;
  padding: 19px;
  margin-bottom: 22px;
}
.account-explanation > div {
  min-width: 0;
}
.account-explanation strong {
  font-size: 16px;
  line-height: 1.5;
  color: #272234;
}
.account-explanation p {
  font-size: 14px;
  line-height: 1.7;
  color: #5b526a;
  margin-top: 5px;
  max-width: 800px;
}
.users-table {
  min-width: 900px;
}
.users-table th {
  font-size: 13px;
  color: #5b526a;
}
.users-table td {
  font-size: 14px;
  line-height: 1.6;
}
.users-table td > strong {
  font-weight: 600;
  color: #272234;
}
.user-login {
  display: block;
  color: #5b526a;
  font-size: 13px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.user-methodist {
  margin-left: 6px;
}
.assigned-groups {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 230px;
}
.user-pending {
  display: block;
  margin-top: 5px;
  color: #805600;
  font-size: 12px;
  line-height: 1.5;
}
.user-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.user-actions .text-button {
  font-size: 14px;
  line-height: 1.5;
}
.field-hint {
  font-size: 12px;
  color: #5b526a;
  line-height: 1.6;
}
#user-form .report-form-grid > label {
  font-size: 14px;
  color: #5b526a;
  line-height: 1.5;
}
#user-form input:not([type='checkbox']),
#user-form select {
  font-size: 16px;
  color: #272234;
  min-height: 44px;
}
.user-assignment-note {
  display: flex;
  align-items: start;
  gap: 9px;
  background: #f7f4fb;
  border: 1px solid #cfc6db;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #5b526a;
}
.user-assignment-note .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #5b438f;
}
.user-assignment-note > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.form-error {
  color: #a32346;
  font-size: 14px;
  line-height: 1.7;
  margin: 15px 0;
}
.access-card {
  background: #faf8fd;
  border: 1px solid #cfc6db;
  border-radius: 10px;
  padding: 18px;
}
.access-card h3 {
  font-size: 20px;
  line-height: 1.45;
  color: #272234;
  margin: 13px 0 20px;
  overflow-wrap: anywhere;
}
.access-card label {
  font-size: 14px;
  color: #5b526a;
  margin-top: 15px;
}
.access-card code {
  font-size: 18px;
  color: #5b438f;
  font-family: Consolas, monospace;
  letter-spacing: 0.5px;
  word-break: break-all;
  user-select: all;
}
.access-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 22px;
}
.first-password-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 20px;
  background: radial-gradient(ellipse at 20% 10%, #eae0f6, transparent 60%), #f7f4fb;
}
.first-password-card {
  padding: 32px;
  width: 500px;
  max-width: 100%;
}
.first-password-card > .stat-icon {
  margin-bottom: 20px;
}
.first-password-card > .eyebrow {
  font-size: 12px;
  line-height: 1.6;
  color: #5b438f;
}
.first-password-card h1 {
  font-size: 28px;
  line-height: 1.3;
  color: #272234;
  letter-spacing: -0.4px;
  margin: 10px 0;
}
.first-password-card > p {
  font-size: 14px;
  line-height: 1.8;
  color: #5b526a;
}
.first-user {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #f4eef9;
  border-radius: 8px;
  padding: 12px;
  margin: 20px 0;
  font-size: 14px;
  color: #272234;
  overflow-wrap: anywhere;
}
.first-user strong {
  font-weight: 600;
}
.first-user span {
  font-size: 13px;
  color: #5b526a;
}
.first-password-card form > label {
  font-size: 14px;
  color: #5b526a;
  margin-bottom: 17px;
}
.first-password-card input {
  min-height: 46px;
  font-size: 16px;
  color: #272234;
}
.first-logout {
  display: flex;
  margin: 22px auto 0;
  font-size: 14px;
  line-height: 1.5;
}
.profile > div {
  overflow: hidden;
}
.profile > div > strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.role-mini {
  color: #5b526a;
  font-size: 12px;
  line-height: 1.5;
  display: block;
}
.journal-day-settings {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
  padding: 15px 20px;
  background: #f7f4fc;
  border-top: 1px solid #cfc6db;
  border-bottom: 1px solid #cfc6db;
}
.journal-day-settings label {
  font-size: 14px;
  line-height: 1.5;
  color: #5b526a;
  gap: 6px;
}
.journal-day-settings .date-control {
  min-height: 44px;
  padding-left: 0;
}
.journal-day-settings input {
  min-height: 44px;
  padding: 9px 10px;
  font-size: 16px;
  color: #272234;
  width: 170px;
}
.journal-day-settings select {
  min-height: 44px;
  font-size: 16px;
  color: #272234;
  min-width: 145px;
}
.day-setting-status {
  font-size: 12px;
  line-height: 1.6;
  color: #5b526a;
  margin-left: auto;
  padding-bottom: 10px;
}
.journal-actions > .small-control {
  display: none;
}
.password-strength-note {
  font-size: 12px;
  line-height: 1.6;
  color: #5b526a;
}
.curator-hint {
  font-size: 12px;
  color: #5b526a;
  line-height: 1.7;
}
.page-footer,
.panel-foot {
  word-break: normal;
}
.paper-preview {
  font-family: 'Times New Roman', serif;
  color: #000;
}
.paper-preview h3,
.paper-preview > p {
  color: #000;
}
.paper-preview .preview-table > i {
  background: #fff;
  border: 1px solid #000;
}
.paper-preview .preview-table > div {
  border-color: #000;
}
.paper-preview .preview-table > div > span {
  border-color: #000;
}
.paper-preview .signature-line {
  border-color: #000;
}
@media (max-width: 760px) {
  .account-explanation {
    padding: 15px;
    gap: 11px;
  }
  .account-explanation strong {
    font-size: 15px;
  }
  .account-explanation p {
    font-size: 14px;
  }
  .users-table-scroll {
    max-width: 100%;
  }
  .users-table {
    min-width: 860px;
  }
  .users-table td {
    font-size: 14px;
  }
  .first-password-card {
    padding: 25px 21px;
  }
  .first-password-card h1 {
    font-size: 26px;
  }
  .access-actions {
    flex-direction: column;
  }
  .journal-day-settings {
    gap: 12px;
    padding: 13px;
  }
  .journal-day-settings label {
    font-size: 14px;
    flex: 1 1 140px;
    min-width: 0;
  }
  .journal-day-settings input {
    width: 100%;
  }
  .journal-day-settings select {
    font-size: 16px;
    width: 100%;
    min-width: 100px;
  }
  .day-setting-status {
    font-size: 12px;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .user-actions {
    gap: 8px;
  }
}
