.key-entry-navigation { position: fixed; z-index: 9; top: 18px; right: calc(var(--rail-width, 224px) / 2); transform: translateX(50%); }
.key-entry-link { appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 132px; min-height: 72px; padding: 6px 8px; border: 0; background: var(--paper); color: #5d5649; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.key-entry-link :is(svg, img) { display: block; flex-shrink: 0; }
.key-entry-link .owned-key { width: 116px; height: 37px; }
.key-entry-link .unowned-key { width: 116px; height: 37px; }
/* Reserve the identifier's line so the artwork does not jump on sign-in. */
.key-entry-link:has(.unowned-key:not([hidden]))::after { content: '\00a0'; font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; }
.key-entry-identifier { font: 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; color: #625b50; }
.key-entry-link:focus-visible { outline: 1px solid #806638; outline-offset: 3px; }
.key-session-status { position: fixed; z-index: 7; top: 100px; right: 24px; max-width: 240px; padding: 10px; background: #f7f6f2; color: #625b50; font: 15px/1.4 serif; }

@media (max-width: 900px) {
  .key-entry-navigation { top: 10px; right: 12px; transform: none; }
  .key-entry-link { min-width: 116px; min-height: 62px; padding: 4px 8px; gap: 4px; }
  .key-entry-link .owned-key { width: 100px; height: 32px; }
  .key-entry-link .unowned-key { width: 100px; height: 32px; }
  .key-entry-link:has(.unowned-key:not([hidden]))::after { font-size: 11px; }
  .key-entry-identifier { font-size: 11px; }
}
