.gallery-mode-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
  border: 1px solid #424e56;
  border-radius: 8px;
  background: #191d20;
  font: 13px/1.2 system-ui, sans-serif;
}
.gallery-mode-switch :is(a, span) {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
  color: #d1dbe1;
  text-decoration: none;
  white-space: nowrap;
}
.gallery-mode-switch a:hover { background: #26332d; color: #e1f3e9; }
.gallery-mode-switch [aria-current="page"] { background: #bbdeca; color: #14251b; font-weight: 600; }
.gallery-mode-switch a:focus-visible { outline: 2px solid #bbdeca; outline-offset: 2px; }
.gallery-account { position: relative; flex: none; color-scheme: dark; }
.gallery-account-control {
  display: inline-flex; align-items: center; min-height: 36px; max-width: 150px;
  padding: 0 10px; border: 1px solid #6f79b0; border-radius: 6px;
  background: #292e4d; color: #eff0ff; font: 13px/1.2 system-ui, sans-serif;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.gallery-account summary { display: block; align-content: center; overflow: hidden; text-overflow: ellipsis; }
.gallery-account summary::-webkit-details-marker { display: none; }
.gallery-account summary::marker { content: ""; }
.gallery-account-control:hover, .gallery-account form button:hover { background: #3a416a; }
.gallery-account-control:focus-visible, .gallery-account form button:focus-visible { outline: 2px solid #b7bfff; outline-offset: 2px; }
.gallery-account form { position: absolute; z-index: 8; inset: calc(100% + 5px) 0 auto auto; min-width: 108px; }
.gallery-account form button {
  width: 100%; min-height: 36px; border: 1px solid #6f79b0; border-radius: 6px;
  background: #292e4d; color: #eff0ff; font: 13px system-ui, sans-serif; cursor: pointer;
}
.gallery-search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  border: 1px solid #424e56;
  border-radius: 8px;
  background: #191d20;
  color: #e0e6eb;
}
.gallery-search-field:focus-within { border-color: #b9dccc; box-shadow: 0 0 0 3px #b9dccc16; }
.gallery-search-field input { min-width: 0; flex: 1; border: 0; background: none; color: inherit; outline: none; }
.gallery-search-field input::placeholder { color: #a6b2ba; opacity: 1; }
