@media print {
  .gls-account-strip, .gls-account, .gls-account-dialog { display: none !important; }
}

.gls-account-strip {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  padding: 10px clamp(14px, 3vw, 42px) 0;
}
.home-navy .gls-account-strip { padding: 0; margin-bottom: 8px; }

.gls-account, .gls-account-dialog {
  color: #edf4fc;
  font: 14px/1.4 Inter, Arial, sans-serif;
}

.gls-account {
  position: relative;
  flex: 0 0 auto;
  order: 10;
  margin-left: auto;
  z-index: 5;
}

.gls-account > summary, .gls-account-identity {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gls-account > summary {
  list-style: none;
  padding: 4px 10px 4px 4px;
  border: 1px solid #293d53;
  border-radius: 24px;
  background: #0c1b2d;
  cursor: pointer;
}
.gls-account > summary::-webkit-details-marker { display: none; }
.gls-account > summary:hover { border-color: #7dbdff; }
.gls-account > summary .gls-account-name {
  max-width: 130px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gls-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #25486a;
  color: #edf4fc;
  font-weight: 700;
}
.gls-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gls-account-identity .gls-avatar { flex-basis: 42px; width: 42px; height: 42px; }
.gls-account-identity > div { min-width: 0; overflow-wrap: anywhere; }
.gls-account-role { display: block; color: #9fb4cc; }
.gls-account[data-role="master_admin"] .gls-account-role { color: #b5dcff; }
.gls-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(270px, calc(100vw - 26px));
  padding: 12px;
  box-sizing: border-box;
  border: 1px solid #293d53;
  border-radius: 12px;
  background: #101f32;
  box-shadow: 0 10px 28px #0005;
}
.gls-account-menu .gls-account-identity { padding: 4px 4px 10px; border-bottom: 1px solid #293d53; }
.gls-account-menu button, .gls-account-menu a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #edf4fc;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.gls-account-menu :is(button, a):hover { background: #1b3048; }
.gls-account-menu [data-account-logout] { color: #ffb4b4; }
.gls-account-dialog {
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100dvh - 36px);
  box-sizing: border-box;
  overflow: auto;
  padding: 20px;
  border: 1px solid #293d53;
  border-radius: 14px;
  background: #101f32;
}
.gls-account-dialog::backdrop { background: #050c16b8; }
.gls-account-dialog .gls-profile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.gls-account-dialog h2 { margin: 0; color: #edf4fc; font: 650 21px/1.3 Inter, Arial, sans-serif; }
.gls-account-dialog form { display: grid; gap: 12px; }
.gls-account-dialog form[hidden] { display: none; }
.gls-account-dialog label { display: grid; gap: 5px; color: #b4c4d7; font: inherit; }
.gls-account-dialog :is(input, select, button) {
  box-sizing: border-box;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #293d53;
  border-radius: 8px;
  background: #0b192a;
  color: #edf4fc;
  font: inherit;
}
.gls-account-dialog button { cursor: pointer; }
.gls-account-dialog .gls-account-primary { background: #7dbdff; color: #081322; font-weight: 700; }
.gls-account-dialog button:disabled { opacity: .5; cursor: wait; }
.gls-account-dialog p { margin: 0; overflow-wrap: anywhere; }
.gls-profile-appearance { padding: 10px; border: 1px solid #293d53; border-radius: 8px; }
.gls-profile-appearance summary { cursor: pointer; }
.gls-profile-appearance label, .gls-profile-appearance button, .gls-profile-appearance img { margin-top: 10px; }
.gls-profile-appearance img { display: block; width: 100%; max-height: 110px; object-fit: cover; border-radius: 6px; }
[data-profile-message]:not(:empty), [data-account-message]:not(:empty) { padding-top: 10px; color: #b5dcff; }
[data-account-message]:empty { display: none; }
:is(.gls-account, .gls-account-dialog) :focus-visible { outline: 2px solid #9ed1ff; outline-offset: 2px; }

html[data-gls-density="compact"] :is(.cases-table, .reports-shell table, #usersTable, .shell:has(#histTitle) table) td {
  padding-block: 6px;
}

@media (max-width: 640px) {
  .gls-account > summary .gls-account-name { display: none; }
}
