/* Granti: presentation-only customization for Bitwarden Web 2026.8.1.
   Does not modify authentication, encryption, entitlements or vault data. */
app-upgrade-nav-button,
billing-free-families-nav-item,
navigation-product-switcher > section,
bit-nav-item:has(a[href*="/settings/subscription"]),
bit-nav-item:has(a[href*="/settings/add-plan"]) {
  display: none !important;
}

/* Use the surrounding vault surface, without an extra background panel. */
granti-directory { background: transparent !important; }

/* granti-device-select-v1 */
granti-directory .editor select {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px;
  border-radius: 9px;
  background: rgb(var(--color-background));
  color: rgb(var(--color-text-main));
  border: 1px solid rgb(var(--color-secondary-300));
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}
granti-directory .editor select:focus-visible {
  outline: 2px solid rgb(var(--color-primary-600));
  outline-offset: 2px;
}
granti-directory .editor select:disabled { cursor: default; opacity: .65; }

/* granti-device-card-actions-v1 */
granti-directory section[aria-label="Устройства"] article.card { min-width:0; }
granti-directory section[aria-label="Устройства"] article.card p { overflow-wrap:anywhere; }
granti-directory section[aria-label="Устройства"] article.card footer {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));
  gap:10px;
  align-items:stretch;
}
granti-directory section[aria-label="Устройства"] article.card footer button {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  margin:0;
  padding:10px 12px;
  white-space:normal;
  overflow-wrap:anywhere;
  text-align:center;
  line-height:1.4;
}

/* granti-hide-department-shared-v1 */
granti-directory .department-shared { display:none !important; }
