.hosted-authoring-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(240px, 1.4fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 16px 0;
}

.hosted-authoring-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
}

.hosted-authoring-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #e3cddd;
  border-radius: 12px;
  background: white;
  padding: 8px 10px;
  color: inherit;
}

.hosted-authoring-projects {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hosted-authoring-project {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid #ecd7e7;
  border-radius: 16px;
  background: #fffdfd;
}

.hosted-authoring-project > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.hosted-authoring-project strong {
  overflow-wrap: anywhere;
}

.hosted-authoring-project span {
  color: #806f7f;
  font-size: 12px;
}

.hosted-authoring-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-width: none;
  height: min(840px, calc(100dvh - 28px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 24px 80px #4a2b4940;
}

.hosted-authoring-dialog::backdrop {
  background: #3b273b99;
  backdrop-filter: blur(5px);
}

.hosted-authoring-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.hosted-authoring-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #eadce7;
  background: #fff8fc;
}

.hosted-authoring-dialog-header h2 {
  margin: 0;
  font-size: 17px;
}

.hosted-authoring-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.hosted-authoring-player-dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 80px #4a2b4940;
}

.hosted-authoring-player-dialog::backdrop {
  background: #3b273b99;
}

.hosted-authoring-player-dialog h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.hosted-authoring-player-options {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.hosted-authoring-player-option {
  width: 100%;
  text-align: left;
}

@media (max-width: 760px) {
  .hosted-authoring-toolbar {
    grid-template-columns: 1fr;
  }

  .hosted-authoring-project {
    align-items: stretch;
    flex-direction: column;
  }

  .hosted-authoring-dialog {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}
