#ror2-account-button {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 2147483000;
  border: 1px solid #6f7d8c;
  border-radius: 6px;
  background: rgba(14, 19, 25, 0.88);
  color: #e8eef5;
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.03em;
  padding: 9px 13px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
#ror2-account-button:hover { background: #1c2834; border-color: #9fb3c8; }

#ror2-account-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 5, 8, 0.72);
  backdrop-filter: blur(2px);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #e8eef5;
}

#ror2-account-card {
  width: min(720px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  overflow: auto;
  background: #101820;
  border: 1px solid #35485c;
  border-radius: 10px;
  padding: 20px 22px 24px;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.7);
}

#ror2-account-card h2 { margin: 0 0 3px; font-size: 21px; letter-spacing: 0.01em; }
#ror2-account-card h3 { margin: 20px 0 8px; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; color: #a9bfd6; }
#ror2-account-card hr { border: 0; border-top: 1px solid #2a3a4a; margin: 18px 0; }
.ra-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ra-close { border: 0; background: transparent; color: #9fb3c8; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ra-close:hover { color: #fff; }
.ra-lede { color: #c9d7e5; margin: 14px 0 16px; }
.ra-muted { color: #8fa3b8; font-size: 12px; }
.ra-note { color: #8fa3b8; font-size: 12px; margin: 12px 0 0; }
.ra-field { display: block; margin: 12px 0; color: #b9c9d9; font-size: 12px; letter-spacing: 0.02em; }
.ra-field input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 6px;
  padding: 10px 11px;
  border-radius: 5px;
  border: 1px solid #3b4f64;
  background: #0b1219;
  color: #eef4fa;
  font: 14px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ra-field input:focus { outline: 2px solid #4e8fc8; outline-offset: 1px; }
.ra-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.ra-buttons button, .ra-actions button, .ra-who button {
  border: 1px solid #3d5570;
  border-radius: 5px;
  background: #182634;
  color: #e8eef5;
  font: 600 13px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 9px 12px;
  cursor: pointer;
}
.ra-buttons button:hover, .ra-actions button:hover, .ra-who button:hover { background: #22384c; border-color: #6d8baa; }
.ra-buttons button[disabled], .ra-actions button[disabled], .ra-who button[disabled] { opacity: 0.45; cursor: default; }
.ra-status { margin: 10px 0; padding: 9px 11px; border-radius: 5px; background: #102b23; border: 1px solid #2c6b54; color: #bcf0da; font-size: 13px; }
.ra-error { margin: 10px 0; padding: 9px 11px; border-radius: 5px; background: #331317; border: 1px solid #7b2b35; color: #ffc3ca; font-size: 13px; }
.ra-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
.ra-code { font: 700 20px/1.2 ui-monospace, Consolas, monospace; letter-spacing: 0.14em; color: #ffe08a; background: #201b0c; border: 1px dashed #77642c; border-radius: 6px; padding: 10px 12px; text-align: center; }
.ra-list { border: 1px solid #2a3a4a; border-radius: 6px; overflow: hidden; }
.ra-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid #22313f; }
.ra-row:first-child { border-top: 0; }
.ra-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ra-actions button { padding: 6px 9px; font-size: 12px; }
.ra-badge { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; border-radius: 999px; padding: 2px 7px; vertical-align: 2px; border: 1px solid #3d5570; color: #a9bfd6; }
.ra-badge.ra-is-head { border-color: #2f7a5d; color: #97e5c4; background: #0e2a20; }
.ra-badge.ra-conflict { border-color: #8a6320; color: #ffd98a; background: #2a2110; }
.ra-badge.ra-history { border-color: #3d5570; color: #9fb3c8; background: #131e29; }

@media (max-width: 560px) {
  #ror2-account-button { bottom: 8px; left: 8px; }
  #ror2-account-card { padding: 16px; max-height: 92vh; }
  .ra-row { flex-direction: column; align-items: stretch; }
  .ra-actions { justify-content: flex-end; }
}
