.roebtec-auth-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.roebtec-auth-actions [hidden] {
  display: none !important;
}

.roebtec-auth-actions .roebtec-portal-link {
  width: auto;
  min-width: auto;
  height: 2rem;
  margin: 0 0.2rem;
  padding: 0 0.65rem;
  border: 1px solid var(--md-accent-fg-color);
  background: var(--md-accent-fg-color);
  color: var(--md-accent-bg-color);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.9rem;
  text-decoration: none;
}

.roebtec-auth-actions .roebtec-auth-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0.4rem;
}

.roebtec-auth-actions .roebtec-auth-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media screen and (max-width: 44.984375em) {
  .roebtec-auth-actions .roebtec-portal-link {
    padding: 0 0.45rem;
    font-size: 0.62rem;
  }
}

.md-header .roebtec-home-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: 0 0.2rem;
  padding: 0.4rem;
}

.md-header .roebtec-home-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/* The custom home control replaces Material's default book/logo link. */
.md-header__button.md-logo {
  display: none !important;
}

/* Keep the navigation drawer toggle available on desktop as well. */
.md-header__button[for="__drawer"] {
  display: inline-flex !important;
}

/* Use the navigation drawer on every viewport; keep it closed by default. */
@media screen and (min-width: 60em) {
  .md-sidebar--primary {
    display: none;
  }

  #__drawer:checked ~ .md-container .md-sidebar--primary {
    display: block;
    position: fixed;
    z-index: 4;
    top: 3.2rem;
    bottom: 0;
    left: 0;
    width: 15rem;
    background: var(--md-default-bg-color);
    box-shadow: 0.25rem 0 0.75rem rgba(0, 0, 0, 0.2);
  }

  #__drawer:checked ~ .md-container .md-sidebar--primary .md-sidebar__scrollwrap {
    max-height: calc(100vh - 3.2rem);
  }
}

@media screen and (min-width: 60em) {
  body .md-sidebar--primary {
    display: none !important;
  }

  body:has(#__drawer:checked) .md-sidebar--primary {
    display: block !important;
  }
}
