.rs-account { order: 5; display: flex; align-items: center; flex: 0 0 auto; margin-left: auto; }
.rs-unified-header > .rs-account { margin-left: 0; }
.rs-account > #accountState {
  display: block; box-sizing: border-box; min-width: 0; max-width: 180px; height: 40px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 9px;
  border: 1px solid #354253; border-radius: 7px; background: #111b27; color: #d7dee8;
  font: 600 11px/38px system-ui, sans-serif; text-align: center; text-decoration: none; cursor: pointer;
}
.rs-account > #accountState.authenticated { color: #23dca0; border-color: #267659; }
#rsAccountPanel {
  position: fixed; z-index: 11000; box-sizing: border-box; width: 300px; max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px); overflow: auto; padding: 14px; border: 1px solid #354253;
  border-radius: 10px; background: #0c1118; color: #e8eef6; box-shadow: 0 12px 36px #0006;
  font: 13px/1.5 system-ui, sans-serif;
}
#rsAccountPanel[hidden] { display: none !important; }
#rsAccountPanel > strong, #rsAccountPanel > small { display: block; overflow-wrap: anywhere; }
#rsAccountPanel > small { color: #93a5b8; }
#rsAccountPanel > button, #rsAccountPanel > a {
  display: block; box-sizing: border-box; width: 100%; margin-top: 10px; padding: 9px 12px;
  border: 1px solid #354253; border-radius: 7px; background: #192634; color: #e8eef6;
  font: inherit; text-align: center; text-decoration: none; cursor: pointer;
}
#rsAccountPanel #rsAccountStatus { margin: 9px 0 0; color: #f6bd43; font-size: 12px; }
#rsAccountPanel #rsGoogleLogin { box-sizing: border-box; width: 100%; margin-top: 12px; min-height: 40px; overflow: hidden; border-radius: 7px; }
.rs-account :focus-visible, #rsAccountPanel :focus-visible { outline: 2px solid #23dca0; outline-offset: 2px; }
.robostock-legal-header { display: flex; align-items: center; gap: 12px; }
body.light .rs-account > #accountState { color: #172b3b; background: #eaf0f5; border-color: #d7e1e8; }
@media (max-width: 680px) {
  .rs-account > #accountState { width: 36px; max-width: 36px; height: 36px; padding: 0; font-size: 0; line-height: 34px; }
  .rs-account > #accountState::before {
    content: ""; display: inline-block; width: 21px; height: 21px; vertical-align: middle;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M4.5 21v-2a7.5 7.5 0 0 1 15 0v2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  }
  .admin-header, .robostock-legal-header, header.top { flex-wrap: wrap; }
  .robostock-overview-brand { min-width: 0; max-width: 100%; }
}
