/* ==========================================================================
   platform.css — the Haresign platform bar's additions (UX3/UX4).

   Shared byte for byte by Haresign Identity and Haresign Billing, and loaded
   after components.css. It adds what the estate header did not have: the
   service name beside the mark, the "Haresign applications" switcher, the
   account menu's "Signed in as" line and current-page state, and the drawer's
   group of applications. Everything else in the bar is layout.css's.

   Colours are tokens only. Focus rings are base.css's, which already draws a
   visible outline on every interactive element; nothing here removes one.
   ========================================================================== */

/* --- Brand: the mark, then the service name ------------------------------ */

.hs-header__service {
  padding-inline-start: var(--hs-space-3);
  border-inline-start: 1px solid var(--hs-border-on-dark);
  color: var(--hs-text-on-dark-strong);
  font-family: var(--hs-font-display, inherit);
  font-size: var(--hs-text-lg);
  font-weight: var(--hs-weight-bold);
  line-height: 1;
  white-space: nowrap;
}

/* A non-production environment badge needs the room on a phone; the service
   name gives way to it. Production carries no badge, so this never applies there. */
@media (max-width: 36rem) {
  .hs-header__brand:has(.hs-badge--environment) .hs-header__service {
    display: none;
  }
}

/* --- A disclosure menu in the bar (the applications switcher) ------------ */

.hs-menu {
  position: relative;
}

.hs-menu__trigger {
  /* 44px, the minimum comfortable touch target. */
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hs-border-on-dark);
  border-radius: var(--hs-radius-pill);
  color: var(--hs-text-on-dark-strong);
  cursor: pointer;
  list-style: none;
}

.hs-menu__trigger::-webkit-details-marker {
  display: none;
}

.hs-menu__trigger:hover,
.hs-menu[open] .hs-menu__trigger {
  border-color: var(--hs-text-on-dark-strong);
}

.hs-menu__icon {
  display: block;
}

.hs-apps {
  flex: 0 0 auto;
}

.hs-apps__panel {
  width: min(20rem, calc(100vw - 2rem));
}

.hs-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + var(--hs-space-2));
  z-index: 120;
  min-width: 18rem;
  padding-block: var(--hs-space-2);
  border: 1px solid var(--hs-border-subtle);
  border-radius: var(--hs-radius-md);
  background-color: var(--hs-surface);
  color: var(--hs-text);
  box-shadow: var(--hs-shadow-lg);
}

.hs-menu__title {
  margin: 0;
  padding: var(--hs-space-2) var(--hs-space-4) var(--hs-space-3);
  border-bottom: 1px solid var(--hs-border-subtle);
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hs-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-menu__item {
  display: block;
  padding: var(--hs-space-3) var(--hs-space-4);
  color: var(--hs-text);
}

a.hs-menu__item:hover {
  background-color: var(--hs-surface-muted);
}

.hs-apps__item {
  display: grid;
  gap: 0.15rem;
}

.hs-apps__name {
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-bold);
}

.hs-apps__desc {
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
}

/* The current application: a bar on the leading edge, never colour alone. */
.hs-apps__item[aria-current="true"] {
  box-shadow: inset 3px 0 0 var(--hs-primary);
  background-color: var(--hs-surface-muted);
}

/* Not yet launched: shown so it can be discovered, never drawn as a link. */
.hs-apps__item.is-unavailable .hs-apps__name {
  color: var(--hs-text-muted);
}

/* --- The account menu ---------------------------------------------------- */

.hs-account-menu__who {
  margin: 0;
  padding: var(--hs-space-2) var(--hs-space-4) var(--hs-space-3);
  border-bottom: 1px solid var(--hs-border-subtle);
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
}

.hs-account-menu__who strong {
  display: block;
  color: var(--hs-text);
  font-size: var(--hs-text-sm);
  overflow-wrap: anywhere;
}

.hs-account-menu__panel .hs-menu__list {
  padding-block: var(--hs-space-1);
}

.hs-account-menu__item[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--hs-primary);
  background-color: var(--hs-surface-muted);
}

/* --- The drawer's group of applications ---------------------------------- */

.hs-nav__group {
  padding-block: var(--hs-space-2);
}

.hs-nav__group-title {
  margin: 0;
  padding-block: var(--hs-space-4) var(--hs-space-2);
  color: var(--hs-text-on-dark);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hs-nav__sublist {
  margin: 0 0 var(--hs-space-3);
  padding: 0;
  list-style: none;
}

.hs-nav__link--sub {
  padding-block: var(--hs-space-3);
}

.hs-nav__link--sub[aria-current="true"] {
  color: var(--hs-teal);
}

.hs-nav__link.is-unavailable {
  color: var(--hs-text-on-dark);
}

.hs-nav__note {
  margin-inline-start: var(--hs-space-2);
  font-size: var(--hs-text-xs);
}

/* --- In-page section navigation ------------------------------------------
   A short row of links to the sections of one page (Billing's subscription
   page). Links, not tabs: there is no tab behaviour to promise. It scrolls
   inside itself on a phone, so the document never gains a horizontal bar. */

.hs-section-nav {
  overflow-x: auto;
  border-bottom: 1px solid var(--hs-border-subtle);
}

.hs-section-nav__list {
  display: flex;
  gap: var(--hs-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.hs-section-nav__link {
  display: inline-block;
  padding-block: var(--hs-space-3);
  color: var(--hs-text);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-bold);
}

.hs-section-nav__link:hover {
  color: var(--hs-link, var(--hs-primary));
}

/* --- Overview cards ------------------------------------------------------ */

.hs-overview-grid {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  /* Two across on a desktop, one on a phone: four overview cards make a 2x2
     grid rather than three and an orphan. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: var(--hs-space-5);
}

.hs-overview-card {
  display: grid;
  align-content: start;
  gap: var(--hs-space-4);
  padding: var(--hs-space-6);
  border: 1px solid var(--hs-border-subtle);
  border-radius: var(--hs-radius-lg, var(--hs-radius-md));
  background-color: var(--hs-surface);
}

.hs-overview-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--hs-space-3);
}

.hs-overview-card__title {
  margin: 0;
  font-size: var(--hs-heading-card);
}

.hs-overview-card__link {
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-bold);
}

.hs-overview-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-overview-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-2) var(--hs-space-3);
  padding-block: var(--hs-space-3);
  border-top: 1px solid var(--hs-border-subtle);
}

.hs-overview-list > li:first-child {
  border-top: 0;
  padding-top: 0;
}

.hs-overview-list__main {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.hs-overview-list__name {
  font-weight: var(--hs-weight-bold);
  overflow-wrap: anywhere;
}

.hs-overview-list__meta {
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
}

.hs-overview-facts {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) 1fr;
  gap: var(--hs-space-2) var(--hs-space-4);
  margin: 0;
}

.hs-overview-facts dt {
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
}

.hs-overview-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* A short, labelled call to action that something is waiting. */
.hs-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-3);
  padding: var(--hs-space-4) var(--hs-space-5);
  border: 1px solid var(--hs-border-subtle);
  border-inline-start: 4px solid var(--hs-primary);
  border-radius: var(--hs-radius-md);
  background-color: var(--hs-surface);
}

.hs-callout p {
  margin: 0;
}

/* "Read only" beside a value that cannot be changed here. */
.hs-readonly {
  display: inline-block;
  margin-inline-start: var(--hs-space-2);
  padding: 0.05rem var(--hs-space-2);
  border: 1px solid var(--hs-border-subtle);
  border-radius: var(--hs-radius-pill);
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-bold);
  vertical-align: middle;
}

.hs-callout + .hs-overview-grid,
.hs-callout + .hs-panel {
  margin-top: var(--hs-space-5);
}
.hs-mine__subhead { margin: var(--hs-space-7) 0 var(--hs-space-4); font-size: var(--hs-heading-card); }
.hs-callout + .hs-mine, .hs-callout + .hs-empty { margin-top: var(--hs-space-5); }

/* --- Subscription state (Billing) ---------------------------------------- */

.hs-overview-note {
  margin-top: var(--hs-space-5);
}

.hs-subscription-card {
  align-content: space-between;
}

.hs-subscription-state {
  display: grid;
  gap: var(--hs-space-3);
}

.hs-subscription-state__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-2) var(--hs-space-3);
}

.hs-subscription-state__plan {
  margin: 0;
  font-size: var(--hs-heading-card);
  font-weight: var(--hs-weight-bold);
}

.hs-subscription-unavailable {
  margin: 0;
}

.hs-subscription-page {
  display: grid;
  gap: var(--hs-space-6);
}

.hs-subscription-page__pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: var(--hs-space-6);
}

/* An anchored section lands below the sticky bar, not underneath it. */
.hs-subscription-page [id] {
  scroll-margin-top: calc(var(--hs-header-height) + var(--hs-space-4));
}

.hs-section-nav {
  margin-top: var(--hs-space-5);
}

/* --- Accessibility corrections to shared components ---------------------- */

/* A scroll container must be the containing block of what it scrolls. Without
   this a visually-hidden caption or label inside a table (position: absolute)
   escapes it and gives the whole document a horizontal scrollbar on a phone. */
.hs-table-scroll {
  position: relative;
}

/* Text on a tint needs the on-tint inks (4.5:1 or better). */
.hs-badge--ok,
.hs-pill--ok,
.hs-unlock-card--included .hs-unlock-card__status {
  color: var(--hs-teal-ink-on-tint);
}

.hs-badge--warn,
.hs-pill--attention {
  color: var(--hs-coral-ink-on-tint);
}

/* A link inside a sentence is told apart by more than its colour. */
.hs-card__hint a,
.hs-note a,
.hs-panel__note a,
.hs-message a,
.hs-subscription-unavailable a,
.hs-empty__hint a,
.hs-overview-note a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hs-mine__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hs-space-3);
}

/* ==========================================================================
   UX3.1 / UX4.1: compact application layout.

   The signed-in pages are working screens, not landing pages: a compact bar, a
   compact page header (title, one line of description, optional breadcrumb and
   actions, no photograph), then the content at application density. Everything
   here is presentation; no page gains or loses a function.
   ========================================================================== */

/* --- The bar: 64px, one line at every desktop width ---------------------- */

.hs-header__inner {
  gap: var(--hs-space-4);
}

.hs-header__brand {
  flex: 0 0 auto;
}

.hs-header__service {
  font-size: var(--hs-text-base);
}

.hs-nav__list {
  gap: var(--hs-space-4);
}

/* A label never breaks across two lines and never runs into its neighbour;
   below the breakpoint the drawer takes over instead. */
.hs-nav__link {
  white-space: nowrap;
}

/* The account control is the avatar: the name is in the menu ("Signed in as"),
   and the summary carries it as its accessible name. */
.hs-account-menu__text {
  display: none;
}

.hs-account-menu__summary {
  gap: var(--hs-space-2);
  padding-inline-end: var(--hs-space-3);
}

/* --- Compact page header ------------------------------------------------- */

.hs-app-header {
  padding-block: var(--hs-space-5);
  border-bottom: 1px solid var(--hs-border-subtle);
  background-color: var(--hs-surface);
}

.hs-app-header .hs-breadcrumb {
  margin-bottom: var(--hs-space-2);
  font-size: var(--hs-text-xs);
}

.hs-app-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-3) var(--hs-space-5);
}

.hs-app-header__main {
  display: flex;
  align-items: center;
  gap: var(--hs-space-4);
  min-width: 0;
}

.hs-app-header__title {
  margin: 0;
  font-size: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.hs-app-header__lead {
  margin: var(--hs-space-1) 0 0;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
}

.hs-app-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hs-space-2);
}

/* An initials or code mark beside a title (the account, an organisation). */
.hs-app-mark {
  flex: 0 0 auto;
  min-width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--hs-space-2);
  border-radius: var(--hs-radius-sm);
  background-color: var(--hs-primary);
  color: var(--hs-text-on-dark-strong);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-bold);
  letter-spacing: 0.02em;
}

/* --- Compact page body --------------------------------------------------- */

.hs-app-body {
  padding-block: var(--hs-space-6) var(--hs-space-10);
  background-color: var(--hs-surface-muted);
}

.hs-app-stack {
  display: grid;
  gap: var(--hs-space-5);
}

.hs-app-body .hs-panel {
  border-radius: var(--hs-radius-sm);
  box-shadow: none;
}

.hs-app-body .hs-panel__head {
  padding: var(--hs-space-3) var(--hs-space-4);
}

.hs-app-body .hs-panel__body {
  padding: var(--hs-space-4);
}

.hs-app-body .hs-panel__note {
  margin-top: var(--hs-space-3);
  font-size: var(--hs-text-xs);
}

.hs-app-body .hs-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--hs-space-4);
}

.hs-app-body .hs-overview-card {
  gap: var(--hs-space-3);
  padding: var(--hs-space-4) var(--hs-space-5);
  border-radius: var(--hs-radius-sm);
}

.hs-app-body .hs-overview-card__title {
  font-size: var(--hs-text-base);
}

.hs-app-body .hs-overview-list > li {
  padding-block: var(--hs-space-2);
}

.hs-app-body .hs-overview-list__meta {
  font-size: var(--hs-text-xs);
}

.hs-app-body .hs-callout {
  padding: var(--hs-space-3) var(--hs-space-4);
}

/* --- Aligned fields ------------------------------------------------------ */

.hs-fields {
  margin: 0;
}

.hs-fields__row {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  align-items: center;
  gap: var(--hs-space-1) var(--hs-space-4);
  padding-block: var(--hs-space-3);
  border-top: 1px solid var(--hs-border-subtle);
}

.hs-fields__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.hs-fields__row dt {
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
}

/* The value, then its action pushed to the end of the same row. */
.hs-fields__row dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hs-space-2);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.hs-fields__action {
  margin-inline-start: auto;
}

@media (max-width: 36rem) {
  .hs-fields__row {
    grid-template-columns: 1fr;
  }
}

/* A quiet explanation under a field list: why something cannot be changed here. */
.hs-note {
  display: flex;
  gap: var(--hs-space-2);
  margin: var(--hs-space-3) 0 0;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
}

.hs-note svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

/* --- Compact rows (members, organisations, requests) --------------------- */

.hs-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-rows > li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hs-space-2) var(--hs-space-4);
  padding: var(--hs-space-3) var(--hs-space-4);
  border-top: 1px solid var(--hs-border-subtle);
}

.hs-rows > li:first-child {
  border-top: 0;
}

.hs-rows__main {
  flex: 1 1 14rem;
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.hs-rows__name {
  font-weight: var(--hs-weight-bold);
  overflow-wrap: anywhere;
}

.hs-rows__meta {
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
  overflow-wrap: anywhere;
}

.hs-rows__end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hs-space-2);
}

/* --- Inline statistics --------------------------------------------------- */

.hs-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hs-space-2) var(--hs-space-5);
  margin: var(--hs-space-3) 0 0;
  padding: 0;
  list-style: none;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
}

.hs-inline-stats strong {
  color: var(--hs-text);
}

.hs-inline-stats .is-attention strong {
  color: var(--hs-coral-ink-on-tint);
}

/* --- A disclosure used as a secondary action (link a practice, invite) --- */

.hs-app-disclosure {
  border: 1px solid var(--hs-border-subtle);
  border-radius: var(--hs-radius-sm);
  background-color: var(--hs-surface);
}

.hs-app-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-3);
  padding: var(--hs-space-3) var(--hs-space-4);
  cursor: pointer;
  font-weight: var(--hs-weight-bold);
  list-style: none;
}

.hs-app-disclosure > summary::-webkit-details-marker {
  display: none;
}

.hs-app-disclosure > summary::after {
  content: "+";
  color: var(--hs-primary);
  font-size: var(--hs-text-lg);
  line-height: 1;
}

.hs-app-disclosure[open] > summary::after {
  content: "\2212";
}

.hs-app-disclosure__hint {
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-normal);
}

.hs-app-disclosure__body {
  padding: 0 var(--hs-space-4) var(--hs-space-4);
}

.hs-app-disclosure__body .hs-form {
  max-width: 36rem;
}

.hs-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hs-space-2);
}

.hs-search-row .hs-input {
  flex: 1 1 16rem;
}

/* --- The bar's layout (UX3.1): brand, a clear gap, the primary links, then the
   switcher and the account avatar against the right edge. ------------------ */

@media (min-width: 64rem) {
  .hs-nav {
    margin-inline-start: var(--hs-space-8);
    margin-inline-end: auto;
  }
}

.hs-nav__link .hs-badge {
  margin-inline-start: var(--hs-space-2);
}

/* Below 1024px the drawer carries the links and the applications; the avatar
   stays in the bar beside the menu button, as on the desktop. */
@media not all and (min-width: 64rem) {
  .hs-header__actions-desktop {
    display: flex;
  }
  .hs-header__actions-desktop .hs-apps {
    display: none;
  }
}

/* On a phone the signed-out bar has room for the brand and the menu button only: its "Sign in" and
   "Create account" buttons would push the page sideways. The menu carries the same links, and a
   signed-in reader's avatar (not a .hs-btn) stays in the bar. */
@media (max-width: 30rem) {
  .hs-header__actions-desktop > .hs-btn {
    display: none;
  }
}

/* The account menu's identity line and its Administration group. */
.hs-account-menu__email {
  display: block;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
  overflow-wrap: anywhere;
}

.hs-menu__group {
  margin: var(--hs-space-1) 0 0;
  padding: var(--hs-space-2) var(--hs-space-4) var(--hs-space-1);
  border-top: 1px solid var(--hs-border-subtle);
  color: var(--hs-text-muted);
  font-size: var(--hs-text-xs);
  font-weight: var(--hs-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hs-account-menu__item--count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hs-space-3);
}

.hs-account-menu__panel {
  width: min(18rem, calc(100vw - 2rem));
}

/* --- Contextual tabs: links between the pages of one area -----------------
   Links styled as tabs, not ARIA tabs: each is a page, there is no tab
   behaviour to promise. aria-current marks the page. Scrolls inside itself on a
   phone so the document never gains a horizontal bar. */

.hs-tabs {
  margin-top: var(--hs-space-4);
  overflow-x: auto;
}

.hs-tabs__list {
  display: flex;
  gap: var(--hs-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--hs-border-subtle);
}

.hs-tabs__link {
  display: inline-block;
  padding-block: var(--hs-space-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--hs-text-muted);
  font-size: var(--hs-text-sm);
  font-weight: var(--hs-weight-bold);
}

.hs-tabs__link:hover {
  color: var(--hs-text);
}

.hs-tabs__link[aria-current="page"] {
  border-bottom-color: var(--hs-primary);
  color: var(--hs-text);
}

/* A phone: the brand, the avatar and the menu button share 350px. The avatar
   drops its caret (it stays a 44px target) and the brand tightens. */
@media (max-width: 36rem) {
  .hs-header__inner {
    gap: var(--hs-space-2);
  }
  .hs-header__brand {
    gap: var(--hs-space-2);
  }
  .hs-header__service {
    padding-inline-start: var(--hs-space-2);
  }
  .hs-header__actions {
    gap: var(--hs-space-2);
  }
  .hs-account-menu__summary {
    padding: var(--hs-space-1);
  }
  .hs-account-menu__summary::after {
    display: none;
  }
}

/* The stack owns the spacing between its children; adjacency margins written
   for the earlier band layout would otherwise double it. */
.hs-app-stack > * {
  margin-block: 0;
}

/* The invite form on one row: address, role, send. */
.hs-app-disclosure .hs-manage-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 16rem) auto;
  align-items: end;
  gap: var(--hs-space-3);
  max-width: none;
}

.hs-app-disclosure .hs-manage-invite .hs-field,
.hs-app-disclosure .hs-manage-invite .hs-form__actions {
  margin: 0;
}

@media (max-width: 48rem) {
  .hs-app-disclosure .hs-manage-invite {
    grid-template-columns: 1fr;
  }
}

/* --- Billing's service and plan lists at application density ------------- */

.hs-app-body .hs-unlocks .hs-panel__body {
  background: var(--hs-surface);
}

.hs-app-body .hs-unlocks__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr));
  gap: var(--hs-space-3);
}

.hs-app-body .hs-unlock-card {
  min-height: 0;
  gap: var(--hs-space-1);
  padding: var(--hs-space-3) var(--hs-space-4);
  border-radius: var(--hs-radius-sm);
}

.hs-app-body .hs-unlock-card__description {
  font-size: var(--hs-text-xs);
}

.hs-app-body .hs-plan-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: var(--hs-space-3);
}

.hs-app-body .hs-plan-option {
  gap: var(--hs-space-1);
  padding: var(--hs-space-3) var(--hs-space-4);
  border-radius: var(--hs-radius-sm);
}

/* In the drawer the underline is hidden, so the current page is marked by
   weight and colour as well as by aria-current. */
@media not all and (min-width: 64rem) {
  .hs-nav__link[aria-current="page"] {
    color: var(--hs-teal);
    font-weight: var(--hs-weight-bold);
  }
}
