.home-vault-account { position: relative; }
.home-vault-account [hidden] { display: none; }
.home-vault-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  right: 0;
  width: min(250px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  padding: 9px;
  border: 1px solid #e6c8aa;
  border-radius: 16px;
  background: #fffaf3;
  box-shadow: 0 12px 34px #58321c26, inset 0 1px #fff;
  font: 600 14px/1.4 system-ui, sans-serif;
}
.home-vault-menu p { margin: 0; padding: 7px; overflow-wrap: anywhere; }
.home-vault-menu a, .home-vault-menu button {
  min-height: 44px;
  padding: 10px;
  border: 1px solid #e7cdb0;
  border-radius: 10px;
  color: #40200b;
  background: #fff9ef;
  text-decoration: none;
  text-align: left;
}
.home-vault-menu :is(a,button):hover { background: #fff0df; }
#home-vault-message { color: #942515; font-size: .8rem; }
.home-transfer-tools { display: flex; align-items: center; gap: inherit; }
@media (max-width: 700px) {
  .zen-home-header {
    display: grid;
    grid-template: 'brand account' auto 'tools tools' auto / minmax(0, 1fr) auto;
    gap: 6px 12px;
    padding: 14px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  }
  .zen-home-header .brand-corner {
    grid-area: brand;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .zen-home-header .creator-credit {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .zen-home-header .header-actions { display: contents; }
  .home-vault-account { grid-area: account; justify-self: end; }
  .home-transfer-tools { grid-area: tools; justify-content: flex-end; gap: 6px; }
}
@media (max-height: 520px) {
  body:has(.zen-home-header) { overflow-y: auto; }
}
