.shared-whiteboard {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.shared-whiteboard__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.shared-whiteboard__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}

.shared-whiteboard__toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shared-whiteboard__stage {
  width: min(100%, 1833px);
  aspect-ratio: 1833 / 475;
  height: auto;
  border: 1px dashed #b8c7db;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  box-sizing: border-box;
  overflow: hidden;
}

.shared-whiteboard__canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  touch-action: none;
  cursor: crosshair;
}

.shared-whiteboard__help {
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .shared-whiteboard__head {
    align-items: stretch;
  }

  .shared-whiteboard__toolbar {
    width: 100%;
    flex-direction: column;
  }

  .shared-whiteboard__toolbar > * {
    width: 100%;
  }

  .shared-whiteboard__stage {
    width: 100%;
    height: auto;
    aspect-ratio: 882/ 411
  }
}


@media (min-width: 1000px) {
.shared-whiteboard__stage {
    width:100%;
    height: 125px;
    border: 1px dashed #b8c7db;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    padding: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    box-sizing: border-box;
    overflow: hidden;
}

}