/* Only the new HR confirmation dialog and administrator setting card. */
.hra-dialog,
.hra-dialog *,
.hra-settings,
.hra-settings * { box-sizing: border-box; }
.hra-dialog {
  width: min(460px,calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 27px;
  background: linear-gradient(135deg,rgba(253,254,255,.96),rgba(238,247,255,.92));
  box-shadow: 0 30px 95px rgba(46,79,114,.22),inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  backdrop-filter: blur(26px) saturate(140%);
  color: #35516d;
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing: antialiased;
}
.hra-dialog:not([open]) { display: none; }
.hra-dialog::backdrop { background: rgba(64,93,125,.28); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.hra-access-form { padding: 19px 28px 27px; }
.hra-dialog-head,
.hra-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hra-kicker { color: #8ba4bb; font-size: 11px; line-height: 1.6; letter-spacing: 1.5px; }
.hra-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-right: -12px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #9bb0c2; font-family: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.hra-close:hover { border-color: #fff; background: rgba(255,255,255,.8); color: #668eaf; }
.hra-lock-mark { display: grid; place-items: center; width: 46px; height: 46px; margin: 8px 0 17px; border: 1px solid rgba(255,255,255,.92); border-radius: 16px; background: rgba(215,233,250,.66); color: #82add2; box-shadow: inset 0 1px 0 #fff; }
.hra-lock-mark svg { width: 25px; height: 25px; }
.hra-dialog h2 { margin: 0 0 10px; color: #3d5e7b; font-size: 23px; font-weight: 550; line-height: 1.4; letter-spacing: -.3px; }
.hra-description { margin: 0 0 23px; color: #819ab0; font-size: 12px; line-height: 1.85; }
.hra-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: #6c89a2; font-size: 12px; line-height: 1.6; }
.hra-field input { display: block; width: 100%; min-width: 0; height: 44px; padding: 10px 13px; border: 1px solid rgba(178,205,229,.52); border-radius: 13px; background: rgba(255,255,255,.73); box-shadow: inset 0 1px 0 #fff; color: #486780; font-family: inherit; font-size: 15px; line-height: 1.5; outline: none; }
.hra-field input:focus { border-color: #91bce3; box-shadow: 0 0 0 3px rgba(111,167,219,.12),inset 0 1px 0 #fff; }
.hra-field input:disabled { background: rgba(230,239,248,.55); color: #a0b2c2; }
.hra-error { min-height: 18px; margin: 10px 0 18px; color: #ae6f7c; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.hra-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.hra-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border: 1px solid rgba(255,255,255,.95); border-radius: 13px; background: rgba(255,255,255,.67); box-shadow: 0 3px 10px rgba(75,115,158,.03),inset 0 1px 0 #fff; color: #7096b6; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.6; cursor: pointer; }
.hra-primary { border-color: rgba(255,255,255,.57); background: linear-gradient(135deg,#78b2ec,#458bd1); color: #fff; box-shadow: 0 5px 15px rgba(64,136,211,.15),inset 0 1px 0 rgba(255,255,255,.32); }
.hra-button:hover:not(:disabled) { background: rgba(231,243,254,.97); }
.hra-primary:hover:not(:disabled) { background: linear-gradient(135deg,#82bcf3,#5298df); }
.hra-button:disabled { opacity: .57; cursor: default; }
.hra-dialog [hidden],
.hra-settings [hidden] { display: none !important; }
.hra-dialog button:focus-visible,
.hra-settings button:focus-visible { outline: 2px solid #87b5df; outline-offset: 3px; }
.hra-settings { margin: 0 0 20px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.95); border-radius: 23px; background: linear-gradient(125deg,rgba(255,255,255,.82),rgba(235,245,255,.62)); box-shadow: 0 12px 35px rgba(64,104,148,.065),inset 0 1px 0 #fff; -webkit-backdrop-filter: blur(20px) saturate(135%); backdrop-filter: blur(20px) saturate(135%); color: #466581; }
.hra-settings-head h3 { margin: 5px 0 0; font-size: 17px; font-weight: 550; line-height: 1.5; }
.hra-state-pill { flex: 0 0 auto; padding: 5px 10px; border: 1px solid rgba(255,255,255,.96); border-radius: 999px; background: rgba(231,242,252,.65); color: #7e9db8; font-size: 10px; line-height: 1.6; }
.hra-settings-copy { margin: 13px 0 18px; color: #879fb4; font-size: 12px; line-height: 1.8; }
.hra-settings-form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; align-items: end; gap: 14px; }
.hra-settings-form .hra-button { min-height: 44px; }
.hra-settings-notice { margin: 13px 0 0; color: #729c8a; font-size: 12px; line-height: 1.7; }
.hra-settings-notice.failed { color: #ae6f7c; }
@media (max-width: 780px) {
  .hra-settings-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hra-settings-form .hra-button { grid-column: 1/-1; justify-self: start; }
}
@media (max-width: 480px) {
  .hra-access-form { padding: 16px 22px 22px; }
  .hra-dialog { border-radius: 24px; }
  .hra-dialog h2 { font-size: 21px; }
  .hra-field input { font-size: 16px; }
  .hra-dialog-actions .hra-button { min-height: 44px; }
  .hra-settings { padding: 19px; border-radius: 20px; }
  .hra-settings-form { grid-template-columns: minmax(0,1fr); gap: 12px; }
}
@media (max-height: 480px) {
  .hra-access-form { padding: 12px 22px 18px; }
  .hra-lock-mark { display: none; }
  .hra-dialog h2 { margin-top: 6px; font-size: 20px; }
  .hra-description { margin-bottom: 14px; }
  .hra-error { margin-bottom: 11px; }
}
