.editor-account-bar[hidden] { display: none; }
.editor-account-controls[hidden] { display: none; }
.editor-account-controls { display: flex; align-items: stretch; min-width: 0; }
.editor-account-controls .editor-entry-link { margin-inline-end: 0; }
.editor-entry-link[hidden] { display: none; }
.editor-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-end: auto;
  padding-inline: 10px;
  color: #e7f4fa;
  font: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.editor-entry-link:hover { background: #263847; color: #fff; }
.editor-entry-link:focus-visible { outline: 2px solid #81d4f2; outline-offset: -2px; }
.editor-account-bar {
  position: sticky;
  top: 0;
  z-index: 51;
  height: 34px;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding-inline: max(16px, calc((100vw - var(--legacy-max, 1240px)) / 2));
  border-bottom: 1px solid #3d4c58;
  background: #17232d;
  color: #f0f6fa;
  font: 12px/1.25 "Segoe UI", "Noto Sans", Arial, sans-serif;
}
.has-editor-account .legacy-header { top: 34px; }
.editor-account-menu { position: relative; min-width: 0; }
.editor-account-menu > summary {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 10px;
  cursor: pointer;
  list-style: none;
  color: #e9f2f7;
}
.editor-account-menu > summary::-webkit-details-marker { display: none; }
.editor-account-menu[open] > summary,
.editor-account-menu > summary:hover { background: #263847; }
.editor-account-menu > summary:focus-visible,
.editor-account-panel :is(a, button):focus-visible { outline: 2px solid #81d4f2; outline-offset: -2px; }
.editor-account-menu > summary .editor-account-name { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-account-avatar {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: #467999;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.editor-account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.editor-account-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: min(270px, calc(100vw - 24px));
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #435e71;
  border-radius: 0 0 10px 10px;
  background: #20313e;
  box-shadow: 0 16px 32px rgba(0, 9, 18, .4);
}
.editor-account-identity { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 4px 11px; border-bottom: 1px solid #405466; }
.editor-account-identity .editor-account-avatar { width: 42px; height: 42px; flex-basis: 42px; font-size: 18px; }
.editor-account-identity strong { overflow-wrap: anywhere; font-size: 13px; }
.editor-account-panel :is(a, button) {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #e7f4fa;
  font: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.editor-account-panel :is(a, button):hover { background: #31506a; color: #fff; }
.editor-account-error { margin: 4px 8px; color: #ffb6b9; }
html[dir="rtl"] .editor-account-panel { right: auto; left: 0; }
@media (max-width: 600px) {
  .editor-account-bar { height: 44px; padding-inline: 8px; }
  .has-editor-account .legacy-header { top: 44px; }
  .editor-account-controls .editor-entry-link { width: 40px; padding: 0; justify-content: center; font-size: 0; }
  .editor-account-controls .editor-entry-link > span { font-size: 18px; }
  .editor-account-menu > summary .editor-account-name { max-width: 18ch; }
}
