[hidden] {
  display: none !important;
}

/* Keep the primary navigation centered before the async account menu is added. */
@media (min-width: 721px) {
  body > header.app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  body > header.app-header > .brand {
    justify-self: start;
  }

  body > header.app-header > .desktop-nav {
    justify-self: center;
  }

  body > header.app-header > .account-user-menu {
    justify-self: end;
  }
}

.account-user-menu {
  position: relative;
  margin-left: 8px;
}

.account-user-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #cfd5d1;
  border-radius: 50%;
  background: #fff;
  color: #163c2d;
  cursor: pointer;
}

.account-user-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.account-user-button:hover,
.account-user-button[aria-expanded="true"] {
  background: #e8f2ed;
  border-color: #176b4d;
}

.account-user-dropdown {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid #d9ddd9;
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: 0 18px 50px rgba(20, 42, 32, 0.18);
}

.account-user-identity {
  display: grid;
  gap: 3px;
  padding: 4px 6px 12px;
  border-bottom: 1px solid #e3e4df;
}

.account-user-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-user-identity small {
  color: #68736d;
}

.account-user-links {
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.account-user-links a,
.account-user-links button {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #17251f;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.account-user-links a:hover,
.account-user-links button:hover {
  background: #edf3ef;
}

.account-status-note {
  color: #5d6963;
  line-height: 1.6;
}

.member-list .admin-lan-link {
  display: inline-flex;
  width: max-content;
  margin-top: 12px;
  padding: 10px 15px;
  border-radius: 999px;
  background: #163c2d;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.member-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.member-overview .account-card {
  min-width: 0;
}

.benefit-list {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.benefit-list li::before {
  content: "✓";
  margin-right: 9px;
  color: #176b4d;
  font-weight: 800;
}

.account-cta {
  display: inline-flex;
  padding: 10px 16px;
  border: 1px solid #163c2d;
  border-radius: 999px;
  color: #163c2d;
  font-weight: 700;
  text-decoration: none;
}

.usage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0 20px;
}

.usage-grid div {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 14px;
  background: #edf3ef;
}

.usage-grid strong {
  font-size: 2rem;
}

.usage-grid span {
  color: #66716b;
}

.admin-preview-card {
  grid-column: 1 / -1;
}

.admin-preview-card label {
  max-width: 420px;
}

.admin-preview-card select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9cec9;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

@media (max-width: 720px) {
  .member-overview {
    grid-template-columns: 1fr;
  }

  .admin-preview-card {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .search-header .account-user-menu {
    margin-left: auto;
  }
}
